在您安装前,Greasy Fork 希望您知道此脚本包含可能不受欢迎的功能,也许会帮助脚本作者获利,而不能给你带来任何收益。
作者从这份脚本获得佣金,例如透过改写链接或提供优惠券代码以包含推荐或附属代码。
脚本作者的说明:
含有比价狗官方返利
商品优惠券+店铺优惠券+近180天历史价格查询,无券商品补贴立减红包。快速比价,以全网最低的价格买到商品,轻松省钱。有功能需求或问题可随时联系反馈(2498478969@qq.com)。
// ==UserScript== // @name 【比价狗超简洁版——持续维护】“比价”+“找内部优惠券”,支持京东、淘宝、天猫、苏宁、当当等各大主流平台商品,自动显示隐藏优惠券和历史价格,页面简洁无广告。 // @namespace no // @version 1.1.1 // @description 商品优惠券+店铺优惠券+近180天历史价格查询,无券商品补贴立减红包。快速比价,以全网最低的价格买到商品,轻松省钱。有功能需求或问题可随时联系反馈(2498478969@qq.com)。 // @author 比价狗 // @require https://cdn.gwdang.com/js/polyfill.js // @antifeature referral-link 含有比价狗官方返利 // @run-at document-idle // @include https://www.hihonor.com/* // @include https://www.ymatou.hk/* // @include https://www.ymatou.com/* // @include http://traveldetail.fliggy.com/* // @include https://traveldetail.fliggy.com/* // @include http://*.wzhouhui.com/* // @include https://*.wzhouhui.com/* // @include http://cn.wemakeprice.com/* // @include https://cn.wemakeprice.com/* // @include http://cn.dod.nl/* // @include https://cn.dod.nl/* // @include http://*.decathlon.com.cn/* // @include https://*.decathlon.com.cn/* // @include http://cn.apo.com/* // @include https://cn.apo.com/* // @include http://*.ansgo.com/* // @include https://*.ansgo.com/* // @include http://*.perfumesclub.cn/* // @include https://*.perfumesclub.cn/* // @include http://*.net-a-porter.com/* // @include https://*.net-a-porter.com/* // @include http://*.kidsroom.cn/* // @include https://*.kidsroom.cn/* // @include http://cn.getthelabel.com/* // @include https://cn.getthelabel.com/* // @include http://*.farfetch.cn/* // @include https://*.farfetch.cn/* // @include http://item.kongfz.com/* // @include https://item.kongfz.com/* // @include http://book.kongfz.com/* // @include https://book.kongfz.com/* // @include http://cn.iherb.com/* // @include https://cn.iherb.com/* // @include http://*.hqhair.com/* // @include https://*.hqhair.com/* // @include http://*.wl.cn/* // @include https://*.wl.cn/* // @include http://*.columbia.com/* // @include https://*.columbia.com/* // @include http://*.columbiasports.cn/* // @include https://*.columbiasports.cn/* // @include http://*.ehaoyao.com/* // @include https://*.ehaoyao.com/* // @include http://*.bhphotovideo.com/* // @include https://*.bhphotovideo.com/* // @include http://*.shoes.com/* // @include https://*.shoes.com/* // @include http://*.jomashop.com/* // @include https://*.jomashop.com/* // @include http://cn.pharmacydirect.co.nz/* // @include https://cn.pharmacydirect.co.nz/* // @include http://*.holland-at-home.com/* // @include https://*.holland-at-home.com/* // @include http://cn.holland-at-home.com/* // @include https://cn.holland-at-home.com/* // @include http://*.rei.com/* // @include https://*.rei.com/* // @include http://item.aomygod.com/* // @include https://item.aomygod.com/* // @include http://*.huatuoyf.com/* // @include https://*.huatuoyf.com/* // @include http://*.forever21.com/* // @include https://*.forever21.com/* // @include http://zh.ashford.com/* // @include https://zh.ashford.com/* // @include http://*.bestbuy.com/* // @include https://*.bestbuy.com/* // @include http://*.target.com/* // @include https://*.target.com/* // @include http://cn.chemistdirect.com.au/* // @include https://cn.chemistdirect.com.au/* // @include http://*.ba.de/* // @include https://*.ba.de/* // @include http://m.wandougongzhu.cn/* // @include https://m.wandougongzhu.cn/* // @include http://cn.feelunique.com/* // @include https://cn.feelunique.com/* // @include http://shop.dixintong.com/* // @include https://shop.dixintong.com/* // @include http://cn.pharmacyonline.com.au/* // @include https://cn.pharmacyonline.com.au/* // @include http://cn.discount-apotheke.de/* // @include https://cn.discount-apotheke.de/* // @include http://*.carters.com/* // @include https://*.carters.com/* // @include http://*.katespade.co.uk/* // @include https://*.katespade.co.uk/* // @include http://*.katespade.cn/* // @include https://*.katespade.cn/* // @include http://*.beautybay.com/* // @include https://*.beautybay.com/* // @include http://cn.pharmacy4less.com.au/* // @include https://cn.pharmacy4less.com.au/* // @include http://*.newegg.com/* // @include https://*.newegg.com/* // @include http://*.newbalance.com/* // @include https://*.newbalance.com/* // @include http://*.bodybuilding.com/* // @include https://*.bodybuilding.com/* // @include http://*.ssnewyork.com/* // @include https://*.ssnewyork.com/* // @include http://*.wine9.com/* // @include https://*.wine9.com/* // @include http://*.kohls.com/* // @include https://*.kohls.com/* // @include http://*.gnc.com/* // @include https://*.gnc.com/* // @include http://*.qw.cc/* // @include https://*.qw.cc/* // @include http://*.haiershui.com/* // @include https://*.haiershui.com/* // @include http://*.ugg.com/* // @include https://*.ugg.com/* // @include http://*.ugg.cn/* // @include https://*.ugg.cn/* // @include http://*.yoger.com.cn/* // @include https://*.yoger.com.cn/* // @include http://*.flyco.com/* // @include https://*.flyco.com/* // @include http://*.yfdyf.com/* // @include https://*.yfdyf.com/* // @include http://*.joesnewbalanceoutlet.com/* // @include https://*.joesnewbalanceoutlet.com/* // @include http://*.jomoo.com.cn/* // @include https://*.jomoo.com.cn/* // @include http://*.dapu.com/* // @include https://*.dapu.com/* // @include http://china.coach.com/* // @include https://china.coach.com/* // @include http://*.shanmai.cn/* // @include https://*.shanmai.cn/* // @include http://*.fengbuy.com/* // @include https://*.fengbuy.com/* // @include http://*.t10.com/* // @include https://*.t10.com/* // @include http://cn.amcal.com.au/* // @include https://cn.amcal.com.au/* // @include http://cn.babyhaven.com/* // @include https://cn.babyhaven.com/* // @include http://*.51taouk.com/* // @include https://*.51taouk.com/* // @include http://*.usashopcn.com/* // @include https://*.usashopcn.com/* // @include http://*.petit-bateau.us/* // @include https://*.petit-bateau.us/* // @include http://*.tlcpharmacy.cn.com/* // @include https://*.tlcpharmacy.cn.com/* // @include http://*.km1818.com/* // @include https://*.km1818.com/* // @include http://*.bienmanger.cn/* // @include https://*.bienmanger.cn/* // @include http://*.syshop.com/* // @include https://*.syshop.com/* // @include http://*.qipaimall.com/* // @include https://*.qipaimall.com/* // @include http://mall.goumin.com/* // @include https://mall.goumin.com/* // @include http://*.taohwu.com/* // @include https://*.taohwu.com/* // @include http://*.xmeise.com/* // @include https://*.xmeise.com/* // @include http://*.septwolves.cn/* // @include https://*.septwolves.cn/* // @include http://*.kiehls.com/* // @include https://*.kiehls.com/* // @include http://*.puzeyf.com/* // @include https://*.puzeyf.com/* // @include http://*.aizhigu.com.cn/* // @include https://*.aizhigu.com.cn/* // @include http://*.hecha.cn/* // @include https://*.hecha.cn/* // @include http://*.zgshoes.com/* // @include https://*.zgshoes.com/* // @include http://cn.takeya.co.jp/* // @include https://cn.takeya.co.jp/* // @include http://*.shoprobam.com/* // @include https://*.shoprobam.com/* // @include http://*.opplestore.com/* // @include https://*.opplestore.com/* // @include http://*.maichawang.com/* // @include https://*.maichawang.com/* // @include http://*.bose.com/* // @include https://*.bose.com/* // @include http://dewaren.com/* // @include https://dewaren.com/* // @include http://*.winona.cn/* // @include https://*.winona.cn/* // @include http://*.motorola.com.cn/* // @include https://*.motorola.com.cn/* // @include http://*.danielwellington.cn/* // @include https://*.danielwellington.cn/* // @include http://*.danielwellington.com/* // @include https://*.danielwellington.com/* // @include http://youhui.pinduoduo.com/* // @include https://youhui.pinduoduo.com/* // @include http://*.yangkeduo.com/* // @include https://*.yangkeduo.com/* // @include http://*.finishline.com/* // @include https://*.finishline.com/* // @include http://*.skinstore.com/* // @include https://*.skinstore.com/* // @include http://item.wjike.com/* // @include https://item.wjike.com/* // @include http://youpin.mi.com/* // @include https://youpin.mi.com/* // @include http://*.xiaomiyoupin.com/* // @include https://*.xiaomiyoupin.com/* // @include http://store.steampowered.com/* // @include https://store.steampowered.com/* // @include http://*.jialich.cn/* // @include https://*.jialich.cn/* // @include http://*.tthigo.com/* // @include https://*.tthigo.com/* // @include http://*.modernavenue.com/* // @include https://*.modernavenue.com/* // @include http://*.tcl.com/* // @include https://*.tcl.com/* // @include http://*.bonjourhk.com/* // @include https://*.bonjourhk.com/* // @include http://m.bonjourhk.com/* // @include https://m.bonjourhk.com/* // @include http://*.trt.hk/* // @include https://*.trt.hk/* // @include http://*.forestfood.com/* // @include https://*.forestfood.com/* // @include http://*.converse.com.cn/* // @include https://*.converse.com.cn/* // @include http://*.fila.cn/* // @include https://*.fila.cn/* // @include http://*.levi.com.cn/* // @include https://*.levi.com.cn/* // @include http://*.levi.com/* // @include https://*.levi.com/* // @include http://*.hangowa.com/* // @include https://*.hangowa.com/* // @include http://*.super-in.com/* // @include https://*.super-in.com/* // @include http://*.ccxpet.com/* // @include https://*.ccxpet.com/* // @include http://*.360lj.com/* // @include https://*.360lj.com/* // @include http://*.hysjg.com/* // @include https://*.hysjg.com/* // @include http://*.0061.com.au/* // @include https://*.0061.com.au/* // @include http://mall.ecovacs.cn/* // @include https://mall.ecovacs.cn/* // @include http://mall.littleswan.com/* // @include https://mall.littleswan.com/* // @include http://*.vitagou.hk/* // @include https://*.vitagou.hk/* // @include http://*.hpstore.cn/* // @include https://*.hpstore.cn/* // @include http://*.kkguan.com/* // @include https://*.kkguan.com/* // @include http://*.mayn.com.cn/* // @include https://*.mayn.com.cn/* // @include http://*.peikua.com/* // @include https://*.peikua.com/* // @include http://item.kinhom.com/* // @include https://item.kinhom.com/* // @include http://*.9drug.com/* // @include https://*.9drug.com/* // @include http://*.tea7.com/* // @include https://*.tea7.com/* // @include http://*.01home.com/* // @include https://*.01home.com/* // @include http://*.aliexpress.com/* // @include https://*.aliexpress.com/* // @include http://*.easytoys.cn/* // @include https://*.easytoys.cn/* // @include http://*.kiwistarcare.com/* // @include https://*.kiwistarcare.com/* // @include http://*.carrefour.cn/* // @include https://*.carrefour.cn/* // @include http://china.lotte.com/* // @include https://china.lotte.com/* // @include http://*.ewatches.com/* // @include https://*.ewatches.com/* // @include http://global.timex.com/* // @include https://global.timex.com/* // @include http://comfortfirst.com/* // @include https://comfortfirst.com/* // @include http://*.luolai.cn/* // @include https://*.luolai.cn/* // @include http://*.youyu.com/* // @include https://*.youyu.com/* // @include http://*.yoox.cn/* // @include https://*.yoox.cn/* // @include http://store.yoox.cn/* // @include https://store.yoox.cn/* // @include http://*.suanjuzi.com/* // @include https://*.suanjuzi.com/* // @include http://*.yao123.com/* // @include https://*.yao123.com/* // @include http://item.baobeigezi.com/* // @include https://item.baobeigezi.com/* // @include http://*.baobeigezi.com/* // @include https://*.baobeigezi.com/* // @include http://*.opposhop.cn/* // @include https://*.opposhop.cn/* // @include http://store.oppo.com/* // @include https://store.oppo.com/* // @include http://*.oppo.com/* // @include https://*.oppo.com/* // @include http://hd.oppo.com/* // @include https://hd.oppo.com/* // @include http://mall.to8to.com/* // @include https://mall.to8to.com/* // @include http://item.yunhou.com/* // @include https://item.yunhou.com/* // @include http://item.yhd.com/* // @include https://item.yhd.com/* // @include http://*.haituncun.com/* // @include https://*.haituncun.com/* // @include http://*.walmart.com/* // @include https://*.walmart.com/* // @include http://*.vmei.com/* // @include https://*.vmei.com/* // @include http://*.jgb.cn/* // @include https://*.jgb.cn/* // @include http://*.51din.com/* // @include https://*.51din.com/* // @include http://*.aidai.com/* // @include https://*.aidai.com/* // @include http://shop.boqii.com/* // @include https://shop.boqii.com/* // @include http://*.spider.com.cn/* // @include https://*.spider.com.cn/* // @include http://*.jiae.com/* // @include https://*.jiae.com/* // @include http://*.zazhipu.com/* // @include https://*.zazhipu.com/* // @include http://*.shop.philips.com.cn/* // @include https://*.shop.philips.com.cn/* // @include http://tuan.zhongjiu.cn/* // @include https://tuan.zhongjiu.cn/* // @include http://*.zhongjiu.cn/* // @include https://*.zhongjiu.cn/* // @include http://*.kaluli.com/* // @include https://*.kaluli.com/* // @include http://shop.wstx.com/* // @include https://shop.wstx.com/* // @include http://*.purcotton.com/* // @include https://*.purcotton.com/* // @include http://shop.juanpi.com/* // @include https://shop.juanpi.com/* // @include http://*.jinxiang.com/* // @include https://*.jinxiang.com/* // @include http://*.163.com/* // @include https://*.163.com/* // @include http://*.guojimami.com/* // @include https://*.guojimami.com/* // @include http://*.baiyangwang.com/* // @include https://*.baiyangwang.com/* // @include http://cn.royyoungchemist.com.au/* // @include https://cn.royyoungchemist.com.au/* // @include http://cn.medihealshop.com/* // @include https://cn.medihealshop.com/* // @include http://*.medihealshop.com/* // @include https://*.medihealshop.com/* // @include http://cn.1001pharmacies.com/* // @include https://cn.1001pharmacies.com/* // @include http://*.lookfantastic.cn/* // @include https://*.lookfantastic.cn/* // @include http://*.lookfantastic.com/* // @include https://*.lookfantastic.com/* // @include http://you.163.com/* // @include https://you.163.com/* // @include http://product.bl.com/* // @include https://product.bl.com/* // @include http://*.bestinfoods.com/* // @include https://*.bestinfoods.com/* // @include http://*.muji.net/* // @include https://*.muji.net/* // @include http://*.easeeyes.com/* // @include https://*.easeeyes.com/* // @include http://*.lingshi.com/* // @include https://*.lingshi.com/* // @include http://*.nubia.com/* // @include https://*.nubia.com/* // @include http://shop.nubia.com/* // @include https://shop.nubia.com/* // @include http://*.nubia.cn/* // @include https://*.nubia.cn/* // @include http://*.kzj365.com/* // @include https://*.kzj365.com/* // @include http://*.kaola.com/* // @include https://*.kaola.com/* // @include http://*.kaola.com.hk/* // @include https://*.kaola.com.hk/* // @include http://*.kaola.com.hk/* // @include https://*.kaola.com.hk/* // @include http://*.ymatou.com/* // @include https://*.ymatou.com/* // @include http://detail.metao.com/* // @include https://detail.metao.com/* // @include http://*.coocaa.com/* // @include https://*.coocaa.com/* // @include http://*.lifevc.com/* // @include https://*.lifevc.com/* // @include http://*.supuy.com/* // @include https://*.supuy.com/* // @include http://*.supumall.com/* // @include https://*.supumall.com/* // @include http://*.mia.com/* // @include https://*.mia.com/* // @include http://miyabaobei.hk/* // @include https://miyabaobei.hk/* // @include http://*.miyabaobei.hk/* // @include https://*.miyabaobei.hk/* // @include http://item.gomehigo.hk/* // @include https://item.gomehigo.hk/* // @include http://*.wangfujing.com/* // @include https://*.wangfujing.com/* // @include http://global.gou.com/* // @include https://global.gou.com/* // @include http://*.gou.com/* // @include https://*.gou.com/* // @include http://*.ikjtao.com/* // @include https://*.ikjtao.com/* // @include http://*.bestkeep.cn/* // @include https://*.bestkeep.cn/* // @include http://*.ule.com/* // @include https://*.ule.com/* // @include http://shop.philips.com.cn/* // @include https://shop.philips.com.cn/* // @include http://shop.tcl.com/* // @include https://shop.tcl.com/* // @include http://mall.tcl.com/* // @include https://mall.tcl.com/* // @include http://*.e-changhong.com/* // @include https://*.e-changhong.com/* // @include http://shop.konka.com/* // @include https://shop.konka.com/* // @include http://shop.hisense.com/* // @include https://shop.hisense.com/* // @include http://*.hisense.com/* // @include https://*.hisense.com/* // @include http://*.ineigo.com/* // @include https://*.ineigo.com/* // @include http://*.skg.com/* // @include https://*.skg.com/* // @include http://*.oyeah.com/* // @include https://*.oyeah.com/* // @include http://*.morefood.com/* // @include https://*.morefood.com/* // @include http://*.zhen.com/* // @include https://*.zhen.com/* // @include http://shop.vivo.com.cn/* // @include https://shop.vivo.com.cn/* // @include http://gfive.b2c.eqimingxing.com/* // @include https://gfive.b2c.eqimingxing.com/* // @include http://*.6pm.com/* // @include https://*.6pm.com/* // @include http://shop.gionee.com/* // @include https://shop.gionee.com/* // @include http://z.gionee.com/* // @include https://z.gionee.com/* // @include http://store.lining.com/* // @include https://store.lining.com/* // @include http://*.mf910.com/* // @include https://*.mf910.com/* // @include http://*.k-touch.cn/* // @include https://*.k-touch.cn/* // @include http://item.grainger.cn/* // @include https://item.grainger.cn/* // @include http://piao.163.com/* // @include https://piao.163.com/* // @include http://mall.163.com/* // @include https://mall.163.com/* // @include http://detail.yao.95095.com/* // @include https://detail.yao.95095.com/* // @include http://*.ebay.com/* // @include https://*.ebay.com/* // @include http://*.100yue.com/* // @include https://*.100yue.com/* // @include http://*.feiniu.com/* // @include https://*.feiniu.com/* // @include http://*.lemall.com/* // @include https://*.lemall.com/* // @include http://item.feiniu.com/* // @include https://item.feiniu.com/* // @include http://*.xgbaby.com/* // @include https://*.xgbaby.com/* // @include http://*.zuipin.cn/* // @include https://*.zuipin.cn/* // @include http://item.feifei.cn/* // @include https://item.feifei.cn/* // @include http://*.feifei.com/* // @include https://*.feifei.com/* // @include http://guang.com/* // @include https://guang.com/* // @include http://*.haitaocheng.com/* // @include https://*.haitaocheng.com/* // @include http://*.rrs.com/* // @include https://*.rrs.com/* // @include http://*.rrsjk.com/* // @include https://*.rrsjk.com/* // @include http://shop.ccb.com/* // @include https://shop.ccb.com/* // @include http://*.meilishuo.com/* // @include https://*.meilishuo.com/* // @include http://item.meilishuo.com/* // @include https://item.meilishuo.com/* // @include http://*.mogujie.com/* // @include https://*.mogujie.com/* // @include http://shop.mogu.com/* // @include https://shop.mogu.com/* // @include http://shop.mogujie.com/* // @include https://shop.mogujie.com/* // @include http://shop.coolpad.com/* // @include https://shop.coolpad.com/* // @include http://shop.coolpad.cn/* // @include https://shop.coolpad.cn/* // @include http://*.yiguo.com/* // @include https://*.yiguo.com/* // @include http://item.wanggou.com/* // @include https://item.wanggou.com/* // @include http://mall.jia.com/* // @include https://mall.jia.com/* // @include http://*.jiumei.com/* // @include https://*.jiumei.com/* // @include http://weigou.baidu.com/* // @include https://weigou.baidu.com/* // @include http://shop.letv.com/* // @include https://shop.letv.com/* // @include http://*.xiaomi.com/* // @include https://*.xiaomi.com/* // @include http://item.mi.com/* // @include https://item.mi.com/* // @include http://*.mi.com/* // @include https://*.mi.com/* // @include http://*.handu.com/* // @include https://*.handu.com/* // @include http://*.yummy77.com/* // @include https://*.yummy77.com/* // @include http://*.fruitday.com/* // @include https://*.fruitday.com/* // @include http://*.benlai.com/* // @include https://*.benlai.com/* // @include http://taoshu.com/* // @include https://taoshu.com/* // @include http://*.meilele.com/* // @include https://*.meilele.com/* // @include http://*.gjw.com/* // @include https://*.gjw.com/* // @include http://*.oneplus.com/* // @include https://*.oneplus.com/* // @include http://store.apple.com/* // @include https://store.apple.com/* // @include http://*.apple.com/* // @include https://*.apple.com/* // @include http://*.apple.com.cn/* // @include https://*.apple.com.cn/* // @include http://*.j1.com/* // @include https://*.j1.com/* // @include http://miao.j1.com/* // @include https://miao.j1.com/* // @include http://*.zzl365.com/* // @include https://*.zzl365.com/* // @include http://mobile.139shop.com/* // @include https://mobile.139shop.com/* // @include http://139shop.com/* // @include https://139shop.com/* // @include http://*.yiwugou.com/* // @include https://*.yiwugou.com/* // @include http://*.zhiwo.com/* // @include https://*.zhiwo.com/* // @include http://*.miqi.cn/* // @include https://*.miqi.cn/* // @include http://*.miqi.cn/* // @include https://*.miqi.cn/* // @include http://*.camel.com.cn/* // @include https://*.camel.com.cn/* // @include http://*.kuaishubao.com/* // @include https://*.kuaishubao.com/* // @include http://*.juegg.com/* // @include https://*.juegg.com/* // @include http://mall.10010.com/* // @include https://mall.10010.com/* // @include http://*.wowsai.com/* // @include https://*.wowsai.com/* // @include http://*.tianpin.com/* // @include https://*.tianpin.com/* // @include http://*.tootoo.cn/* // @include https://*.tootoo.cn/* // @include http://item.minshengec.com/* // @include https://item.minshengec.com/* // @include http://*.sfbest.com/* // @include https://*.sfbest.com/* // @include http://ht.sfbest.hk/* // @include https://ht.sfbest.hk/* // @include http://shop.lenovo.com.cn/* // @include https://shop.lenovo.com.cn/* // @include http://*.lenovo.com.cn/* // @include https://*.lenovo.com.cn/* // @include http://shop.lenovomobile.com/* // @include https://shop.lenovomobile.com/* // @include http://*.lenovomobile.com/* // @include https://*.lenovomobile.com/* // @include http://*.lenovo.com.cn/* // @include https://*.lenovo.com.cn/* // @include http://thinkpad.lenovo.com.cn/* // @include https://thinkpad.lenovo.com.cn/* // @include http://*.vmall.com/* // @include https://*.vmall.com/* // @include http://*.ihush.com/* // @include https://*.ihush.com/* // @include http://*.fclub.cn/* // @include https://*.fclub.cn/* // @include http://item.yohobuy.com/* // @include https://item.yohobuy.com/* // @include http://*.yohobuy.com/* // @include https://*.yohobuy.com/* // @include http://*.fclub.cn/* // @include https://*.fclub.cn/* // @include http://ju.taobao.com/* // @include https://ju.taobao.com/* // @include http://*.tmall.com/* // @include https://*.tmall.com/* // @include http://detail.liangxinyao.com/* // @include https://detail.liangxinyao.com/* // @include http://world.tmall.com/* // @include https://world.tmall.com/* // @include http://detail.tmall.hk/* // @include https://detail.tmall.hk/* // @include http://*.taobao.com/* // @include https://*.taobao.com/* // @include http://2.taobao.com/* // @include https://2.taobao.com/* // @include http://ai.taobao.com/* // @include https://ai.taobao.com/* // @include http://chaoshi.detail.tmall.com/* // @include https://chaoshi.detail.tmall.com/* // @include http://detail.ju.taobao.com/* // @include https://detail.ju.taobao.com/* // @include http://*.vipshop.com/* // @include https://*.vipshop.com/* // @include http://*.vip.com/* // @include https://*.vip.com/* // @include http://tuan.lefeng.com/* // @include https://tuan.lefeng.com/* // @include http://*.lefeng.com/* // @include https://*.lefeng.com/* // @include http://*.jxdyf.com/* // @include https://*.jxdyf.com/* // @include http://*.jxdyf.com/* // @include https://*.jxdyf.com/* // @include http://*.tnice.com/* // @include https://*.tnice.com/* // @include http://auction1.paipai.com/* // @include https://auction1.paipai.com/* // @include http://item.xinbaigo.com/* // @include https://item.xinbaigo.com/* // @include http://*.orbis.com.cn/* // @include https://*.orbis.com.cn/* // @include http://*.sfht.com/* // @include https://*.sfht.com/* // @include http://*.d1.com.cn/* // @include https://*.d1.com.cn/* // @include http://*.chazuo.com/* // @include https://*.chazuo.com/* // @include http://*.u1baby.com/* // @include https://*.u1baby.com/* // @include http://*.homevv.com/* // @include https://*.homevv.com/* // @include http://*.paixie.net/* // @include https://*.paixie.net/* // @include http://tuan.paixie.net/* // @include https://tuan.paixie.net/* // @include http://faxian.paixie.net/* // @include https://faxian.paixie.net/* // @include http://*.tao3c.com/* // @include https://*.tao3c.com/* // @include http://*.zm7.cn/* // @include https://*.zm7.cn/* // @include http://s.etao.com/* // @include https://s.etao.com/* // @include http://product.pchouse.com.cn/* // @include https://product.pchouse.com.cn/* // @include http://buy.daphne.cn/* // @include https://buy.daphne.cn/* // @include http://*.lucemall.com.cn/* // @include https://*.lucemall.com.cn/* // @include http://*.easy361.com/* // @include https://*.easy361.com/* // @include http://item.360hqb.com/* // @include https://item.360hqb.com/* // @include http://q.360hqb.com/* // @include https://q.360hqb.com/* // @include http://*.goujiuwang.com/* // @include https://*.goujiuwang.com/* // @include http://*.huimai365.com/* // @include https://*.huimai365.com/* // @include http://*.jiuxian.com/* // @include https://*.jiuxian.com/* // @include http://*.winenice.com/* // @include https://*.winenice.com/* // @include http://*.yesmywine.com/* // @include https://*.yesmywine.com/* // @include http://mall.yesmywine.com/* // @include https://mall.yesmywine.com/* // @include http://*.banggo.com/* // @include https://*.banggo.com/* // @include http://ploy.banggo.com/* // @include https://ploy.banggo.com/* // @include http://*.yanyue.cn/* // @include https://*.yanyue.cn/* // @include http://*.bearbuy.com.cn/* // @include https://*.bearbuy.com.cn/* // @include http://*.amazon.cn/* // @include https://*.amazon.cn/* // @include http://*.amazon.com/* // @include https://*.amazon.com/* // @include http://*.amazon.co.uk/* // @include https://*.amazon.co.uk/* // @include http://*.amazon.de/* // @include https://*.amazon.de/* // @include http://*.amazon.co.jp/* // @include https://*.amazon.co.jp/* // @include http://*.amazon.fr/* // @include https://*.amazon.fr/* // @include http://*.amazon.ca/* // @include https://*.amazon.ca/* // @include http://*.amazon.it/* // @include https://*.amazon.it/* // @include http://*.amazon.es/* // @include https://*.amazon.es/* // @include http://*.dangdang.com/* // @include https://*.dangdang.com/* // @include http://*.globaldangdang.hk/* // @include https://*.globaldangdang.hk/* // @include http://z.jd.com/* // @include https://z.jd.com/* // @include http://item.jd.com/* // @include https://item.jd.com/* // @include http://i-item.jd.com/* // @include https://i-item.jd.com/* // @include http://item.paipai.com/* // @include https://item.paipai.com/* // @include http://item.yiyaojd.com/* // @include https://item.yiyaojd.com/* // @include http://item.jkcsjd.com/* // @include https://item.jkcsjd.com/* // @include http://item.jd.hk/* // @include https://item.jd.hk/* // @include http://paimai.jd.com/* // @include https://paimai.jd.com/* // @include http://*.jd.com/* // @include https://*.jd.com/* // @include http://*.jd.hk/* // @include https://*.jd.hk/* // @include http://*.360buy.com/* // @include https://*.360buy.com/* // @include http://re.jd.com/* // @include https://re.jd.com/* // @include http://auction.jd.com/* // @include https://auction.jd.com/* // @include http://club.jd.com/* // @include https://club.jd.com/* // @include http://*.360top.com/* // @include https://*.360top.com/* // @include http://detail.zol.com.cn/* // @include https://detail.zol.com.cn/* // @include http://dealer.zol.com.cn/* // @include https://dealer.zol.com.cn/* // @include http://*.zol.com/* // @include https://*.zol.com/* // @include http://*.fglady.cn/* // @include https://*.fglady.cn/* // @include http://*.ouku.com/* // @include https://*.ouku.com/* // @include http://*.newegg.comn/* // @include https://*.newegg.comn/* // @include http://zhadan.newegg.cn/* // @include https://zhadan.newegg.cn/* // @include http://tuan.newegg.cn/* // @include https://tuan.newegg.cn/* // @include http://product.kimiss.com/* // @include https://product.kimiss.com/* // @include http://*.redbaby.com.cn/* // @include https://*.redbaby.com.cn/* // @include http://product.m18.com/* // @include https://product.m18.com/* // @include http://list.m18.com/* // @include https://list.m18.com/* // @include http://*.m18.com/* // @include https://*.m18.com/* // @include http://*.w1.cn/* // @include https://*.w1.cn/* // @include http://*.ashford.com/* // @include https://*.ashford.com/* // @include http://*.sephora.cn/* // @include https://*.sephora.cn/* // @include http://*.lafaso.com/* // @include https://*.lafaso.com/* // @include http://*.s.cn/* // @include https://*.s.cn/* // @include http://*.51buy.com/* // @include https://*.51buy.com/* // @include http://*.51buy.cn/* // @include https://*.51buy.cn/* // @include http://*.okbuy.com/* // @include https://*.okbuy.com/* // @include http://*.letao.com/* // @include https://*.letao.com/* // @include http://*.buy007.com/* // @include https://*.buy007.com/* // @include http://*.taoxie.com/* // @include https://*.taoxie.com/* // @include http://ju.suning.com/* // @include https://ju.suning.com/* // @include http://item.suning.com/* // @include https://item.suning.com/* // @include http://*.suning.com/* // @include https://*.suning.com/* // @include http://*.suning.cn/* // @include https://*.suning.cn/* // @include http://qiang.suning.com/* // @include https://qiang.suning.com/* // @include http://product.suning.com/* // @include https://product.suning.com/* // @include http://*.suning.com/* // @include https://*.suning.com/* // @include http://*.coo8.com/* // @include https://*.coo8.com/* // @include http://*.lusen.com/* // @include https://*.lusen.com/* // @include http://*.lusen.com/* // @include https://*.lusen.com/* // @include http://item.gome.com.cn/* // @include https://item.gome.com.cn/* // @include http://tao.gome.com.cn/* // @include https://tao.gome.com.cn/* // @include http://q.gome.com.cn/* // @include https://q.gome.com.cn/* // @include http://tuan.gome.com.cn/* // @include https://tuan.gome.com.cn/* // @include http://*.gomehome.com/* // @include https://*.gomehome.com/* // @include http://*.gome.com.cn/* // @include https://*.gome.com.cn/* // @include http://*.yhd.com/* // @include https://*.yhd.com/* // @include http://*.yihaodian.com/* // @include https://*.yihaodian.com/* // @include http://*.1mall.com/* // @include https://*.1mall.com/* // @include http://try.yhd.com/* // @include https://try.yhd.com/* // @include http://*.womai.com/* // @include https://*.womai.com/* // @include http://*.leyou.com.cn/* // @include https://*.leyou.com.cn/* // @include http://leleshan.leyou.com.cn/* // @include https://leleshan.leyou.com.cn/* // @include http://*.shopin.net/* // @include https://*.shopin.net/* // @include http://*.xiu.com/* // @include https://*.xiu.com/* // @include http://outlets.xiu.com/* // @include https://outlets.xiu.com/* // @include http://ferragamo.xiu.com/* // @include https://ferragamo.xiu.com/* // @include http://tuan.xiu.com/* // @include https://tuan.xiu.com/* // @include http://item.mbaobao.com/* // @include https://item.mbaobao.com/* // @include http://*.mbaobao.com/* // @include https://*.mbaobao.com/* // @include http://item.vjia.com/* // @include https://item.vjia.com/* // @include http://*.7cv.com/* // @include https://*.7cv.com/* // @include http://*.qinqinbaby.com/* // @include https://*.qinqinbaby.com/* // @include http://*.chunshuitang.com/* // @include https://*.chunshuitang.com/* // @include http://*.x.com.cn/* // @include https://*.x.com.cn/* // @include http://*.guopi.com/* // @include https://*.guopi.com/* // @include http://*.no5.com.cn/* // @include https://*.no5.com.cn/* // @include http://*.sasa.com/* // @include https://*.sasa.com/* // @include http://*.sasa.com/* // @include https://*.sasa.com/* // @include http://*.hksasa.cn/* // @include https://*.hksasa.cn/* // @include http://*.dhc.net.cn/* // @include https://*.dhc.net.cn/* // @include http://*.9dadao.com/* // @include https://*.9dadao.com/* // @include http://*.360kxr.com/* // @include https://*.360kxr.com/* // @include http://*.m6go.com/* // @include https://*.m6go.com/* // @include http://*.likeface.com/* // @include https://*.likeface.com/* // @include http://*.qxian.com/* // @include https://*.qxian.com/* // @include http://*.didamall.com/* // @include https://*.didamall.com/* // @include http://*.yaodian100.com/* // @include https://*.yaodian100.com/* // @include http://*.yaofang.cn/* // @include https://*.yaofang.cn/* // @include http://*.lijiababy.com.cn/* // @include https://*.lijiababy.com.cn/* // @include http://99read.com/* // @include https://99read.com/* // @include http://product.china-pub.com/* // @include https://product.china-pub.com/* // @include http://*.bookschina.com/* // @include https://*.bookschina.com/* // @include http://*.efeihu.com/* // @include https://*.efeihu.com/* // @include http://tuan.efeihu.com/* // @include https://tuan.efeihu.com/* // @include http://*.360mart.com/* // @include https://*.360mart.com/* // @include http://*.yintai.com/* // @include https://*.yintai.com/* // @include http://item.yintai.com/* // @include https://item.yintai.com/* // @include http://*.quwan.com/* // @include https://*.quwan.com/* // @include http://*.urcosme.com/* // @include https://*.urcosme.com/* // @include http://*.strawberrynet.com/* // @include https://*.strawberrynet.com/* // @include http://*.strawberrynet.com/* // @include https://*.strawberrynet.com/* // @include http://*.luce.com.cn/* // @include https://*.luce.com.cn/* // @include http://*.k121.com/* // @include https://*.k121.com/* // @include http://*.happigo.com/* // @include https://*.happigo.com/* // @include http://mall.happigo.com/* // @include https://mall.happigo.com/* // @include http://*.gap.cn/* // @include https://*.gap.cn/* // @include http://*.misslele.com/* // @include https://*.misslele.com/* // @include http://*.5lux.com/* // @include https://*.5lux.com/* // @include http://*.5lux.com/* // @include https://*.5lux.com/* // @include http://*.xiaozhuren.com/* // @include https://*.xiaozhuren.com/* // @include http://*.all3c.com/* // @include https://*.all3c.com/* // @include http://*.idaphne.com/* // @include https://*.idaphne.com/* // @include http://product.pcbaby.com.cn/* // @include https://product.pcbaby.com.cn/* // @include http://*.binggo.com/* // @include https://*.binggo.com/* // @include http://*.tiantian.com/* // @include https://*.tiantian.com/* // @include http://tuan.tiantian.com/* // @include https://tuan.tiantian.com/* // @include http://*.xiji.com/* // @include https://*.xiji.com/* // @include http://*.xijie.com/* // @include https://*.xijie.com/* // @include http://mall.jumei.com/* // @include https://mall.jumei.com/* // @include http://pop.jumei.com/* // @include https://pop.jumei.com/* // @include http://*.jumei.com/* // @include https://*.jumei.com/* // @include http://item.jumei.com/* // @include https://item.jumei.com/* // @include http://*.jumeiglobal.com/* // @include https://*.jumeiglobal.com/* // @include http://item.jumeiglobal.com/* // @include https://item.jumeiglobal.com/* // @include http://buy.caomeipai.com/* // @include https://buy.caomeipai.com/* // @include http://*.dahuozhan.com/* // @include https://*.dahuozhan.com/* // @include http://*.dazhe.cn/* // @include https://*.dazhe.cn/* // @include http://*.huolida.com/* // @include https://*.huolida.com/* // @include http://*.12dian.com/* // @include https://*.12dian.com/* // @include http://*.yougou.com/* // @include https://*.yougou.com/* // @include http://*.yougou.com/* // @include https://*.yougou.com/* // @include http://*.111.com.cn/* // @include https://*.111.com.cn/* // @include http://*.daoyao.com/* // @include https://*.daoyao.com/* // @include http://*.jianke.com/* // @include https://*.jianke.com/* // @include http://*.360kad.com/* // @include https://*.360kad.com/* // @include http://*.lbxcn.com/* // @include https://*.lbxcn.com/* // @include http://book.douban.com/* // @include https://book.douban.com/* // @include http://dongxi.douban.com/* // @include https://dongxi.douban.com/* // @include http://product.it168.com/* // @include https://product.it168.com/* // @include http://product.pconline.com.cn/* // @include https://product.pconline.com.cn/* // @include http://product.pcpop.com/* // @include https://product.pcpop.com/* // @include http://cosme.pclady.com.cn/* // @include https://cosme.pclady.com.cn/* // @include http://brand.yoka.com/* // @include https://brand.yoka.com/* // @include http://detail.55bbs.com/* // @include https://detail.55bbs.com/* // @include http://hzp.onlylady.com/* // @include https://hzp.onlylady.com/* // @include http://*.24dq.com/* // @include https://*.24dq.com/* // @include http://*.muyingzhijia.com/* // @include https://*.muyingzhijia.com/* // @include http://item.muyingzhijia.com/* // @include https://item.muyingzhijia.com/* // @include http://*.houmart.com/* // @include https://*.houmart.com/* // @include http://*.onlyts.cn/* // @include https://*.onlyts.cn/* // @include http://*.winxuan.com/* // @include https://*.winxuan.com/* // @include http://item.winxuan.com/* // @include https://item.winxuan.com/* // @include http://detail.bookuu.com/* // @include https://detail.bookuu.com/* // @include http://e.bookuu.com/* // @include https://e.bookuu.com/* // @include http://wenju.bookuu.com/* // @include https://wenju.bookuu.com/* // @include http://book.beifabook.com/* // @include https://book.beifabook.com/* // @include http://product.yesky.com/* // @include https://product.yesky.com/* // @include http://product.pchome.net/* // @include https://product.pchome.net/* // @include http://product.enet.com.cn/* // @include https://product.enet.com.cn/* // @include http://*.ruiyi.com/* // @include https://*.ruiyi.com/* // @include http://*.ruiyi.cn/* // @include https://*.ruiyi.cn/* // @include http://*.rayi.com/* // @include https://*.rayi.com/* // @include http://*.rayi.cn/* // @include https://*.rayi.cn/* // @include http://*.nop.cn/* // @include https://*.nop.cn/* // @include http://product.imobile.com.cn/* // @include https://product.imobile.com.cn/* // @include http://product.cnmo.com/* // @include https://product.cnmo.com/* // @include http://phone.shouji.com.cn/* // @include https://phone.shouji.com.cn/* // @include http://product.tompda.com/* // @include https://product.tompda.com/* // @include http://*.3533.com/* // @include https://*.3533.com/* // @include http://product.intozgc.com/* // @include https://product.intozgc.com/* // @include http://product.chinabyte.com/* // @include https://product.chinabyte.com/* // @include http://app.tech.ifeng.com/* // @include https://app.tech.ifeng.com/* // @include http://www2.xitek.com/* // @include https://www2.xitek.com/* // @include http://product.imp3.net/* // @include https://product.imp3.net/* // @include http://*.menglu.com/* // @include https://*.menglu.com/* // @include http://*.moonbasa.com/* // @include https://*.moonbasa.com/* // @include http://*.ing2ing.com/* // @include https://*.ing2ing.com/* // @include http://*.qjherb.com/* // @include https://*.qjherb.com/* // @include http://*.korirl.com/* // @include https://*.korirl.com/* // @include http://*.alaves.com/* // @include https://*.alaves.com/* // @include http://*.0-100s.com/* // @include https://*.0-100s.com/* // @include http://*.cherriespie.com/* // @include https://*.cherriespie.com/* // @include http://*.clafield.com/* // @include https://*.clafield.com/* // @include http://*.baoyeah.com/* // @include https://*.baoyeah.com/* // @include http://*.suorang.com/* // @include https://*.suorang.com/* // @include http://*.monteamor.com/* // @include https://*.monteamor.com/* // @include http://*.rutisher.com/* // @include https://*.rutisher.com/* // @include http://*.keede.com/* // @include https://*.keede.com/* // @include http://*.kede.com/* // @include https://*.kede.com/* // @include http://*.vancl.com/* // @include https://*.vancl.com/* // @include http://*.dazhongdianqi.com.cn/* // @include https://*.dazhongdianqi.com.cn/* // @include http://*.skinstorechina.com/* // @include https://*.skinstorechina.com/* // @include http://item.buy.qq.com/* // @include https://item.buy.qq.com/* // @include http://*.zol.com.cn/* // @include https://*.zol.com.cn/* // @include http://*.pconline.com.cn/* // @include https://*.pconline.com.cn/* // @include http://*.yesky.com/* // @include https://*.yesky.com/* // @include http://*.it168.com/* // @include https://*.it168.com/* // @include http://*.pcpop.com/* // @include https://*.pcpop.com/* // @include http://*.pchome.net/* // @include https://*.pchome.net/* // @include http://*.139shop.com/* // @include https://*.139shop.com/* // @include http://*.milier.com/* // @include https://*.milier.com/* // @include http://*.sportica.cn/* // @include https://*.sportica.cn/* // @include http://*.zhenpin.com/* // @include https://*.zhenpin.com/* // @include http://*.gaojie.com/* // @include https://*.gaojie.com/* // @include http://*.naruko.com.cn/* // @include https://*.naruko.com.cn/* // @include http://*.vivian.com/* // @include https://*.vivian.com/* // @include http://*.vivian.cn/* // @include https://*.vivian.cn/* // @include http://*.masamaso.com/* // @include https://*.masamaso.com/* // @include http://*.masamaso.cn/* // @include https://*.masamaso.cn/* // @include http://*.linkmasa.com/* // @include https://*.linkmasa.com/* // @include http://*.linkmasa.cn/* // @include https://*.linkmasa.cn/* // @include http://item.secoo.com/* // @include https://item.secoo.com/* // @include http://paimai.secoo.com/* // @include https://paimai.secoo.com/* // @include http://sale.secoo.com/* // @include https://sale.secoo.com/* // @include http://*.ehaier.com/* // @include https://*.ehaier.com/* // @include http://qiji.ehaier.com/* // @include https://qiji.ehaier.com/* // @include http://*.handuyishe.com/* // @include https://*.handuyishe.com/* // @include http://*.wbiao.cn/* // @include https://*.wbiao.cn/* // @include http://*.shangpin.com/* // @include https://*.shangpin.com/* // @include http://*.shangpin.hk/* // @include https://*.shangpin.hk/* // @include http://*.pba.cn/* // @include https://*.pba.cn/* // @include http://*.metromall.cn/* // @include https://*.metromall.cn/* // @include http://*.lizi.com/* // @include https://*.lizi.com/* // @include http://*.kadang.com/* // @include https://*.kadang.com/* // @include http://*.aimer.com.cn/* // @include https://*.aimer.com.cn/* // @include http://*.lamiu.com/* // @include https://*.lamiu.com/* // @include http://*.esprit.cn/* // @include https://*.esprit.cn/* // @include http://*.liebo.com/* // @include https://*.liebo.com/* // @include http://*.wangjiu.com/* // @include https://*.wangjiu.com/* // @include http://*.xifuquan.com/* // @include https://*.xifuquan.com/* // @include http://*.189.cn/* // @include https://*.189.cn/* // @include http://*.hicdma.com/* // @include https://*.hicdma.com/* // @include http://*.e100.cn/* // @include https://*.e100.cn/* // @include http://store.samsung.com/* // @include https://store.samsung.com/* // @include http://store.meizu.com/* // @include https://store.meizu.com/* // @include http://detail.meizu.com/* // @include https://detail.meizu.com/* // @include http://b2c.958shop.com/* // @include https://b2c.958shop.com/* // @include http://*.okhqb.com/* // @include https://*.okhqb.com/* // @include http://*.ztedevice.com.cn/* // @include https://*.ztedevice.com.cn/* // @include http://*.daling.com/* // @include https://*.daling.com/* // @include http://item.showjoy.com/* // @include https://item.showjoy.com/* // @include http://*.ocj.com.cn/* // @include https://*.ocj.com.cn/* // @include http://*.ocj.kr/* // @include https://*.ocj.kr/* // @include http://*.lvyoumall.com/* // @include https://*.lvyoumall.com/* // @include http://*.kjt.com/* // @include https://*.kjt.com/* // @include http://store.logitech.com.cn/* // @include https://store.logitech.com.cn/* // @include http://shop.boohee.com/* // @include https://shop.boohee.com/* // @include http://*.meici.com/* // @include https://*.meici.com/* // @include http://*.beibei.com/* // @include https://*.beibei.com/* // @include http://store.nike.com/* // @include https://store.nike.com/* // @include http://*.nike.com/* // @include https://*.nike.com/* // @include http://*.fengqu.com/* // @include https://*.fengqu.com/* // @include http://*.mei.com/* // @include https://*.mei.com/* // @include http://*.vsigo.cn/* // @include https://*.vsigo.cn/* // @include http://*.sundan.com/* // @include https://*.sundan.com/* // @include http://hd.zazhipu.com/* // @include https://hd.zazhipu.com/* // @include http://*.microsoftstore.com.cn/* // @include https://*.microsoftstore.com.cn/* // @include http://*.xgdq.com/* // @include https://*.xgdq.com/* // @include http://*.xtep.com.cn/* // @include https://*.xtep.com.cn/* // @include http://*.xtep.com.cn/* // @include https://*.xtep.com.cn/* // @include http://*.staples.cn/* // @include https://*.staples.cn/* // @include http://mall.midea.com/* // @include https://mall.midea.com/* // @include http://*.midea.cn/* // @include https://*.midea.cn/* // @include http://www1.macys.com/* // @include https://www1.macys.com/* // @include http://cn.shopbop.com/* // @include https://cn.shopbop.com/* // @include http://*.hua.com/* // @include https://*.hua.com/* // @include http://shop.zhe800.com/* // @include https://shop.zhe800.com/* // @include http://*.cosme.com/* // @include https://*.cosme.com/* // @include http://*.diapers.com/* // @include https://*.diapers.com/* // @include http://*.windeln.de/* // @include https://*.windeln.de/* // @include http://*.windeln.com.cn/* // @include https://*.windeln.com.cn/* // @include http://*.escentual.com/* // @include https://*.escentual.com/* // @include http://*.biccamera.com/* // @include https://*.biccamera.com/* // @include http://*.esteelauder.com/* // @include https://*.esteelauder.com/* // @include http://*.saksfifthavenue.com/* // @include https://*.saksfifthavenue.com/* // @include http://*.thewatchery.com/* // @include https://*.thewatchery.com/* // @include http://item.tuhu.com/* // @include https://item.tuhu.com/* // @include http://item.tuhu.cn/* // @include https://item.tuhu.cn/* // @include http://eshop.htc.com/* // @include https://eshop.htc.com/* // @include http://roseonly.com.cn/* // @include https://roseonly.com.cn/* // @include http://*.taqu.cn/* // @include https://*.taqu.cn/* // @include http://shop.jx.189.cn/* // @include https://shop.jx.189.cn/* // @include http://*.bftv.com/* // @include https://*.bftv.com/* // @include http://*.axmall.com.au/* // @include https://*.axmall.com.au/* // @include http://*.lianjia.com/* // @include https://*.lianjia.com/* // @include http://*.ke.com/* // @include https://*.ke.com/* // @include http://*.5i5j.com/* // @include https://*.5i5j.com/* // @include http://*.lovo.cn/* // @include https://*.lovo.cn/* // @grant none // ==/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); /***/ }), /***/ "012a7f6370ba6b7ccbde": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("e2af7b31f2ad59fd0fad"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("4e49519c", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./SectionTitle.vue?vue&type=style&index=0&id=0e0fcbce&scoped=true&lang=less&", function() { var newContent = require("!!../../../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!./SectionTitle.vue?vue&type=style&index=0&id=0e0fcbce&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "01c701c2cffcf33ed2d3": /***/ (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_SizeHelp_vue_vue_type_style_index_0_id_b3b47bf0_scoped_true_lang_less___ = __webpack_require__("65ad68e62ea9b0c1f858"); /* 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_SizeHelp_vue_vue_type_style_index_0_id_b3b47bf0_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_SizeHelp_vue_vue_type_style_index_0_id_b3b47bf0_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_SizeHelp_vue_vue_type_style_index_0_id_b3b47bf0_scoped_true_lang_less____default.a); /***/ }), /***/ "02608c80b36284fae8ee": /***/ (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_MiniList_vue_vue_type_script_lang_js___ = __webpack_require__("95ac883e76a464af371e"); /* 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_MiniList_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_MiniList_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_MiniList_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_MiniList_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_MiniList_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "034f9176860d52edf6c0": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, Highcharts) { var timeFormat = function timeFormat(date) { var x = new Date(date); var year = x.getFullYear(); if (G.IE7 || G.IE8) { year = x.getFullYear(); } var month = x.getMonth() + 1; var day = x.getDate(); if (month < 10) { month = '0' + month + ''; } if (day < 10) { day = '0' + day + ''; } // let hour = x.getHours(); var timeStr = year + '/' + month + '/' + day; return timeStr; }; var supplementPoint = function supplementPoint(data) { if (data.length === 1) { data.unshift([data[0][0] - 1000, data[0][1]]); } console.log(data); return data; // let newdata = [] // for (let i=0; i<data.length-1; i++) { // newdata.push(data[i]) // let days = parseInt( (data[i+1][0] - data[i][0]) / (3600*1000*24) ); // if (days >= 2) { // for (let j=1; j<days; j++) { // newdata.push([ // data[i][0] + (3600*1000*24)*j, data[i][1] // ]) // } // } // } // newdata.push(data[data.length-1]) // return newdata; }; module.exports = function (data) { var opt = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1]; // console.log(data) try { var obj = { chart: { renderTo: data.el, type: 'line', style: { marginLeft: '4px', paddingLeft: '0px', marginTop: '0', paddingTop: '0px', marginBottom: '0px', paddingBottom: '0px' }, events: { load: function load() { this.xAxis[0].update({ max: this.xAxis[0].max + 3600 * 1000 * 24 * 10 }); } } }, credits: { enabled: false }, colors: ['#d150f0', '#f0b507', '#3ebdf7'], title: { text: data.title || '', x: -20, style: { color: '#2f7ed8' } }, xAxis: { type: 'datetime', dateTimeLabelFormats: { day: '%Y/%m', week: '%Y/%m', month: '%Y/%m' }, minTickInterval: 3600 * 24 * 1000 * 30, plotLines: [{ color: 'red', dashStyle: 'longdashdot', value: 3, width: 2 }], minorGridLineColor: "#dfdfdf", labels: { rotation: -25, y: 30, style: { fontSize: '12px', fontFamily: 'Arial', color: '#323333' }, align: 'center' } }, yAxis: { title: { text: '', rotation: 0, align: 'high', y: -16, x: -12, offset: -55, margin: 0, style: { color: '#585858' } }, plotLines: [{ value: 0, width: 1, color: '#808080' }], gridLineColor: '#c0d0e0', minorGridLineColor: '#dfdfdf', tickPixelInterval: 50 }, tooltip: { xDateFormat: '%Y-%m-%d', shared: true, valueDecimals: 2, valuePrefix: '', useHTML: true, valueSuffix: ' 万', borderColor: 'none', padding: 20, formatter: function formatter() { var timeStr = timeFormat(this.x); var result = '<table style="margin-left:12px"><tr><td width="100%" colspan="8" style="text-align: center;font-weight: bold;font-family: Arial;font-size:14px">' + timeStr + '</td></td></tr>'; for (var i = 0; i < this.points.length; i++) { var priceStr = parseFloat(Number(this.points[i].y).toFixed(2)) + '万'; result += '<tr><td style="width: 80px; text-align: left"><span style="color: ' + this.points[i].point.series.color + ';font-size:12px;font-family:arial;float:none;margin-right:5px;">●</span>' + this.points[i].point.series.name + '</td>\n <td style="padding-left:4px;">' + priceStr + '</td></tr>'; } result += '</table>'; return result; } }, plotOptions: { series: { marker: { radius: 1, states: { hover: { radius: 2 } } }, lineWidth: 1.5, shadow: false, states: { hover: { lineWidth: 1 } } } }, legend: { enabled: true, borderWidth: 0, verticalAlign: 'top', x: 228, y: -8, itemStyle: { color: '#585858', fontWeight: 'normal', fontSize: '14px', marginBottom: '0px' }, symbolWidth: 12, symbolHeight: 3, itemMarginBottom: 0, itemMarginTop: 0, margin: 12 }, series: [] }; if (opt) { obj = opt; } obj.title.style.display = 'none'; var msg = data.msg; if (data.mainTrend) { obj.series[0] = { visible: true, name: '房源价格走势', marker: { symbol: 'circle' }, data: [] }; obj.series[0].data = msg.price_history; obj.series[0].data = supplementPoint(obj.series[0].data); obj.colors = ['#3ebdf7']; obj.legend.enabled = false; } else { var index1 = 0, index2 = 0, index3 = 0; var colorArr = []; if (msg.onsale.length >= 1) { obj.series[index1] = { visible: true, name: '挂牌单价', marker: { symbol: 'circle' }, data: [] }; index2++; index3++; colorArr.push('#d150f0'); obj.legend.x = obj.legend.x - 48; for (var i = 0; i < data.msg.onsale.length; i++) { var arr = new Array(2); arr[0] = data.msg.onsale[i][0] * 1000; arr[1] = Math.round(data.msg.onsale[i][1] * 100) / 100; obj.series[index1].data.push(arr); } obj.series[index1].data = supplementPoint(obj.series[index1].data); } if (msg.dealt.length >= 1) { obj.series[index2] = { visible: true, name: '成交单价', marker: { symbol: 'circle' }, data: [] }; index3++; colorArr.push('#f0b507'); obj.legend.x = obj.legend.x - 48; for (var i = 0; i < data.msg.dealt.length; i++) { var arr = new Array(2); arr[0] = data.msg.dealt[i][0] * 1000; arr[1] = Math.round(data.msg.dealt[i][1] * 100) / 100; obj.series[index2].data.push(arr); } obj.series[index2].data = supplementPoint(obj.series[index2].data); } obj.yAxis.title.text = '单位(万)'; obj.colors = colorArr; } new Highcharts.Chart(obj); } catch (e) {} }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("ff50e367dd130fa205e3"))) /***/ }), /***/ "03a4f568c59183be3680": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponTop_vue_vue_type_template_id_05b8b243_scoped_true___ = __webpack_require__("3d9c297936c34b56d812"); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponTop_vue_vue_type_template_id_05b8b243_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponTop_vue_vue_type_template_id_05b8b243_scoped_true___["b"]; }); /***/ }), /***/ "03a5f2fbdb1c58e5e035": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjg-bar-button[data-v-617a0842] {\n width: 114px;\n height: 100%;\n position: relative;\n}\n.bjg-bar-button .bjg-collection-tip[data-v-617a0842] {\n background: url(" + __webpack_require__("e94022f57d6abc6e2198") + ");\n background-size: cover;\n width: 16px;\n height: 16px;\n position: absolute;\n top: 10px;\n right: 6px;\n font-size: 12px;\n line-height: 14px;\n text-align: center;\n color: #fff;\n}\n.bjg-bar-button .bjg-login[data-v-617a0842] {\n display: none;\n}\n.bjg-bar-button[data-v-617a0842]:hover {\n background: #fffbef;\n}\n.bjg-bar-button:hover .bjg-login[data-v-617a0842] {\n display: block;\n}\n", ""]); // exports /***/ }), /***/ "03bec9e018c5e5127ba6": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_template_id_9a793014_scoped_true___ = __webpack_require__("e756d69fbda7cdc8ade7"); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_template_id_9a793014_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_template_id_9a793014_scoped_true___["b"]; }); /***/ }), /***/ "03d8f27bff66630b18e1": /***/ (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_FakeBtn_vue_vue_type_script_lang_js___ = __webpack_require__("88c085c31fd149d1aeca"); /* 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_FakeBtn_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_FakeBtn_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_FakeBtn_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_FakeBtn_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_FakeBtn_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "03dd60018ce5ed1344a1": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {var __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var tm = undefined; var globalEvent = undefined; var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); function goLog(event) { var userid = __webpack_require__("d82c9248d08dbd7e46d4").getInfo('user_extension_id') || ''; userid = userid || G.userid; var t_server = G.tj_server; if (G.new_extension && !G.fdsMod) t_server = G.server; if (!event) event = ""; event = encodeURIComponent(event); if (!t_server) t_server = G.server; var n = 'img_random' + Math.random(); var img = window[n] = new Image(); img.onload = img.onerror = function () { window[n] = null; }; img.src = t_server + '/visit/?version=' + G.version + '&userid=' + userid + '&ext_v=' + G.ext_v + '&from_device=' + G.from_device + '&permanent_id=' + userData.get('p_id') + '&random=' + Math.random() + '&action=' + event + '&refer=' + encodeURIComponent(document.referrer) + '&url=' + encodeURIComponent(location.href) + '&title=' + encodeURIComponent(document.title); } if (G.from_type === 'bjg_360') return; return function (event) { if (G.from_device === '360') return; if (globalEvent === event) { globalEvent = event; clearTimeout(tm); tm = setTimeout(function () { goLog(event); }, 500); } else { globalEvent = event; goLog(event); } }; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "041f80fea3d67bf79b22": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__QRLink_vue_vue_type_template_id_673c66fa_scoped_true___ = __webpack_require__("6e9dc8f3fe8ed1fd40dc"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QRLink_vue_vue_type_script_lang_js___ = __webpack_require__("399d3eb4adfb0281eed0"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__QRLink_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__QRLink_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__QRLink_vue_vue_type_style_index_0_lang_css___ = __webpack_require__("580fdef2bbaa9f2dc7e9"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__QRLink_vue_vue_type_style_index_1_id_673c66fa_scoped_true_lang_less___ = __webpack_require__("2e99c26f3c749e77922a"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_4__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__QRLink_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__QRLink_vue_vue_type_template_id_673c66fa_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__QRLink_vue_vue_type_template_id_673c66fa_scoped_true___["b" /* staticRenderFns */], false, null, "673c66fa", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('673c66fa')) { api.createRecord('673c66fa', component.options) } else { api.reload('673c66fa', component.options) } module.hot.accept("./QRLink.vue?vue&type=template&id=673c66fa&scoped=true&", function () { api.rerender('673c66fa', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/QRLink.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "047b30291b8b83e043ed": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var callbacks = undefined, hasreq = undefined, urls = undefined; var request = __webpack_require__("91f250ebeb8d5987491c"); var getPageInfo = function getPageInfo(info, callback) { var infoObj = {}; if (hasreq) { callbacks = callback; urls = info.click_url; return; } var itemId = G.dp.itemId; if (!itemId && G.site === 'taobao-ju') { itemId = location.href.match(/item_id=(\d+)/)[1]; } var obj = { itemNumId: itemId }; var url = 'https://acs.m.taobao.com/h5/mtop.taobao.detail.getdetail/6.0/?data=' + encodeURIComponent(JSON.stringify(obj)); request.getPure(url).done(function (data) { try { var item = data.data.item; var seller = data.data.seller; var item2 = JSON.parse(data.data.apiStack[0].value); infoObj.title = item.title; infoObj.picUrl = item.images[0]; infoObj.shopName = seller.shopName; infoObj.shopLogo = seller.shopIcon; infoObj.shopUrl = seller.shopUrl; infoObj.biz30Day = item2.item.sellCount; infoObj.discountPrice = (Number(item2.skuCore.sku2info['0'].price.priceMoney) / 100).toFixed(2); } catch (e) { //require('common/extConsole').error(e) } if (!infoObj.title) { infoObj.title = document.title; } if (!infoObj.title) { infoObj.title = $('.tb-detail-hd > h1').text().trim(); } if (!infoObj.picUrl) { infoObj.picUrl = $('#J_ImgBooth').attr('src'); } if (!infoObj.discountPrice) { infoObj.discountPrice = G.dp.price; } infoObj.id = itemId; infoObj.amount = info.coupon.coupon_money; infoObj.effectiveStartTime = info.coupon.start_time; infoObj.effectiveEndTime = info.coupon.end_time; infoObj.pid = info.pid; infoObj.tkl = info.tkl; infoObj.tmall = location.host.indexOf('tmall') > -1 ? true : false; if (G.site === 'taobao-ju') { infoObj.shopName = $('.sellername:eq(0)').text(); } callback(infoObj, info.click_url); //console.log(infoObj) if (callbacks) { callbacks(infoObj, urls); } }); }; module.exports = getPageInfo; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "04bfff5a5fea5456f49d": /***/ (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: "bjg-window", attrs: { "data-foo": "bar" }, on: { mouseover: function($event) { return _vm.$emit("mouseover") } } }, [ _vm.user || _vm.alwaysShow ? _c("div", { staticClass: "bjg-window-title" }, [ _vm.from_device === "bijiago" ? _c("img", { staticStyle: { width: "28px", height: "24px", "margin-left": "5px" }, attrs: { src: __webpack_require__("4d921555e319f1902bc2"), alt: "" } }) : _c("img", { staticStyle: { width: "24px", height: "24px", "margin-left": "5px" }, attrs: { src: __webpack_require__("b479b3889b6f5521bac9") } }), _vm._v(" "), _vm.user && _vm.userName ? _c("span", { staticClass: "username" }, [ _vm._v(_vm._s(_vm.userName)) ]) : _vm._e(), _vm._v(" "), _c("div", { staticStyle: { flex: "1" } }), _vm._v(" "), !_vm.alwaysShow ? _c( "span", { staticClass: "bjg-qrText", staticStyle: { "margin-right": "14px", "font-size": "12px", color: "white", position: "relative" } }, [ _c( "span", { staticStyle: { "text-decoration": "underline" } }, [_vm._v("扫码关注公众号")] ), _vm._v( "\n ,及时获取" + _vm._s(_vm.name) + "通知\n " ), _c("img", { staticStyle: { width: "157px", height: "194px", position: "absolute", left: "209px" }, style: _vm.name === "降价" ? "top: -7px" : "top: -16px", attrs: { src: _vm.qrImg, alt: "" } }), _vm._v(" "), !_vm.hasWx ? _c("img", { staticStyle: { width: "157px", height: "194px", position: "absolute", left: "209px", top: "-16px", display: "block!important" }, attrs: { src: "https://cdn.bijiago.com/images/extensions/bijiago/qr-wechat-click@2x.png", alt: "" }, on: { click: _vm.imgClick } }) : _vm._e(), _vm._v(" "), _c("img", { style: "width: " + _vm.qrWidth + "px; height: " + _vm.qrWidth + "px; position: absolute; left: 228px; top: 6px;", attrs: { src: "https://cdn.bijiago.com/images/extensions/bijiago/price-protect-qr.jpeg", alt: "" } }) ] ) : _vm._e() ]) : _vm._e(), _vm._v(" "), _vm._t("default"), _vm._v(" "), _c("div", { staticClass: "bjg-window-bt" }) ], 2 ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "04dcccd8601de1b226fb": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-qr-bottom-line[data-v-9a793014] {\n transform: scale(0.5);\n transform-origin: top center;\n white-space: nowrap;\n height: 20px;\n line-height: 20px;\n}\n.gwd-qr-bottom-line span.bold[data-v-9a793014] {\n font-size: 22px;\n font-weight: bold;\n color: #EF6701;\n}\n.gwd-qr-bottom-line span.normal[data-v-9a793014] {\n font-size: 16px;\n color: #070707;\n}\n.gwd-qr-logo[data-v-9a793014] {\n position: absolute;\n left: 50%;\n top: 50%;\n width: 20px;\n height: 20px;\n margin-left: -10px;\n margin-top: -10px;\n}\n.gwd-contact-link[data-v-9a793014] {\n display: inline-block;\n font-size: 12px;\n color: #333333;\n text-decoration: underline;\n cursor: pointer;\n position: relative;\n z-index: 9999;\n}\n.gwd-contact-link .gwd-app-qr-content[data-v-9a793014] {\n position: absolute;\n width: 123px;\n height: 137px;\n background: #FFF3ED;\n border-radius: 0px 0px 2px 2px;\n border: 1px solid #FF9851;\n top: 24px;\n left: -38px;\n visibility: hidden;\n z-index: 999;\n}\n.gwd-contact-link:hover .gwd-app-qr-content[data-v-9a793014] {\n visibility: visible;\n}\n", ""]); // exports /***/ }), /***/ "05246c7019d7ad236e56": /***/ (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_Subsidy_vue_vue_type_style_index_0_id_09046175_scoped_true_lang_less___ = __webpack_require__("2ef3da78b1c8628c5a11"); /* 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_Subsidy_vue_vue_type_style_index_0_id_09046175_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_Subsidy_vue_vue_type_style_index_0_id_09046175_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_Subsidy_vue_vue_type_style_index_0_id_09046175_scoped_true_lang_less____default.a); /***/ }), /***/ "05e28a0377759f2204f7": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjg-bar-button[data-v-5d29fc05] {\n width: 114px;\n height: 100%;\n position: relative;\n border-left: 1px solid #f1f1f1;\n}\n.bjg-bar-button[data-v-5d29fc05]:hover {\n background: #fffbef;\n}\n.bjg-hintText[data-v-5d29fc05] {\n color: #333333;\n line-height: 19px;\n font-size: 14px;\n margin-top: 16px;\n}\n", ""]); // exports /***/ }), /***/ "077190fa6c9d23369f6d": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("1067ba4203a634ac3435"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("6653ec6a", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!./jdPromoLink.less", function() { var newContent = require("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!./jdPromoLink.less"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "07b7d866ad8cfe4a15f1": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($) { var cnzz = __webpack_require__("83271c7588396d2d5e59"); var util = __webpack_require__("d6aec8444c650eeab5f2"); module.exports.init = function () { setTimeout(function () { cnzz.log('fine3q:track'); }, 500); util.tongjiLog('fine3q:track'); $('#overview .ov-act').on('click', function (e) { var txt = $(e.target).text(); var url = location.href; if (txt.indexOf('立即购买') > -1 && url.indexOf('gouwudang') > -1) { cnzz.log('fine3q:click'); util.tongjiLog('fine3q:click'); } }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "080f700b342429ce1646": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['selected'] }; module.exports = exports['default']; /***/ }), /***/ "081526742bfe6e0e4762": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { function getCurrentScript() { if (document.currentScript) { return document.currentScript; } var scripts = document.getElementsByTagName("script"); for (var i = 0; i < scripts.length; i++) { if (new RegExp(G.extName + "-notifier", "i").test(scripts[i].src)) { return scripts[i]; } } } module.exports = getCurrentScript(); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "082f6af89c174226ccc5": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); var _modulesAmazonGlobal = __webpack_require__("5bf21ec3a7ebfb912cb2"); exports['default'] = { props: ['product', 'last'], computed: { currencySymbol: function currencySymbol() { var s = this.product.site_id; if (_modulesAmazonGlobal.amazonMoney[s]) { return _modulesAmazonGlobal.amazonMoney[s]; } return '¥'; } }, methods: { open: function open(link) { if (G.aliSite && [83, 123, 8].indexOf(parseInt(this.product.site_id)) > -1) { window.open(this.product.url); return; } window.open(link); }, deleteClick: function deleteClick(e) { e.preventDefault(); e.stopPropagation(); this.$emit('delete', this.product.id); } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "08527d571215689ce73c": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, $, Vue) { var _this = this; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; module.exports.init = function callee$0$0(link, text) { var useQr = arguments.length <= 2 || arguments[2] === undefined ? false : arguments[2]; var _ret; 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__("3e983ecbff4e1a29654c").sleep(1000)); case 2: if (!$('#choose-btns .btn-disable').text().includes('加入购物车')) { context$1$0.next = 4; break; } return context$1$0.abrupt('return'); case 4: if (!useQr) { context$1$0.next = 8; break; } _ret = (function () { var el = document.createElement('div'); $('#choose-btns').append(el); var FakeBtn = __webpack_require__("09dacd4b3dc2642f47eb")['default']; new Vue({ el: el, render: function render(h) { return h(FakeBtn, { props: _extends({ text: text }, useQr) }); } }); return { v: undefined }; })(); if (!(typeof _ret === 'object')) { context$1$0.next = 8; break; } return context$1$0.abrupt('return', _ret.v); case 8: $('#choose-btns').css('min-width', '800px').append('\n <a href="' + link + '" target="_blank" class="btn-lg gwd-btn" style="background: #48befe; color: white; font-size: 18px; font-weight: 700;">' + text + '</a>\n '); case 9: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "085b641392b4a9d141ac": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".pricedog-transport[data-v-666fed93] {\n box-sizing: border-box;\n width: 462px;\n border: 1px solid #eeeeee;\n margin-bottom: 10px;\n background: white;\n}\n.pricedog-transport span[data-v-666fed93] {\n font-size: 13px;\n color: #3c4c54;\n}\n.pricedog-transport .pricedog-forbid[data-v-666fed93] {\n color: #ff4449;\n}\n.pricedog-transport .pricedog-allow[data-v-666fed93] {\n color: #44cc66;\n}\n.pricedog-transport .pricedog-bold[data-v-666fed93] {\n font-weight: normal;\n font-size: 14px;\n color: #000000;\n}\n.pricedog-transport .pricedog-transport-bar[data-v-666fed93] {\n min-height: 40px;\n border-bottom: 1px solid #eeeeee;\n padding-left: 16px;\n padding-right: 16px;\n}\n.pricedog-transport .pricedog-transport-bar[data-v-666fed93]:last-of-type {\n border-bottom: none;\n}\n.pricedog-transport .pricedog-transport-result .pricedog-sub[data-v-666fed93] {\n border-right: 1px solid #eeeeee;\n}\n.pricedog-transport .pricedog-transport-result .pricedog-sub span[data-v-666fed93] {\n font-size: 14px;\n}\n.pricedog-transport .pricedog-transport-result .pricedog-sub[data-v-666fed93]:last-of-type {\n border-right: none;\n}\n.pricedog-transport .pricedog-question input[type=radio][data-v-666fed93] {\n margin-top: 0;\n margin-left: 0;\n margin-right: 8px;\n width: 16px;\n height: 16px;\n position: relative;\n appearance: none;\n bottom: 0;\n cursor: pointer;\n}\n.pricedog-transport .pricedog-question input[type=radio][data-v-666fed93]::after {\n content: '';\n position: absolute;\n width: 16px;\n height: 16px;\n box-sizing: border-box;\n border: 2px solid #999999;\n border-radius: 8px;\n z-index: 2;\n}\n.pricedog-transport .pricedog-question input[type=radio][data-v-666fed93]:checked::after {\n content: '';\n position: absolute;\n width: 16px;\n height: 16px;\n box-sizing: border-box;\n border: 2px solid #ff6132;\n border-radius: 8px;\n z-index: 2;\n}\n.pricedog-transport .pricedog-question input[type=radio][data-v-666fed93]:checked::before {\n content: '';\n position: absolute;\n width: 10px;\n height: 10px;\n border-radius: 5px;\n top: 50%;\n left: 50%;\n margin-top: -5px;\n margin-left: -5px;\n background: #ff6132;\n box-sizing: border-box;\n z-index: 2;\n}\n.pricedog-transport .pricedog-question button[data-v-666fed93] {\n margin-left: 52px;\n width: 60px;\n height: 30px;\n background: #F0ECEC;\n border-radius: 4px;\n font-size: 14px;\n color: #3c4c54;\n border: none;\n}\n.pricedog-transport .pricedog-question button.pricedog-active[data-v-666fed93] {\n color: #FFFFFF;\n cursor: pointer;\n background: #FF6132;\n}\n", ""]); // exports /***/ }), /***/ "0873bfa38b6f0206ed22": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-jd-rank[data-v-a48d90ba] {\n width: 232px;\n height: 32px;\n background: url(https://cdn.gwdang.com/images/extensions/jdRanking/ranklistBg.svg);\n}\n.gwd-jd-rank .gwd-icon-rank[data-v-a48d90ba] {\n width: 15px;\n height: 15px;\n margin-left: 5px;\n}\n.gwd-jd-rank .gwd-vline[data-v-a48d90ba] {\n display: block;\n width: 1px;\n height: 10px;\n background: #000000;\n margin-left: 0px;\n border: 0;\n}\n.gwd-jd-rank .gwd-rank-list[data-v-a48d90ba] {\n flex: 1;\n height: 100%;\n}\n.gwd-jd-rank .gwd-rank-list a[data-v-a48d90ba] {\n padding-left: 7px;\n flex: 1;\n}\n.gwd-jd-rank .gwd-rank-list a span[data-v-a48d90ba] {\n display: inline-block;\n transform-origin: left center;\n color: #111111;\n white-space: nowrap;\n overflow: hidden;\n vertical-align: middle;\n text-overflow: ellipsis;\n}\n.gwd-jd-rank .gwd-rank-list a span.gwd-mw[data-v-a48d90ba] {\n max-width: 130px;\n}\n.gwd-jd-rank .gwd-rank-list a:hover span[data-v-a48d90ba] {\n color: #e03024;\n font-weight: bold;\n}\n.gwd-jd-rank .gwd-rank-list .gwd-rank-first span[data-v-a48d90ba] {\n color: #e03024;\n}\n.gwd-jd-rank .gwd-rank-list .gwd-rank-addition[data-v-a48d90ba] {\n display: none;\n position: absolute;\n right: 0;\n width: 153px;\n top: 100%;\n border: 1px solid #ffeded;\n overflow: hidden;\n background: white;\n z-index: 9;\n}\n.gwd-jd-rank .gwd-rank-list .gwd-rank-addition a[data-v-a48d90ba] {\n height: 25px;\n line-height: 25px;\n display: inline-block;\n width: 100%;\n vertical-align: middle;\n border-bottom: 1px solid #f1f1f1;\n}\n.gwd-jd-rank .gwd-rank-list .gwd-rank-addition a[data-v-a48d90ba]:last-of-type {\n border-bottom: none;\n}\n.gwd-jd-rank .gwd-rank-list:hover .gwd-rank-addition[data-v-a48d90ba] {\n display: block;\n}\n.gwd-jd-rank .gwd-rank-list[data-v-a48d90ba]::after {\n content: '';\n position: absolute;\n width: 16px;\n height: 16px;\n background: url(https://cdn.gwdang.com/images/extensions/jdRanking/arrow-right-default.svg);\n right: 3px;\n top: 5px;\n pointer-events: none;\n}\n.gwd-jd-rank .gwd-rank-list.gwd-rotate[data-v-a48d90ba]::after {\n transform: rotate(90deg);\n}\n.gwd-jd-rank .gwd-rank-list.gwd-rotate[data-v-a48d90ba]:hover::after {\n transform: rotate(270deg);\n}\n.gwd-jd-rank .gwd-rank-list[data-v-a48d90ba]:hover::after {\n background: url(https://cdn.gwdang.com/images/extensions/jdRanking/arrow-right-hilighted.svg);\n}\n.gwd-w217[data-v-a48d90ba] {\n width: 217px;\n height: 26px;\n background: url(https://cdn.gwdang.com/images/extensions/jdRanking/w217.svg);\n}\n.gwd-w210[data-v-a48d90ba],\n.gwd-w235[data-v-a48d90ba] {\n width: 210px;\n height: 30px;\n background: url(https://cdn.gwdang.com/images/extensions/jdRanking/w210.svg);\n}\n.gwd-w210 .gwd-rank-list .gwd-rank-addition[data-v-a48d90ba],\n.gwd-w235 .gwd-rank-list .gwd-rank-addition[data-v-a48d90ba] {\n width: 140px;\n}\n.gwd-w210 .gwd-rank-list[data-v-a48d90ba]::after,\n.gwd-w235 .gwd-rank-list[data-v-a48d90ba]::after {\n top: 7px;\n background: url(https://cdn.gwdang.com/images/extensions/jdRanking/arrow-right-default-gray.svg);\n}\n.gwd-w210 .gwd-rank-list a span[data-v-a48d90ba],\n.gwd-w235 .gwd-rank-list a span[data-v-a48d90ba] {\n color: #555555;\n}\n.gwd-w210 .gwd-rank-list a span span.gwd-mw[data-v-a48d90ba],\n.gwd-w235 .gwd-rank-list a span span.gwd-mw[data-v-a48d90ba] {\n max-width: 80px;\n}\n.gwd-w210 .gwd-font11[data-v-a48d90ba],\n.gwd-w235 .gwd-font11[data-v-a48d90ba] {\n transform: scale(1);\n}\n.gwd-w235[data-v-a48d90ba] {\n width: 235px;\n height: 23px;\n background: url(https://cdn.gwdang.com/images/extensions/jdRanking/w235.svg);\n}\n.gwd-w235 .gwd-rank-list a[data-v-a48d90ba] {\n padding-left: 12px;\n}\n.gwd-w235 .gwd-rank-list a span span.gwd-mw[data-v-a48d90ba] {\n max-width: 95px;\n}\n.gwd-w235 .gwd-rank-list .gwd-rank-addition[data-v-a48d90ba] {\n width: 165px;\n}\n.gwd-w235 .gwd-rank-list[data-v-a48d90ba]::after {\n right: 6px;\n top: 3px;\n}\n", ""]); // exports /***/ }), /***/ "098b134186cfa32dfbae": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjg-hide[data-v-074e6fb7] {\n width: 0!important;\n overflow: hidden;\n border-left: none;\n}\n.bjg-notify[data-v-074e6fb7] {\n background: url(" + __webpack_require__("4b5ad26a4aba24abc311") + ");\n background-size: contain;\n text-align: center;\n font-size: 12px;\n color: white;\n}\n.bjg-alert[data-v-074e6fb7] {\n background: url(" + __webpack_require__("569e4d6032f05e17b3ae") + ");\n background-size: contain;\n}\n.bjg-pp-disabled span[data-v-074e6fb7] {\n font-size: 12px;\n color: #8c847b;\n line-height: 20px;\n}\n.bjg-pp-disabled .gwd-button[data-v-074e6fb7] {\n width: 340px;\n height: 30px;\n border-radius: 15px;\n text-align: center;\n font-size: 14px;\n font-weight: bold;\n color: white;\n background: linear-gradient(270deg, #FFCD47 0%, #FF9F22 100%);\n}\n.bjg-setting[data-v-074e6fb7] {\n width: 92px;\n height: 52px;\n background: white;\n position: absolute;\n border: 1px solid #f1f1f1;\n bottom: 41px;\n right: 0;\n}\n.bjg-bar-button[data-v-074e6fb7] {\n width: 114px;\n height: 100%;\n position: relative;\n display: flex;\n align-content: center;\n align-items: center;\n border-left: 1px solid #f1f1f1;\n border-right: 1px solid #f1f1f1;\n font-size: 0;\n}\n", ""]); // exports /***/ }), /***/ "09dacd4b3dc2642f47eb": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FakeBtn_vue_vue_type_template_id_255024c9_scoped_true___ = __webpack_require__("d2e85c08ee690c0b4bb5"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__FakeBtn_vue_vue_type_script_lang_js___ = __webpack_require__("03d8f27bff66630b18e1"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__FakeBtn_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__FakeBtn_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__FakeBtn_vue_vue_type_style_index_0_id_255024c9_scoped_true_lang_less___ = __webpack_require__("eca30c40a94751679e69"); /* 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__FakeBtn_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__FakeBtn_vue_vue_type_template_id_255024c9_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__FakeBtn_vue_vue_type_template_id_255024c9_scoped_true___["b" /* staticRenderFns */], false, null, "255024c9", 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('255024c9')) { api.createRecord('255024c9', component.options) } else { api.reload('255024c9', component.options) } module.hot.accept("./FakeBtn.vue?vue&type=template&id=255024c9&scoped=true&", function () { api.rerender('255024c9', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/FakeBtn.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "0a82bb870c6445ae3238": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = {}; module.exports = exports["default"]; /***/ }), /***/ "0aec02c1b6453a604bd6": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__JdItemList_vue_vue_type_template_id_9f63765e_scoped_true___ = __webpack_require__("a5477ba18d2730fb42d0"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__JdItemList_vue_vue_type_script_lang_js___ = __webpack_require__("17ec7380fd13e0e290b3"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__JdItemList_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__JdItemList_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__JdItemList_vue_vue_type_style_index_0_id_9f63765e_scoped_true_lang_less___ = __webpack_require__("23e3b35ad503cba1de12"); /* 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__JdItemList_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__JdItemList_vue_vue_type_template_id_9f63765e_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__JdItemList_vue_vue_type_template_id_9f63765e_scoped_true___["b" /* staticRenderFns */], false, null, "9f63765e", 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('9f63765e')) { api.createRecord('9f63765e', component.options) } else { api.reload('9f63765e', component.options) } module.hot.accept("./JdItemList.vue?vue&type=template&id=9f63765e&scoped=true&", function () { api.rerender('9f63765e', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/bjgou/components/JdItemList.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "0b9454dd68751085211f": /***/ (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_SubsidyBottom_vue_vue_type_style_index_0_id_1cab7080_scoped_true_lang_css___ = __webpack_require__("e0a92a12936c6112620e"); /* 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_SubsidyBottom_vue_vue_type_style_index_0_id_1cab7080_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_SubsidyBottom_vue_vue_type_style_index_0_id_1cab7080_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_SubsidyBottom_vue_vue_type_style_index_0_id_1cab7080_scoped_true_lang_css____default.a); /***/ }), /***/ "0c4497b5d7aa90d42b50": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MemberCouponQr_vue_vue_type_template_id_498face2_scoped_true___ = __webpack_require__("73027d3bf1a467cf5ac2"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__MemberCouponQr_vue_vue_type_script_lang_js___ = __webpack_require__("447e76262f8a59c30810"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__MemberCouponQr_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__MemberCouponQr_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__MemberCouponQr_vue_vue_type_style_index_0_id_498face2_scoped_true_lang_less___ = __webpack_require__("217a460079a2fc75e411"); /* 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__MemberCouponQr_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__MemberCouponQr_vue_vue_type_template_id_498face2_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__MemberCouponQr_vue_vue_type_template_id_498face2_scoped_true___["b" /* staticRenderFns */], false, null, "498face2", 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('498face2')) { api.createRecord('498face2', component.options) } else { api.reload('498face2', component.options) } module.hot.accept("./MemberCouponQr.vue?vue&type=template&id=498face2&scoped=true&", function () { api.rerender('498face2', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/MemberCouponQr.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "0cfce96dbc80f0b4a6d0": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = { 'bjg923253': 'pid-bjg-923253', 'union_bijiago': 'pid-bjg-union', 'union_bijiago_uos': 'pid-bjg-union-uos', 'union_bijiago_mogu': 'pid-bjg-union' }; /***/ }), /***/ "0d07d6944333a9411c3c": /***/ (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_CollectionList_vue_vue_type_template_id_56eea7fc_scoped_true___ = __webpack_require__("243d445d478871b440a0"); /* 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_CollectionList_vue_vue_type_template_id_56eea7fc_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_CollectionList_vue_vue_type_template_id_56eea7fc_scoped_true___["b"]; }); /***/ }), /***/ "0ddc7525051f341d4d49": /***/ (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_CollectionItem_vue_vue_type_script_lang_js___ = __webpack_require__("082f6af89c174226ccc5"); /* 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_CollectionItem_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_CollectionItem_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_CollectionItem_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_CollectionItem_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_CollectionItem_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "0e04f21a45f32a73bf78": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "bjgou-subsidy-bar-bottom ", staticStyle: { cursor: "pointer" }, attrs: { title: "点击领取" }, on: { mouseover: _vm.over, click: _vm.click } }, [ _c("span", { staticClass: "coupon-marleft" }), _vm._v(" "), _c("a", { attrs: { id: "top_coupon_btn" } }, [ _c("span", { staticClass: "top-coupon-tle" }, [ _vm._v("当前商品领红包立减") ]), _vm._v(" "), _c( "span", { staticClass: "price-num", staticStyle: { "margin-left": "17px" } }, [ _c("span", { staticClass: "price-sm" }, [_vm._v("¥")]), _c("span", [_vm._v(_vm._s(_vm.value))]) ] ), _vm._v(" "), _c("em", { staticClass: "link_hand" }), _vm._v(" "), _vm.qr ? _c( "div", { staticClass: "qrcode" }, [ _c("img", { staticStyle: { "margin-top": "7px", width: "120px", height: "120px" }, attrs: { src: _vm.qrcode, alt: "" } }), _vm._v(" "), _vm.error ? _c("QrError", { on: { refresh: _vm.over } }) : _vm._e(), _vm._v(" "), _c( "div", { staticStyle: { "margin-top": "4px", "text-align": "center" } }, [ _c( "span", { staticStyle: { "font-weight": "bold", color: "#ff6132", "font-size": "14px" } }, [_vm._v("微信扫码")] ), _vm._v(" "), _c( "span", { staticStyle: { "margin-left": "4px", color: "#333333", "font-size": "12px" } }, [ _vm._v( "领" + _vm._s(_vm.site === "360buy" ? "优惠券" : "礼金") ) ] ) ] ) ], 1 ) : _vm._e() ]) ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "0e53a0c44eeffdc5af61": /***/ (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_JdRankList_vue_vue_type_style_index_0_id_a48d90ba_scoped_true_lang_less___ = __webpack_require__("25e0cebb2e3d42787857"); /* 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_JdRankList_vue_vue_type_style_index_0_id_a48d90ba_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_JdRankList_vue_vue_type_style_index_0_id_a48d90ba_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_JdRankList_vue_vue_type_style_index_0_id_a48d90ba_scoped_true_lang_less____default.a); /***/ }), /***/ "0e8895b83d8201a0ff47": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var request = __webpack_require__("91f250ebeb8d5987491c"); var getCoupon = __webpack_require__("2eb8d6935e044e0d6d06"); var getCouponNew = __webpack_require__("6c0a23e5b52046830607"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var QRReloader = __webpack_require__("95b5a8392f3e95ca15b5"); var globalInfo = {}, randomNum = undefined, hasReqId = []; var domPattern = { 'taobao': { '#J_Pine': { "isSmall": true, 'listdom': "li.tuijian-item", 'href': '.pic-con a.img-con', 'insertdom': 'div.pic-con' }, '.tb-main-layout .col-sub .skin-box-bd': { 'listdom': ".item1line1 .photo", 'href': 'a', 'insertdom': '.item1line1 .photo' }, '#J_Pinus_Enterprise_Module .tuijian-bd-window': { 'listdom': ".tuijian-item", 'href': '.tuijian-img a.img-con', 'insertdom': '.tuijian-item' }, '#viewed-items-slide .item-list': { 'listdom': "li .item", 'href': 'a.side-item', 'insertdom': 'div.pic' }, '#bought-items-slide .item-list': { 'listdom': "li .item", 'href': 'a.side-item', 'insertdom': 'div.pic' }, '#detail-recommend-linjia .linjia-items-slide .slide-content': { 'listdom': "li .item", 'href': 'a.side-item', 'insertdom': 'div.pic' } }, 'tmall': { '#ald-skuRight': { 'listdom': ".ald-switchable-content li", 'href': 'a.ALDCLS-act', 'insertdom': 'div.img' }, '#J_DcLeft .skin-box-bd': { 'listdom': ".item1line1 .photo", 'href': 'a', 'insertdom': '.item1line1 .photo' }, '#J_TjWaterfall': { 'listdom': "li", 'href': 'a.ald-wf-pic', 'insertdom': 'li' } }, 'taobao-ju': {} }; var listenDomPattern = { 'tmall': ["#J_TabRecommends", "#J_TjWaterfall"], 'taobao': ['#detail-recommend-viewed', ["#viewed-items-slide .item-list", "#bought-items-slide .item-list", "#detail-recommend-linjia .linjia-items-slide .slide-content"]] }; var searchZoneId = { 'bjg923253': '10015', 'union_bijiago': '10013', 'union_bijiago_uos': '10013', 'union_east': '10007', 'union_universal': '40009', 'union_cchrome': '10025', 'union_yunqi': '10025', '538625': '10025' }; var pidConfig = { 'bjg923253': 'pid-bjg-923253', 'union_bijiago': 'pid-bjg-union', 'union_east': 'pid-east', 'union_universal': 'pid-universal', 'union_cchrome': 'pid-cchrome', 'union_yunqi': 'pid-yunqi' }; // 淘宝天猫商品详情页 一些推荐的商品 添加优惠券 module.exports.init = function () { randomNum = parseInt(Math.random() * 100); if (G.from_device === "kuaik") { randomNum = 100; } setTimeout(render, 5000); }; var render = function render() { var site = G.site; var domOjb = domPattern[site]; if (!domOjb) return; for (var pt in domOjb) { if ($(pt).length > 0 && $(pt).is(':visible')) { render2(pt, domOjb); } } listenDom(); addEvent(); }; var render2 = function render2(pt, domOjb) { var site = G.site; var dom = $(pt).find(domOjb[pt]['listdom']); if (dom.find('.detail_coupon_tip').length > 0) return; for (var i = 0; i < dom.length; i++) { var href = dom.eq(i).find(domOjb[pt]['href']).attr('href'); var id = href.match(/[?&]id=([0-9]+)/); if (id) id = id[1]; if (!id) continue; var insertDom = dom.eq(i).find(domOjb[pt]['insertdom']); if ($(insertDom).length === 0) insertDom = dom.eq(i); renderTip(id, insertDom, site, domOjb[pt]["isSmall"]); } }; var renderTip = function renderTip(id, insertDom, site, isSmall) { var cb = function cb(data) { if (!data) return; if (!data.data) return; data = data.data; data.site = site; globalInfo[id] = data; var dom = '<a href="' + data.click_url2 + '" data-id="' + id + '" title="当前商品领券立减' + data.coupon.coupon_money + '元" class="detail_coupon_tip detail_coupon_tip_big" target="_blank"><span>¥' + data.coupon.coupon_money + '</span> 券</a>'; if (randomNum > -1) { dom = '<a data-id="' + id + '" class="detail_coupon_tip detail_coupon_tip_big" style="cursor:default;" target="_blank"><span>¥' + data.coupon.coupon_money + '</span> 券</a>'; } if (isSmall) { dom = '<a href="' + data.click_url2 + '" data-id="' + id + '" title="当前商品领券立减' + data.coupon.coupon_money + '元" class="detail_coupon_tip detail_coupon_tip_small" target="_blank">¥' + data.coupon.coupon_money + ' </a>'; if (randomNum > -1) { dom = '<a data-id="' + id + '" class="detail_coupon_tip detail_coupon_tip_small" style="cursor:default;" target="_blank">¥' + data.coupon.coupon_money + '</a>'; } } // if (randomNum > -1) { // dom = `<a data-id="${id}" class="search_coupon_tip" style="cursor:default;" target="_blank">¥${data.coupon.coupon_money} 优惠券<a>` // } $(insertDom).eq(0).append($(dom)); }; getCoupon.init(id, searchZoneId[G.union], cb); // if (G.union !== '538625') { // getCouponNew.initWithDp(id, pidConfig[G.union], 'mini', cb) // } else { // getCoupon.init(id, searchZoneId[G.union], cb) // } }; var listenDom = function listenDom() { var Timer = undefined, hasrun = undefined; var arr = listenDomPattern[G.site]; if (!arr) return; var dom = $(arr[0])[0]; if (!dom) return; dom.addEventListener('DOMSubtreeModified', function () { clearTimeout(Timer); if (G.site === 'tmall' && $(dom).find(arr[1]).find('li').length > 0 && hasrun) return; if (G.site === 'taobao' && $(dom).find(arr[1][0]).find('li').length > 0 && hasrun) return; Timer = setTimeout(function () { hasrun = true; if (G.site === 'tmall') { render2(arr[1], domPattern[G.site]); } else { render2(arr[1][0], domPattern[G.site]); render2(arr[1][1], domPattern[G.site]); render2(arr[1][2], domPattern[G.site]); } }, 3000); }, false); }; var addEvent = function addEvent() { $('body').on('click', function (e) { if ($(e.target).hasClass('detail_coupon_tip')) { cnzz.log('click:searchcoupon'); // utils.tongjiLog('click:searchcoupon') } }); $('body').on('mouseover', function (e) { if ($(e.target).hasClass('detail_coupon_tip')) { var id = $(e.target).attr('data-id'); if ($(e.target).find('.qr_coupondetail').length === 0 && randomNum > -1) { cnzz.log('track:searchcoupon'); // utils.tongjiLog('track:searchcoupon') addQRcode(id, e.target); } } }); }; var getQRcode = __webpack_require__("657bad1e7f3b602f7d70"); var callbacks = undefined, hasreq = undefined, urls = undefined; var getPageInfo = function getPageInfo(info, callback) { var infoObj = {}; if (hasreq) { callbacks = callback; urls = info.click_url; return; } var itemId = info.itemId; var obj = { itemNumId: itemId }; var url = 'https://acs.m.taobao.com/h5/mtop.taobao.detail.getdetail/6.0/?data=' + encodeURIComponent(JSON.stringify(obj)); request.getPure(url).then(function (data) { try { var item = data.data.item; var seller = data.data.seller; var item2 = JSON.parse(data.data.apiStack[0].value); infoObj.title = item.title; infoObj.picUrl = item.images[0]; infoObj.shopName = seller.shopName; infoObj.shopLogo = seller.shopIcon; infoObj.shopUrl = seller.shopUrl; infoObj.biz30Day = item2.item.sellCount; infoObj.discountPrice = (Number(item2.skuCore.sku2info['0'].price.priceMoney) / 100).toFixed(2); } catch (e) { //require('common/extConsole').error(e) } if (!infoObj.title) { infoObj.title = info.titleGot; } if (!infoObj.picUrl) { infoObj.picUrl = info.imgGot; } if (!infoObj.discountPrice) { infoObj.discountPrice = info.priceGot; } infoObj.id = itemId; infoObj.amount = info.coupon.coupon_money; infoObj.effectiveStartTime = info.coupon.start_time; infoObj.effectiveEndTime = info.coupon.end_time; infoObj.pid = info.pid; infoObj.tkl = info.tkl; infoObj.tmall = location.host.indexOf('tmall') > -1 ? true : false; console.log(infoObj); callback(infoObj, info.click_url); if (callbacks) { callbacks(infoObj, urls); } }); }; var addQRcode = function addQRcode(id, dom) { if (G.forbidCoupon) return; if (hasReqId.indexOf(id) > -1) return; hasReqId.push(id); if (!id) return; var data = globalInfo[id]; data.pid = searchZoneId[G.union]; data.itemId = id; data.imgGot = $(dom).parents('li').find('.img img').attr('src'); data.titleGot = $(dom).parents('li').find('.look_title a').text().replace(/ /g, '').replace(/\n/g, ''); data.priceGot = $(dom).parents('li').find('.look_price').text().replace(/ /g, '').replace('¥', ''); getPageInfo(data, function (newData, url) { var id = 'gwd-coupon-' + parseInt(Math.random() * 1000); var name = '微信'; var view = '<div class="minicoupon_detail" id="' + id + '">\n <img src="xxx">\n <span>' + name + '扫码领券</span>\n </div>'; $(dom).append(view); QRReloader.init(newData, url, '#' + id + ' > img', function (newData2) { $(dom).parent().css('overflow', 'visible'); $(dom).parents('.tuijian-bd').css('overflow', 'visible'); }, false, false); }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "0f62f0fb3b5cc89beb7a": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var renderChart = function renderChart(data) { renderBtn(data); renderDetail(); var id = 'trend_box'; $('.min-max-price-lable .max-lab').text('最高:¥' + data.store[0].highest); $('.min-max-price-lable .min-lab').text('最低:¥' + data.store[0].lowest); __webpack_require__("7bc264230157b5cefc24")({ el: id, msg: data.store[0] }); }; var priceTle = { 'pri-t1': "价格上涨", 'pri-t0': "价格平稳", 'pri-t-1': "价格下降", 'pri-t-2': "历史最低" }; var renderBtn = function renderBtn(data) { var dom = $('.game_purchase_action:contains("开始游戏")'); if (dom.length === 0) dom = $('.game_purchase_action:contains("在购物车中")'); if (dom.length === 0) dom = $('.game_purchase_action:contains("添加至购物车")'); var status = data.price_status; var status_str = 'pri-t' + status; var status_tle = priceTle[status_str]; var html = __webpack_require__("e06bd01a4e86c83a1372"); var bixbox = dom.eq(0); var bigboxwidth = bixbox.width(); var children = bixbox.children(); var w = 0; for (var i = 0; i < children.length; i++) { w += children.eq(i).outerWidth(); } var btnleft = bigboxwidth - w - 5 - 108; var imgurls = G.s_server + '/images/extensions/newbar'; if ($('#steam_tremd_btn').length) { return; } dom.eq(0).prepend(template.compile(html)({ imgurl: imgurls, btnleft: btnleft, status_tle: status_tle, status_str: status_str, ext_class: G.from_device.indexOf('bijiago') > -1 ? 'bjgou' : '' })); }; var addEvent = function addEvent() { var time1 = undefined; $('#steam_tremd_btn').on('mouseenter', function () { $('#trenm_trend_detail').show(); $('#steam_tremd_btn').addClass('_mshover'); log('steam-trend-track'); }); $('#steam_tremd_btn').on('mouseleave', function () { time1 = setTimeout(function () { $('#trenm_trend_detail').hide(); $('#steam_tremd_btn').removeClass('_mshover'); }, 300); }); $('#trenm_trend_detail').on('mouseenter', function () { clearTimeout(time1); }); $('#trenm_trend_detail').on('mouseleave', function () { $('#trenm_trend_detail').hide(); $('#steam_tremd_btn').removeClass('_mshover'); }); }; var renderDetail = function renderDetail() { var html = __webpack_require__("9f7204e7aecf4b4cd6fd"); var dom = $('#steam_tremd_btn').parents('.game_area_purchase_game:contains("开始游戏")'); if (dom.length === 0) dom = $('#steam_tremd_btn').parents('.game_area_purchase_game:contains("在购物车中")'); if (dom.length === 0) dom = $('#steam_tremd_btn').parents('.game_area_purchase_game:contains("添加至购物车")'); if (dom.length === 0) dom = $('#steam_tremd_btn').parents('.game_area_purchase_game_wrapper:contains("添加至购物车")'); dom.eq(0).append(template.compile(html)()); dom.eq(0).addClass('steam_box_tt'); __webpack_require__("03dd60018ce5ed1344a1")('steam-ad-show'); $('#steam_ad').click(function (e) { __webpack_require__("03dd60018ce5ed1344a1")('steam-ad-click'); }); addEvent(); }; module.exports.init = function (data) { if (!data || data instanceof Array || data.store[0].all_line.length === 0) return; renderChart(data); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "0f986364e7409b7b0cf1": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "gwd-qrlink", staticStyle: { "font-family": "'microsoft yahei'" } }, [ _c("div", { staticStyle: { clear: "both" } }), _vm._v(" "), _vm.site === "360buy" ? _c( "div", { staticClass: "gwd-row gwd-align", class: "site-" + _vm.site }, [ _c( "div", { staticClass: "gwd-app-button gwd-row gwd-align", class: _vm.mode, on: { mouseover: _vm.over } }, [ _vm.site !== "360buy" ? _c("img", { staticStyle: { width: "17px", height: "17px" }, attrs: { src: __webpack_require__("a8cce0aefd2314ea2dfa"), alt: "" } }) : _vm._e(), _vm._v(" "), _vm.site === "360buy" ? _c("img", { staticStyle: { width: "17px", height: "17px" }, attrs: { src: __webpack_require__("7a9d74c2e201b514421b"), alt: "" } }) : _vm._e(), _vm._v(" "), _c("span", { style: _vm.mode ? "font-size: 18px;" : "" }, [ _vm._v( "用" + _vm._s(_vm.site === "360buy" ? "京东" : "淘宝") + "APP" + _vm._s( _vm.mode && _vm.mode.includes("login") ? "扫码领" + (_vm.mode.includes("gift") ? "红包" : "券") : "扫码" ) ) ]), _vm._v(" "), _vm.qr ? _c( "div", { staticClass: "gwd-app-qr-content gwd-column gwd-align" }, [ _c( "div", { staticClass: "gwd-qr-img", style: "margin-top: 7px; margin-left: 7px; margin-right: 7px; height: " + (_vm.mode ? 168 : 111.04) + "px; position: relative; " + (_vm.mode ? "width: 168px;" : "") }, [ !_vm.mode && _vm.site !== "360buy" ? _c("img", { staticClass: "gwd-qr-logo", attrs: { src: __webpack_require__("c9085187c37fc1ab0e5e"), alt: "" } }) : _vm._e(), _vm._v(" "), !_vm.mode && _vm.site === "360buy" ? _c("img", { staticClass: "gwd-qr-logo", attrs: { src: __webpack_require__("a152c7c5032ac533e0b1"), alt: "" } }) : _vm._e(), _vm._v(" "), _c("img", { staticStyle: { width: "100%" }, attrs: { src: _vm.qr, alt: "" } }) ] ), _vm._v(" "), _c( "div", { staticClass: "gwd-row gwd-align gwd-qr-bottom-line", style: _vm.mode ? "margin-top: 8px;" : "" }, [ _c( "span", { staticClass: "bold", style: _vm.mode ? "font-size: 32px;" : "" }, [ _vm._v( _vm._s( _vm.site === "360buy" ? "京东" : "淘宝" ) + "APP" ) ] ), _vm._v(" "), _c( "span", { staticClass: "normal", style: _vm.mode ? "font-size: 30px" : "font-size: 22px" }, [ _vm._v( _vm._s(_vm.mode ? " " : "") + "扫码" + _vm._s( _vm.mode ? "" + (_vm.mode.includes("gift") ? "领红包" : "直接领券") : "" ) ) ] ), _vm._v(" "), !_vm.mode ? _c("span", { staticClass: "normal" }, [ _vm._v( _vm._s( _vm.site === "360buy" ? "查看商品" : _vm.hasBuyButton ? "查看优惠" : "快捷购买" ) ) ]) : _vm._e() ] ) ] ) : _vm._e() ] ), _vm._v(" "), !_vm.mode ? _c("span", { staticClass: "gwd-qr-hint" }, [ _vm._v( "在" + _vm._s(_vm.site === "360buy" ? "京东APP" : "手淘") + "内" + _vm._s( _vm.site === "360buy" ? "浏览该商品" : _vm.hasBuyButton ? "查看优惠详情" : "快捷购买" ) ) ]) : _vm._e() ] ) : _vm._e() ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "0fcac644ebc6e8959ae6": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("6acdae05d21ed0375a5b"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("14990f26", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!./biyibi.less", function() { var newContent = require("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!./biyibi.less"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "1067ba4203a634ac3435": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-single-coupon {\n display: inline-block;\n}\n.gwd-single-coupon a {\n display: inline-block;\n width: 143px;\n height: 20px;\n line-height: 20px;\n text-align: center;\n font-size: 12px;\n color: #ee2f36;\n text-decoration: underline;\n white-space: nowrap;\n}\n.gwd-single-coupon a img {\n display: none;\n}\n.gwd-jd-promo-coupons-wrapper {\n display: inline-block;\n position: relative;\n height: 22px;\n margin-left: 5px;\n margin-top: -2px;\n}\n.gwd-jd-promo-coupons {\n display: inline-block;\n position: absolute;\n top: 0;\n left: 0;\n height: 20px;\n overflow: hidden;\n border-bottom: 1px solid transparent;\n border-top: 1px solid transparent;\n}\n.gwd-jd-promo-coupons a {\n display: block;\n width: 150px;\n height: 20px;\n line-height: 20px;\n text-align: center;\n font-size: 12px;\n color: #999999;\n border-bottom: 1px solid transparent;\n border-left: 1px solid transparent;\n border-right: 1px solid transparent;\n text-decoration: underline;\n white-space: nowrap;\n}\n.gwd-jd-promo-coupons a:hover {\n background: #ededed;\n color: #ee2f36;\n}\n.gwd-jd-promo-coupons a:first-of-type {\n color: #ee2f36;\n}\n.gwd-jd-promo-coupons a:first-of-type img {\n transform: rotate(90deg);\n margin-top: -3px;\n margin-left: 2px;\n}\n.gwd-jd-promo-coupons:hover {\n height: unset;\n z-index: 9;\n border-bottom: 1px solid #e3e3e3;\n border-top: 1px solid #e3e3e3;\n background: #ffffff;\n}\n.gwd-jd-promo-coupons:hover a {\n border-bottom: 1px solid #e3e3e3;\n border-left: 1px solid #e3e3e3;\n border-right: 1px solid #e3e3e3;\n text-decoration: none;\n}\n.gwd-jd-promo-coupons:hover a img {\n transform: rotate(-90deg);\n margin-top: 0px;\n}\n.lh:hover {\n overflow: visible;\n}\n", ""]); // exports /***/ }), /***/ "10bcddd0827eacb5d2f5": /***/ (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( "a", { staticClass: "gwd-member-coupon-top gwd-member-coupon", attrs: { href: _vm.link, target: "_blank", title: "点击领取" } }, [ _c("span", { staticStyle: { color: "white", "margin-left": "5px" } }, [ _vm._v(_vm._s(_vm.getText("当前商品可领会员券"))) ]), _vm._v(" "), _c( "span", { staticStyle: { color: "white", "margin-left": "9px", "margin-right": "9px" } }, [_vm._v(_vm._s(_vm.getText("立即领取")))] ), _vm._v(" "), _vm.qr ? _c("div", { staticClass: "gwd-qr-container" }, [ _c("img", { staticStyle: { "margin-top": "7px", width: "120px", height: "120px" }, attrs: { src: _vm.qr, alt: "" } }), _vm._v(" "), _c( "div", { staticStyle: { "margin-top": "4px", "text-align": "center" } }, [ _c( "span", { staticStyle: { "font-weight": "bold", color: "#ff6132", "font-size": "14px" } }, [_vm._v(_vm._s(_vm.getText("手淘扫码")))] ), _vm._v(" "), _c( "span", { staticStyle: { "margin-left": "4px", color: "#333333", "font-size": "12px" } }, [_vm._v(_vm._s(_vm.getText("联系客服领取")))] ) ] ) ]) : _vm._e() ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "11658198c931e28b4bb1": /***/ (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( "a", { staticClass: "bjgou-subsidy-bar bjgou-component", attrs: { href: _vm.link, target: "_blank", title: "点击领取" } }, [ _c( "span", { staticClass: "bjg-coupon-white", staticStyle: { "font-size": "18px", "font-weight": "bold", "margin-left": "75px", "margin-top": "6px" } }, [_vm._v(_vm._s(_vm.getText("当前商品可领会员券")))] ), _vm._v(" "), _c("div", { staticStyle: { flex: "1" } }), _vm._v(" "), _c( "span", { staticClass: "bjg-coupon-white", staticStyle: { "font-size": "18px", "font-weight": "bold", "margin-right": "22px" } }, [_vm._v(_vm._s(_vm.getText("立即领取")))] ), _vm._v(" "), _vm.qr ? _c("div", { staticClass: "qrcode" }, [ _c("img", { staticStyle: { "margin-top": "7px", width: "120px", height: "120px" }, attrs: { src: _vm.qr, alt: "" } }), _vm._v(" "), _c( "div", { staticStyle: { "margin-top": "4px", "text-align": "center" } }, [ _c( "span", { staticStyle: { "font-weight": "bold", color: "#ff6132", "font-size": "14px" } }, [_vm._v(_vm._s(_vm.getText("手淘扫码")))] ), _vm._v(" "), _c( "span", { staticStyle: { "margin-left": "4px", color: "#333333", "font-size": "12px" } }, [_vm._v(_vm._s(_vm.getText("联系客服领取")))] ) ] ) ]) : _vm._e() ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "11ab5558a00a98177ea6": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, $, Vue) { var request = __webpack_require__("91f250ebeb8d5987491c"); module.exports = { init: function init() { var g_config, hasShopCoupon; return regeneratorRuntime.async(function init$(context$1$0) { var _this = this; while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return window.g_config; })); case 2: g_config = window.g_config; hasShopCoupon = false; setTimeout(function () { if (!hasShopCoupon) __webpack_require__("9c38beef5ff283e15bd2").setMet('shopCouponGot', false); }, 3000); request.get(G.server + '/extension/Coupon?dp_id=' + G.dp.itemId + '&sellerId=' + g_config.sellerId + '&price=' + G.dp.price).then(function callee$1$0(res) { var memberCoupon, coupon; return regeneratorRuntime.async(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: __webpack_require__("9c38beef5ff283e15bd2").setMet('shopCouponGot', res && res.shop_coupon); hasShopCoupon = true; if (!(!res || !res.shop_coupon)) { context$2$0.next = 11; break; } context$2$0.next = 5; return regeneratorRuntime.awrap(__webpack_require__("5c2efa94913e2ffc627b").init()); case 5: memberCoupon = context$2$0.sent; console.log(memberCoupon); if (!memberCoupon) { context$2$0.next = 9; break; } return context$2$0.abrupt('return'); case 9: __webpack_require__("ffcdb5971a2d6b937e35").init(); return context$2$0.abrupt('return'); case 11: coupon = res.shop_coupon; setTimeout(function () { // if ($('.dsj-content').length) { // $('.dsj-content').after('<div id="shopCouponMini"></div>') // } else { // $('#bjgext_minibar').after('<div id="shopCouponMini"></div>') // } $('#bjg-coupon-placeholder').replaceWith('<div id="shopCouponMini"></div>'); var ShopCouponMini = __webpack_require__("4956f070ad37fe34b9f3")['default']; var ShopCouponTop = __webpack_require__("792416f9e69ebb1f3237")['default']; new Vue({ el: '#shopCouponMini', render: function render(h) { return h(ShopCouponMini, { props: { coupon: coupon, useTb: res._dtao } }); } }); $('.bjg-coupon-space').after('<div id="shopCouponTop"></div>'); new Vue({ el: '#shopCouponTop', render: function render(h) { return h(ShopCouponTop, { props: { coupon: coupon, useTb: res._dtao } }); } }); }, 0); case 13: case 'end': return context$2$0.stop(); } }, null, _this); }); case 6: case 'end': return context$1$0.stop(); } }, null, this); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "11d87f21be52f7e7e1be": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjg-op[data-v-6894d428] {\n filter: opacity(0.5);\n}\n.bjg-item[data-v-6894d428] {\n padding-top: 14px;\n padding-bottom: 14px;\n}\n.bjg-tip[data-v-6894d428] {\n width: 372px;\n height: 24px;\n background: url(" + __webpack_require__("19e1784d53d250247bac") + ");\n text-align: center;\n margin-top: 6px;\n}\n.bjg-tip span[data-v-6894d428] {\n font-size: 12px;\n color: #ffffff;\n margin-top: 5px;\n}\n.bjg-dp-item[data-v-6894d428] {\n height: 100px;\n margin-right: 10px;\n}\n.bjg-dp-item .title[data-v-6894d428] {\n width: 259px;\n height: 40px;\n font-size: 13px;\n color: #333333;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n}\n.bjg-dp-item .bjg-price-text[data-v-6894d428] {\n font-size: 12px;\n color: #8c847b;\n}\n", ""]); // exports /***/ }), /***/ "11eab4bb5b4e4ca2589e": /***/ (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 bjg-product-item", class: _vm.last ? "bjg-last" : "", on: { click: function($event) { return _vm.open(_vm.product.go_url) } } }, [ _c("img", { staticStyle: { width: "100px", height: "100px", "margin-left": "14px" }, attrs: { src: _vm.product.img, alt: "", onerror: "this.src='https://cdn.bijiago.com/images/extensions/default_load_image.png'" } }), _vm._v(" "), _c( "div", { staticClass: "gwd-column", staticStyle: { "margin-left": "10px", width: "260px", height: "100px" } }, [ _c("div", { staticClass: "bjg-item-title" }, [ _vm._v(_vm._s(_vm.product.title)) ]), _vm._v(" "), _c( "div", { staticClass: "gwd-row gwd-align", staticStyle: { "margin-top": "13px" } }, [ _c( "span", { staticStyle: { "font-size": "14px", color: "#ff3434" } }, [ _vm._v( _vm._s(_vm.currencySymbol) + _vm._s(_vm.product.price.toFixed(2)) ) ] ), _vm._v(" "), _c("div", { staticStyle: { flex: "1" } }), _vm._v(" "), _vm.product.price < _vm.product.collect_price ? _c("span", { staticClass: "bjg-reduct" }, [ _vm._v( "比收藏时下降" + _vm._s( _vm.currencySymbol === "¥" ? "" : _vm.currencySymbol ) + _vm._s( (_vm.product.collect_price - _vm.product.price) .toFixed(2) .replace(".00", "") ) + _vm._s(_vm.currencySymbol === "¥" ? "元" : "") ) ]) : _vm._e() ] ), _vm._v(" "), _c("div", { staticStyle: { flex: "1" } }), _vm._v(" "), _c("div", { staticClass: "gwd-row gwd-align" }, [ _c("img", { staticStyle: { width: "12px", height: "12px" }, attrs: { src: _vm.product.site_icon, alt: "" } }), _vm._v(" "), _c( "span", { staticStyle: { "margin-left": "4px", "font-size": "12px", color: "#999" } }, [_vm._v(_vm._s(_vm.product.site_name))] ), _vm._v(" "), _c("div", { staticStyle: { flex: "1" } }), _vm._v(" "), _c("img", { staticStyle: { width: "10px" }, attrs: { src: __webpack_require__("34dc20b3102e5b174d6e"), alt: "" }, on: { click: _vm.deleteClick } }) ]) ] ) ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "120c0478b1efef44d946": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("03a5f2fbdb1c58e5e035"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("4aa6c92a", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./CollectionBar.vue?vue&type=style&index=0&id=617a0842&scoped=true&lang=less&", function() { var newContent = require("!!../../../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!./CollectionBar.vue?vue&type=style&index=0&id=617a0842&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "12353e6c503e80823ba4": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_template_id_b671e2be_scoped_true___ = __webpack_require__("23aafd2ad4b6e88819f1"); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_template_id_b671e2be_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_template_id_b671e2be_scoped_true___["b"]; }); /***/ }), /***/ "12825ef292bea7171cc1": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = {}; module.exports = exports["default"]; /***/ }), /***/ "156464601520a7cd23c7": /***/ (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_PriceDogMiniBar_vue_vue_type_script_lang_js___ = __webpack_require__("3603905eab685dc5a585"); /* 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_PriceDogMiniBar_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_PriceDogMiniBar_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_PriceDogMiniBar_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_PriceDogMiniBar_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_PriceDogMiniBar_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "15df87f0ab2497b14f7f": /***/ (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 _QrErrorVue = __webpack_require__("e80a89d5b538bbfd4bc2"); var _QrErrorVue2 = _interopRequireDefault(_QrErrorVue); var getQRCode = __webpack_require__("657bad1e7f3b602f7d70"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); exports['default'] = { name: "SubsidyBottom", props: ['value', 'url', 'qr'], components: { QrError: _QrErrorVue2['default'] }, data: function data() { return { qrcode: '', error: false }; }, methods: { click: function click() { if (!this.qr) window.open(this.url); }, over: function over() { var _this = this; if (!this.qr) return; if (this.qrcode) return; getQRCode({ id: G.dp.dpId, pid: 'bjgou-mini', amount: this.value, title: '', _type: 'rebate' }, '', function (res) { cnzz.log((G.site === '360buy' ? 'jd' : 'taobao') + 'GiftMoney:hover'); if (res[0].etag) { _this.error = true; return; } else { _this.error = false; } _this.qrcode = res[0].imgSrc; }); } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "1736a9a881f3acc7501f": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, $) { var _this = this; var getCoupon = __webpack_require__("2eb8d6935e044e0d6d06"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var html = __webpack_require__("6ea2ad7287e339a7108e"); var request = __webpack_require__("91f250ebeb8d5987491c"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var util = __webpack_require__("d6aec8444c650eeab5f2"); var QRReloader = __webpack_require__("95b5a8392f3e95ca15b5"); var adzoneIdObj = { 'bjg923253': { 'adzone_id': '10015', 'adzone_id2': '10016' }, 'union_bijiago': { 'adzone_id': '10015', 'adzone_id2': '10013' }, 'union_bijiago_mogu': { 'adzone_id': '10015', 'adzone_id2': '10013' }, 'union_bijiago_uos': { 'adzone_id': '10015', 'adzone_id2': '10013' }, 'union_biyibi': { 'adzone_id': '10015', 'adzone_id2': '10013' } }; var randomNum = undefined; var renderTop = function renderTop(data) { if (!data || data.code !== 200 || !data.data) { setTimeout(function callee$1$0() { return regeneratorRuntime.async(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: context$2$0.next = 2; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('noOtherGiftMoney')); case 2: __webpack_require__("4e3c7d7dbd4a9cb66f77").init(false); case 3: case 'end': return context$2$0.stop(); } }, null, _this); }, 1000); __webpack_require__("11ab5558a00a98177ea6").init(); return; } __webpack_require__("4e3c7d7dbd4a9cb66f77").init(true); data = data.data; data.pid = adzoneIdObj[G.union]['adzone_id2']; getPageInfo(data, function (newData, url) { var html = __webpack_require__("1d233b6c5f191dda20fb"); var isShowPic = false; var tle = "点击领券"; if (isShowPic) { tle = ""; } $('.bjg-coupon-space').after(template.compile(html)({ price: data.coupon.coupon_money, url: __webpack_require__("4733a3dd803685ec596a").appendTbInfoForUrl(G.tb_server + '/extension/qrpage?union=' + G.union + '&dp_id=' + G.dp.dpId + '&tag=9_chrome&discount=' + data.coupon.coupon_money), tle: tle, isShowPic: isShowPic, picUrl: 'xx', isBottom: true, lang: G.lang })); var hasCoupon = false; $('#top_coupon_btn .coupon_detail img').css('visibility', 'hidden'); cnzz.log('淘宝优惠券底部二维码', '曝光'); __webpack_require__("03dd60018ce5ed1344a1")('coupon:show'); $('#top_coupon_btn').hover(function () { if (!hasCoupon) { QRReloader.init(newData, url, '#top_coupon_btn .coupon_detail > img', function (newData2) { hasCoupon = true; cnzz.log('淘宝优惠券底部二维码', '悬浮'); cnzz.log('track:topcoupon:' + G.from_device); util.tongjiLog('track:topcoupon:' + G.from_device); addEvent('click:topcoupon:' + G.from_device); }, false, false); } }); }); }; var renderTop2 = function renderTop2(data) { return; if (data instanceof Array) { return; } var html = __webpack_require__("1d233b6c5f191dda20fb"); $('.bjg-coupon-space').replace(template.compile(html)({ price: data.discount, url: data.click_url2 })); cnzz.log('track:topcoupon_2:' + G.from_device); util.tongjiLog('track:topcoupon_2:' + G.from_device); addEvent('click:topcoupon_2:' + G.from_device); }; var callbacks = undefined, hasreq = undefined, urls = undefined; var getPageInfo = __webpack_require__("047b30291b8b83e043ed"); var getQRcode = __webpack_require__("657bad1e7f3b602f7d70"); var addEvent = function addEvent(str) { var showQRcode = undefined; $('#top_coupon_btn_bjg').on('click', function () { cnzz.log(str); util.tongjiLog(str); }); $('.coupon-close-btn').on('click', function (e) { $('#top_coupon_btn_bjg').remove(); return false; }); $('#top_coupon_btn_bjg').on('mouseenter', function () { if (!showQRcode) { cnzz.log("track:coupon:qrcode:top"); util.tongjiLog("track:coupon:qrcode:top"); showQRcode = true; } }); }; var renderMini = function renderMini(data) { if (!data || data && data.code !== 200 || data && !data.data) { if (G.runminiCoupon2) { $(document).trigger('runminiCoupon2'); } else { G.runminiCoup = '1'; } return; } G.runminiCoup = '2'; data = data.data; data.pid = adzoneIdObj[G.union]['adzone_id']; getPageInfo(data, function (newData, url) { data.coupon.lastPrice = Number(G.dp.price - data.coupon.coupon_money).toFixed(2); var isShowPic = randomNum > -1 ? true : false; var str = ''; var classes = ''; var str2 = '\n <div class="mini-coup-detail">\n <img src="xx">\n <span style="line-height: initial">微信扫码领券</span>\n </div>\n '; // if (G.ss_name === 'priceDog') { // require('common/copyTkl').init() // } if (!isShowPic) { str = 'href="' + data.click_url2 + '" target="_blank"'; str2 = ''; classes = 'haslink'; } var tle = "点击领券"; if (G.lang === 'en') tle = 'Get'; if (isShowPic) { tle = ""; } var html2 = __webpack_require__("c539c7b7d45c43a79a69"); var dom = template.compile(html2)({ data: data, isShowPic: false, lang: G.lang, url: __webpack_require__("4733a3dd803685ec596a").appendTbInfoForUrl(G.tb_server + '/extension/qrpage?&union=' + G.union + '&dp_id=' + G.dp.dpId + '&tag=9_chrome&discount=' + data.coupon.coupon_money) }); //$(`#bjgext_minibar`).after($(dom)) $('#bjg-coupon-placeholder').replaceWith($(dom)); if (!G.showMinibar) { $('#bjgext_minibar').css('display', 'inline-block'); G.showMinibar = true; } $('.bjgext-mini-trend').addClass('hascoupon'); cnzz.log('track:minicoupon:' + G.from_device); util.tongjiLog('track:minicoupon:' + G.from_device); $('#coupon_box').on('click', function () { cnzz.log('click:minicoupon:' + G.from_device); util.tongjiLog('click:minicoupon:' + G.from_device); }); var showQRcode = undefined; $('.bjgext-toptabs .mini-coup-detail img').css('visibility', 'hidden'); cnzz.log('淘宝优惠券中间二维码', '曝光'); $('.bjgou-mini-coupon-bar').on('mouseenter', function () { if (!showQRcode) { QRReloader.init(newData, url, '.bjgou-coupon-box > img', function (newData2) {}, false, false); cnzz.log('淘宝优惠券中间二维码', '悬浮'); cnzz.log("track:coupon:qrcode:mini"); util.tongjiLog("track:coupon:qrcode:mini"); showQRcode = true; } }); }); }; var renderMini2 = function renderMini2(data) { if (data instanceof Array) { $(document).trigger('runyifenqian'); return; } data = { 'click_url': data.click_url2, 'coupon': { 'coupon_money': data.discount, 'lastPrice': data.couponPricePC } }; var views = template.compile(html)({ data: data }); $('#bjgext_minibar').append(views); if (!G.showMinibar) { $('#bjgext_minibar').css('display', 'inline-block'); G.showMinibar = true; } cnzz.log('track:topcoupon_2:' + G.from_device); util.tongjiLog('track:topcoupon_2:' + G.from_device); $('#coupon_box').on('click', function () { cnzz.log('click:minicoupon_2:' + G.from_device); util.tongjiLog('click:minicoupon_2:' + G.from_device); }); }; var getCouponInfo = function getCouponInfo(callback) { var dp_id = userData.get('dp_data').now.now_dp_id; var url = 'https://browser.bijiago.com/app/quanbtc?dpid=' + dp_id; request.get(url).done(function (data) { callback(data); }); }; var render2 = function render2(data) { if (data.length instanceof Array || !data.lt_short_link && !data.click_url) { $(document).trigger('runyifenqian'); return; } if (data.lt_short_link) data.click_url = data.lt_short_link; if (!data.couponPricePC) { data.couponPricePC = (Number(data.pcPrice) - Number(data.discount)).toFixed(2); } __webpack_require__("03dd60018ce5ed1344a1")('coupon:show'); renderMini2(data); renderTop2(data); }; module.exports.init = function (dom) { var pIdObj = __webpack_require__("0cfce96dbc80f0b4a6d0"); if (G.forbidCoupon) return; if ($('#BIJIA_HAS_BUILT').length > 0) return; var dp_id = G.dp.itemId; var adzoneItem = adzoneIdObj[G.union]; if (!adzoneItem) { adzoneItem = adzoneIdObj['union_bijiago']; } var adzone_id = adzoneItem['adzone_id']; randomNum = parseInt(Math.random() * 100); getCoupon.init(dp_id, adzone_id, renderMini); var adzone_id2 = adzoneItem['adzone_id2']; getCoupon.init(dp_id, adzone_id2, renderTop); // let pid = pIdObj[G.union] // require('common/getCouponNew').init(pid, "mini", renderMini) // require('common/getCouponNew').init(pid, "bottom", renderTop) }; module.exports.init2 = function () { getCouponInfo(render2); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "17706afea47931af2180": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-btn[data-v-255024c9] {\n position: relative;\n background: #48befe;\n color: white;\n}\n.gwd-btn .qrcode[data-v-255024c9] {\n display: none;\n position: absolute;\n top: 46px;\n left: -2px;\n width: 144px;\n height: 167px;\n background: #FFF7F7;\n border: 1px solid #FF2D53;\n z-index: 9;\n}\n.gwd-btn:hover .qrcode[data-v-255024c9] {\n display: flex;\n flex-direction: column;\n align-items: center;\n text-decoration: none!important;\n}\n", ""]); // exports /***/ }), /***/ "17ae469975cfbd731441": /***/ (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_CollectionItem_vue_vue_type_style_index_0_id_6af99812_scoped_true_lang_less___ = __webpack_require__("5850f79bb671f443b01f"); /* 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_CollectionItem_vue_vue_type_style_index_0_id_6af99812_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_CollectionItem_vue_vue_type_style_index_0_id_6af99812_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_CollectionItem_vue_vue_type_style_index_0_id_6af99812_scoped_true_lang_less____default.a); /***/ }), /***/ "17bd0a8188e0c1f7d7ba": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__PromotionPlan_vue_vue_type_template_id_24d41b24_scoped_true___ = __webpack_require__("f07a854b46071e85aa67"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__PromotionPlan_vue_vue_type_script_lang_js___ = __webpack_require__("314ddba7e03fe1fca042"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__PromotionPlan_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__PromotionPlan_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__PromotionPlan_vue_vue_type_style_index_0_id_24d41b24_lang_less_scoped_true___ = __webpack_require__("3c102bca554f27879709"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__PromotionPlan_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__PromotionPlan_vue_vue_type_template_id_24d41b24_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__PromotionPlan_vue_vue_type_template_id_24d41b24_scoped_true___["b" /* staticRenderFns */], false, null, "24d41b24", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('24d41b24')) { api.createRecord('24d41b24', component.options) } else { api.reload('24d41b24', component.options) } module.hot.accept("./PromotionPlan.vue?vue&type=template&id=24d41b24&scoped=true&", function () { api.rerender('24d41b24', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/PromotionPlan.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "17ec7380fd13e0e290b3": /***/ (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_JdItemList_vue_vue_type_script_lang_js___ = __webpack_require__("8671cd87262233d90022"); /* 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_JdItemList_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_JdItemList_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_JdItemList_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_JdItemList_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_JdItemList_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "19254b8c4bfcc18933d0": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MemberCouponBottomBjg_vue_vue_type_template_id_44c0e93e_scoped_true___ = __webpack_require__("e5e42eae3f3a4433706b"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__MemberCouponBottomBjg_vue_vue_type_script_lang_js___ = __webpack_require__("84636dd97cee8bc936cf"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__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_1__MemberCouponBottomBjg_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__MemberCouponBottomBjg_vue_vue_type_style_index_0_id_44c0e93e_scoped_true_lang_less___ = __webpack_require__("beeed89f0363d0d58668"); /* 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__MemberCouponBottomBjg_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__MemberCouponBottomBjg_vue_vue_type_template_id_44c0e93e_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__MemberCouponBottomBjg_vue_vue_type_template_id_44c0e93e_scoped_true___["b" /* staticRenderFns */], false, null, "44c0e93e", 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('44c0e93e')) { api.createRecord('44c0e93e', component.options) } else { api.reload('44c0e93e', component.options) } module.hot.accept("./MemberCouponBottomBjg.vue?vue&type=template&id=44c0e93e&scoped=true&", function () { api.rerender('44c0e93e', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/bjgou/components/MemberCouponBottomBjg.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "199240c49d709fb40079": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("7679fe95fd073a45096d"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("d43299c4", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./PriceProtectPageButton.vue?vue&type=style&index=1&id=41b15ea6&scoped=true&lang=less&", function() { var newContent = require("!!../../../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!./PriceProtectPageButton.vue?vue&type=style&index=1&id=41b15ea6&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "1a0cda2f74042332262b": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__JdRankList_vue_vue_type_template_id_a48d90ba_scoped_true___ = __webpack_require__("fc02c8246c40af764545"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__JdRankList_vue_vue_type_script_lang_js___ = __webpack_require__("93201dafc10fe2ec927e"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__JdRankList_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__JdRankList_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__JdRankList_vue_vue_type_style_index_0_id_a48d90ba_scoped_true_lang_less___ = __webpack_require__("0e53a0c44eeffdc5af61"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__JdRankList_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__JdRankList_vue_vue_type_template_id_a48d90ba_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__JdRankList_vue_vue_type_template_id_a48d90ba_scoped_true___["b" /* staticRenderFns */], false, null, "a48d90ba", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('a48d90ba')) { api.createRecord('a48d90ba', component.options) } else { api.reload('a48d90ba', component.options) } module.hot.accept("./JdRankList.vue?vue&type=template&id=a48d90ba&scoped=true&", function () { api.rerender('a48d90ba', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/JdRankList.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "1ace697eee9e6014c222": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("eb976f750ad17796d6eb"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("5fb9de2c", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./PriceDogMiniBar.vue?vue&type=style&index=0&id=72651e53&scoped=true&lang=less&", function() { var newContent = require("!!../../../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!./PriceDogMiniBar.vue?vue&type=style&index=0&id=72651e53&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "1ae4ef2ead46a154a4a2": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {// // // Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['href', 'target'], methods: { onClick: function onClick() { if (G.site === 'suning') { if (this.target === '_blank') { window.open(this.href); } else { location.href = this.href; } } } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "1b62f754a85a57168a27": /***/ (function(module, exports, __webpack_require__) { "use strict"; var browser = { 'url': '', 'utype': '' }; var chromeType = navigator.userAgent.toLowerCase(); module.exports.getBrowser = function () { if ("ActiveXObject" in window) { //mozilla/5.0 (compatible; msie 10.0; windows nt 6.1; wow64; trident/6.0; slcc2; .net clr 2.0.50727; .net clr 3.5.30729; .net clr 3.0.30729; .net4.0c; infopath.3; .net4.0e) browser.utype = "ie"; browser.utitle = "IE"; browser.background = "-401px -81px"; } else if (chromeType.indexOf('firefox') > -1) { //mozilla/5.0 (windows nt 6.1; wow64; rv:42.0) gecko/20100101 firefox/42.0 browser.utype = "firefox"; browser.utitle = "火狐"; browser.background = "-401px -44px"; } else if (chromeType.indexOf('opera') > -1 || chromeType.indexOf('opr') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/46.0.2490.86 safari/537.36 opr/33.0.1990.115 browser.utype = "opera"; browser.utitle = "Opera"; browser.background = "-2px -120px"; } else if (chromeType.indexOf('safari') > -1 && chromeType.indexOf('chrome') == -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/534.57.2 (khtml, like gecko) version/5.1.7 safari/534.57.2 browser.utype = "safari"; browser.utitle = "Safari"; browser.background = "-301px -44px"; } else if (chromeType.indexOf('chrome') > -1) { var check360 = checkChromeWeight(); if (chromeType.indexOf('qqbrowser') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/45.0.2454.87 safari/537.36 qqbrowser/9.2.5542.400 browser.utype = "qq"; browser.utitle = "QQ"; browser.background = "-104px -81px"; } else if (chromeType.indexOf('maxthon') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) maxthon/4.4.8.1000 chrome/30.0.1599.101 safari/537.36 browser.utype = "maxthon"; browser.utitle = "傲游"; browser.background = "-401px -4px"; } else if (chromeType.indexOf('bidubrowser') > -1) { //mozilla/5.0 (compatible; msie 10.0; windows nt 6.1; wow64; trident/6.0; bidubrowser 8.1) browser.utype = 'baidu'; browser.utitle = '百度'; browser.background = "-104px -120px"; } else if (chromeType.indexOf('ubrowser') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/44.0.2403.157 ubrowser/5.5.6743.207 safari/537.36 browser.utype = 'uc'; browser.utitle = "UC"; browser.background = "-2px -44px"; } else if (chromeType.indexOf('lbbrowser') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/42.0.2311.154 safari/537.36 lbbrowser browser.utype = 'liebao'; browser.utitle = "猎豹安全"; browser.background = "-301px -4px"; } else if (chromeType.indexOf('taobrowser') > -1) { //Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.11 TaoBrowser/3.5 Safari/536.11 browser.utype = 'taobao'; browser.utitle = "淘宝"; browser.background = "-104px -44px"; } else if (chromeType.indexOf('2345explorer') > -1) { //Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36 2345Explorer/6.4.0.10356 browser.utype = '2345'; browser.utitle = "2345王牌"; browser.background = "-301px -81px"; } else if (chromeType.indexOf('2345chrome') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/39.0.2171.99 safari/537.36 2345chrome v3.0.0.9739 browser.utype = '2345jiasu'; browser.utitle = "2345加速"; } else if (chromeType.indexOf('coolnovo') > -1) { //Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36 CoolNovo/2.0.9.20 browser.utype = 'fengshu'; browser.utitle = "枫树"; browser.background = "-2px -81px"; } else if (chromeType.indexOf('greenbrowser') > -1) { //Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; InfoPath.3; .NET4.0E; GreenBrowser) browser.utype = 'gb'; browser.utitle = "GB"; browser.background = "-203px -81px"; } else if (check360 === "Chrome") { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/46.0.2490.80 safari/537.36 browser.utype = 'chrome'; browser.utitle = 'Chrome'; browser.background = "-2px -4px"; } else if (check360 === "360SE") { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/31.0.1650.63 safari/537.36 browser.utype = '360se'; browser.utitle = '360安全'; browser.background = "-203px -4px"; } else if (check360 === "360EE") { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/45.0.2454.101 safari/537.36 browser.utype = '360se'; browser.utitle = '360极速 '; browser.background = "-104px -4px"; } else if (chromeType.indexOf('se') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/38.0.2125.122 safari/537.36 se 2.x metasr 1.0 browser.utype = 'sogou'; browser.utitle = "搜狗"; browser.background = "-401px -120px"; } else { browser.utype = 'chrome'; browser.utitle = 'Chromium内核'; } } else { browser.utype = 'chrome'; browser.utitle = '未知浏览器'; } return browser; }; var chrome_weight = { "result": "Chrome", "details": { "Chrome": 5, "Chromium": 0, "_360SE": 0, "_360EE": 0 }, "sorted": ["Chrome", "360SE", "360EE", "Chromium"], "exec": function exec(results) { var details = { "Chrome": 5, "Chromium": 0, "_360SE": 0, "_360EE": 0 }; var _ua = window.navigator.userAgent; if (/Chrome\/([\d.])+\sSafari\/([\d.])+$/.test(_ua)) { if (window.navigator.platform == "Win32") { if (!window.clientInformation.languages) { details._360SE += 8; } if (/zh/i.test(navigator.language)) { details._360SE += 3; details._360EE += 3; } if (window.clientInformation.languages) { var lang_len = window.clientInformation.languages.length; if (lang_len >= 3) { details.Chrome += 10; details.Chromium += 6; } else if (lang_len == 2) { details.Chrome += 3; details.Chromium += 6; details._360EE += 6; } else if (lang_len == 1) { details.Chrome += 4; details.Chromium += 4; } } for (var i in window.navigator.plugins) { if (window.navigator.plugins[i].filename == "np-mswmp.dll") { details._360SE += 20; details._360EE += 20; } } if (Object.keys(window.chrome.webstore).length <= 1) { details._360SE += 7; } else if (Object.keys(window.chrome.webstore).length == 2) { details._360SE += 4; details.Chromium += 3; } if (window.navigator.plugins.length >= 30) { details._360EE += 7; details._360SE += 7; details.Chrome += 7; } else if (window.navigator.plugins.length < 30 && window.navigator.plugins.length > 10) { details._360EE += 3; details._360SE += 3; details.Chrome += 3; } else if (window.navigator.plugins.length <= 10) { details.Chromium += 6; } } else { details._360SE -= 50; details._360EE -= 50; if (/Linux/i.test(window.navigator.userAgent)) { details.Chromium += 5; } } var found = 0; var respdf = undefined; for (var i in window.navigator.plugins) { if (!!(respdf = /^(.+) PDF Viewer$/.exec(window.navigator.plugins[i].name))) { if (respdf[1] == "Chrome") { details.Chrome += 6; details._360SE += 6; found = 1; break; } if (respdf[1] == "Chromium") { details.Chromium += 10; details._360EE += 6; found = 1; break; } } } if (!found) { details.Chromium += 9; } } var chrome_result = new Object(); chrome_result['Chrome'] = details.Chrome; chrome_result['Chromium'] = details.Chromium; chrome_result['360SE'] = details._360SE; chrome_result['360EE'] = details._360EE; var sortable = []; for (var value in chrome_result) { sortable.push([value, chrome_result[value]]); }sortable.sort(function (a, b) { return b[1] - a[1]; }); this.sorted = sortable; this.details = details; this.result = sortable[0][0]; if (results == "result") { return sortable[0][0]; } else if (results == "details") { return chrome_result; } else if (results == "sorted") { return sortable; } } }; var checkChromeWeight = function checkChromeWeight() { var _ua = window.navigator.userAgent; try { chrome_weight.exec(); if (/Chrome\/([\d.])+\sSafari\/([\d.])+$/.test(_ua)) { return chrome_weight.result; } else {} } catch (e) { return; } }; module.exports.getChromeVersion = function () { var raw = navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./); return raw ? parseInt(raw[2], 10) : false; }; /***/ }), /***/ "1bd86c5b4b04f828f62b": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); var checkedImg = __webpack_require__("10d160b8a5b09bdab47f"); var unCheckedImg = __webpack_require__("7681477c3f8d4fe85569"); var client = __webpack_require__("660610db8f6e89357da9"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); exports['default'] = { props: ['login', 'center'], data: function data() { return { checked: true }; }, computed: { img: function img() { return this.checked ? checkedImg : unCheckedImg; } }, methods: { goIntro: function goIntro() { window.open('https://www.bijiago.com/priceProtectIntro/'); }, submit: function submit(e) { var _this = this; e.preventDefault(); if (!this.checked) return; cnzz.log('价格保护' + (this.center ? '中心按钮' : ''), this.login ? '用户同意' : '用户登录'); client.get('/setStorage', { userAgreed: true, enabled: true }).then(function () { if (_this.login) { _this.$emit('userAgreed'); return; } __webpack_require__("d098bd5eb9f0b2883cf6").goLogin(true); //location.href = `https://i.bijiago.com/UserUnion/Authorize?utype=2&app_platform=ext&_referer=${encodeURIComponent(location.href + '#forceOpen')}` }); } } }; module.exports = exports['default']; /***/ }), /***/ "1cd251b60b93291ea3a2": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, regeneratorRuntime, G, Vue) { var _this = this; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var template = __webpack_require__("274e32dfd54a6b0d18a9"); var productInfo = __webpack_require__("4733a3dd803685ec596a"); var request = __webpack_require__("91f250ebeb8d5987491c"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var taobao = __webpack_require__("67d4adf49747587945f1"); var option = __webpack_require__("97bc96d348c614d5d08b"); var specialFilter = __webpack_require__("ce5673fceec6522bf6f5"); var trend = __webpack_require__("a4a5a2685411df91fdf3"); var minibar = __webpack_require__("98cef5500d52270259d8"); var promo = __webpack_require__("f8194b2fecbc41345733"); var guess = __webpack_require__("687eed05e44d3030f0b0"); var taotaos = __webpack_require__("3afb6d547b10fe89cef9"); var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var util = __webpack_require__("d6aec8444c650eeab5f2"); var amazonGlobal = __webpack_require__("5bf21ec3a7ebfb912cb2"); var yijianhaitao = __webpack_require__("6ea0aea2a3877232ab5c"); var store = __webpack_require__("454ab82d0874a7273edd"); var bgClient = __webpack_require__("660610db8f6e89357da9"); var extConsole = __webpack_require__("316f9c352c6202560d16"); __webpack_require__("fcdd97987c010877a5a5"); __webpack_require__("3337a9d8a77a6d6830f9"); var _require = __webpack_require__("e1cde15dbbb101723ce9"); var CollectionBar = _require['default']; var resizeTime = undefined; var globalProduct = {}; var times = 0; var retry = function retry() { if (times > 5) return; times++; if ($('#container_buygroup').length > 0) { var h = $('#container_buygroup').height(); $('#bjgext_mainbar').css('bottom', h + 'px'); return; } setTimeout(function () { retry(); }, 1000); }; var renderBar = function renderBar() { var views, mainClass, showAd, showJHS, noCoupon, jdadUrl, url, redpack, configUrl, config, c, t, jdadImg, lang, langCfg; return regeneratorRuntime.async(function renderBar$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: extConsole.log('renderbar called'); if (G.from_device === 'biyibi') { __webpack_require__("0fcac644ebc6e8959ae6"); } views = __webpack_require__("06b387cb09ca750c8b68"); mainClass = ''; if (G.main_fold === '0') { mainClass = 'mainbar-fold'; } // 工具条上展示小banner AD 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; } jdadUrl = ''; if (!showAd) { context$1$0.next = 17; break; } url = 'https://cdn.bijiago.com/js/configs/jdRedpack-bijiago.json'; if (G.from_device === 'biyibi') { url = 'https://cdn.bijiago.com/js/configs/jdRedpack-biyibi.json'; } context$1$0.next = 15; return regeneratorRuntime.awrap($.getJSON(url)); case 15: redpack = context$1$0.sent; if (redpack.url) { jdadUrl = redpack.url; } case 17: configUrl = 'https://cdn.bijiago.com/js/configs/activity-bijiago-online.json'; if (G.from_device === 'biyibi') { configUrl = 'https://cdn.bijiago.com/js/configs/activity-biyibi.json'; } context$1$0.next = 21; return regeneratorRuntime.awrap(request.rawGet(configUrl)); 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.bottom.link; jdadImg = c.bottom.img; } if (G.site === 'vipshop' && t < new Date('2023-06-21T10:00:00') && t > new Date('2023-05-23T20:00:00')) { showAd = true; jdadUrl = 'https://tb.bijiago.com/static_page/activity_scan/vip.html'; jdadImg = 'https://cdn.bijiago.com/images/extensions/activity/vipBottom.png'; } if (G.ss_name === 'priceDog') { showAd = false; } lang = __webpack_require__("cf094fe1ab460bb584a8"); langCfg = __webpack_require__("782aa4484d980c52f14b"); $('body').append(template.compile(views)({ setting: G.server + '/brwext/setting_feedback?set=1', feedback: G.server + '/brwext/setting_feedback?fed=1', mainClass: mainClass, showJHS: showJHS, noCoupon: noCoupon, showAd: showAd, jdadUrl: jdadUrl, jdadImg: jdadImg, feedbackText: lang.getString(langCfg, 'feedback') })); setTimeout(function () { __webpack_require__("b9180f33a4c9c859bc09").init(); }, 0); if (G.lang === 'en') { $('.bjgext-feedback').css('width', '120px'); } if (G.ss_name === 'priceDog') { $('.bd-head-icon').attr('title', 'PriceDog'); // new Vue({ // el: '#pricedog-setting', // store, // render: h => h(require('../components/LangSetting.vue').default) // }) } // if (G.site === 'lenovo') { // retry() // } addFootEvent(); if (window.bjgAutoPriceProtect) { (function () { var PriceProtectBar = __webpack_require__("380f40de869e4794976c")['default']; new Vue({ el: '#bjgou-price-protect', store: store, render: function render(h) { return h(PriceProtectBar); } }); if (location.hostname === 'pcsitepp-fm.jd.com') { (function () { $('.jb-tab ul').after('<div id="bjgou-priceprotect-button"></div>'); var PriceProtectPageButton = __webpack_require__("1e1a054acedf52d3faf0")['default']; new Vue({ el: '#bjgou-priceprotect-button', store: store, render: function render(h) { return h(PriceProtectPageButton); } }); })(); } })(); } if (G.allowBackgroundRequest) { bgClient.get('/bgVer').then(function (res) { G.bgVer = parseFloat(res); if (parseFloat(res) > 1 && G.ss_name !== 'priceDog') { (function () { if (G.from_device !== 'biyibi') { (function () { var CollectionBar = __webpack_require__("e1cde15dbbb101723ce9")['default']; new Vue({ el: '#bjgou-collection', store: store, render: function render(h) { return h(CollectionBar); } }); })(); } var HistoryBar = __webpack_require__("93f5ae02e9159c27f690")['default']; new Vue({ el: '#bjgou-history', store: store, render: function render(h) { return h(HistoryBar); } }); })(); } }); } return context$1$0.abrupt('return', new Promise(function (resolve) { return resolve(); })); case 38: case 'end': return context$1$0.stop(); } }, null, _this); }; var addFootEvent = function addFootEvent() { $('.bjgext-closeBtn').on('click', function () { if (G.main_fold === '1') { G.main_fold = '0'; $('#bjgext_mainbar').addClass('mainbar-fold'); } else { G.main_fold = '1'; $('#bjgext_mainbar').removeClass('mainbar-fold'); } util.settings('main_fold', G.main_fold); }); $('#bjgext_mainbar').on('click', function (e) { var href = undefined; if (e.target.nodeName === 'A') { href = e.target.href; } else if (e.target.parentNode.nodeName === 'A') { href = e.target.parentNode.href; } if (href && href.indexOf('javascript:') === -1) { util.tongji('4', 'click', href); } }); $(window).resize(function () { clearTimeout(resizeTime); resizeTime = setTimeout(function () { option.resizeAutoWidth(); trend.resizeSetLeft(); }, 1000); }); }; var renderBarData = function renderBarData(data) { if (G.site === 'steampowered') { return; } // if (require('common/haitao').isHaitao()) { // return // } setTimeout(function () { __webpack_require__("abb2c55465e8bd1d8753").init(data.now.dp_id); }, 0); /* b2c b2cfuzzy*/ if (G.aliSite) return; var b2c; if (data.b2c && data.b2c.store) { b2c = data.b2c; } else if (data.b2c_fuzzy) { b2c = exchangeDataFormat(data.b2c_fuzzy); } if (!b2c) return; var newstore = []; for (var i = 0; i < b2c.store.length; i++) { var item = b2c.store[i].product[0]; var site_id = item.dp_id.match(/\d+-(\d+)$/) && item.dp_id.match(/\d+-(\d+)$/)[1]; newstore.push(b2c.store[i]); } __webpack_require__("316f9c352c6202560d16").log('mainbar flex d'); $('#bjgext_mainbar').css('display', 'flex'); G.showMainbar = true; util.tongji('4', 'show'); var num = option.calCompare() || newstore.length; renderItemProduct(newstore.slice(0, num)); option.autoWidth(); }; //把模糊匹配的b2c转化成正规的b2c商城内容 var exchangeDataFormat = function exchangeDataFormat(b2cFuzzy) { var b2c = {}; var fuzzy = b2cFuzzy.product; fuzzy = specialFilter(fuzzy); for (var fuzzyIndex in fuzzy) { if (fuzzy[fuzzyIndex].more == '1') { var product = fuzzy[fuzzyIndex].all; for (var productIndex in product) { var site_name = product[productIndex].site_name; if (b2c[site_name] == null) { b2c[site_name] = []; } b2c[site_name].push(product[productIndex]); } } else { var site_name = fuzzy[fuzzyIndex].site_name; if (b2c[site_name] == null) { b2c[site_name] = []; } b2c[site_name].push(fuzzy[fuzzyIndex]); } } var returnB2c = { 'store': [] }; for (var b2cIndex in b2c) { if (typeof b2c[b2cIndex][0].fee != 'undefined') { var store = { 'product': b2c[b2cIndex], 'fee': b2c[b2cIndex][0].fee }; returnB2c.store.push(store); } } return returnB2c; }; var renderItemProduct = function renderItemProduct(data) { var productArr = []; for (var i = 0; i < data.length; i++) { if (Number(data[i].product[0].price)) { data[i].product[0].price = parseFloat(data[i].product[0].price).toFixed(2); data[i].product[0].currency = __webpack_require__("9bf6d059e9a265559f0c").getMoneyInfo(data[i].product[0]['site_name'])[0]; productArr.push(data[i].product[0]); globalProduct[data[i].product[0].dp_id] = data[i].product; } } var view = __webpack_require__("a7669790436ef86b8cec"); var dom = template.compile(view)({ data: productArr, classname: 'bjgext-item-dp' }); $('.bjgext-product-compare').append('<div id="bjg-space" style="flex: 1"></div>'); $('.bjgext-product-compare').append(dom).css('display', 'flex'); var start = Date.now(), counter = 0; var t = setInterval(function () { while ($('#bjg-space').width() > 0) { var len = $('.bjgext-item-dp').length; $('.bjgext-item-dp')[len - 1].remove(); } counter++; if (Date.now() - start > 1000) { clearInterval(t); __webpack_require__("316f9c352c6202560d16").log('run ', counter); } }, 30); addEvent(); }; var renderDetail = function renderDetail(dom, id) { var pages, width, itemDetail, len, itemPageInfo, itemPageNum, html; return regeneratorRuntime.async(function renderDetail$(context$1$0) { var _this2 = this; while (1) switch (context$1$0.prev = context$1$0.next) { case 0: console.log('renderDetail called'); pages = 0; width = $(window).width(); itemDetail = globalProduct[id]; len = itemDetail.length; itemPageInfo = option.calDetailNum(); itemPageNum = itemPageInfo.num; if (len > itemPageNum) { pages = Math.ceil(len / itemPageNum); } if (pages <= 1) width = 220 * len; html = __webpack_require__("da2ee592f69bf96c6e99"); context$1$0.next = 12; return regeneratorRuntime.awrap(Promise.race([Promise.all(itemDetail.map(function (item) { return new Promise(function callee$2$0(resolve) { var pidConfig, coupon, m; return regeneratorRuntime.async(function callee$2$0$(context$3$0) { while (1) switch (context$3$0.prev = context$3$0.next) { case 0: if (!(item.dp_id.indexOf('-83') > -1 || item.dp_id.indexOf('-123') > -1)) { context$3$0.next = 9; break; } pidConfig = __webpack_require__("0cfce96dbc80f0b4a6d0"); context$3$0.next = 4; return regeneratorRuntime.awrap(__webpack_require__("6c0a23e5b52046830607").initWithDpAsync(item.dp_id, pidConfig[G.union], 'compare')); case 4: coupon = context$3$0.sent; if (coupon && coupon.data) { m = coupon.data.coupon.coupon_money; item.coupon = m; } resolve(); context$3$0.next = 10; break; case 9: resolve(); case 10: case 'end': return context$3$0.stop(); } }, null, _this2); }); })), __webpack_require__("3e983ecbff4e1a29654c").sleep(500)])); case 12: dom.append(template.compile(html)({ data: itemDetail, 'per': itemPageNum, 'loadimg': G.loadImg, 'b_width': width, pages: pages })); if (len > itemPageNum) { dom.find('.bjgext-product-box').width(itemPageInfo.width); turnpageEvent(dom); option.loadImage(0, itemPageNum, dom.find('.bjgext-product-box')); } else { option.loadImage(0, len, dom.find('.bjgext-product-box')); option.setSimplePagePos(len, dom); } __webpack_require__("ebdf9f6bdfb6e4994232").init(); case 15: case 'end': return context$1$0.stop(); } }, null, _this); }; var turnpageEvent = function turnpageEvent(dom) { dom.find('.bjgext-turnleft .turnpage-btn').on('click', function () { option.changePage(-1, this); }); dom.find('.bjgext-turnright .turnpage-btn').on('click', function () { option.changePage(1, this); }); }; var addEvent = function addEvent() { var time1; $('.bjgext-item-dp').on('mouseenter', function () { clearTimeout(time1); $('.bjgext-product-detail').hide(); var dom = $(this); var detail = dom.find('.bjgext-product-detail'); if (detail.length > 0) { detail.show(); } else { var id = dom.attr('data-id'); if (id) { renderDetail(dom, id); } } }); $('.bjgext-item-dp').on('mouseleave', function () { var that = this; time1 = setTimeout(function () { $(that).find('.bjgext-product-detail').hide(); }, 100); }); }; var editData = function editData(style, data) { // 针对b2c数据的提前处理 if (G.aliSite) return data; if (data.b2c instanceof Array) { data.b2c = data.b2c.filter(function (x) { return x.price; }); } if (data.b2c && data.b2c.length !== 0) { __webpack_require__("03dd60018ce5ed1344a1")('b2ccompare:show'); if (style === 'top') { var storeLen = data.b2c.store.length; for (var i = storeLen - 1; i >= 0; i--) { if (data.b2c.store[i].is_third && data.b2c.store[i].shop_name) { data.b2c.store[i].site_name2 = data.b2c.store[i].site_name; data.b2c.store[i].site_name = data.b2c.store[i].site_name.replace("第三方", "") + '-' + data.b2c.store[i].shop_name; } data.b2c.store[i].price = (Number(data.b2c.store[i].price) / 100).toFixed(2); data.b2c.store[i].price2 = data.b2c.store[i].price; if (!data.b2c.store[i].title || !data.b2c.store[i].img_url) { data.b2c.store.splice(i, 1); } } data.b2c.store2 = data.b2c.store.slice(0, 6); var productLen = data.b2c.product.length; for (var i = productLen - 1; i >= 0; i--) { if (data.b2c.product[i].is_third && data.b2c.product[i].shop_name) { data.b2c.product[i].site_name2 = data.b2c.product[i].site_name; data.b2c.product[i].site_name = data.b2c.product[i].site_name.replace("第三方", "") + '-' + data.b2c.product[i].shop_name; } var pitem = data.b2c.product[i]; if (pitem.promotions && pitem.fee && pitem.fee.indexOf('缺货') === -1) { pitem.promo2 = []; pitem.coupon2 = []; pitem.yushou2 = []; for (var k = 0; k < pitem.promotions.length; k++) { if (pitem.promotions[k].type === "promo") { if (pitem.promotions[k].tag === '预售') { pitem.yushou2.push(pitem.promotions[k].text); } else { pitem.promo2.push(pitem.promotions[k].text); } } else { pitem.coupon2.push(pitem.promotions[k].text); } } if (pitem.promo2.length === 0) pitem.promo2 = null; if (pitem.coupon2.length === 0) pitem.coupon2 = null; if (pitem.yushou2.length === 0) pitem.yushou2 = null; } data.b2c.product[i].price = (Number(data.b2c.product[i].price) / 100).toFixed(2); if (!data.b2c.product[i].title || !data.b2c.product[i].img_url) { data.b2c.product.splice(i, 1); } } data.b2c.min_price = (Number(data.b2c.min_price) / 100).toFixed(2); } else { var storeLen = data.b2c.store.length; for (var i = storeLen - 1; i >= 0; i--) { if (!data.b2c.store[i].product) continue; var productiLen = data.b2c.store[i].product.length; for (var j = productiLen - 1; j >= 0; j--) { if (data.b2c.store[i].product[j].is_third && data.b2c.store[i].product[j].shop_name) { data.b2c.store[i].product[j].site_name2 = data.b2c.store[i].product[j].site_name; data.b2c.store[i].product[j].site_name = data.b2c.store[i].product[j].site_name.replace("第三方", "") + '-' + data.b2c.store[i].product[j].shop_name; } data.b2c.store[i].product[j].price = (Number(data.b2c.store[i].product[j].price) / 100).toFixed(2); data.b2c.store[i].product[j].l_price = (Number(data.b2c.store[i].product[j].l_price) / 100).toFixed(2); var pitem = data.b2c.store[i].product[j]; if (pitem.promotions && pitem.fee && pitem.fee.indexOf('缺货') === -1) { pitem.promo2 = []; pitem.coupon2 = []; pitem.yushou2 = []; for (var k = 0; k < pitem.promotions.length; k++) { if (pitem.promotions[k].type === "promo") { if (pitem.promotions[k].tag === '预售') { pitem.yushou2.push(pitem.promotions[k].text); } else { pitem.promo2.push(pitem.promotions[k].text); } } else { pitem.coupon2.push(pitem.promotions[k].text); } } if (pitem.promo2.length === 0) pitem.promo2 = null; if (pitem.coupon2.length === 0) pitem.coupon2 = null; if (pitem.yushou2.length === 0) pitem.yushou2 = null; } if (!data.b2c.store[i].product[j].title || !data.b2c.store[i].product[j].img_url) { data.b2c.store[i].product.splice(j, 1); } } } } } else if (data.b2c_fuzzy && data.b2c_fuzzy.length !== 0) { __webpack_require__("03dd60018ce5ed1344a1")('b2ccompare:show'); var productLen = data.b2c_fuzzy.product.length; for (var i = productLen - 1; i >= 0; i--) { if (data.b2c_fuzzy.product[i].is_third && data.b2c_fuzzy.product[i].shop_name) { data.b2c_fuzzy.product[i].site_name2 = data.b2c_fuzzy.product[i].site_name; data.b2c_fuzzy.product[i].site_name = data.b2c_fuzzy.product[i].site_name.replace("第三方", "") + '-' + data.b2c_fuzzy.product[i].shop_name; } var pitem = data.b2c_fuzzy.product[i]; if (pitem.promotions && pitem.fee && pitem.fee.indexOf('缺货') === -1) { pitem.promo2 = []; pitem.coupon2 = []; pitem.yushou2 = []; for (var k = 0; k < pitem.promotions.length; k++) { if (pitem.promotions[k].type === "promo") { if (pitem.promotions[k].tag === '预售') { pitem.yushou2.push(pitem.promotions[k].text); } else { pitem.promo2.push(pitem.promotions[k].text); } } else { pitem.coupon2.push(pitem.promotions[k].text); } } if (pitem.promo2.length === 0) pitem.promo2 = null; if (pitem.coupon2.length === 0) pitem.coupon2 = null; if (pitem.yushou2.length === 0) pitem.yushou2 = null; } data.b2c_fuzzy.product[i].price = (Number(data.b2c_fuzzy.product[i].price) / 100).toFixed(2); data.b2c_fuzzy.product[i].img_url2 = data.b2c_fuzzy.product[i].img_url && data.b2c_fuzzy.product[i].img_url.replace('s100x100', 's140x140'); if (!data.b2c_fuzzy.product[i].title || !data.b2c_fuzzy.product[i].img_url) { data.b2c_fuzzy.product.splice(i, 1); } } data.b2c_fuzzy.min_price = (Number(data.b2c_fuzzy.min_price) / 100).toFixed(2); } return data; }; var priceFormat = function priceFormat(data) { if (!(data.b2c instanceof Array) && data.b2c.store) { for (var i = 0; i < data.b2c.store.length; i++) { var item = data.b2c.store[i]; item.min_price = util.formatPrice(data.b2c.min_price); for (var j = 0; j < item.product.length; j++) { var itemJ = item.product[j]; itemJ.price = util.formatPrice(itemJ.price); } } } else if (data.b2c_fuzzy && data.b2c_fuzzy.product) { data.b2c_fuzzy.min_price = util.formatPrice(data.b2c_fuzzy.min_price); for (var i = 0; i < data.b2c_fuzzy.product.length; i++) { data.b2c_fuzzy.product[i].price = util.formatPrice(data.b2c_fuzzy.product[i].price); } } }; var getProductInfo = function getProductInfo(callback) { var dp = G.dp; var href = G.dp.url || window.location.href; var url = encodeURIComponent(G.dp.url); var name = encodeURIComponent(G.dp.name); var keyword = encodeURIComponent(G.dp.keyword); var skeyword = encodeURIComponent(G.dp.skeyword); var cat_id = typeof G.dp.cat_id != 'undefined' ? G.dp.cat_id : ''; var pic = typeof G.dp.pic != 'undefined' ? encodeURIComponent(G.dp.pic) : ''; var cat_name = encodeURIComponent(G.dp.cat_name); var brand_string = encodeURIComponent(G.dp.brand_string); //let url = `${G.server}/brwext/product?union=${G.union}&url=${encodeURIComponent(href)}&site=${dp.site}&isbn=${dp.isbn}&name=${encodeURIComponent(dp.name)}&keyword=${encodeURIComponent(dp.keyword)}&id=${dp.id}&price=${dp.price}&cat_id=${dp.cat_id}&userid=${dp.userid}&shop_name=${dp.userid}&cat_name=${encodeURIComponent(dp.cat_name)}&brand_string=${encodeURIComponent(dp.brand_string)}`; var dp_interfavce_url = G.server + '/brwext/dp_query_latest?permanent_id=' + G.p_id + '&union=' + G.union + '&url=' + url + '&site=' + G.dp.site + '&isbn=' + G.dp.isbn + '&name=' + name + '&keyword=' + keyword + '&skeyword=' + skeyword + '&id=' + G.dp.id + '&price=' + G.dp.price + '&stock=' + G.dp.inventory + '&province_id=' + G.province_id + '&subsite_id=' + G.subsite_id + '&cat_id=' + cat_id + '&pic=' + pic + '&userid=' + G.dp.userid + '&shop_name=' + G.dp.shop_name + '&shop_addres=' + G.dp.shop_addres + '&cat_name=' + cat_name + '&brand_string=' + brand_string + '&style=bottom'; var other_info_url = G.server + '/brwext/prepare?permanent_id=' + G.p_id + '&union=' + G.union + '&url=' + url + '&site=' + G.dp.site + '&isbn=' + G.dp.isbn + '&name=' + name + '&keyword=' + keyword + '&skeyword=' + skeyword + '&id=' + G.dp.id + '&price=' + G.dp.price + '&stock=' + G.dp.inventory + '&province_id=' + G.province_id + '&subsite_id=' + G.subsite_id + '&cat_id=' + cat_id + '&pic=' + pic + '&userid=' + G.dp.userid + '&shop_name=' + G.dp.shop_name + '&shop_addres=' + G.dp.shop_addres + '&cat_name=' + cat_name + '&brand_string=' + brand_string; // request.get(url).done(data => { // priceFormat(data) // G.save_dp_query = data; // userData.set('dp_data', data) // callback(data) // }) if (location.href === 'https://pcsitepp-fm.jd.com/' || location.href === 'https://pcsitepp-fm.jd.com/#forceOpen') { renderBarData({ now: { dp_id: '0-3' }, b2c: { store: [] } }); } Promise.all([request.get(dp_interfavce_url), request.get(other_info_url)]).then(function (res) { var data = _extends({}, res[0], res[1]); G.dp.dpId = data.dp.dp_id; G.exact_arr = data.exact_arr; editData('bottom', data); priceFormat(data); G.save_dp_query = data; userData.set('dp_data', data); callback(data); }); }; var renderSpecial = function renderSpecial(data) { taobao.init2(data.product); userData.set('dp_query', data); minibar.init(); guess.init(); if (data.price.list.length > 0) trend.init2(data.price.list[0]); }; var saveHistory = function saveHistory(data) { var dp_id = data.dp_id; __webpack_require__("9c38beef5ff283e15bd2").setMet('GwdDpIdGot', data.dp_id); if (dp_id.indexOf('-83') && location.host.indexOf('taobao') > -1) { dp_id = dp_id.split('-')[0] + "-123"; } var price = data.price || G.dp.price; communicate.trigger({ 'type': 'saveHistory', 'dp_id': dp_id, 'price': price }); }; module.exports.init = function callee$0$0() { var installSource; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: extConsole.log('product init'); if (!G.allowBackgroundRequest) { context$1$0.next = 6; break; } context$1$0.next = 4; return regeneratorRuntime.awrap(bgClient.get('/getStorage', { key: 'install_source' })); case 4: installSource = context$1$0.sent; if (installSource) { G.union = 'union_bijiago_' + installSource; } case 6: context$1$0.next = 8; return regeneratorRuntime.awrap(renderBar()); case 8: __webpack_require__("b2f995ebb085aa2e8773").init(); productInfo.get(function () { getProductInfo(function (data) { extConsole.log('productInfo got'); if (!G.allowBackgroundRequest) { G.disableLogin = true; } if (location.href.indexOf('smzdm.com') > -1) { return; } if (G.site === 'amazon-com' || G.site === 'amazon-uk' || G.site === 'amazon-jp' || G.site === '6pm') { amazonGlobal.init(data.now.now_dp_id); __webpack_require__("cb0906562effcf1b0e6c").getRate(yijianhaitao.init); } saveHistory(data.now); if (__webpack_require__("3dbec38a0e3472df70b7").isHaitao()) { data.b2c.store = []; } renderBarData(data); __webpack_require__("36213847924f2a636b80").init(data.now.dp_id, '.bjg-coupon-space', '.bjgext-toptabs'); userData.set('dp_query', data); if (G.site !== 'steampowered') { minibar.init(); promo.init(); taobao.init(data); // require('common/common_lowest').init(data) __webpack_require__("5c0a131eca601d0f106f").init(data); } if (G.ss_name === 'priceDog' && data.transport) { __webpack_require__("5e26797fe3f8eeb5faf5").init(data.transport); } trend.init(data.b2c.all_dp_ids, data.now_dp_id || data.now.dp_id || data.now.now_dp_id); // require('standard/module/priceTrend2').init() __webpack_require__("d0be176400e0cbc97f82").init(); __webpack_require__("6ad34a6b9808de77f450").ready(); __webpack_require__("f273eae5b91aca939a84").init(); if (['360buy', 'taobao', 'tmall'].indexOf(G.site) === -1) { if (G.ss_name === 'priceDog') { __webpack_require__("4e8e39dd5714815e5380").init(false); } } }); }); case 10: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "1e1a054acedf52d3faf0": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__PriceProtectPageButton_vue_vue_type_template_id_41b15ea6_scoped_true___ = __webpack_require__("79ebaf19a313e6c85941"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__PriceProtectPageButton_vue_vue_type_script_lang_js___ = __webpack_require__("6e18703b4f87c27d6898"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__PriceProtectPageButton_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__PriceProtectPageButton_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__PriceProtectPageButton_vue_vue_type_style_index_0_lang_css___ = __webpack_require__("eef224dd8dc6181f8f8f"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__PriceProtectPageButton_vue_vue_type_style_index_1_id_41b15ea6_scoped_true_lang_less___ = __webpack_require__("8e924730070195f36bf2"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_4__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__PriceProtectPageButton_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__PriceProtectPageButton_vue_vue_type_template_id_41b15ea6_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__PriceProtectPageButton_vue_vue_type_template_id_41b15ea6_scoped_true___["b" /* staticRenderFns */], false, null, "41b15ea6", 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('41b15ea6')) { api.createRecord('41b15ea6', component.options) } else { api.reload('41b15ea6', component.options) } module.hot.accept("./PriceProtectPageButton.vue?vue&type=template&id=41b15ea6&scoped=true&", function () { api.rerender('41b15ea6', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/bjgou/components/PriceProtectPageButton.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "1e86314e538fab53771a": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var detect = __webpack_require__("60624e018be49fb2d959"); var priceParser = __webpack_require__("e29ce4c2a4af273fcade"); var time = 0; var pageObj = {}; var animateLock = undefined; var posPattern = { 'taobao': ["#detail .tb-item-info-l"], 'tmall': ["#J_DetailMeta .tb-gallery"] }; module.exports.init = function (data) { if (G.forbidCoupon) return; if (G.ss_name === 'priceDog') return; var tbData = userData.get('tbData'); time++; if (tbData.ss === time) { var siteName = G.site; var siteId = detect.getSiteId(siteName); priceParser.init(siteId, function (price) { if (price && price > 0) { G.dp.oldPrice = price; G.dp.price = price; } render(data, tbData); }); } }; var editData = function editData(data, tbData) { var newdata = []; for (var i = 0; i < data.taobao.length; i++) { for (var j = 0; j < tbData.taobao.product.length; j++) { var tbitem = tbData.taobao.product[j]; if (data.taobao[i].reqid === tbitem.num_iid) { data.taobao[i].imgUrl = tbitem.pic_url; data.taobao[i].l_price = tbitem.price; data.taobao[i].title = tbitem.title; data.taobao[i].coupon_money = data.taobao[i].coupon.coupon_money; data.taobao[i].price = (Number(tbitem.price) - data.taobao[i].coupon.coupon_money).toFixed(2); if (Number(tbitem.price) - data.taobao[i].coupon.coupon_money <= G.dp.price) { newdata.push(data.taobao[i]); } } } } for (var i = 0; i < data.tmall.length; i++) { for (var j = 0; j < tbData.tmall.product.length; j++) { var tmitem = tbData.tmall.product[j]; if (data.tmall[i].reqid === tmitem.num_iid) { data.tmall[i].imgUrl = tmitem.pic_url; data.tmall[i].l_price = tmitem.price; data.tmall[i].title = tmitem.title; data.tmall[i].coupon_money = data.tmall[i].coupon.coupon_money; data.tmall[i].price = (Number(tmitem.price) - data.tmall[i].coupon.coupon_money).toFixed(2); if (Number(tmitem.price) - data.tmall[i].coupon.coupon_money <= G.dp.price) { newdata.push(data.tmall[i]); } } } } newdata.sort(function (v1, v2) { return Number(v1.price) - Number(v2.price); }); return newdata; }; var render = function render(data, tbData) { data = editData(data, tbData); var size = data.length; if (size === 0) return; $('body').addClass('dpc_' + G.site); var html = __webpack_require__("6596d97d231bf58a1c8d"); var doms = posPattern[G.site]; for (var i = 0; i < doms.length; i++) { if ($(doms[i]).length > 0) { $(doms[i]).append(template.compile(html)({ data: data, s_s: G.s_server, size: size })); break; } } if (size > 4) { pageObj.pages = Math.ceil(size / 4); pageObj.nowpage = 1; } addEvent(size); }; var turnpage = function turnpage(type) { var dom = $('.dpcoupon-bd ul'); var left = dom.css('left'); left = Number(left.replace('px', '')) || 0; if (type === 1) { if (pageObj.nowpage === pageObj.pages) return; pageObj.nowpage++; left = left - 440; } else if (type === -1) { if (pageObj.nowpage === 1) return; pageObj.nowpage--; left = left + 440; } if (dom.animate) { animateLock = true; dom.animate({ left: left + 'px' }, 300, function () { animateLock = false; }); } else { dom.css('left', left + 'px'); } }; var addEvent = function addEvent(size) { $('.dpcoupon-bd').on('click', function () { cnzz.log('dpcouponimg:click'); }); $('.dpc-turn-l').on('click', function () { if (animateLock) { setTimeout(function () { turnpage(-1); }, 400); } else { turnpage(-1); } }); $('.dpc-turn-r').on('click', function () { if (animateLock) { setTimeout(function () { turnpage(1); }, 400); } else { turnpage(1); } }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "1eaa5aa43913a4839414": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponTop_vue_vue_type_style_index_1_id_05b8b243_scoped_true_lang_less___ = __webpack_require__("c6e201ee578544e5da38"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponTop_vue_vue_type_style_index_1_id_05b8b243_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponTop_vue_vue_type_style_index_1_id_05b8b243_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponTop_vue_vue_type_style_index_1_id_05b8b243_scoped_true_lang_less____default.a); /***/ }), /***/ "1f677ede70b4f8bcb282": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var globalObj = undefined, callbacks = []; var hascallback = undefined; var init = function init() { var nowurl = location.href; var itemId = nowurl.match(/[?&]id=([0-9]+)/) && nowurl.match(/[?&]id=([0-9]+)/)[1]; if (!itemId) return; var website = G.dp && G.dp.site || G.site; if (website.indexOf('95095') > -1) { globalObj = { 'nodata': true }; return; } if (website == 'ai-taobao') website = 'taobao'; // let price = Number(G.dp.price)*100; // let url = 'https://browserre.taotaosou.com/priceHistory.do?itemId='+ itemId + '&website=' + website + '&price=' + price.toString(); var url = __webpack_require__("7a162262fe305871f8d9").init(); communicate.trigger({ 'type': 'getTaobaoTrend', 'info': url }); communicate.on(function (data) { if (typeof data === 'string') { data = JSON.parse(data); } if (data.type == 'getTaobaoTrend') { if (data.value) try { globalObj = JSON.parse(data.value).priceHistoryData; if (!globalObj) globalObj = { 'nodata': true }; if (callbacks.length > 0 && !hascallback) { //hascallback = true; // debug for (var i = 0; i < callbacks.length; i++) { callbacks[i](globalObj); } hascallback = true; } } catch (e) {} } }); }; module.exports._init = function () { // G.on('pageType=2', () => { // init() // }) }; module.exports.init2 = function () { // init() }; module.exports.getTrend = function (callback) { if (globalObj) { if (globalObj['nodata']) globalObj = null; hascallback = true; callback(globalObj); return; } else { callbacks.push(callback); } setTimeout(function () { if (!hascallback) { hascallback = true; callback(null); } }, 3000); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "1fffec0778a8d8b2e8e2": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['tag'], data: function data() { return { qr: '', loading: false }; }, computed: { link: function link() { return __webpack_require__("4733a3dd803685ec596a").appendTbInfoForUrl(G.tb_server + '/extension/qrpage?union=' + G.union + '&dp_id=' + (this.dpId ? this.dpId : G.dp.dpId) + '&tag=' + this.tag); } }, methods: { getText: function getText(text) { var map = { '当前商品可领会员券': '當前商品可領會員券', '立即领取': '立即領取', '手淘扫码': '手淘掃碼', '联系客服领取': '聯系客服領取' }; if (G.ss_name === 'priceDog') { return map[text]; } return text; }, over: function over() { var _this = this; if (this.tag === 2) { __webpack_require__("83271c7588396d2d5e59").logOnce('淘宝hu会员券:悬浮'); } if (this.loading || this.qr) return; this.loading = true; __webpack_require__("91f250ebeb8d5987491c").rawGet(G.u_server + ('/helper/qrcode?union=' + G.union + (this.url ? '&url=' + this.url : '') + '&event=appQrcode' + (this.tag ? '&tag=' + this.tag : '') + '&dp_id=') + (this.dpId ? this.dpId : G.dp.dpId)).then(function (res) { if (typeof res === 'string') { res = JSON.parse(res); } _this.qr = res.data.qrImgStr; }); } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "217a460079a2fc75e411": /***/ (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_MemberCouponQr_vue_vue_type_style_index_0_id_498face2_scoped_true_lang_less___ = __webpack_require__("c19dcdaa9e39f34d9e04"); /* 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_MemberCouponQr_vue_vue_type_style_index_0_id_498face2_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_MemberCouponQr_vue_vue_type_style_index_0_id_498face2_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_MemberCouponQr_vue_vue_type_style_index_0_id_498face2_scoped_true_lang_less____default.a); /***/ }), /***/ "21c41e4b6f7e04c8e8c9": /***/ (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_HistoryBar_vue_vue_type_template_id_5d29fc05_scoped_true___ = __webpack_require__("8c986b2d59a1000261d6"); /* 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_HistoryBar_vue_vue_type_template_id_5d29fc05_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_HistoryBar_vue_vue_type_template_id_5d29fc05_scoped_true___["b"]; }); /***/ }), /***/ "238322f76284ba9e93e3": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var request = __webpack_require__("91f250ebeb8d5987491c"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var posDict = { 'taobao': '#J_Social', 'tmall': '#J_DetailMeta .tm-action.tm-clear' }; var tokenCache = undefined; module.exports.init = function () { if (G.from_device.indexOf('bijiago') > -1 && $('html').hasClass('gwd_taobao_ju')) return; if (window.bjd_tkl_exist && window.bjd_tkl_exist.indexOf(G.from_device) === -1) { return; } window.bjd_tkl_exist = G.from_device; if (G.forbidTkl) return; if (location.host.indexOf('taobao') === -1 && location.host.indexOf('tmall') === -1) { return; } if (G.site === 'taobao-ju') { if ($('#bjg-tkl').length) { $('#bjg-tkl').remove(); } renderJu(); return; } render(); }; var renderJu = function renderJu() { var html = __webpack_require__("c9d110768171b10ef7f6"); var res = template.compile(html)({ s_server: G.s_server }); window.$ = $; $('.botbar .operation').append(res); addEventJu(); }; var addEventJu = function addEventJu() { var tklOK = false; $('#bjg-tkl').on('click', function (e) { if (tklOK) { clipboard(); e.preventDefault(); return; } else { cnzz.log("gettklinfo"); getTkl(function (data) { if (data) { $('#gwd-tkl-text').text("点击复制淘口令"); tklOK = true; var dptle = getTbTle(); var newTxt = '7' + data; $('#box_btn').text(newTxt); $('.gggbox-input').val(newTxt); } else { // $('.cptkl-remind-err').show() cnzz.log("gettklerr"); $('#bjg-tkl').addClass('gwd-notkl-error'); } }); } e.preventDefault(); }); }; var getTkl = function getTkl(callback) { if (tokenCache) { callback(tokenCache); return; } // let id = location.href.match(/id=(\d+)/)[1]; // if (G.site === 'taobao-ju') { // id = location.href.match(/item_id=(\d+)/)[1]; // } var id = __webpack_require__("3e983ecbff4e1a29654c").getParameterByName('id'); if (!id) id = __webpack_require__("3e983ecbff4e1a29654c").getParameterByName('item_id'); var pic = G.dp.pic; // let s = $('#J_UlThumb img') // if (s.length) { // pic = s[s.length - 1].src // } var shopName = $('.tb-shop-name a').text(); if (!shopName) { shopName = $('[class^=ShopHeader--title]').text(); } if (!shopName) { shopName = $('.slogo-shopname strong').text(); } var shopAmount = $('#J_SellCounter').text(); if (!shopAmount) { shopAmount = $('.tm-count:eq(0)').text(); } if (!shopAmount) { shopAmount = $('[class^=ItemHeader--salesDesc]').text(); } var url = G.server + '/extension/TaoKL?id=' + id + '&title=' + encodeURIComponent(G.dp.name.trim()) + '&img=' + encodeURIComponent(pic) + '&price=' + G.dp.price + '&shopName=' + encodeURIComponent(shopName.trim()) + '&sellAmount=' + encodeURIComponent(shopAmount); if (G.ss_name === 'priceDog') { url = G.u_server + '/redirect/tao?id=' + id + '&format=json&tkl=1'; } request.get(url).then(function (data) { if (data && data.ios_token) { tokenCache = data.ios_token; callback(data.ios_token); } else { callback(); } })['catch'](function () { callback(); }); }; var getTbTle = function getTbTle() { var tle = ''; if (G.site === 'taobao') { tle = $('#J_Title h3').text().trim(); } else if (G.site === 'taobao-ju') { tle = $('.title').text().trim(); } else { tle = $('.tb-detail-hd>h1').text().trim(); } return tle; }; var render = function render() { var html = __webpack_require__("6b738ba34e5250f446bd"); var pos = posDict[G.site]; var str = 'is_tb_site'; if (G.site === 'tmall') str = 'is_tm_site'; if (G.site === 'tmall' && $(pos).length === 0) { pos = '[class^=PicGallery--root]'; __webpack_require__("3e983ecbff4e1a29654c").appendCss('\n #cptklbox.is_tm_site { margin-left: 0!important; margin-top: 50px; }\n '); } if ($(pos).length > 0) { $('.' + str).remove(); $(pos).after(template.compile(html)({ s_server: G.s_server, str: str })); if (G.ss_name === 'priceDog') { $('#cptklbox').hide(); } } addEvent(); }; var clicked = undefined; var clipboard = function clipboard() { //if (clicked) return; var element = document.getElementById('box_btn'); var element2 = document.querySelectorAll('.gggbox-input')[0]; if (element.hasAttribute('contenteditable')) { element.focus(); } var selection = window.getSelection(); var range = document.createRange(); range.selectNodeContents(element); selection.removeAllRanges(); selection.addRange(range); window.selectedText = selection.toString(); if (!window.selectedText) { element2.select(); element2.setSelectionRange(0, element2.value.length); window.selectedText = element2.value; } try { var t = window.document.execCommand("copy"); if (t) { clicked = true; cnzz.log("copytklss"); if (G.site === 'taobao-ju') { $('#gwd-tkl-text').text("复制成功"); $('#bjg-tkl img').attr('src', G.s_server + '/images/extensions/TKLSuccess@2x.png'); } $('.cptkl-btn span').text("复制成功"); $('.cptkl-btn').removeClass('cpready').addClass('cpsuccess'); } } catch (e) { __webpack_require__("316f9c352c6202560d16").error(e); } }; var addEvent = function addEvent() { var tklOK = undefined; $('.cptkl-btn').on('click', function () { if (tklOK) { clipboard(); return; } else { cnzz.log("gettklinfo"); } getTkl(function (data) { if (data) { $('.cptkl-btn span').text("点击复制淘口令"); $('.cptkl-btn').addClass('cpready'); tklOK = true; var dptle = getTbTle(); var newTxt = '7' + data; $('#box_btn').text(newTxt); $('.gggbox-input').val(newTxt); } else { $('.cptkl-remind-err').show(); cnzz.log("gettklerr"); } }); }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "239c110733b9577048db": /***/ (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_MiniFavor_vue_vue_type_template_id_ae71a91e_scoped_true___ = __webpack_require__("ce801a3482787d15ee56"); /* 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_MiniFavor_vue_vue_type_template_id_ae71a91e_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_MiniFavor_vue_vue_type_template_id_ae71a91e_scoped_true___["b"]; }); /***/ }), /***/ "23aafd2ad4b6e88819f1": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "gwd-qrlink-left gwd-row gwd-align", style: "left: " + _vm.left + "px; " + (_vm.bottom ? "bottom: " + _vm.bottom + "px" : ""), on: { mouseenter: _vm.over } }, [ _c( "span", { staticStyle: { "margin-left": "8px", "font-size": "12px", color: "#7d7e80", width: "48px" } }, [ _vm._v( _vm._s(_vm.transText("手淘扫码")) + _vm._s( _vm.hasBuyButton ? _vm.transText("查看优惠") : _vm.transText("快捷购买") ) ) ] ), _vm._v(" "), _c("img", { staticStyle: { width: "22px", height: "22px", "margin-left": "8px" }, attrs: { src: __webpack_require__("4274a17d553e5317d58f"), alt: "" } }), _vm._v(" "), _c( "svg", { staticStyle: { "margin-left": "4px", width: "11px", height: "6px" }, attrs: { viewBox: "0 0 11 6" } }, [ _c("polygon", { attrs: { points: "0,0 11,0 5.5,6", fill: "#c4c5c6" } }) ] ), _vm._v(" "), _c("div", { staticClass: "gwd-qr-content gwd-align gwd-column" }, [ _vm.qr ? _c("img", { staticStyle: { width: "98px", height: "98px" }, attrs: { src: _vm.qr, alt: "" } }) : _vm._e(), _vm._v(" "), _c("img", { staticStyle: { width: "20px", height: "20px", position: "absolute", left: "50%", top: "42px", transform: "translate(-50%, 0%)" }, attrs: { src: __webpack_require__("c9085187c37fc1ab0e5e"), alt: "" } }) ]) ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "23e3b35ad503cba1de12": /***/ (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_JdItemList_vue_vue_type_style_index_0_id_9f63765e_scoped_true_lang_less___ = __webpack_require__("d8908ac290737d05feb2"); /* 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_JdItemList_vue_vue_type_style_index_0_id_9f63765e_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_JdItemList_vue_vue_type_style_index_0_id_9f63765e_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_JdItemList_vue_vue_type_style_index_0_id_9f63765e_scoped_true_lang_less____default.a); /***/ }), /***/ "243d445d478871b440a0": /***/ (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: { "overflow-y": "auto", flex: "1" }, on: { scroll: _vm.scroll } }, [ _vm._l(_vm.list, function(item) { return _c("CollectionItem", { key: item.id, attrs: { product: item }, on: { delete: _vm.deleteItem } }) }), _vm._v(" "), _vm.list.length === 0 && _vm.ended ? _c( "div", { staticClass: "gwd-column gwd-align gwd-jcc", staticStyle: { height: "100%" } }, [ _c("img", { staticStyle: { width: "60px", height: "52px" }, attrs: { src: __webpack_require__("01e2d7eb2fbd2595c252"), alt: "" } }), _vm._v(" "), _vm.tab === "down" ? _c("span", { staticClass: "bjg-hintText" }, [ _vm._v("暂无商品降价"), _c("br"), _vm._v("降价会及时通知您") ]) : _vm._e(), _vm._v(" "), _vm.tab === "default" ? _c("span", { staticClass: "bjg-hintText" }, [ _vm._v("暂未收藏任何商品,去收藏") ]) : _vm._e() ] ) : _vm._e() ], 2 ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "246ceb42c05cc162aaa5": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_style_index_0_id_9a793014_scoped_true_lang_less___ = __webpack_require__("6524c6395176cac4885b"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_style_index_0_id_9a793014_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_style_index_0_id_9a793014_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_style_index_0_id_9a793014_scoped_true_lang_less____default.a); /***/ }), /***/ "2517c4f5c89f34233e53": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var browser = { 'url': '', 'utype': '' }; var chromeType = navigator.userAgent.toLowerCase(); module.exports.getBrowser = function () { if ("ActiveXObject" in window) { //mozilla/5.0 (compatible; msie 10.0; windows nt 6.1; wow64; trident/6.0; slcc2; .net clr 2.0.50727; .net clr 3.5.30729; .net clr 3.0.30729; .net4.0c; infopath.3; .net4.0e) browser.url = G.c_server + ('/files/ext/' + G.extName + '_install_IE.exe'); browser.utype = "ie"; browser.utitle = "IE"; browser.background = "-401px -81px"; } else if (chromeType.indexOf('firefox') > -1) { //mozilla/5.0 (windows nt 6.1; wow64; rv:42.0) gecko/20100101 firefox/42.0 browser.url = "https://addons.mozilla.org/firefox/downloads/latest/405940/addon-405940-latest.xpi?src=dp-btn-primary"; browser.bjgUrl = "https://addons.mozilla.org/zh-CN/firefox/addon/%E6%AF%94%E4%BB%B7%E7%8B%97-%E7%BD%91%E8%B4%AD%E7%9C%81%E9%92%B1%E7%A5%9E%E5%99%A8/?src=search"; browser.utype = "firefox"; browser.utitle = "火狐"; browser.background = "-401px -44px"; } else if (chromeType.indexOf('opera') > -1 || chromeType.indexOf('opr') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/46.0.2490.86 safari/537.36 opr/33.0.1990.115 browser.url = G.c_server + "/files/ext/opera.crx"; browser.utype = "opera"; browser.utitle = "Opera"; browser.background = "-2px -120px"; } else if (chromeType.indexOf('safari') > -1 && chromeType.indexOf('chrome') == -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/534.57.2 (khtml, like gecko) version/5.1.7 safari/534.57.2 browser.url = G.c_server + ('/files/ext/' + G.extName + '.safariextz'); browser.utype = "safari"; browser.utitle = "Safari"; browser.background = "-301px -44px"; } else if (chromeType.indexOf('chrome') > -1) { var check360 = checkChromeWeight(); if (chromeType.indexOf('qqbrowser') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/45.0.2454.87 safari/537.36 qqbrowser/9.2.5542.400 browser.url = "https://pcbrowser.dd.qq.com/pcbrowserbig/qbextension/update/20160122/jgphnjokjhjlcnnajmfjlacjnjkhleah.crx"; browser.bjgUrl = "https://pcbrowser.dd.qq.com/pcbrowserbig/qbextension/update/20180615/lpmlfjjccfdcnfplffgcmnkaafcigoil.crx"; browser.utype = "qq"; browser.utitle = "QQ"; browser.background = "-104px -81px"; } else if (chromeType.indexOf('maxthon') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) maxthon/4.4.8.1000 chrome/30.0.1599.101 safari/537.36 browser.url = "http://extension.maxthon.cn/detail/index.php?view_id=358"; browser.utype = "maxthon"; browser.utitle = "傲游"; browser.background = "-401px -4px"; } else if (chromeType.indexOf('bidubrowser') > -1) { //mozilla/5.0 (compatible; msie 10.0; windows nt 6.1; wow64; trident/6.0; bidubrowser 8.1) browser.url = "http://chajian.baidu.com/2015/#all/39/mcgoibhhihpolaiioggajoipieefgmoa"; browser.utype = 'baidu'; browser.utitle = '百度'; browser.background = "-104px -120px"; } else if (chromeType.indexOf('ubrowser') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/44.0.2403.157 ubrowser/5.5.6743.207 safari/537.36 browser.url = "http://extensions.uc.cn/newindex.htm#!detail/bpdlhpjkjbdiflnankpohpfepecdjgag"; browser.bjgUrl = "https://www.bijiago.com/static/extensions/chrome_bijiago_uc.crx"; browser.utype = 'uc'; browser.utitle = "UC"; browser.background = "-2px -44px"; } else if (chromeType.indexOf('lbbrowser') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/42.0.2311.154 safari/537.36 lbbrowser browser.url = "http://store.liebao.cn/admin/extensions/201511/ea878d5a4d2a008ad78978a94eea62a1.crx"; browser.utype = 'liebao'; browser.utitle = "猎豹安全"; browser.background = "-301px -4px"; } else if (chromeType.indexOf('taobrowser') > -1) { //Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.11 TaoBrowser/3.5 Safari/536.11 browser.url = G.c_server + "/files/ext/chrome.crx"; browser.utype = 'taobao'; browser.utitle = "淘宝"; browser.background = "-104px -44px"; } else if (chromeType.indexOf('2345explorer') > -1) { //Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36 2345Explorer/6.4.0.10356 browser.url = "http://extension.ie.2345.com/#nfbikdkjfjcejddbdcpbafnclkfdhijd"; browser.utype = '2345'; browser.utitle = "2345王牌"; browser.background = "-301px -81px"; } else if (chromeType.indexOf('2345chrome') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/39.0.2171.99 safari/537.36 2345chrome v3.0.0.9739 browser.url = "http://extension.chrome.2345.com/#nfbikdkjfjcejddbdcpbafnclkfdhijd"; browser.utype = '2345jiasu'; browser.utitle = "2345加速"; } else if (chromeType.indexOf('coolnovo') > -1) { //Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36 CoolNovo/2.0.9.20 browser.url = G.c_server + "/files/ext/chrome.crx"; browser.utype = 'fengshu'; browser.utitle = "枫树"; browser.background = "-2px -81px"; } else if (chromeType.indexOf('greenbrowser') > -1) { //Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; InfoPath.3; .NET4.0E; GreenBrowser) browser.url = G.c_server + ('/files/ext/' + G.extName + '_for_greenbrowser.zip'); browser.utype = 'gb'; browser.utitle = "GB"; browser.background = "-203px -81px"; } else if (check360 === "Chrome") { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/46.0.2490.80 safari/537.36 browser.url = G.c_server + "/app/extension?from_device=" + G.from_device_num; browser.bjgUrl = "https://www.bijiago.com/chromeGuide/"; browser.utype = 'chrome'; browser.utitle = 'Chrome'; browser.background = "-2px -4px"; } else if (check360 === "360SE") { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/31.0.1650.63 safari/537.36 browser.url = "https://ext.se.360.cn/webstore/detail/nfbikdkjfjcejddbdcpbafnclkfdhijd"; browser.bjgUrl = "https://ext.se.360.cn/webstore/detail/dikcgfcdhfcmnicjknpmaakimonplclf"; browser.utype = '360se'; browser.utitle = '360安全'; browser.background = "-203px -4px"; } else if (check360 === "360EE") { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/45.0.2454.101 safari/537.36 browser.url = "https://ext.chrome.360.cn/webstore/detail/nfbikdkjfjcejddbdcpbafnclkfdhijd"; browser.bjgUrl = "https://ext.se.360.cn/webstore/detail/dikcgfcdhfcmnicjknpmaakimonplclf"; browser.utype = '360se'; browser.utitle = '360极速 '; browser.background = "-104px -4px"; } else if (chromeType.indexOf('se') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/38.0.2125.122 safari/537.36 se 2.x metasr 1.0 browser.url = "http://ie.sogou.com/tools/tool_337.html"; browser.bjgUrl = "http://ie.sogou.com/app/s/YXBwXzU5Njc="; browser.utype = 'sogou'; browser.utitle = "搜狗"; browser.background = "-401px -120px"; } else { browser.url = G.c_server + "/app/extension"; browser.bjgUrl = "https://www.bijiago.com/chromeGuide/"; browser.utype = 'chrome'; browser.utitle = 'Chromium内核'; } } else { browser.url = G.c_server + "/app/extension"; browser.bjgUrl = "https://www.bijiago.com/chromeGuide/"; browser.utype = 'chrome'; browser.utitle = '未知浏览器'; } return browser; }; var chrome_weight = { "result": "Chrome", "details": { "Chrome": 5, "Chromium": 0, "_360SE": 0, "_360EE": 0 }, "sorted": ["Chrome", "360SE", "360EE", "Chromium"], "exec": function exec(results) { var details = { "Chrome": 5, "Chromium": 0, "_360SE": 0, "_360EE": 0 }; var _ua = window.navigator.userAgent; if (/Chrome\/([\d.])+\sSafari\/([\d.])+$/.test(_ua)) { if (window.navigator.platform == "Win32") { if (!window.clientInformation.languages) { details._360SE += 8; } if (/zh/i.test(navigator.language)) { details._360SE += 3; details._360EE += 3; } if (window.clientInformation.languages) { var lang_len = window.clientInformation.languages.length; if (lang_len >= 3) { details.Chrome += 10; details.Chromium += 6; } else if (lang_len == 2) { details.Chrome += 3; details.Chromium += 6; details._360EE += 6; } else if (lang_len == 1) { details.Chrome += 4; details.Chromium += 4; } } for (var i in window.navigator.plugins) { if (window.navigator.plugins[i].filename == "np-mswmp.dll") { details._360SE += 20; details._360EE += 20; } } if (Object.keys(window.chrome.webstore).length <= 1) { details._360SE += 7; } else if (Object.keys(window.chrome.webstore).length == 2) { details._360SE += 4; details.Chromium += 3; } if (window.navigator.plugins.length >= 30) { details._360EE += 7; details._360SE += 7; details.Chrome += 7; } else if (window.navigator.plugins.length < 30 && window.navigator.plugins.length > 10) { details._360EE += 3; details._360SE += 3; details.Chrome += 3; } else if (window.navigator.plugins.length <= 10) { details.Chromium += 6; } } else { details._360SE -= 50; details._360EE -= 50; if (/Linux/i.test(window.navigator.userAgent)) { details.Chromium += 5; } } var found = 0; var respdf = undefined; for (var i in window.navigator.plugins) { if (!!(respdf = /^(.+) PDF Viewer$/.exec(window.navigator.plugins[i].name))) { if (respdf[1] == "Chrome") { details.Chrome += 6; details._360SE += 6; found = 1; break; } if (respdf[1] == "Chromium") { details.Chromium += 10; details._360EE += 6; found = 1; break; } } } if (!found) { details.Chromium += 9; } } var chrome_result = new Object(); chrome_result['Chrome'] = details.Chrome; chrome_result['Chromium'] = details.Chromium; chrome_result['360SE'] = details._360SE; chrome_result['360EE'] = details._360EE; var sortable = []; for (var value in chrome_result) { sortable.push([value, chrome_result[value]]); }sortable.sort(function (a, b) { return b[1] - a[1]; }); this.sorted = sortable; this.details = details; this.result = sortable[0][0]; if (results == "result") { return sortable[0][0]; } else if (results == "details") { return chrome_result; } else if (results == "sorted") { return sortable; } } }; var checkChromeWeight = function checkChromeWeight() { var _ua = window.navigator.userAgent; try { chrome_weight.exec(); if (/Chrome\/([\d.])+\sSafari\/([\d.])+$/.test(_ua)) { return chrome_weight.result; } else {} } catch (e) { return; } }; module.exports.getChromeVersion = function () { var raw = navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./); return raw ? parseInt(raw[2], 10) : false; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "25e0cebb2e3d42787857": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("0873bfa38b6f0206ed22"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("6e1549c8", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../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!./JdRankList.vue?vue&type=style&index=0&id=a48d90ba&scoped=true&lang=less&", function() { var newContent = require("!!../../../../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!./JdRankList.vue?vue&type=style&index=0&id=a48d90ba&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "261f74b1fc0f0e859581": /***/ (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_SubsidyBottom_vue_vue_type_template_id_1cab7080_scoped_true___ = __webpack_require__("0e04f21a45f32a73bf78"); /* 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_SubsidyBottom_vue_vue_type_template_id_1cab7080_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_SubsidyBottom_vue_vue_type_template_id_1cab7080_scoped_true___["b"]; }); /***/ }), /***/ "2655c53e3a6244960b77": /***/ (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_CollectionBar_vue_vue_type_template_id_617a0842_scoped_true___ = __webpack_require__("55cdd25a1106acda1922"); /* 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_CollectionBar_vue_vue_type_template_id_617a0842_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_CollectionBar_vue_vue_type_template_id_617a0842_scoped_true___["b"]; }); /***/ }), /***/ "28b862d2cdcc846b8764": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjg-sync[data-v-9f63765e] {\n width: 102px;\n height: 22px;\n border-radius: 11px;\n border: 1px solid #DDDDDD;\n font-size: 12px;\n color: #64615d;\n text-align: center;\n background: white;\n box-sizing: border-box !important;\n}\n.bjg-jd-item-list[data-v-9f63765e] {\n overflow-y: auto;\n max-height: 414px;\n}\n.bjg-jd-item-list .bjg-window-status[data-v-9f63765e] {\n height: 32px;\n background: #fff6ef;\n justify-content: center;\n}\n.bjg-jd-item-list .bjg-section[data-v-9f63765e] {\n padding-left: 14px;\n padding-right: 14px;\n}\n", ""]); // exports /***/ }), /***/ "290eecfeffc9b0430848": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjg-orange-button[data-v-64323026] {\n width: 64px;\n height: 24px;\n background: #EBEBEB;\n border-radius: 12px;\n font-size: 14px;\n color: #666666;\n outline: none;\n box-shadow: none;\n box-sizing: border-box !important;\n border: none;\n}\n.bjg-selected[data-v-64323026] {\n background: linear-gradient(134deg, #FD693A 0%, #FB9912 100%);\n color: #ffffff;\n}\n", ""]); // exports /***/ }), /***/ "2b1f0d74f1e318bff33f": /***/ (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_BottomFavor_vue_vue_type_script_lang_js___ = __webpack_require__("54ccbbccbca2a434343b"); /* 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_BottomFavor_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_BottomFavor_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_BottomFavor_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_BottomFavor_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_BottomFavor_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "2c7fa747888a567cd254": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_style_index_0_id_4148f062_scoped_true_lang_less___ = __webpack_require__("398e7c903a0cfb55f9a0"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_style_index_0_id_4148f062_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_style_index_0_id_4148f062_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_style_index_0_id_4148f062_scoped_true_lang_less____default.a); /***/ }), /***/ "2d0b5fe94661263c2439": /***/ (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_PriceProtectAuthLoginRequest_vue_vue_type_script_lang_js___ = __webpack_require__("1bd86c5b4b04f828f62b"); /* 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_PriceProtectAuthLoginRequest_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_PriceProtectAuthLoginRequest_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_PriceProtectAuthLoginRequest_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_PriceProtectAuthLoginRequest_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_PriceProtectAuthLoginRequest_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "2d1b815917806a0ba09c": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Subsidy_vue_vue_type_template_id_09046175_scoped_true___ = __webpack_require__("9e5d2f9e726ca8bad750"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Subsidy_vue_vue_type_script_lang_js___ = __webpack_require__("d0f06a8e989da469d39e"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__Subsidy_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__Subsidy_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Subsidy_vue_vue_type_style_index_0_id_09046175_scoped_true_lang_less___ = __webpack_require__("05246c7019d7ad236e56"); /* 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__Subsidy_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__Subsidy_vue_vue_type_template_id_09046175_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__Subsidy_vue_vue_type_template_id_09046175_scoped_true___["b" /* staticRenderFns */], false, null, "09046175", 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('09046175')) { api.createRecord('09046175', component.options) } else { api.reload('09046175', component.options) } module.hot.accept("./Subsidy.vue?vue&type=template&id=09046175&scoped=true&", function () { api.rerender('09046175', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/bjgou/components/Subsidy.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "2dd4d68fd9e53c18fd80": /***/ (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_OrangeButton_vue_vue_type_template_id_64323026_scoped_true___ = __webpack_require__("d108a71572015ac55478"); /* 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_OrangeButton_vue_vue_type_template_id_64323026_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_OrangeButton_vue_vue_type_template_id_64323026_scoped_true___["b"]; }); /***/ }), /***/ "2e0e194a8cf95c4aecc5": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, regeneratorRuntime, $) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _vuex = __webpack_require__("436f6d560acb97f873d1"); var _PriceProtectAuthLoginRequestVue = __webpack_require__("4e21de5af07fa44fda82"); var _PriceProtectAuthLoginRequestVue2 = _interopRequireDefault(_PriceProtectAuthLoginRequestVue); var _PriceProtectJdLoginVue = __webpack_require__("430cca46309f77ad345c"); var _PriceProtectJdLoginVue2 = _interopRequireDefault(_PriceProtectJdLoginVue); var _JdItemListVue = __webpack_require__("0aec02c1b6453a604bd6"); var _JdItemListVue2 = _interopRequireDefault(_JdItemListVue); var _BjgBottomWindowVue = __webpack_require__("9f3c39067bb983909ffe"); var _BjgBottomWindowVue2 = _interopRequireDefault(_BjgBottomWindowVue); var _commonComponentsGwdAVue = __webpack_require__("31a49fbf55666a9430c0"); var _commonComponentsGwdAVue2 = _interopRequireDefault(_commonComponentsGwdAVue); var _mixinsBottomWindowMixin = __webpack_require__("c46f7dae3143963b076f"); var _mixinsBottomWindowMixin2 = _interopRequireDefault(_mixinsBottomWindowMixin); var user = __webpack_require__("d098bd5eb9f0b2883cf6"); var client = __webpack_require__("660610db8f6e89357da9"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); // const store = require('../store/index') // window.store = store exports['default'] = { components: { PriceProtectAuthLoginRequest: _PriceProtectAuthLoginRequestVue2['default'], PriceProtectJdLogin: _PriceProtectJdLoginVue2['default'], JdItemList: _JdItemListVue2['default'], GwdA: _commonComponentsGwdAVue2['default'], BjgBottomWindow: _BjgBottomWindowVue2['default'] }, mixins: [_mixinsBottomWindowMixin2['default']], data: function data() { return { hide: G.site !== '360buy', isJdLogin: false, userAgreed: false, functionOpened: false, forceOpen: location.href.indexOf('forceOpen') > -1, settingOpen: false, hintShow: true, notifyCount: 0, recent: false }; }, computed: (0, _vuex.mapState)({ userName: function userName(state) { return state.user.userName; }, user: function user(state) { return state.user.userLogin; }, hasWx: function hasWx(state) { return state.user.userHasWx; }, enabled: function enabled(state) { return state.user.priceProtectEnabled; } }), methods: { ppClick: function ppClick() { if (!(this.user && this.userAgreed && this.enabled && this.isJdLogin) && !this.recent) { window.open('https://pcsitepp-fm.jd.com/'); } if (this.recent) { this.recent = false; } }, setEnable: function setEnable() { this.enable(); this.userAgreed = true; this.hintShow = false; }, checkUserLogin: function checkUserLogin() { return regeneratorRuntime.async(function checkUserLogin$(context$1$0) { var _this = this; while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(user.init()); case 2: client.get('/getStorage', { key: 'enabled' }, function (data) { _this.$store.commit('user/setState', { priceProtectEnabled: data }); __webpack_require__("9c38beef5ff283e15bd2").setMet('PriceProtectReady'); }); if (this.user) { this.checkUserAgreed(); } else { client.get('/clearUserName'); } case 4: case 'end': return context$1$0.stop(); } }, null, this); }, disable: function disable(e) { this.recent = true; e.preventDefault(); this.settingOpen = false; cnzz.log('价格保护', '用户手动关闭'); client.get('/setStorage', { enabled: false }); this.$store.commit('user/setState', { priceProtectEnabled: false }); }, enable: function enable() { cnzz.log('价格保护', '用户手动开启'); client.get('/setStorage', { enabled: true }); this.$store.commit('user/setState', { priceProtectEnabled: true }); }, mouseOver: function mouseOver() { this.forceOpen = false; this.notifyCount = 0; client.get('/clearNotifyCount'); }, checkUserAgreed: function checkUserAgreed() { var _this2 = this; client.get('/getStorage', { key: 'userAgreed' }).then(function (result) { _this2.userAgreed = result; }); }, checkOpened: function checkOpened() { var _this3 = this; client.get('/getStorage', { key: 'userOpened' }).then(function (result) { _this3.userOpened = result; }); }, checkJdLogin: function checkJdLogin() { var _this4 = this; client.get('/getLoginStatus', {}, function (res) { _this4.isJdLogin = res; if ($('a.nickname').text() && !res) { _this4.isJdLogin = true; client.get('/setLoginStatus', { loginStatus: true }); } }); }, listenOpen: function listenOpen() { var _this5 = this; document.body.addEventListener('bjgWindowOpen', function () { _this5.forceOpen = true; _this5.$nextTick(function () { setTimeout(function () { _this5.$refs.jdItemList.syncNow(); }, 500); }); }); } }, mounted: function mounted() { var _this6 = this; this.checkUserLogin(); this.checkJdLogin(); this.listenOpen(); client.get('/getStorage', { key: 'hintShowed' }).then(function (res) { if (res) { _this6.hintShow = false; } else { _this6.hintShow = true; client.get('/setStorage', { hintShowed: true }); } }); client.get('/getNotifyCount', {}).then(function (res) { _this6.notifyCount = parseInt(res); }); // this.$el.parentElement.addEventListener('DOMSubtreeModified', () => { // if (window.innerWidth - this.$el.offsetLeft <= 564) { // this.positionStyle = 'right: -1' // } // }) var k = setInterval(function () { _this6.checkJdLogin(); }, 3000); setTimeout(function () { clearInterval(k); }, 9000); } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "2e99c26f3c749e77922a": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_1_id_673c66fa_scoped_true_lang_less___ = __webpack_require__("aa51cc982b2c1333cb43"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_1_id_673c66fa_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_1_id_673c66fa_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_1_id_673c66fa_scoped_true_lang_less____default.a); /***/ }), /***/ "2eb8d6935e044e0d6d06": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var requestInfo = function requestInfo(url, callback) { var cbrun = false; if (G.allowBackgroundRequest) { __webpack_require__("91f250ebeb8d5987491c").getCouponFromUrl(url).then(function (res) { if (cbrun) return; cbrun = true; callback(res); }); setTimeout(function () { if (!cbrun) { cbrun = true; callback(); } }, 3000); } else { __webpack_require__("91f250ebeb8d5987491c").getCouponFromUrl(url).then(function (res) { callback(res); }); } // var xmlhttp = new XMLHttpRequest(); // xmlhttp.addEventListener('load', function() { // try { // callback(JSON.parse(xmlhttp.responseText)) // } catch (e) { // callback({}) // } // // }) // xmlhttp.open("GET", url, true); // xmlhttp.send(); // require('common/request').get(`${G.server}/extension/CouponHandler?op=get&rawApi=${encodeURIComponent(url)}`).then(data => { // // }) }; module.exports.init = function (id, adzone_id, callback) { var direct = arguments.length <= 3 || arguments[3] === undefined ? true : arguments[3]; var cbrun = false; if (G.forbidCoupon) { return; } if (!id) { callback && callback(); cbrun = true; return; } id = ('' + id).replace('-83', ''); id = ('' + id).replace('-8', ''); var hosts = "open.lesiclub.cn"; // if ((G.from_device === 'bijiago' && navigator.userAgent.toLocaleLowerCase().indexOf('firefox') > -1)) // hosts = "browser.gwdang.com/adbats" var url = location.protocol + "//" + hosts + "/coupon/get_ext/10005/" + adzone_id + "/" + id; requestInfo(url, function (data) { if (data && data.data) { data.data.reqid = id; data.data.click_url2 = G.u_server + '/?url=' + encodeURIComponent(data.data.click_url); if (G.ss_name === 'priceDog') { data.data.click_url2 = G.u_server + '/redirect/tao?id=' + id; if (G.aliSite) { data.data.click_url2 = G.u_server + '/redirect/tao?id=' + id + '&page=1'; data.data.click_url2 = 'https://tb.pricedog.com/extension/qrpage?dp_id=' + id + '-83&tag=9_chrome&discount=' + data.data.coupon.coupon_money; } } if (G.from_device === 'bijiago' && G.aliSite) { data.data.click_url2 = 'https://tb.' + (G.ss_name === 'priceDog' ? 'pricedog' : 'bijiago') + '.com/extension/qrpage?union=' + G.union + '&dp_id=' + id + '-83&tag=9_chrome&discount=' + data.data.coupon.coupon_money; } if (G.from_device === 'biyibi' && G.aliSite) { data.data.click_url2 = 'https://tb.biyibi123.com/extension/qrpage?union=' + G.union + '&dp_id=' + id + '-83&tag=9_chrome&discount=' + data.data.coupon.coupon_money; } data.data.click_url2 = __webpack_require__("4733a3dd803685ec596a").appendTbInfoForUrl(data.data.click_url2); data.data.cpid = adzone_id; if (callback) callback(data); } else { callback(null); } cbrun = true; }); }; module.exports.byIdAndAdzone = function (id, adzone_id) { if (!id) { return new Promise(function (resolve) { return resolve(null); }); } id = ('' + id).replace('-83', ''); id = ('' + id).replace('-8', ''); var hosts = "open.lesiclub.cn"; if (G.from_device === 'bijiago' && navigator.userAgent.toLocaleLowerCase().indexOf('firefox') > -1) hosts = "browser.gwdang.com/adbats"; var url = location.protocol + "//" + hosts + "/coupon/get_ext/10005/" + adzone_id + "/" + id; return new Promise(function (resolve) { requestInfo(url, function (data) { if (data && data.data) { data.data.reqid = id; data.data.click_url2 = G.u_server + '/?url=' + encodeURIComponent(data.data.click_url) + '&union=' + G.union; if (G.ss_name === 'priceDog') { data.data.click_url2 = G.u_server + '/redirect/tao?id=' + id; if (G.aliSite) { // data.data.click_url2 = `${G.u_server}/redirect/tao?id=${id}&page=1` data.data.click_url2 = __webpack_require__("4733a3dd803685ec596a").appendTbInfoForUrl('https://tb.pricedog.com/extension/qrpage?dp_id=' + id + '-83&tag=9_chrome&discount=' + data.data.coupon.coupon_money); } } if (G.from_device === 'bijiago' && G.aliSite) { data.data.click_url2 = __webpack_require__("4733a3dd803685ec596a").appendTbInfoForUrl('https://tb.' + (G.ss_name === 'priceDog' ? 'pricedog' : 'bijiago') + '.com/extension/qrpage?union=' + G.union + '&dp_id=' + dpId + '&tag=9_chrome&discount=' + data.data.coupon.coupon_money); } if (G.from_device === 'biyibi' && G.aliSite) { data.data.click_url2 = __webpack_require__("4733a3dd803685ec596a").appendTbInfoForUrl('https://tb.biyibi123.com/extension/qrpage?union=' + G.union + '&dp_id=' + dpId + '&tag=9_chrome&discount=' + data.data.coupon.coupon_money); } resolve(data); } else { resolve(null); } }); }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "2ef3da78b1c8628c5a11": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("e5ef5de8f657bbe96e8e"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("072ba946", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./Subsidy.vue?vue&type=style&index=0&id=09046175&scoped=true&lang=less&", function() { var newContent = require("!!../../../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!./Subsidy.vue?vue&type=style&index=0&id=09046175&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "2f23bc4c147e0b81ebd7": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".pricedog-size-list ul li[data-v-b3b47bf0] {\n font-size: 12px;\n color: #64615d;\n margin-top: 13px;\n display: inline-block;\n cursor: pointer;\n height: 16px;\n line-height: 16px;\n}\n.pricedog-size-list ul .active[data-v-b3b47bf0] {\n color: #ff6132;\n}\niframe[data-v-b3b47bf0] {\n overflow-x: hidden;\n}\n", ""]); // exports /***/ }), /***/ "3120ab72735731c31213": /***/ (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: "bjg-mini-products" }, [ _c("img", { staticClass: "turnImg left-turn", style: _vm.currentPage === 0 ? "visibility: hidden" : "", attrs: { src: __webpack_require__("770a9ce33d4fd765d2bb"), alt: "" }, on: { click: _vm.prevPage } }), _vm._v(" "), _c( "div", { staticStyle: { display: "flex", flex: "1", "justify-content": "space-between", "flex-direction": "row", "flex-wrap": "nowrap" } }, _vm._l(_vm.showingList, function(item) { return _c( "a", { staticClass: "bjg-cmp-product", attrs: { href: item.url, target: "_blank" } }, [ _c("img", { attrs: { src: item.img_url, alt: "", onerror: "this.src = 'http://cdn.bijiago.com/images/extensions/default_load_image.png'" } }), _vm._v(" "), _c("span", { staticClass: "redPrice" }, [ _vm._v("¥" + _vm._s(item.price)) ]), _vm._v(" "), _c("span", { staticClass: "iconText" }, [ _c("img", { attrs: { src: item.icon_url, alt: "" } }), _vm._v(" " + _vm._s(item.site_name)) ]), _vm._v(" "), _c("span", { staticClass: "productTitle" }, [ _vm._v(_vm._s(item.title)) ]) ] ) }), 0 ), _vm._v(" "), _c("img", { staticClass: "turnImg right-turn", style: _vm.currentPage === _vm.totalPage - 1 ? "visibility: hidden" : "", attrs: { src: __webpack_require__("770a9ce33d4fd765d2bb"), alt: "" }, on: { click: _vm.nextPage } }) ]) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "3138657ff2cdbb7ad342": /***/ (function(module, exports, __webpack_require__) { var $imports = __webpack_require__("9f47c636f849c23a0c20"); module.exports = function ($data) { 'use strict'; $data = $data || {}; var $$out = '', $escape = $imports.$escape, link = $data.link, extClass = $data.extClass, text = $data.text; $$out += '<a href="'; $$out += $escape(link); $$out += '"\n target="_blank"\n title="点击领取"\n style="display: inline-flex; position: relative; vertical-align: middle;" class="gwd-middle-tmall '; $$out += $escape(extClass); $$out += '">\n <img '; $$out += 'src="https://cdn.gwdang.com/images/extensions/activity/618-take-middle@2x.png"'; $$out += ' alt="" style="width: 24px; height: 24px;">\n <span style="font-size: 12px; color: #ff471a; text-decoration: underline; margin-left: 3px; font-weight: 600; font-family: \'Microsoft YaHei\', \'Arial\', \'SimSun\'">'; $$out += $escape(text); $$out += '</span>\n</a>\n<style>\n .gwd-middle-tmall {\n height: 100%;\n align-items: center;\n justify-content: center;\n justify-items: center;\n width: 150px!important;\n }\n\n .gwd-middle-tmall:hover {\n background: #fff3eb;\n }\n\n .gwd-qr-act {\n display: none;\n flex-direction: column;\n position: absolute;\n width: 144px;\n height: 167px;\n box-sizing: border-box;\n border: 1px solid #ff471a;\n background: #fff9f6;\n top: 37px;\n left: 50%;\n align-items: center;\n margin-left: -72px;\n z-index: 99;\n }\n\n .gwd-middle-tmall:hover .gwd-qr-act {\n display: flex;\n }\n</style>'; 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); /***/ }), /***/ "315a1307e3b888b0da3a": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("b4d911890dce1a5a38f7"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("6df0cd3d", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./MiniList.vue?vue&type=style&index=0&id=5637898a&lang=less&scoped=true&", function() { var newContent = require("!!../../../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!./MiniList.vue?vue&type=style&index=0&id=5637898a&lang=less&scoped=true&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "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 }; /***/ }), /***/ "31a49fbf55666a9430c0": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__GwdA_vue_vue_type_template_id_15561ebb___ = __webpack_require__("b641ddb65424a2fff18e"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__GwdA_vue_vue_type_script_lang_js___ = __webpack_require__("7cf15cf32a9159fb0c24"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__GwdA_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__GwdA_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_2__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__GwdA_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__GwdA_vue_vue_type_template_id_15561ebb___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__GwdA_vue_vue_type_template_id_15561ebb___["b" /* staticRenderFns */], false, null, null, null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('15561ebb')) { api.createRecord('15561ebb', component.options) } else { api.reload('15561ebb', component.options) } module.hot.accept("./GwdA.vue?vue&type=template&id=15561ebb&", function () { api.rerender('15561ebb', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/GwdA.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "3337a9d8a77a6d6830f9": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("64f5bba3b847b99e79a7"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("62bdcbbe", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!./priceTip.less", function() { var newContent = require("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!./priceTip.less"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "3359cfa348808629ff03": /***/ (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_SizeHelp_vue_vue_type_script_lang_js___ = __webpack_require__("769b11bc2499d664f2cc"); /* 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_SizeHelp_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_SizeHelp_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_SizeHelp_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_SizeHelp_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_SizeHelp_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "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":"到手價(多件)"}} /***/ }), /***/ "3410b73aaf9fdcb95700": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CollectionItem_vue_vue_type_template_id_6af99812_scoped_true___ = __webpack_require__("f2db31043966db897bb0"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__CollectionItem_vue_vue_type_script_lang_js___ = __webpack_require__("0ddc7525051f341d4d49"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__CollectionItem_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__CollectionItem_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__CollectionItem_vue_vue_type_style_index_0_id_6af99812_scoped_true_lang_less___ = __webpack_require__("17ae469975cfbd731441"); /* 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__CollectionItem_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__CollectionItem_vue_vue_type_template_id_6af99812_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__CollectionItem_vue_vue_type_template_id_6af99812_scoped_true___["b" /* staticRenderFns */], false, null, "6af99812", 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('6af99812')) { api.createRecord('6af99812', component.options) } else { api.reload('6af99812', component.options) } module.hot.accept("./CollectionItem.vue?vue&type=template&id=6af99812&scoped=true&", function () { api.rerender('6af99812', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/bjgou/components/CollectionItem.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "34922dc8612989e48906": /***/ (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_MiniFavor_vue_vue_type_style_index_0_id_ae71a91e_lang_less_scoped_true___ = __webpack_require__("9a4b17164948a132f883"); /* 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_MiniFavor_vue_vue_type_style_index_0_id_ae71a91e_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_MiniFavor_vue_vue_type_style_index_0_id_ae71a91e_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_MiniFavor_vue_vue_type_style_index_0_id_ae71a91e_lang_less_scoped_true____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"))) /***/ }), /***/ "3603905eab685dc5a585": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, regeneratorRuntime, $) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _SizeHelpVue = __webpack_require__("ea0af90f017e30b53ee5"); var _SizeHelpVue2 = _interopRequireDefault(_SizeHelpVue); var showSize = false; var k = G.exact_arr.all; var l = ['男装', '女装', '童装', '鞋', '裤', '裙', '衣']; l.forEach(function (item) { if (k.indexOf(item) > -1) { showSize = true; } }); exports['default'] = { components: { SizeHelp: _SizeHelpVue2['default'] }, data: function data() { return { showSizeHelp: showSize, rate: 0, price: G.dp.price, lang: G.lang }; }, methods: { load: function load() { return regeneratorRuntime.async(function load$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: case 'end': return context$1$0.stop(); } }, null, this); } }, mounted: function mounted() { var _this = this; __webpack_require__("91f250ebeb8d5987491c").get('https://cdn.bijiago.com/js/configs/outTax.json').then(function (res) { Object.keys(res).map(function (item) { if (k.indexOf(item) > -1) { _this.rate = res[item]; } }); if (!_this.rate) { _this.rate = res['default']; } }); if (showSize) { $('.main-box .botbar').css('margin-top', '86px'); } if (location.host.indexOf('detail.ju.taobao.com') > -1) { if ($('.status-banner').hasClass('status-sku')) { // setTimeout(() => { // $('#bjgext_mb_bg').css('margin-left: -10px').css('margin-top', '2px') // }, 100) var _k = document.createElement('STYLE'); _k.innerHTML = '\n #bjgext_mb_bg {\n margin-left: -10px!important;\n margin-top: 2px!important;\n }\n '; document.body.appendChild(_k); } } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "36213847924f2a636b80": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, regeneratorRuntime, $) { var _this = this; var request = __webpack_require__("91f250ebeb8d5987491c"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var getQRCode = __webpack_require__("657bad1e7f3b602f7d70"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var bdom = undefined, mdom = undefined; module.exports.init = function (dp_id, bardom, minidom) { bdom = bardom; mdom = minidom; if (['360buy', 'yangkeduo'].indexOf(G.site) === -1) { // setTimeout(() => { // require('bjgou/modules/specialActivityBjgou').init(false) // }, 1000) return; }; var url = undefined; getCouponInfo(dp_id, url, renderCoupon); }; var getCouponInfo = function getCouponInfo(dp_id, url, callback) { G.dp.itemId = dp_id; dp_id = dp_id ? 'dp_id=' + dp_id : ''; url = url ? 'url=' + url : ''; var url2 = G.server + '/extension/Coupon?' + dp_id + url; request.get(url2).then(function (data) { if (data.coupon && data.click_url) { globalCondition.setMet('coupon', data.coupon); callback(data); setTimeout(function () { __webpack_require__("4e3c7d7dbd4a9cb66f77").init(true); }, 1000); } else if (G.site === 'yangkeduo') { data.coupon = 0; callback(data); setTimeout(function () { __webpack_require__("4e3c7d7dbd4a9cb66f77").init(false); }, 1000); } else { globalCondition.setMet('coupon', 0); setTimeout(function callee$2$0() { return regeneratorRuntime.async(function callee$2$0$(context$3$0) { while (1) switch (context$3$0.prev = context$3$0.next) { case 0: context$3$0.next = 2; return regeneratorRuntime.awrap(globalCondition.met('noOtherGiftMoney')); case 2: __webpack_require__("4e3c7d7dbd4a9cb66f77").init(false); case 3: case 'end': return context$3$0.stop(); } }, null, _this); }, 1000); __webpack_require__("ffcdb5971a2d6b937e35").init(); } }); }; var showCustomQrCode = function showCustomQrCode(content) { var couponValue = arguments.length <= 1 || arguments[1] === undefined ? '' : arguments[1]; if (G.site !== 'yangkeduo') return; if ($('html').hasClass('gwd_yangkeduo')) return; var templateHtml = __webpack_require__("e7fee558b938bda9ac19"); var result = template.compile(templateHtml)({ qrcode: content, s_server: G.s_server, coupon: couponValue }); $('body').append(result); }; var renderCoupon = function renderCoupon(data) { __webpack_require__("03dd60018ce5ed1344a1")('coupon:show'); var tle = "点击领券"; var html = __webpack_require__("0a13b548cf801a08476d"); if (G.ss_name === 'priceDog') { html = __webpack_require__("1d233b6c5f191dda20fb"); } $('#bijiago-banner-ad').remove(); if (G.site === 'yangkeduo' || data._jump === 'qrcode') { (function () { var productInfo = { itemNumId: G.dp.itemId, amount: data.coupon, couponUrl: data.click_url, discountPrice: data.price, effectiveStartTime: data.start_time, effectiveEndTime: data.end_time, id: G.dp.itemId, picUrl: $('.islider-outer img').attr('src'), pid: 'top', tmall: false, pdd: G.site === 'yangkeduo', shopName: G.site === 'yangkeduo' ? '拼多多' : '京东', title: $('.enable-select').text() }; if (G.site === 'yangkeduo') { getQRCode(productInfo, data.click_url, function (qrcodeData) { if (parseInt(data.coupon)) { $(bdom).append(template.compile(html)({ price: data.coupon, url: data.click_url, tle: tle, isShowPic: true, picUrl: qrcodeData[0].imgSrc, isBottom: true, lang: G.lang })); showCustomQrCode(qrcodeData[0].imgSrc, '当前商品领券立减' + data.coupon + '元'); } else { showCustomQrCode(qrcodeData[0].imgSrc); } }, true); } else { (function () { if (parseInt(data.coupon)) { $(bdom).append(template.compile(html)({ price: data.coupon, url: data.click_url, tle: tle, isShowPic: true, picUrl: 'xx', isBottom: true })); } var qr = false; $('#top_coupon_btn').hover(function () { if (qr) return; getQRCode(productInfo, data.click_url, function (qrcodeData) { qr = true; $('#top_coupon_btn img').attr('src', qrcodeData[0].imgSrc); }, true); }); })(); } })(); } else { $(bdom).after(template.compile(html)({ price: data.coupon, url: data.click_url, tle: tle, isShowPic: false, lang: G.lang })); } renderMini(data); if (G.site === '360buy') { cnzz.log('京东顶部优惠券', '展示'); cnzz.log('京东中间优惠券', '展示'); $('#top_coupon_btn').click(function () { cnzz.log('京东顶部优惠券', '点击'); }); $('#top_coupon_btn').hover(function () { cnzz.logOnce('京东顶部优惠券', '悬浮'); }); $('.bjgou-coupon-take').click(function () { cnzz.log('京东中间优惠券', '点击'); }); $('.bjgou-coupon-take').hover(function () { cnzz.logOnce('京东中间优惠券', '悬浮'); }); __webpack_require__("08527d571215689ce73c").init(data.click_url, '领券下单'); } }; var renderMini = function renderMini(info) { var data = { coupon: { coupon_money: info.coupon }, click_url2: info.click_url }; var html = __webpack_require__("c539c7b7d45c43a79a69"); var views = template.compile(html)({ data: data, isShowPic: false, site: G.site }); var productInfo = { itemNumId: G.dp.itemId, amount: data.coupon, couponUrl: data.click_url, discountPrice: data.price, effectiveStartTime: data.start_time, effectiveEndTime: data.end_time, id: G.dp.itemId, picUrl: $('.islider-outer img').attr('src'), pid: 'top', tmall: false, pdd: G.site === 'yangkeduo', shopName: G.site === 'yangkeduo' ? '拼多多' : '京东', title: $('.enable-select').text() }; $('#bjg-coupon-placeholder').replaceWith(template.compile(html)({ data: data, price: data.coupon, url: data.click_url2, tle: G.dp.title, isShowPic: info._jump === 'qrcode', picUrl: 'xx', isBottom: false, lang: G.lang, site: G.site })); setTimeout(function () { var qr = false; $('.bjgou-coupon-take').hover(function () { if (!qr) { getQRCode(productInfo, data.click_url2, function (qrcodeData) { qr = true; $('.bjgou-coupon-take img').attr('src', qrcodeData[0].imgSrc); $('.bjgou-coupon-take img').css('visibility', 'visible'); }, true); } }); }, 0); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "36fc24d930a0aa9d3219": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SectionTitle_vue_vue_type_template_id_0e0fcbce_scoped_true___ = __webpack_require__("46626842d24683ced1e1"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__SectionTitle_vue_vue_type_script_lang_js___ = __webpack_require__("ce1f5d69ec1c53770f90"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__SectionTitle_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__SectionTitle_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__SectionTitle_vue_vue_type_style_index_0_id_0e0fcbce_scoped_true_lang_less___ = __webpack_require__("ab5b31c736c8c944fb5a"); /* 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__SectionTitle_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__SectionTitle_vue_vue_type_template_id_0e0fcbce_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__SectionTitle_vue_vue_type_template_id_0e0fcbce_scoped_true___["b" /* staticRenderFns */], false, null, "0e0fcbce", 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('0e0fcbce')) { api.createRecord('0e0fcbce', component.options) } else { api.reload('0e0fcbce', component.options) } module.hot.accept("./SectionTitle.vue?vue&type=template&id=0e0fcbce&scoped=true&", function () { api.rerender('0e0fcbce', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/bjgou/components/SectionTitle.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "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"]; /***/ }), /***/ "379f1e81d3df300589c8": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _vm._m(0) } var staticRenderFns = [ function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", [ _c("div", { staticClass: "ant-spin ant-spin-spinning ant-spin-sm" }, [ _c("span", { staticClass: "ant-spin-dot ant-spin-dot-spin" }, [ _c("i", { staticClass: "ant-spin-dot-item" }), _vm._v(" "), _c("i", { staticClass: "ant-spin-dot-item" }), _vm._v(" "), _c("i", { staticClass: "ant-spin-dot-item" }), _vm._v(" "), _c("i", { staticClass: "ant-spin-dot-item" }) ]) ]) ]) } ] render._withStripped = true /***/ }), /***/ "380f40de869e4794976c": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__PriceProtectBar_vue_vue_type_template_id_074e6fb7_scoped_true___ = __webpack_require__("8882b82c321a13f31194"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__PriceProtectBar_vue_vue_type_script_lang_js___ = __webpack_require__("f00e764040e3423c38e0"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__PriceProtectBar_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__PriceProtectBar_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__PriceProtectBar_vue_vue_type_style_index_0_id_074e6fb7_scoped_true_lang_less___ = __webpack_require__("c07fb2b6cebe8e8b123e"); /* 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__PriceProtectBar_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__PriceProtectBar_vue_vue_type_template_id_074e6fb7_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__PriceProtectBar_vue_vue_type_template_id_074e6fb7_scoped_true___["b" /* staticRenderFns */], false, null, "074e6fb7", 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('074e6fb7')) { api.createRecord('074e6fb7', component.options) } else { api.reload('074e6fb7', component.options) } module.hot.accept("./PriceProtectBar.vue?vue&type=template&id=074e6fb7&scoped=true&", function () { api.rerender('074e6fb7', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/bjgou/components/PriceProtectBar.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "3832d7e2010c4bcbbba2": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { directives: [ { name: "show", rawName: "v-show", value: _vm.data.length, expression: "data.length" } ], staticClass: "gwd-promo-plan" }, [ _c("table", [ _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 /***/ }), /***/ "38c3da6a2366a559454c": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_script_lang_js___ = __webpack_require__("000bbf01d73ab546daa9"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "398e7c903a0cfb55f9a0": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("984fb26cd63aa11f2f19"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("6f5a3234", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QRLinkContactTmall.vue?vue&type=style&index=0&id=4148f062&scoped=true&lang=less&", function() { var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QRLinkContactTmall.vue?vue&type=style&index=0&id=4148f062&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "399d3eb4adfb0281eed0": /***/ (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_QRLink_vue_vue_type_script_lang_js___ = __webpack_require__("9dd6cec84ada5cb63221"); /* 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_QRLink_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_QRLink_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_QRLink_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_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_QRLink_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_QRLink_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "39c432bd7bb3fe587696": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, $, G, Vue) { var _this = this; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _componentsQRLinkContactTmallVue = __webpack_require__("f48ba811c1b2ba7ef0c9"); var _componentsQRLinkContactTmallVue2 = _interopRequireDefault(_componentsQRLinkContactTmallVue); var _componentsQRLinkContact = __webpack_require__("9da5f4760618b9fa7a9d"); var _componentsQRLinkContact2 = _interopRequireDefault(_componentsQRLinkContact); var _componentsQRLinkLeft = __webpack_require__("b7625ccf65439ca48f6a"); var _componentsQRLinkLeft2 = _interopRequireDefault(_componentsQRLinkLeft); var QRLink = __webpack_require__("041f80fea3d67bf79b22")['default']; var qrReplaceJd = function qrReplaceJd() { return regeneratorRuntime.async(function qrReplaceJd$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return $('.mobile-only.J-mobile-only .qrcode.fl img').length; }, 300, 20)); case 2: if ($('.qrcode.fl img').length) { __webpack_require__("f02e7d39b343f92cf387").get('baiyibutie').then(function (r) { $('.mobile-only.J-mobile-only').css('position', 'relative').append('<img style="position: absolute; top: 0; left: -110px;" src="https://cdn.gwdang.com/images/extensions/jdScanHint.svg">'); $('.qrcode.fl img').attr('src', r).css('width', '80px'); }); } case 3: case 'end': return context$1$0.stop(); } }, null, _this); }; var qrReplaceTaobao = function qrReplaceTaobao() { var s, s2, imgSrc, loadQr, imgSrcRight, loadQrRight; return regeneratorRuntime.async(function qrReplaceTaobao$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: s = document.createElement('STYLE'); s.innerHTML = ' \n #tk-qr-container > img { display: none!important } \n '; document.body.appendChild(s); s2 = document.createElement('STYLE'); s2.innerHTML = '\n .gwd-minibar-bg { margin-top: 20px; }\n '; document.body.appendChild(s2); imgSrc = ''; loadQr = function loadQr() { __webpack_require__("316f9c352c6202560d16").log('qrload start'); if (imgSrc) return; __webpack_require__("f02e7d39b343f92cf387").get(10).then(function (r) { imgSrc = r; }); }; imgSrcRight = ''; loadQrRight = function loadQrRight() { __webpack_require__("316f9c352c6202560d16").log('qrload start'); if (imgSrcRight) return; __webpack_require__("f02e7d39b343f92cf387").get(11).then(function (r) { imgSrcRight = r; }); }; context$1$0.next = 12; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return $('#tk-qr-container').length || $('.tb-qrcode-tool').length; })); case 12: $('[class^=Promotion--trigger]').hover(loadQr); $('.tb-qrcode-tool').hover(loadQr); $('.toolkit-item-qrcode').hover(loadQrRight); __webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return imgSrc; }).then(function () { if ($('[class^=ItemQR--itemQR]').find('img').length) { $('[class^=ItemQR--itemQR]').find('img').attr('src', imgSrc); } else { $('[class^=ItemQR--itemQR]').prepend('<img src="' + imgSrc + '" style="width: 91px; height: 91px;">'); } $('[class^=ItemQR--itemQR] canvas').hide(); $('.ks-popup-content img.image').attr('src', imgSrc).css({ width: '167px', height: '167px', padding: '10px', boxSizing: 'border-box' }); window.gwd_qr_replaced = true; }); __webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return $('#tk-qr-container > img').length && imgSrcRight !== ''; }).then(function () { $('#tk-qr-container > img').attr('src', imgSrcRight).css('width', '100px'); s.remove(); }); // require('common/mutationObserver').observe($('#tk-qr-container')[0], () => { // if ($('#tk-qr-container > img').length && $('#tk-qr-container > img').attr('src') !== imgSrc ) { // $('#tk-qr-container > img').attr('src', imgSrc) // } // }) case 17: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports.init = function callee$0$0() { var e, tag, _ret2; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { var _this2 = this; while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!(['tmall', 'taobao', '360buy'].indexOf(G.site) === -1)) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: e = document.createElement('DIV'); if (!(G.site === '360buy')) { context$1$0.next = 8; break; } $('.preview-wrap').append(e); qrReplaceJd(); context$1$0.next = 12; break; case 8: qrReplaceTaobao(); context$1$0.next = 11; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return $('#cptklbox').length > 0; })); case 11: if ($('#cptklbox').length) { $('#cptklbox').after(e); } else { $('.tb-gallery').append(e); } case 12: tag = 7; if (G.from_device === 'bijiago') { tag = 9; } if (G.ss_name !== 'priceDog') { $('.gwd-qrlink').remove(); new Vue({ el: e, render: function render(h) { return h(QRLink, { props: { tag: tag } }); } }); } // // $('.tb-gallery').append(` // <div style="position: absolute; width: 50px; height: 50px; background: aqua; top: 0; left: 0"></div> // `) if (G.aliSite) { (function () { $('.gwd-qrlink-left').remove(); var e2 = document.createElement('DIV'); var left = -113; var bottom = undefined; if (G.site === 'tmall') { var _e = $('.tb-gallery'); if (_e.length) { _e.append(e2); left = -96; } else { $('[class^=PicGallery--mainPicWrap]').append(e2); left = -125; bottom = '0'; } } else { $('.tb-item-info-l').append(e2); } new Vue({ el: e2, render: function render(h) { return h(_componentsQRLinkLeft2['default'], { props: { tag: tag, left: left, bottom: bottom } }); } }); })(); } __webpack_require__("9c38beef5ff283e15bd2").setMet('QRLinkReady'); // 天猫顶部联系客服 if (!(G.site === 'tmall' && G.ss_name !== 'priceDog')) { context$1$0.next = 23; break; } context$1$0.next = 20; return regeneratorRuntime.awrap((function callee$1$0() { var isNewStyle, div, dom; return regeneratorRuntime.async(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: isNewStyle = $('[class^=BasicContent--root]').length > 0; context$2$0.next = 3; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return $('.ww-light.ww-static').length > 0 || isNewStyle; })); case 3: $('.gwd-contact-link').remove(); div = document.createElement('DIV'); if (isNewStyle) { $('.gwd-fake').remove(); $('[class^=BasicContent--itemInfo] > [class^=Actions--root]').append('<div class="Actions--divider--2U8scvj gwd-fake"></div>'); $('[class^=BasicContent--itemInfo] > [class^=Actions--root]').append(div); } else { $('.ww-light.ww-static').css({ whiteSpace: 'nowrap' }).append(div); } window.contact = new Vue({ el: div, render: function render(h) { return h(_componentsQRLinkContactTmallVue2['default'], { props: { tag: 4, withLogo: isNewStyle } }); } }); dom = '#J_tbExtra'; if (G.site === 'tmall') { dom = '.tb-wrap'; } $(dom).append('\n <dl class="gwd-qrlink" style="overflow: inherit">\n <dt style="display: inline-block;' + (G.site === 'tmall' ? 'padding-left: 20px; color: #999' : '') + '">快捷联系</dt>\n <dd style="overflow: initial; display: inline-block">\n <div class="ww-light ww-static" style="display: inline-block; vertical-align: middle; overflow: inherit; width: 20px; height: 22px">\n <a href="" class="ww-inline ww-online"></a>\n </div>\n <div id="gwd-link" style="display: inline-block; vertical-align: middle"></div>\n </dd>\n </dl>\n '); if ($('#gwd-link').length) { context$2$0.next = 12; break; } return context$2$0.abrupt('return', { v: undefined }); case 12: new Vue({ el: '#gwd-link', render: function render(h) { return h(_componentsQRLinkContact2['default'], { props: { tag: '' } }); } }); case 13: case 'end': return context$2$0.stop(); } }, null, _this2); })()); case 20: _ret2 = context$1$0.sent; if (!(typeof _ret2 === 'object')) { context$1$0.next = 23; break; } return context$1$0.abrupt('return', _ret2.v); case 23: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "3afb6d547b10fe89cef9": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var globalData, callbacks; var getBasicInfo = function getBasicInfo() { var product = G.dp; var itemID = product.itemId, cid = product.cat_id, userid = G.guid || product.userid || createUserId(), title = encodeURIComponent(product.name), price = product.price, url = product.url, pic = encodeURIComponent(product.pic), website = product.website; if (!website) return; var str = 'itemId=' + itemID + '&title=' + title + '&cid=' + cid + '&price=' + price + '&url=' + encodeURIComponent(url) + '&pic=' + pic + '&website=' + website + '&userId=' + userid + ','; return str; }; var createUserId = function createUserId() { var str = '0122'; var randomstr = '0123456789abcdefghijklmn'; for (var i = 0; i < 28; i++) { str += randomstr[parseInt(Math.random() * 28)]; } return str; }; module.exports.init = function (callback) { if (globalData) { callback(globalData); } else if (globalData === 0) { callback(null); } else { callbacks = callback; } }; module.exports.ready = function (done) { var info = getBasicInfo(); if (!info) return; var url = "http://kksofts.com/api/recomm"; communicate.on(function (data) { try { if (data.type == 'taotaosou') { globalData = JSON.parse(data.value); if (callbacks) callbacks(globalData); done(globalData); } } catch (e) { globalData = 0; } }); communicate.trigger({ type: 'taotaosou', info: getBasicInfo(), url: url }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "3b883231bf796b51a8b8": /***/ (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_BottomFavor_vue_vue_type_template_id_013bbf9d_scoped_true___ = __webpack_require__("beda0098e9fb30cb11a4"); /* 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_BottomFavor_vue_vue_type_template_id_013bbf9d_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_BottomFavor_vue_vue_type_template_id_013bbf9d_scoped_true___["b"]; }); /***/ }), /***/ "3be7d467c6bac9354a1b": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-qr-login[data-v-6179ab9e] {\n position: fixed;\n bottom: 65px;\n left: 0;\n right: 0;\n}\n.gwd-qr-login .gwd-qr-box[data-v-6179ab9e] {\n margin-top: 6px;\n width: 190px;\n height: 217px;\n background: linear-gradient(180deg, #FFF9F6 0%, #FFF9F6 100%);\n opacity: 1;\n border: 1px solid #FF471A;\n}\n", ""]); // exports /***/ }), /***/ "3c102bca554f27879709": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_style_index_0_id_24d41b24_lang_less_scoped_true___ = __webpack_require__("719962cffbaf4ac55086"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_style_index_0_id_24d41b24_lang_less_scoped_true____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_style_index_0_id_24d41b24_lang_less_scoped_true___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_style_index_0_id_24d41b24_lang_less_scoped_true____default.a); /***/ }), /***/ "3d1e2b0181974f8586a2": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _MemberCouponMixin = __webpack_require__("1fffec0778a8d8b2e8e2"); var _MemberCouponMixin2 = _interopRequireDefault(_MemberCouponMixin); var _MemberCouponQr = __webpack_require__("0c4497b5d7aa90d42b50"); var _MemberCouponQr2 = _interopRequireDefault(_MemberCouponQr); var _standardModuleComponentsCommonCouponBarMini = __webpack_require__("bf749102803a6e48eddc"); var _standardModuleComponentsCommonCouponBarMini2 = _interopRequireDefault(_standardModuleComponentsCommonCouponBarMini); exports['default'] = { mixins: [_MemberCouponMixin2['default']], components: { CommonCouponBarMini: _standardModuleComponentsCommonCouponBarMini2['default'] }, data: function data() { return { icon: __webpack_require__("f91a94ff4014724ed642"), G: G }; } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "3d9c297936c34b56d812": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "bjgou-subsidy-bar-bottom gwd-row gwd-align" }, [ _c("span", { staticClass: "coupon-marleft" }), _vm._v(" "), _c( "a", { staticStyle: { cursor: "pointer" }, attrs: { id: "top_coupon_btn", href: _vm.link, target: "_blank", title: "点击领取" } }, [ _c("span", { staticClass: "top-coupon-tle" }, [ _vm._v(_vm._s(_vm.getText("当前商品可领券"))) ]), _vm._v(" "), _c( "span", { staticClass: "price-num", staticStyle: { "margin-left": "25px" } }, [ _c("span", { staticClass: "price-sm" }, [_vm._v("¥")]), _c("span", [_vm._v(_vm._s(_vm.coupon.discount))]) ] ), _vm._v(" "), _c("em", { staticClass: "link_hand" }), _vm._v(" "), false ? _c("div", { staticClass: "gwd-coupon-qr" }, [ _c( "span", { staticClass: "gwd-coupon-title", staticStyle: { "margin-top": "6px" } }, [ _vm._v( _vm._s(_vm.getText("领券满")) + _vm._s(_vm.coupon.limit) + _vm._s(_vm.getText("减")) + _vm._s(_vm.coupon.discount) ) ] ), _vm._v(" "), _c("img", { staticStyle: { "margin-top": "5px", width: "120px", height: "120px" }, attrs: { src: this.img, alt: "" } }), _vm._v(" "), _c( "div", { staticStyle: { "vertical-align": "bottom", "margin-top": "6px", "text-align": "center", height: "14px", "line-height": "14px" } }, [ _c( "span", { staticStyle: { "font-size": "14px", "font-weight": "bold", color: "#ff6132" } }, [_vm._v(_vm._s(_vm.getText("淘宝APP扫码")))] ), _vm._v(" "), _c( "span", { staticStyle: { "margin-left": "4px", "font-size": "12px", color: "#333333" } }, [_vm._v(_vm._s(_vm.getText("领店铺券")))] ) ] ) ]) : _vm._e() ] ) ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "3dbec38a0e3472df70b7": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var parseprice = __webpack_require__("cb0906562effcf1b0e6c"); var request = __webpack_require__("91f250ebeb8d5987491c"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var gwd_protocol = 'https:'; var timer, timer2, weight; var HOST; var noSale; var HT = {}; var htX, htY, mouseDownX; var country = 'us'; var cateDict, transDict; /*转换成厘对应比例*/ var sizeDict = { '米': 3000, '厘米': 30, '毫米': 3, '英尺': 914.4, '英寸': 76.2, '码': 2743.2, '尺': 1000, '寸': 100, '分': 10, '厘': 1 }; var weightDict = { 'g': 1, 'kg': 1000, 'ounces': 28.35, 'pounds': 453.60 }; var clothesDict = { 'shangyi': { 'us': { 'man': ['us_man_sz.jpg', 'us_man_sz2.jpg'], 'woman': ['us_woman_sz.jpg', 'us_woman_sz2.jpg'] }, 'uk': { 'man': ['uk_man_sz.jpg', 'uk_man_sz2.jpg'], 'woman': ['uk_woman_sz.jpg', 'uk_woman_sz2.jpg'] }, 'jp': { 'man': ['jp_man_sz.jpg', 'jp_man_sz2.jpg'], 'woman': ['jp_woman_sz.jpg', 'jp_woman_sz2.jpg'] } }, 'xiazhuang': { 'us': { 'man': ['us_man_xz.jpg', 'us_man_xz2.jpg'], 'woman': ['us_woman_xz.jpg', 'us_woman_xz2.jpg'] }, 'uk': { 'man': ['uk_man_xz.jpg', 'uk_man_xz2.jpg'], 'woman': ['uk_woman_xz.jpg', 'uk_woman_xz2.jpg'] }, 'jp': { 'man': ['jp_man_xz.jpg', 'jp_man_xz2.jpg'], 'woman': ['jp_woman_xz.jpg', 'jp_woman_xz2.png'] } }, 'kidscloth': { 'us': ['us_kids.jpg', 'us_kids2_0.jpg', 'us_kids2_4.jpg'], 'uk': ['uk_kids.jpg', 'uk_kids2_0.jpg', 'uk_kids2_4.jpg'], 'jp': ['jp_kids.jpg', 'jp_kids2_4.jpg', 'jp_kids2_4.jpg'] }, 'shoes': { 'man': ['woman_shoes_1.jpg', 'man_shoes2.jpg'], 'woman': ['woman_shoes_1.jpg', 'woman_shoes2.jpg'], 'kids': ['kids_shoes.jpg', 'kids_shoes2_0.jpg', 'kids_shoes2_4.jpg'] } }; var sitePattern = { 'www.amazon.com': { 'coun': 'us', 'dom': ['#price_feature_div', '#unifiedPrice_feature_div'], 'position': 'after' }, 'www.amazon.co.jp': { 'coun': 'jp', 'dom': ['#price_feature_div', '#unifiedPrice_feature_div'], 'position': 'after' }, 'www.amazon.de': { 'coun': 'uk', 'dom': ['#price_feature_div', '#unifiedPrice_feature_div'], 'position': 'after' }, 'www.amazon.com.au': { 'coun': 'au', 'dom': ['#price_feature_div', '#unifiedPrice_feature_div'], 'position': 'after' }, 'www.amazon.co.uk': { 'coun': 'uk', 'dom': ['#price_feature_div', '#unifiedPrice_feature_div'], 'position': 'after' }, 'www.amazon.fr': { 'coun': 'fr', 'dom': ['#price_feature_div', '#unifiedPrice_feature_div'], 'position': 'after' }, 'www.6pm.com': { 'coun': 'us', 'dom': ['.mGIQz'], 'position': 'before' } }; var categoryDict1 = { 'coffee': '咖啡', 'snack': '饮料/保健品/其他食品', 'nut': '饮料/保健品/其他食品', 'pistachio': '饮料/保健品/其他食品', 'almond': '饮料/保健品/其他食品', 'chestnuts': '饮料/保健品/其他食品', 'walnut': '饮料/保健品/其他食品', 'hazelnut': '饮料/保健品/其他食品', 'pecan': '饮料/保健品/其他食品', 'cashew': '饮料/保健品/其他食品', 'peanut': '饮料/保健品/其他食品', 'chocolates': '饮料/保健品/其他食品', 'pastry': '饮料/保健品/其他食品', 'candy': '饮料/保健品/其他食品', 'condiment': '饮料/保健品/其他食品', 'ketchup': '饮料/保健品/其他食品', 'beverage': '饮料/保健品/其他食品', 'tea': '茶叶', 'coats': '外衣/衣服/冲锋衣', 'clothes': '外衣/衣服/冲锋衣', 'shirt': '外裤/裤子/衬衫/衬衣/T恤', 'sweaters': '外裤/裤子/衬衫/衬衣/T恤', 'lingerie': '内衣/内裤', 'tankinis': '内衣/内裤', 'bikinis': '内衣/内裤', 'loungewear': '内衣/内裤', 'underwear': '内衣/内裤', 'briefs': '内衣/内裤', 'swimsuit': '内衣/内裤', 'scarves': '配饰(帽子/围巾/头巾/丝巾/领带/腰带/手套)', 'hats': '配饰(帽子/围巾/头巾/丝巾/领带/腰带/手套)', 'scarf': '配饰(帽子/围巾/头巾/丝巾/领带/腰带/手套)', 'tie': '配饰(帽子/围巾/头巾/丝巾/领带/腰带/手套)', 'belt': '配饰(帽子/围巾/头巾/丝巾/领带/腰带/手套)', 'gloves': '配饰(帽子/围巾/头巾/丝巾/领带/腰带/手套)', 'bedding': '毛毯/被子/床罩/睡袋', 'quilt': '毛毯/被子/床罩/睡袋', 'bedspread ': '毛毯/被子/床罩/睡袋', 'leather': '皮鞋', 'boots': '皮靴/靴子', 'outdoor': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋', 'athletic': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋', 'sports': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋', 'wading': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋', 'climbing': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋', 'running': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋', 'sandals': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋', 'slippers': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋', 'insoles': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋', 'shoelaces': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋', 'suitcases': '箱/行李箱/旅行箱/手提箱', 'luggage': '箱/行李箱/旅行箱/手提箱', 'briefcases': '箱/行李箱/旅行箱/手提箱', 'travel': '箱/行李箱/旅行箱/手提箱', 'backpacks': '挎包/背包/邮差包/背包/单肩包/双肩包', 'satchel': '挎包/背包/邮差包/背包/单肩包/双肩包', 'bags': '挎包/背包/邮差包/背包/单肩包/双肩包', 'cases': '挎包/背包/邮差包/背包/单肩包/双肩包', 'handbags': '挎包/背包/邮差包/背包/单肩包/双肩包', 'clutches': '挎包/背包/邮差包/背包/单肩包/双肩包', 'wallet': '钱包/钥匙包', 'money': '钱包/钥匙包', 'key': '钱包/钥匙包', 'watches': '机械表', 'wrist': '机械表', 'dishwashers': '餐具/刀具', 'hoods': '餐具/刀具', 'drawers': '餐具/刀具', 'dath': '餐具/刀具', 'cutlery': '餐具/刀具', 'flatware': '餐具/刀具', 'kitchen & dining': '餐具/刀具', 'dining': '餐具/刀具', 'knife': '餐具/刀具', 'pot': '炊具/锅', 'cookware': '炊具/锅', 'kitchenware': '炊具/锅', 'cooktops': '炊具/锅', 'purifier': '净水器(含滤芯)', 'steamers': '电饭煲', 'ovens': '微波炉', 'juicer': '电动榨汁机', 'coffeemachine': '咖啡机', 'vacuums': '吸尘器', 'ceiling ': '电风扇', 'irons': '电熨斗', 'humidifiers': '增/除湿机/増除湿一体机', 'sewing': '电动缝纫机', 'refrigerators': '家电', 'freezers': '家电', 'compactors': '家电', 'washers': '家电', 'bulbs': '家电', 'shaver': '电动剃须刀', 'blood': '血压计/血糖计', 'glucose': '血压计/血糖计', 'dryer': '电吹风机', 'toothbrush': '电动牙刷', 'sunscreen': '防晒露/防晒霜/防嗮乳液', 'lotions': '防晒露/防晒霜/防嗮乳液', 'scream': '护手霜', 'lipstick': '唇膏', 'perfume': '香水', 'masks': '面膜', 'toner': '爽肤水', 'phones': '触屏式手机', 'cameras': '数码相机/卡片机/DC', 'canon': '数码相机/卡片机/DC', 'joystick': '游戏机遥控器/控制器/手柄/摇杆/方向盘', 'controller': '游戏机遥控器/控制器/手柄/摇杆/方向盘', 'recorder': '录音笔/录音机/收音机', 'radios': '录音笔/录音机/收音机', 'echo': '音箱(音响设备)', 'stereos': '音箱(音响设备)', 'laptop': '笔记本电脑/含平板电脑', 'memory': '内存条4G以上', 'cards': '功能卡/显卡/声卡等', 'card': '功能卡/显卡/声卡等', 'mice': '鼠标', 'keyboards': '键盘', 'input': '键盘', 'scanner': '投影仪', 'screens': '投影仪', 'disk': '移动硬盘1TB-2TB(含2TB)', 'toys': '玩具', 'mp3 players': 'MP3播放器', 'diapering': '婴儿用品' }; var categoryDict2 = { 'food': { 'tle': '食品', 'cate': 'cate1' }, 'clothing': { 'tle': '服饰', 'cate': 'cate2' }, 'packs': { 'tle': '鞋、箱包', 'cate': 'cate3' }, 'shoes': { 'tle': '鞋、箱包', 'cate': 'cate3' }, 'bags': { 'tle': '鞋、箱包', 'cate': 'cate3' }, 'kitchen & dining': { 'tle': '厨房、餐厅', 'cate': 'cate4' }, 'home & kitchen': { 'tle': '家电', 'cate': 'cate6' }, 'health & personal': { 'tle': '个人护理', 'cate': 'cate7' }, 'beauty ': { 'tle': '美容', 'cate': 'cate8' }, 'camera & photo ': { 'tle': '照相机、摄像机', 'cate': 'cate11' }, 'electronics': { 'tle': '电子数码', 'cate': 'cate12' }, 'cumputers': { 'tle': '个人电脑', 'cate': 'cate15' }, 'diapering': { 'tle': '婴儿用品', 'cate': 'cate18' } }; var searchCateDict = ['#wayfinding-breadcrumbs_feature_div .a-list-item .a-link-normal', '#SalesRank .zg_hrsr_ladder a']; var weightDom = { 'www.amazon.com': ['#detailBullets_feature_div .a-list-item .a-text-bold:contains(Weight) + span', '#technical-details-table td:contains(Weight)+td', '#detail-bullets ul li:contains(Weight)', '#technical-details_feature_div table.a-keyvalue th.a-nowrap:contains("Shipping Weight")+td'], 'www.amazon.de': ['#detail_bullets_id ul li:contains(Produktgewicht)', '#prodDetails .shipping-weight .value'], 'www.amazon.co.jp': ['#detail_bullets_id ul li:contains(発送重量)', '.shipping-weight .value'], 'www.6pm.com': ['#prdInfoText .measurements li:contains(Weight)'] }; /*初始化*/ function init() { if (G.IE6 || G.IE7 || G.IE8 || G.IE9) return; if (!isHaitaoPage()) return; getCountry(); getMessage(function () { insertHtml(); if ($('#gwd_ht_main').length == 0) return; render_size_detail(); render_trans_detail(); insertShop(); insertSize(clothesDict['shangyi'][country]['man'][0], clothesDict['shangyi'][country]['man'][1]); addEvent(); addSizeEvent(); fixPageCss(); getSelect(); searchCate(); showTransport(); changePrice(); listenPrice(); if (G.email) { check_favor(); } else { $(document).on('checkfavor', function () { check_favor(); }); } checkRemove(); }); } var checkTime = 0; var checkRemove = function checkRemove() { if (checkTime > 10) { clearTimeout(tt); return; } var tt = setTimeout(function () { if ($('#gwd_ht_main .ht_head .gwd_site_icon').length === 0) { $('#gwd_ht_main').remove(); init(); } else { checkTime++; checkRemove(); } }, 4000); }; function editCurrent(arr) { /*配置文件有一些不是人民币,需要转换*/ if (!arr) return []; /*参加活动的转运商家随机排序, 其他的放后面*/ var looparr = [], elsearr = []; for (var i = 0; i < arr.length; i++) { if (arr[i]['current'] && !arr[i]['asce']) { if (arr[i]['type']) { arr[i].firstW[1] = parseprice(arr[i].firstW[1], arr[i]['type']); arr[i].nextW[1] = parseprice(arr[i].nextW[1], arr[i]['type']); } else { arr[i].firstW[1] = parseprice(arr[i].firstW[1]); arr[i].nextW[1] = parseprice(arr[i].nextW[1]); } } if (arr[i].sale_tle) noSale = true; if (arr[i].cooper) looparr.push(arr[i]);else elsearr.push(arr[i]); /*有一些转运商家使用货币和当前网页使用的汇率不一致,需要再请求一次汇率*/ } arr = looparr.sort(function () { return Math.random() - 0.5; }).concat(elsearr); return arr; } function getMessage(callback) { var url = gwd_protocol + '//browser.' + G.extName + '.com/extension?ac=haitaoInfo'; request.get(url).done(function (data) { if (data && data.cate && data.trans) { cateDict = data.cate; transDict = data.trans; transDict[country] = editCurrent(transDict[country]); callback(); } }); } function isHaitaoPage() { /*判断是否是海淘页面*/ var host = location.host; var twSites = ['shopee.tw', 'momoshop', 'rakuten', 'books.com.tw', '24h.pchome.com.tw', '.yahoo.com']; if (twSites.some(function (item) { return host.includes(item); })) { return true; } for (var pattern in sitePattern) { if (host == pattern) return true; } return false; } function setTariff(t) { /*自动设置关税 --- 2级分类*/ $('.ht_tariff_btn span').text(t.slice(0, 5)); $('.ht_tariff_btn span').attr('title', t); $('#cate_small').val(t); $('.ht_tariff_cate').text(t); replaceStr('#cate_small'); replaceStr('.ht_tariff_cate', 'text', 4); for (var pattern in cateDict) { var len = cateDict[pattern].length; for (var i = 0; i < len; i++) { if (cateDict[pattern][i][1] == t) { var txt = $('#big_xiala a[cate="' + pattern + '"]').text(); $('#cate_big').val(txt); replaceStr('#cate_big'); insertCate(cateDict[pattern]); $('.ht_tariff .ht_tariff_num em').text(cateDict[pattern][i][0]); } } } } function setTariff2(p) { /*自动设置关税 --- 1级分类*/ var t = categoryDict2[p].tle; var cate = categoryDict2[p].cate; $('.ht_tariff_btn span').text(t.slice(0, 5)); $('.ht_tariff_btn span').attr('title', t); $('#cate_big').val(t); replaceStr('#cate_big'); $('#cate_small').val(cateDict[cate][cateDict[cate].length - 1][1]); $('.ht_tariff_cate').text(cateDict[cate][cateDict[cate].length - 1][1]); replaceStr('#cate_small'); replaceStr('.ht_tariff_cate', 'text', 4); insertCate(cateDict[cate]); $('.ht_tariff .ht_tariff_num em').text(cateDict[cate][cateDict[cate].length - 1][0]); } function matchCate(t) { /*匹配2级分类*/ for (var pattern in categoryDict1) { if (t.indexOf(pattern) > -1) { return categoryDict1[pattern]; } } /*二级分类未匹配到,匹配一级分类*/ for (var pattern in categoryDict2) { if (t.indexOf(pattern) > -1) { setTariff2(pattern); return; } } return false; } function getClothes(t, c) { switch (t) { case '男装': return clothesDict['shangyi'][c]['man']; case '女装': return clothesDict['shangyi'][c]['woman']; case '童装': return clothesDict['kidscloth'][c]; case '男鞋': return clothesDict['shoes']['man']; case '女鞋': return clothesDict['shoes']['woman']; case '童鞋': return clothesDict['shoes']['kids']; } } function searchCate() { /*查找分类关键词*/ for (var j = 0; j < searchCateDict.length; j++) { var dom = searchCateDict[j]; var len = $(dom).length; for (var i = len - 1; i >= 0; i--) { var txt = $(dom).eq(i).text().toLowerCase(); var m = matchCate(txt); if (m) { setTariff(m); return; } } } } function fixPageCss() { if (navigator.userAgent.toLowerCase().indexOf('chrome') == -1) { $('#gwd_ht_main').addClass('ie_hack'); $('#transport_detail').addClass('ie_hack'); $('#size_detail').addClass('ie_hack'); } if (HOST == 'www.6pm.com') { var width = $('#gwd_ht_main').parent().outerWidth(); var newwidth = width - 355; $('#gwd_ht_main').css('margin-left', newwidth / 2 + 'px'); } } function isZiying() { if (HOST == 'www.6pm.com') return 'ziying'; if ($('#merchant-info').length > 0) { if (HOST == 'www.amazon.com') { if ($('#merchant-info').text().indexOf('sold by Amazon') > -1) return 'ziying';else return 'sanfang'; } if (HOST == 'www.amazon.co.jp') { if ($('#merchant-info').text().indexOf('jp が販売') > -1) return 'ziying';else return 'sanfang'; } if (HOST == 'www.amazon.de') { if ($('#merchant-info').text().indexOf('Verkauf und Versand durch Amazon') > -1) return 'ziying';else if ($('#merchant-info').text().indexOf('Dispatched from and sold by Amazon') > -1) return 'ziying';else return 'sanfang'; } } else return 'sanfang'; } function isZhiyou() { if (HOST == 'www.amazon.de') { if ($('#ddmShippingMessage').text().indexOf('Dieser Artikel kann nach') > -1 && $('#ddmInlineAddressInfo').text().indexOf('China') > -1) return 'zhiyou';else return 'feizhiyou'; } if ($('#detail-bullets .content ul li:contains("International Shipping")').length > 0) return 'zhiyou'; if ($('.shipping-restrictions .label:contains("International")').length > 0) return 'zhiyou';else return 'feizhiyou'; } function insertHtml() { /*插入主界面*/ __webpack_require__("7c0aeff3c6420627d592"); var html = __webpack_require__("c7950358964ec6725434"); var t = template.compile(html)({ data: { 'pageclass': addPageclass(), 'getprice': calPrice(), 'unit_price': getPrice(), 'protype': isZiying(), 'mailtype': isZhiyou(), 'he_weight': getWeight(), 'hosts': HOST, 'site': G.site == '6pm' ? '6PM' : '亚马逊', c_server: G.c_server } }); var dom, arr; arr = sitePattern[HOST]['dom']; for (var i = 0; i < arr.length; i++) { if ($(arr[i]).length > 0) dom = arr[i]; } if (!dom) return; switch (sitePattern[HOST]['position']) { case 'before': $(dom).before(t); break; case 'after': $(dom).after(t); break; } log('track:haitao:main'); cnzz.log('显示海淘主界面'); } function addPageclass() { var s = 'ht_' + HOST.split('.')[1]; return s; } function getCountry() { /*获取页面所属地区*/ var host = location.host; for (var pattern in sitePattern) { if (pattern == host) { country = sitePattern[pattern]['coun']; HOST = pattern; } } } function getWeightNum(t) { var p = t.match(/[0-9]+(?:\.|\,|)(?:[0-9]+|)/); if (p) p = p[0]; if (HOST == 'www.amazon.de') p = p.toString().replace(',', '.'); return p; } function getWeightType(t) { switch (HOST) { case 'www.amazon.com': if (t.indexOf('pounds') > -1) return 'pounds'; if (t.indexOf('ounces') > -1) return 'ounces'; break; case 'www.amazon.de': if (t.indexOf('Kg') > -1) return 'kg'; if (t.indexOf('g') > -1) return 'g'; break; case 'www.amazon.co.jp': if (t.indexOf('Kg') > -1) return 'kg'; if (t.indexOf('g') > -1) return 'g'; break; case 'www.6pm.com': if (t.indexOf('lb') > -1 && t.indexOf('oz') > -1) return 'lb_oz'; if (t.indexOf('lb') > -1) return 'pounds'; if (t.indexOf('oz') > -1) return 'ounces'; break; } } function getWeight(noCache) { if (HT.weight && !noCache) return HT.weight; var weight_1 = 0; var domarr = weightDom[HOST]; var len = domarr.length; for (var i = 0; i < len; i++) { var w = $(domarr[i]).text(); if (w != '') { var type = getWeightType(w); if (type == 'lb_oz') { var m = w.match(/[0-9]+/g); weight_1 = Math.round((weightDict['pounds'] / 1000 * parseInt(m[0]) + weightDict['ounces'] / 1000 * parseInt(m[1])) * 100) / 100; HT.weight = weight_1; return weight_1; } if (type != '') { weight_1 = Math.round(weightDict[type] / 1000 * getWeightNum(w) * 100) / 100; if (weight_1 !== 0 && !weight_1) weight_1 = 0; HT.weight = weight_1; return weight_1; } } } } function showTransport(noCache) { var weight_2 = getWeight(noCache); if (!weight_2 || weight_2 == 0) return; /*nocache为true时候,说明重量更新,需要重新设置重量*/ if (noCache) $('.ht_weight_num').val(weight_2); var minT = changeTransPrice(weight_2); var title = $('#trans_list li .trans_com').eq(minT.minindex).text(); if (title == '') return; if (minT.minprice == 99999999) return; $('.ht_freight_num').text('¥' + minT.minprice); $('.ht_transport_btn span').text(title); } function getPrice() { return G.dp.price || '0'; } function calPrice(p) { /*计算价格*/ var price = 0; if (p) price = p;else price = getPrice(); var transP = $('.ht_freight_num').text().match(/[0-9.]+/); if (transP) transP = transP[0]; var tariffP = $('.ht_tariff .ht_tariff_num em').text().match(/[0-9.]+/); if (tariffP) tariffP = tariffP[0]; if ($('.ht_tariff .ht_tariff_num') && $('.ht_tariff .ht_tariff_num').attr('data-price') == "0") { tariffP = 0; } if (!tariffP) tariffP = 0; if (!transP) transP = 0; price = Number((Number(price) + Number(transP) + Number(tariffP)).toLocaleString().replace(/,/g, '')); if (price.toString().match(/\.\d{3}/)) { price = price.toString().replace(/(\.\d{2})\d+/, '$1'); } return price; } function changeZiying() { /*价格变化可能是否是自营也会变化*/ setTimeout(function () { var ziying = isZiying(); $('.pro_type em').attr('class', ziying); if (ziying == 'ziying') { $('.pro_type .pro_t_tle').text('自营'); $('.pro_type_detail').text((G.site == '6pm' ? '6PM' : '亚马逊') + '直接销售。'); } else { $('.pro_type .pro_t_tle').text('第三方'); $('.pro_type_detail').text((G.site == '6pm' ? '6PM' : '亚马逊') + '第三方商家销售。'); } }, 1000); } function listenPrice() { /*监听价格变化*/ var priceDom = '#priceblock_ourprice'; var subdom = 'price_feature_div'; if (G.site == '6pm') { priceDom = '#priceSlot .price'; subdom = "productForm"; } var oldprice = $(priceDom).text(); var dom = document.getElementById(subdom); if (dom && dom.addEventListener) { dom.addEventListener('DOMSubtreeModified', function () { var pageprice = $(priceDom).text(); if (pageprice != oldprice && pageprice) { oldprice = pageprice; pageprice = parseprice(pageprice); $('.ht_content .price_num').text('¥' + pageprice); /*价格发生变化,说明用户改变了一些信息,重量 自营也会跟着改变*/ changePrice(pageprice); changeZiying(); setTimeout(function () { showTransport(true); }, 800); } }, false); } } function changePrice(p) { var price = '¥' + calPrice(p); $('.ht_getprice_num').text(price); } function calDetailPos() { var wWeight = ($(window).width() - 595) / 2; var wHeight = ($(window).height() - 420) / 2; return { 'posx': wWeight, 'posy': wHeight }; } function render_size_detail() { var html = __webpack_require__("db100b818efef844298c"); $('body').append(template.compile(html)({ pos: calDetailPos() })); } function render_trans_detail() { var html = __webpack_require__("2349a14162841afa7214"); $('body').append(template.compile(html)({ pos: calDetailPos(), 'ht_weight': getWeight(), c_server: G.c_server })); } function insertSize(headimg, itemimg) { /*插入尺码帮助内容*/ var Html = '<img src="http://s1.' + G.extName + '.com/images/extensions/{{imgurl}}">'; $('.size_s').empty().append(template.compile(Html)({ 'imgurl': headimg })); $('.size_item_img').empty().append(template.compile(Html)({ 'imgurl': itemimg })); } function findShop(name) { if (!transDict) return null; var transdata = transDict[country]; for (var i = 0; i < transdata.length; i++) { if (name === transdata[i].shopId && transdata[i]['asce']) { var ascearr = transdata[i]['ascearr']; var current = transdata[i]['current']; return { 'ascearr': ascearr, 'current': current }; } } } /*改变运费值*/ function changeTransPrice(weight) { var minprice = 99999999; var minindex = 0; var dom = $('#trans_list li .trans_pr'); var len = $(dom).length; for (var i = 0; i < len; i++) { var fp = Number($(dom).eq(i).attr('data-fp')); var fw = Number($(dom).eq(i).attr('data-fw')); var sw = Number($(dom).eq(i).attr('data-sw')); var sp = Number($(dom).eq(i).attr('data-sp')); var name = $(dom).eq(i).attr('data-shopname'); if (name) { var shopInfo = findShop(name); if (!shopInfo) return; var price = calTrans2(weight, shopInfo['ascearr'], shopInfo['current']); } else { var price = calTrans(weight, [fp, fw, sp, sw]); } /*因为不考虑最便宜逻辑,随机选择,因为排列的随机的,所以这里就选择第一个*/ if (i == 0) { minprice = price; } $(dom).eq(i).text('¥' + price); } return { 'minindex': minindex, 'minprice': minprice }; } function conversionSize() { /*尺码转换*/ var first = $('.first_xiala').val(); var second = $('.second_xiala').val(); var num = $('#first_size').val(); if (num) num = Number(num); var n1 = sizeDict[first]; var n2 = sizeDict[second]; var n3 = num * n1 / n2; if (n3.toString().indexOf('.') > -1) n3 = n3.toFixed(2); $('#second_size').val(n3); } /*计算运费*/ function calTrans(weight, arr) { /*fp:首重价格 fw 首重的重量 sp 续重价格 sp 续重重量*/ var fp = arr[0], fw = arr[1], sp = arr[2], sw = arr[3]; var price; var pow = 1; if (sw.toString().indexOf('.') > -1) pow = sw.toString().match(/\.(\d+)/)[1].length; if (fp == "0") { price = weight / sw * sp; } else if (weight <= fw) { price = fp; } else { var weight2 = weight - fw; var weight3 = 0; if (weight2 * Math.pow(10, pow) % (sw * Math.pow(10, pow)) == 0) weight3 = weight2 / sw;else weight3 = parseInt(weight2 / sw) + 1; var price = fp + weight3 * sp; } return Number(price).toFixed(2); } /*针对梯度增长计费的转运公司计算运费*/ function calTrans2(weight, arr, rmb) { weight = Number(weight); for (var i = 0; i < arr.length; i++) { if (arr[i][0] > weight) { if (i == 0) i = 1; //如果是第一个就用第一个的数据 else if (arr[i - 1][0] < weight) i = i + 1; //如果大于前面一个重量, 说明在两者之间, 应该选择当前,所以+1 if (!rmb) { return Number(arr[i - 1][1]).toFixed(2); } else { return parseprice(arr[i - 1][1]).toFixed(2); } } } if (weight > arr[arr.length - 1][0]) { if (!rmb) { return Number(arr[arr.length - 1][1]).toFixed(2); } else { return parseprice(arr[arr.length - 1][1]).toFixed(2); } } } function changeFreight() { /*改变运费*/ var weight = Number($('.ht_weight .ht_weight_num').val()) || 0; var transShop = $('.ht_transport_btn span').attr('data-title'); var tsdata = transDict[country]; var first, next, asce, asceArr, current; //asce 判断是否为递增的运费计算方式 for (var i = 0; i < tsdata.length; i++) { if (tsdata[i]['shopname'] == transShop) { first = tsdata[i]['firstW']; next = tsdata[i]['nextW']; asce = tsdata[i]['asce']; asceArr = tsdata[i]['ascearr']; current = tsdata[i]['current']; } } if (asce) { var price = '¥' + calTrans2(weight, asceArr, current); } else { var price = '¥' + calTrans(weight, [first[1], first[0], next[1], next[0]]); } $('.ht_freight_num').text(price); } function insertShop() { /*插入转运商家*/ var trans = transDict[country]; var html = '{{each data}}\n <li class="{{if $index%2==1}}l_odd{{/if}}">\n <a class="trans_com" target="_blank" href="{{$value.shop_url}}" >{{$value.shopname}}</a>\n <span class="lo_center">{{$value.warehouse}}</span>\n <span class="trans_pr" {{if $value.asce}}data-shopname="{{$value.shopId}}" {{/if}} data-fw="{{$value.firstW[0]}}" data-sw="{{$value.nextW[0]}}" data-sp="{{$value.nextW[1]}}" data-fp="{{$value.firstW[1]}}">{{$value.firstW[1]==0?"无首重":("¥"+$value.firstW[1])}}</span>\n {{if $value.cooper}}<span class="sale_tle"><a href="{{$value.url}}" target="_blank">{{$value.sale_tle}}</a></span>{{/if}}\n </li>\n {{/each}}'; $('#trans_list').append(template.compile(html)({ data: trans })); changefirstW(); if (!noSale) $('#transport_detail').addClass('no_sale'); } function changefirstW() { var trans = transDict[country]; $('#trans_list li .trans_pr').each(function (index, e) { if ($(e).text() == "无首重") { for (var i = 0; i < trans.length; i++) { if (trans[i].shopId === $(e).attr('data-shopname')) { if (trans[i].current) $(e).text('¥' + Number(parseprice(trans[i].ascearr[0][1])).toFixed(2));else $(e).text('¥' + Number(trans[i].ascearr[0][1]).toFixed(2)); } } } else { var price = $(e).text().replace('¥', ''); price = '¥' + Number(price).toFixed(2); $(e).text(price); } }); } function transWeight(type, w) { if (type == 'LB') { w = Number(w) * 0.4536; } return w; } function addShopEvent() { /*重量输入框焦点事件*/ $('.trans_w input').on('keyup', function () { var txt = Number($(this).val()); var weight_type = $('.trans_w input+.weight_type').text(); var weight = transWeight(weight_type, txt); if (txt === 0) return;else if (!txt) { /*eslint-disable */ alert('请输入数字!'); /*eslint-enable */ } else { changeTransPrice(weight); } }); $('#trans_list li .sale_tle a').on('click', function () { log('click:haitao:sale_tle'); cnzz.log('海淘转运商家优惠政策点击情况'); }); $('#trans_list li .trans_com').on('click', function () { log('click:haitao:trans_com'); cnzz.log('海淘转运商家网站点击情况'); }); $('#trans_list li .lo_center, #trans_list li .trans_pr').on('click', function () { var txt = $(this).parent().find('.trans_com').text(); $('.ht_transport_btn span').text(txt.slice(0, 5)); $('.ht_transport_btn span').attr('data-title', txt); changeFreight(); changePrice(); $('#transport_detail').hide(); }); } function addSizeEvent() { /*添加尺码部分事件*/ $('.clothes_nav li').on('click', function () { $('.clothes_nav li').removeClass('select'); $(this).addClass('select'); var txt = $(this).text(); var c = getClothes(txt, country); if (txt.indexOf('鞋') > -1) { $('.unit_cm').css('display', 'none'); $('.unit_mm').css('display', 'inline-block'); $('#size_detail .detail_left span').hide(); $('.cloth_icon').css('display', 'inline-block'); $('#size_detail .shoes').css('display', 'inline-block'); if (txt.indexOf('男鞋') > -1) { $('.cloth_icon').attr('class', '').addClass('cloth_icon ht_shoes man_foot'); $('.detail_left .shoes').text(txt); } else if (txt.indexOf('女鞋') > -1) { $('.cloth_icon').attr('class', '').addClass('cloth_icon ht_shoes woman_foot'); $('.detail_left .shoes').text(txt); } else { $('#size_detail .shoes').hide(); $('.cloth_icon').css('display', 'inline-block'); $('.tongxie').css('display', 'inline-block'); $('.tongxie0').addClass('size_hover'); $('.tongxie4').removeClass('size_hover'); $('.cloth_icon').attr('class', '').addClass('cloth_icon ht_shoes kids_foot'); } } else if (txt.indexOf('童装') > -1) { $('.unit_mm').css('display', 'none'); $('.unit_cm').css('display', 'inline-block'); $('#size_detail .detail_left span').hide(); $('#size_detail .tongzhuang').css('display', 'inline-block'); $('.cloth_icon').css('display', 'inline-block'); $('.cloth_icon').attr('class', '').addClass('cloth_icon kid0'); $('.tongzhuang0').addClass('size_hover'); $('.tongzhuang4').removeClass('size_hover'); } else if (txt.indexOf('男装') > -1) { $('.unit_mm').css('display', 'none'); $('.unit_cm').css('display', 'inline-block'); $('#size_detail .detail_left span').hide(); $('.cloth_icon').css('display', 'inline-block'); $('#size_detail .shangyi').show(); $('#size_detail .xiazhuang').show(); $('.xiazhuang').removeClass('size_hover'); $('.shangyi').addClass('size_hover'); $('.cloth_icon').attr('class', '').addClass('cloth_icon manshangzhuang'); } else { $('.unit_mm').css('display', 'none'); $('.unit_cm').css('display', 'inline-block'); $('#size_detail .detail_left span').hide(); $('.cloth_icon').css('display', 'inline-block'); $('#size_detail .shangyi').show(); $('#size_detail .xiazhuang').show(); $('.xiazhuang').removeClass('size_hover'); $('.shangyi').addClass('size_hover'); if (txt.indexOf('男装') > -1) $('.cloth_icon').attr('class', '').addClass('cloth_icon manshangzhuang');else $('.cloth_icon').attr('class', '').addClass('cloth_icon womanshangzhuang'); } insertSize(c[0], c[1]); }); $('.shangyi').on('click', function () { if ($(this).attr('class').indexOf('size_hover') > -1) return; var txt = $('.clothes_nav li[class="select"]').text(); if (txt == "童装") return; if (txt == "男装") { $('.cloth_icon').attr('class', '').addClass('cloth_icon manshangzhuang'); } if (txt == "女装") { $('.cloth_icon').attr('class', '').addClass('cloth_icon womanshangzhuang'); } var c = getClothes(txt, country); insertSize(c[0], c[1]); $(this).addClass('size_hover'); $('.xiazhuang').removeClass('size_hover'); }); $('.xiazhuang').on('click', function () { if ($(this).attr('class').indexOf('size_hover') > -1) return; var txt = $('.clothes_nav li[class="select"]').text(); if (txt == "童装") return; if (txt == "男装") { var c = clothesDict['xiazhuang'][country]['man']; insertSize(c[0], c[1]); $('.cloth_icon').attr('class', '').addClass('cloth_icon manxiazhuang'); } if (txt == "女装") { var c = clothesDict['xiazhuang'][country]['woman']; insertSize(c[0], c[1]); $('.cloth_icon').attr('class', '').addClass('cloth_icon womanxiazhuang'); } $(this).addClass('size_hover'); $('.shangyi').removeClass('size_hover'); }); $('.tongzhuang0').on('click', function () { var c = getClothes('童装', country); insertSize(c[0], c[1]); $(this).addClass('size_hover'); $('.tongzhuang4').removeClass('size_hover'); $('.cloth_icon').attr('class', '').addClass('cloth_icon kid0'); }); $('.tongzhuang4').on('click', function () { var c = getClothes('童装', country); insertSize(c[0], c[2]); $(this).addClass('size_hover'); $('.tongzhuang0').removeClass('size_hover'); $('.cloth_icon').attr('class', '').addClass('cloth_icon kid4'); }); $('.tongxie0').on('click', function () { var c = getClothes('童鞋', country); insertSize(c[0], c[1]); $(this).addClass('size_hover'); $('.tongxie4').removeClass('size_hover'); }); $('.tongxie4').on('click', function () { var c = getClothes('童鞋', country); insertSize(c[0], c[2]); $(this).addClass('size_hover'); $('.tongxie0').removeClass('size_hover'); }); } var reqCollect = function reqCollect(url, callback) { request.get(url).done(function (data) { callback(data); }).fail(function () { $('#ht_addcollect').text('添加失败'); $('#ht_addcollect').removeClass('c_adding'); $('#ht_addcollect').addClass('c_added'); }); }; var check_favor = function check_favor() { var id = userData.get('other_info').now.dp_id; if (!G.email || !id) return; var url = G.c_server + '/brwext/check_collected?email=' + G.email + '&dp_id=' + id; request.get(url).done(function (data) { if (data && data.msg === true) { $('#ht_addcollect').text('已添加'); $('#ht_addcollect').addClass('c_added'); } }); }; function addCollect() { var pagedp = G.dp; var oinfo = userData.get('other_info'); var dp = oinfo.now; if (!dp.dp_id) { $('#ht_addcollect').text('暂不支持'); $('#ht_addcollect').unbind('click'); return; } $('#ht_addcollect').text('正在添加'); $('#ht_addcollect').addClass('c_adding'); dp.price = pagedp.oldPrice || oinfo['code-server'] && oinfo['code-server'].price; dp.title = pagedp.name || $('title').html(); dp.url = dp.url || location.href; dp.img = dp.img || pagedp.img; var url = G.c_server + '/collect/aj_add?dp_id= ' + dp.dp_id + '&url=' + encodeURIComponent(dp.url || G.dp.url) + '&img=' + encodeURIComponent(dp.img || G.dp.img) + '&title=' + encodeURIComponent(dp.title) + '&price=' + dp.price + '&site_id=' + dp.site_id + '&cat_id=' + G.dp.cat_id; reqCollect(url, function (data) { if (data.code == 100 || data.code <= 0) { var href = window.location.href.toString(); //这里进行特殊处理,标记来源的url,在页面返回的时候,自动收藏商品 if (href.indexOf('?') > -1) { href += '&gwd_add_favor_unique=true'; } else { href += "?gwd_add_favor_unique=true"; } window.location.href = G.c_server + "/user/login?from_url=" + encodeURIComponent(href); } else if (data.code == 1) { $('#ht_addcollect').text('已添加'); $('#ht_addcollect').removeClass('c_adding'); $('#ht_addcollect').addClass('c_added'); $("#ht_addcollect").unbind('click'); } else if (data.code == 2) { $('#ht_addcollect').text('添加过了'); $('#ht_addcollect').removeClass('c_adding'); $('#ht_addcollect').addClass('c_added'); $("#ht_addcollect").unbind('click'); } }); } function contentEvent() { /*主窗口事件*/ $('.ht_head .ht_getprice').on('mouseenter', function () { var dom = $('#ht_content_info'); if (!dom.is(':visible')) { $('.content_default').hide(); dom.show(); } }); /*关闭弹窗框*/ $('.closebar').on('click', function () { $(this).parent().hide(); }); /*添加划词翻译直邮第三方信息提示*/ $('.content_default_left .ht_tariff .del_line').on('mouseenter', function () { $('.tariff_remind_detail').show(); }); $('.content_default_left .ht_tariff .del_line').on('mouseleave', function () { $('.tariff_remind_detail').hide(); }); $('.ht_translate').on('mouseenter', function () { $('.translate_detail').show(); }); $('.ht_translate').on('mouseleave', function () { $('.translate_detail').hide(); }); $('.pro_type').on('mouseenter', function () { $('.pro_type_detail').show(); }).on('mouseleave', function () { $('.pro_type_detail').hide(); }); $('.mail_type').on('mouseenter', function () { $('.mail_type_detail').show(); }).on('mouseleave', function () { $('.mail_type_detail').hide(); }); $('.ht_transport_btn, .size_help, .ht_tariff_btn, #ht_addcollect').on('mouseenter', function () { $(this).find('.div_detail').show(); }).on('mouseleave', function () { $(this).find('.div_detail').hide(); }); $('.weight_type').on('mouseenter', function () { $('.weight_type_detail').show(); }).on('mouseleave', function () { $('.weight_type_detail').hide(); }); // 添加降价提醒 $('#ht_addcollect').on('click', function (event) { var dom = $('#altImages li img').eq(0); if (dom) G.collectInfo.img = dom.attr('src'); event.preventDefault(); addCollect(); }); // 重量单位选择 $('.ht_weight .weight_type').on('click', function () { var t = $(this).text(); if (t === 'LB') { weight = $('.ht_weight_num').val(); $(this).text('KG'); $('.ht_weight_num').val(Math.round(Number(weight) * 0.4535924 * 100) / 100); } else { $(this).text('LB'); if (weight) $('.ht_weight_num').val(weight); } }); // 是否选取关税 $('.del_line').on('click', function () { if ($(this).attr('data-del') === '1') { $(this).find('.ht_tariff_num').css('text-decoration', 'none'); $(this).attr('data-del', '0'); $(this).find('span').attr('data-price', $(this).find('span').text()); changePrice(); } else { $(this).find('.ht_tariff_num').css('text-decoration', 'line-through'); $(this).attr('data-del', '1'); $(this).find('span').attr('data-price', 0); changePrice(); } }); // 转运中国弹窗框 $('.ht_transport_btn').on('click', function () { $('#transport_detail').show(); log('click:haitao:transport'); cnzz.log('海淘转运商家点击情况'); }); /*尺寸转换*/ $('.size_help').on('click', function () { $('#size_detail').show(); log('click:haitao:size_help'); cnzz.log('点击尺码帮助'); }); $('.size_xiala').on('mouseenter', function () { $(this).next('.size_xialabox').show(); $(this).addClass('msHover'); }); $('.size_xiala').on('mouseleave', function () { var that = this; timer = setTimeout(function () { $(that).next('.size_xialabox').hide(); $(that).removeClass('msHover'); }, 100); }); $('.size_xialabox').on('mouseenter', function () { clearTimeout(timer); }); $('.size_xialabox').on('mouseleave', function () { $(this).hide(); }); $('.size_xialabox a').on('click', function () { var txt = $(this).text(); var c = $(this).parent().attr('data-size'); $('.' + c).val(txt); $(this).parent().hide(); conversionSize(); }); $('#first_size').on('keyup', function () { conversionSize(); }); } // function otherPageEvent() { // let arr = ['#variation_size_name', '#variation_configuration', '#variation_color_name', '#variation_style_name'] // let dom = ''; // for (let i=0; i<arr.length; i++ ) { // if ( $(arr[i]).length >0 && $(arr[i]).find('li').length > 0) // dom = arr[i] // } // $(dom).find('li').each(function() { // $(this).on('click', function() { // let txt = $(this).find('.a-size-mini').eq(0).text() // if (txt == '' || !txt) return; // let price = parseprice(txt) // $('.ht_content .price_num').text('¥' + price) // $('.ht_getprice_num').text('¥' + calPrice(price)); // }) // }) // } function addEvent() { contentEvent(); cateEvent(); addShopEvent(); // otherPageEvent() } function insertCate(c) { /*插入二级分类*/ var html = '{{each data}}<a href="javascript:void(0);" title="{{$value[1]}}" tariff="{{$value[0]}}">{{$value[1]}}</a>{{/each}}'; $('#cate_small').next('.xialabox').empty().append(template.compile(html)({ data: c })); /*插入数据之后修改input框样式*/ $('#cate_small').removeClass('sel_info'); addSmallCateEvent(); } function addSmallCateEvent() { /*添加二级分类事件*/ $('#small_xiala a').on('click', function () { var txt = $(this).text(); $('#cate_small').val(txt); $('.ht_tariff_cate').text(txt); $('.ht_tariff .ht_tariff_num em').text($(this).attr('tariff')); $('#tariff_detail .ht_tariff_num').text($(this).attr('tariff')); $('.ht_tariff_btn span').text($(this).text().slice(0, 5)); $('.ht_tariff_btn span').attr('title', $(this).text()); $('#small_xiala').hide(); replaceStr('#cate_small'); replaceStr('.ht_tariff_cate', 'text', 4); }); $('#select_btn').on('click', function () { changePrice(); $('#tariff_detail').hide(); }); } function replaceStr(obj, type, num) { /*字符串很长的做一下替换*/ num = num || 6; var txt; var l = 0; if (type == 'text') txt = $(obj).text();else txt = $(obj).val(); for (var i = 0; i < txt.length; i++) { var t = new RegExp('[a-z0-9/]').test(txt[i]); if (t) l += 0.5;else l += 1; if (l > num) { txt = txt.slice(0, i) + '...'; if (type == 'text') $(obj).text(txt);else $(obj).val(txt); return; } } } function cateEvent() { /*关税框弹出事件*/ $('.ht_tariff_btn').on('click', function () { $('#tariff_detail').show(); log('click:haitao:tariff'); cnzz.log('海淘关税点击'); }); /*分类选择*/ $('#cate_select_box input').on('mouseenter', function () { if ($(this).next('.xialabox').find('a').length > 0) { $(this).next('.xialabox').show(); $(this).parent().addClass('select_hover'); $(this).addClass('input_hover'); } }); $('#cate_select_box input').on('mouseleave', function () { var that = this; timer = setTimeout(function () { $(that).next('.xialabox').hide(); $(that).parent().removeClass('select_hover'); $(that).removeClass('input_hover'); }, 100); }); /*下拉列表*/ $('.xialabox').on('mouseenter', function () { clearTimeout(timer); }).on('mouseleave', function () { $(this).hide(); $(this).parent().removeClass('select_hover'); $(this).parent().find('input').removeClass('input_hover'); }); /*二级分类事件*/ addSmallCateEvent(); /*一级分类选项点击事件*/ $('#big_xiala a').on('click', function () { var txt = $(this).text(); $('#cate_big').val(txt); $('.ht_tariff_cate').text(txt); var cate = $(this).attr('cate'); insertCate(cateDict[cate]); $('#big_xiala').hide(); replaceStr('#cate_big'); replaceStr('.ht_tariff_cate', 'text', 4); }); } function baidufanyi(t, callback) { /*百度翻译接口*/ var url = location.protocol + ('//browser.' + G.extName + '.com/extension?ac=fanyi&string=') + t; request.get(url).done(function (data) { if (data.trans_result && !data.error_code) { var trans = []; for (var i = 0; i < data.trans_result.length; i++) { trans.push(data.trans_result[i].dst); } callback(trans); } else { callback([t]); } }); } function requestFanyi(t, callback) { /*请求翻译接口*/ baidufanyi(t, callback); log('request:haitao:fanyi'); cnzz.log('请求划词翻译'); } // function youdaofanyi(t, callback) { // /*有道翻译接口*/ // let doctype = 'jsonp'; // if (G.chrome_extension) // doctype = 'json' // var url = "https://fanyi.youdao.com/openapi.do?keyfrom=chrome&key=1361128838&type=data&doctype=" + doctype + "&version=1.1&q="+t; // request.getPure(url).done(function(data){ // if (data.basic && data.basic.explains && data.basic.explains.length >0) // callback(data.basic.explains) // else if( data.translation) // callback(data.translation) // else // callback([t]) // }) // } function insertFanyi(data) { /*插入翻译内容*/ data = data.join(''); $('.ht_fanyi').remove(); var html = '<div class="ht_fanyi" style="top:{{hty}};left:{{htx}}"><span id="ht_top"></span>{{data}}</div>'; var t = template.compile(html)({ data: data, 'htx': calPosition() + 'px', 'hty': htY + 'px' }); $('body').append(t); addFanyiEvent(); } function calPosition() { /*计算插入位置*/ var pos = 0; if (htX > mouseDownX) pos = htX - (htX - mouseDownX) / 2 - 65;else pos = htX + (mouseDownX - htX) / 2 - 65; return pos; } function editTxt(t) { requestFanyi(t, insertFanyi); } function addFanyiEvent() { $('.ht_fanyi').siblings().on('click', function () { $('.ht_fanyi').remove(); }); } function getSelect() { $('body').on('mousedown', function (e) { clearTimeout(timer2); mouseDownX = e.pageX; }); $('body').on('mouseup', function (e) { timer2 = setTimeout(function () { var txt = ''; htX = e.pageX; htY = e.pageY + 20; if (window.getSelection) { txt = window.getSelection().toString(); } else if (document.selection) { txt = document.selection.createRange().text; } if (txt == '') return;else editTxt(txt); }, 100); }); } module.exports._init = function () { var permanent = userData.get('permanent'); if (permanent && permanent.sethaitao === "0") return; init(); }; module.exports.isHaitao = isHaitaoPage; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "3e983ecbff4e1a29654c": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, regeneratorRuntime) { function _toArray(arr) { return Array.isArray(arr) ? arr : Array.from(arr); } module.exports.checkimg = function (url, imgObj, size, callback) { var sz = typeof size == 'undefined' || size == "" || size == null ? 90 : size; var val = url; var img = new Image(); if (G.browser.msie && G.browser.version < 11) { img.onreadystatechange = function () { if (img.readyState == "complete" || img.readyState == "loaded") { if (img.width > 0 && img.height > 0) { var rate = sz / img.width < sz / img.height ? sz / img.width : sz / img.height; if (rate <= 1) { imgObj.css('width', img.width * rate); imgObj.css('height', img.height * rate); } else { imgObj.css('width', img.width); imgObj.css('height', img.height); } } imgObj.attr('src', url); } }; } else { img.onload = function () { if (img.complete == true) { if (img.width > 0 && img.height > 0) { var rate = sz / img.width < sz / img.height ? sz / img.width : sz / img.height; if (rate <= 1) { imgObj.css('width', img.width * rate); imgObj.css('height', img.height * rate); } else { imgObj.css('width', img.width); imgObj.css('height', img.height); } } imgObj.attr('src', url); if (callback) { callback(); } } }; } img.onerror = function () { imgObj.attr('src', G.s_server + "/images/extensions/default_load_image.png").css('width', 90); imgObj.attr('data-original', G.s_server + "/images/extensions/default_load_image.png"); }; img.src = val; }; module.exports.getParameterByName = function (name, url) { if (!url) { url = window.location.href; } if (URL) { var params = new URL(url).searchParams; return params.get(name); } name = name.replace(/[\[\]]/g, "\\$&"); var regex = new RegExp("[?#&]" + name + "(=([^&#]*)|&|#|$)"), results = regex.exec(url); if (!results) return null; if (!results[2]) return ''; return decodeURIComponent(results[2].replace(/\+/g, " ")); }; module.exports.sleep = function (time) { return new Promise(function (resolve) { setTimeout(function () { return resolve(); }, time); }); }; module.exports.asyncForEach = function callee$0$0(array, callback) { var index; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: index = 0; case 1: if (!(index < array.length)) { context$1$0.next = 7; break; } context$1$0.next = 4; return regeneratorRuntime.awrap(callback(array[index], index, array)); case 4: index++; context$1$0.next = 1; break; case 7: case "end": return context$1$0.stop(); } }, null, this); }; module.exports.getPageCookie = function () { return document.cookie.split('; ').reduce(function (prev, current) { var _current$split = current.split('='); var _current$split2 = _toArray(_current$split); var name = _current$split2[0]; var value = _current$split2.slice(1); prev[name] = value.join('='); return prev; }, {}); }; // 通用数组去重 module.exports.arrayUnique = function (arr, valueFn) { var list = []; return arr.filter(function (x) { var val = valueFn(x); if (list.indexOf(val) === -1) { list.push(val); return true; } return false; }); }; module.exports.appendCss = function (cssText) { var s = document.createElement('STYLE'); s.innerHTML = cssText; document.body.appendChild(s); }; module.exports.debounce = function (func) { var timeout = arguments.length <= 1 || arguments[1] === undefined ? 300 : arguments[1]; var timer = undefined; return function () { for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } clearTimeout(timer); timer = setTimeout(function () { func.apply(undefined, args); }, timeout); }; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "404e79ebef9e9956133c": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("c9ec13fb747b6ace4abd"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("f4a12276", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./SubsidyBottom.vue?vue&type=style&index=1&id=1cab7080&scoped=true&lang=less&", function() { var newContent = require("!!../../../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!./SubsidyBottom.vue?vue&type=style&index=1&id=1cab7080&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "407815218a61650063ce": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {// site css fix module.exports.init = function () { if (G.site.includes('amazon')) { __webpack_require__("3e983ecbff4e1a29654c").appendCss('\n #dp { max-width: 1650px; }\n '); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "41139159945cd97ccf00": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("c2aabcbe25e54d335bf3"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("0eed936c", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./ShopCouponTop.vue?vue&type=style&index=0&id=05b8b243&scoped=true&lang=less&", function() { var newContent = require("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./ShopCouponTop.vue?vue&type=style&index=0&id=05b8b243&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "426d7c3d6bd989255c92": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _CouponArrow = __webpack_require__("9edc88f739fb33f2c091"); var _CouponArrow2 = _interopRequireDefault(_CouponArrow); var _commonComponentsQrError = __webpack_require__("d57cd728628c618acba9"); var _commonComponentsQrError2 = _interopRequireDefault(_commonComponentsQrError); var getQRCode = __webpack_require__("657bad1e7f3b602f7d70"); exports['default'] = { props: ['type', // link, qr, 'href', 'text', 'icon', 'mainColor', 'secondColor', 'takeBg', 'couponValue', 'qrParams', 'qrTitle', 'qrUrl'], components: { CouponArrow: _CouponArrow2['default'], QRError: _commonComponentsQrError2['default'] }, data: function data() { return { loading: false, error: false, actualQr: '' }; }, computed: { alterHref: function alterHref() { return __webpack_require__("4733a3dd803685ec596a").appendTbInfoForUrl(this.href); } }, methods: { over: function over() { var _this = this; this.$emit('over'); if (this.type !== 'qr' || this.loading) return; if (this.qrUrl) { this.actualQr = this.qrUrl; return; } this.loading = true; getQRCode(this.qrParams, '', function (res) { _this.loading = false; if (res[0].etag) { _this.error = true; } else { _this.error = false; _this.actualQr = res[0].imgSrc; } }); } } }; module.exports = exports['default']; /***/ }), /***/ "42e5305d1548ddab2040": /***/ (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_SubsidyBottom_vue_vue_type_script_lang_js___ = __webpack_require__("15df87f0ab2497b14f7f"); /* 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_SubsidyBottom_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_SubsidyBottom_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_SubsidyBottom_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_SubsidyBottom_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_SubsidyBottom_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "430cca46309f77ad345c": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__PriceProtectJdLogin_vue_vue_type_template_id_e995141a_scoped_true___ = __webpack_require__("a8e056b741bca588f8d3"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__PriceProtectJdLogin_vue_vue_type_script_lang_js___ = __webpack_require__("459af35b3fc2d962c3c8"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__PriceProtectJdLogin_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__PriceProtectJdLogin_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__PriceProtectJdLogin_vue_vue_type_style_index_0_id_e995141a_scoped_true_lang_less___ = __webpack_require__("c43aa2dd8b6edea6c41a"); /* 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__PriceProtectJdLogin_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__PriceProtectJdLogin_vue_vue_type_template_id_e995141a_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__PriceProtectJdLogin_vue_vue_type_template_id_e995141a_scoped_true___["b" /* staticRenderFns */], false, null, "e995141a", 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('e995141a')) { api.createRecord('e995141a', component.options) } else { api.reload('e995141a', component.options) } module.hot.accept("./PriceProtectJdLogin.vue?vue&type=template&id=e995141a&scoped=true&", function () { api.rerender('e995141a', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/bjgou/components/PriceProtectJdLogin.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "447e76262f8a59c30810": /***/ (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_MemberCouponQr_vue_vue_type_script_lang_js___ = __webpack_require__("db913f6554d3c1ab33dc"); /* 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_MemberCouponQr_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_MemberCouponQr_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_MemberCouponQr_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_MemberCouponQr_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_MemberCouponQr_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "454ab82d0874a7273edd": /***/ (function(module, exports, __webpack_require__) { "use strict"; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _vuex = __webpack_require__("436f6d560acb97f873d1"); var _vuex2 = _interopRequireDefault(_vuex); var userModule = __webpack_require__("d098bd5eb9f0b2883cf6"); module.exports = new _vuex2['default'].Store({ modules: { user: { namespaced: true, state: { userLogin: false, userName: '', userHasWx: false, priceProtectEnabled: false }, mutations: { setState: function setState(state, payload) { Object.keys(payload).forEach(function (key) { state[key] = payload[key]; }); } }, actions: { init: function init(ctx) { userModule.hasWx().then(function (res) { ctx.commit('setState', { userHaxWx: res }); }); } } } } }); /***/ }), /***/ "459af35b3fc2d962c3c8": /***/ (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_PriceProtectJdLogin_vue_vue_type_script_lang_js___ = __webpack_require__("de47b30d557f73101f1b"); /* 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_PriceProtectJdLogin_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_PriceProtectJdLogin_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_PriceProtectJdLogin_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_PriceProtectJdLogin_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_PriceProtectJdLogin_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "461dcf71927012141a32": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MemberCouponMiniBjg_vue_vue_type_template_id_c1c2cbdc_scoped_true___ = __webpack_require__("5ee53b35b71f518d7bb3"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__MemberCouponMiniBjg_vue_vue_type_script_lang_js___ = __webpack_require__("95245dbd2c2c8f1d13db"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__MemberCouponMiniBjg_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__MemberCouponMiniBjg_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__MemberCouponMiniBjg_vue_vue_type_style_index_0_id_c1c2cbdc_scoped_true_lang_less___ = __webpack_require__("ad3ab4b4cd0a839309d6"); /* 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__MemberCouponMiniBjg_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__MemberCouponMiniBjg_vue_vue_type_template_id_c1c2cbdc_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__MemberCouponMiniBjg_vue_vue_type_template_id_c1c2cbdc_scoped_true___["b" /* staticRenderFns */], false, null, "c1c2cbdc", 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('c1c2cbdc')) { api.createRecord('c1c2cbdc', component.options) } else { api.reload('c1c2cbdc', component.options) } module.hot.accept("./MemberCouponMiniBjg.vue?vue&type=template&id=c1c2cbdc&scoped=true&", function () { api.rerender('c1c2cbdc', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/bjgou/components/MemberCouponMiniBjg.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "46626842d24683ced1e1": /***/ (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_SectionTitle_vue_vue_type_template_id_0e0fcbce_scoped_true___ = __webpack_require__("7617244db959e7c4b9b7"); /* 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_SectionTitle_vue_vue_type_template_id_0e0fcbce_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_SectionTitle_vue_vue_type_template_id_0e0fcbce_scoped_true___["b"]; }); /***/ }), /***/ "4722071a8c6ae978cb2e": /***/ (function(module, exports, __webpack_require__) { "use strict"; var bgClient = __webpack_require__("660610db8f6e89357da9"); module.exports.init = function () { if (location.href.indexOf('www.bijiago.com/login') > -1) { (function () { var t = setInterval(function () { if (window.res) { clearInterval(t); console.log('found', window.res); console.log(window.to); bgClient.get('/cookies/set', { token: window.res.data.token, time: parseInt(new Date(window.res.data.time.replace(' ', 'T')).getTime() / 1000).toString(), expire: window.res.data.expire }).then(function (res) { location.href = window.to; }); } }, 300); })(); } }; /***/ }), /***/ "472a9b3fc8c8805a5dd7": /***/ (function(module, exports, __webpack_require__) { "use strict"; var __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var exports = {}; var data = {}; exports.get = function (key) { return data[key]; }; exports.data = data; exports.set = function (key, value) { if (value === undefined && key) { data = key; } else { data[key] = value; } }; return exports; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }), /***/ "4733a3dd803685ec596a": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G, regeneratorRuntime) {/* * 商品信息提取模块, * 用来提取商品标题/ISBN等基本信息 * @version:1.0 * @author:mllong(mllong0925@gmail.com) * @since:2013-06-17 */ var _this = this; var siteInfo = __webpack_require__("5e05e6f5fe79ccf5d009"); var priceParser = __webpack_require__("e29ce4c2a4af273fcade"); var detect = __webpack_require__("60624e018be49fb2d959"); var isbnTran = __webpack_require__("b15828ee7e842b4ea2fb"); var parseprice = __webpack_require__("cb0906562effcf1b0e6c"); var util = __webpack_require__("3e983ecbff4e1a29654c"); //返回单品页的标题信息 var getProductInfo = function getProductInfo() { return { name: $('title').html(), price: 0, isbn: '', url: window.location.href }; }; var tbInfoFix = function tbInfoFix(info) { if (!info) return {}; var shopName = $('.tb-shop-name a').text(); if (!shopName) { shopName = $('[class^=ShopHeader--title]').text(); } if (!shopName) { shopName = $('.slogo-shopname strong').text(); } info.shopName = (shopName || '').trim(); var shopAmount = $('#J_SellCounter').text(); if (!shopAmount) { shopAmount = $('.tm-count:eq(0)').text(); } if (!shopAmount) { shopAmount = $('[class^=ItemHeader--salesDesc]').text(); } info.shopAmount = (shopAmount || '').trim(); return info; }; //提取第三方评测导购网站中的商品信息 var getArticleInfo = function getArticleInfo(className, childPos, newSiteName) { var dp = getProductInfo(); G.site = newSiteName; try { var a = $(className).eq(childPos); dp.name = a.text(); G.href = G.makeUrl(G.href, a.attr('href')); dp.url = G.href; if (typeof G.href == 'undefined' || G.href == "") { dp.useless = true; } else { var check = siteInfo.isProductPage(); if (!check) { dp.useless = true; } } } catch (e) { dp.useless = true; } return dp; }; var getArticleInfoNew = function getArticleInfoNew(className, childPos, attr, newSiteName) { var dp = getProductInfo(); G.site = newSiteName; if (G.crc64) return dp; try { var a = $(className).eq(childPos); G.href = a.attr(attr); dp.url = a.attr(attr); if (a.attr(attr)) dp.url = a.attr(attr); if (typeof G.href == 'undefined' || G.href == "") { G.href = window.location.href; } } catch (e) {} return dp; }; //商品信息提取模板 var productPattern = { 'oneplus': function oneplus() { var dp = getProductInfo(); dp.price = $('.price .num').text(); console.log('dp', dp); return dp; }, 'wjike': function wjike() { return { name: $('.pb_tl').eq(0).text(), price: $('.pr2 .pc i').eq(0).text() }; }, 'kinhom': function kinhom() { return { name: $('.item-title').text(), price: $('#J_itemActivePrice').text() }; }, 'hpstore': function hpstore() { return { price: $('.price-box .price').eq(0).text() }; }, 'tthigo': function tthigo() { return { name: $('.item-title').text(), price: $('.item-price-current').text() }; }, 'yoox': function yoox() { return { name: $('#yoox').text(), price: $('#item-price .font-bold').text() }; }, 'feiniu': function feiniu() { return { name: $('#main_info_guidance_title').text(), price: $('.info-price>.JS-control-price').text() }; }, 'suanjuzi': function suanjuzi() { return { name: $('.product-titles h2').text(), price: $('.action-pro_price').text() }; }, 'ikjtao': function ikjtao() { return { name: $('#sidebar .title').text(), price: $('#goodsPrice').text() }; }, 'meizu': function meizu() { return { name: $('#property .property-hd h1').text(), price: $('#J_price').text() }; }, 'kaluli': function kaluli() { return { name: $('.pro-detail > h1').text(), price: $('#kaluliPrice').text() }; }, 'opposhop': function opposhop() { return { name: 'oppo ' + $('.product-title').text(), price: $('.buying-price .price').text() }; }, 'yao123': function yao123() { return { name: $('.inner>h1').text(), price: $('#opr').text() }; }, 'baobeigezi': function baobeigezi() { return { name: $('#itemInfo>.name>h1').text(), price: $('#bb_price').text() }; }, 'to8to': function to8to() { return { name: $('#p_name').text(), price: $('span[name=goods_real_price]').eq(0).text() }; }, 'yangkeduo': function yangkeduo() { return { name: $('.enable-select').text(), price: $('._15NyfC_w').text() }; }, 'shangpin': function shangpin() { var brandName = $('.spDetail_price_box > h2 > a').text(); if (!brandName) { brandName = $('.spDetail_price_box > h3 > a').text(); } var result = { name: brandName + ' ' + $('.commodity_title').text(), price: $('.spDetail_spPriceBigRed > i').text(), img: $('#spDetail_bigImg > img').attr('src') }; if (!result.price) { result.price = $('.spDetail_spPriceBig > i').text(); } if (!result.price) { result.price = $('em.font_18').text(); } return result; }, 'zhongjiu': function zhongjiu() { var name = $('.info > h1').text(); var price = $('.pri > b').text(); if (!name) { name = $('.c_t_list > li > span').text(); price = $('.buy_pri').text(); } var result = { name: name, price: price }; return result; }, 'lemall': function lemall() { var name = $('.pro_name').eq(0).text(); var price = $('#all_price').text(); if (price == '') price = $('.section_text .red .font48').eq(0).text(); if (name == '') name = $('.product_info_attribute .title').text(); return { name: "乐视" + name, price: price }; }, 'juanpi': function juanpi() { return { name: $('.deal-wrap h1').text(), price: $('.price .current').text() }; }, 'hisense': function hisense() { return { name: $('.detail_info h3').text(), price: $('#salePriceId').text() }; }, 'purcotton': function purcotton() { return { name: $('.goods-tite h5').eq(0).text(), price: $('.price').eq(0).text() }; }, 'wstx': function wstx() { return { name: $('.itemInfo .title').text(), price: $('.itemInfo .price b').text() }; }, 'royyoungchemist': function royyoungchemist() { return { name: $('.product-name').eq(0).text() }; }, 'medihealshop': function medihealshop() { return { name: $('.product-name').eq(0).text(), price: $('.rmb-price').eq(0).text() }; }, '1-163': function _() { return { name: $('.m-detail-main-title h1').text() }; }, '1001pharmacies': function pharmacies() { return { name: $('.product-name h1').eq(0).text(), price: $('.rmb-price').eq(0).text() }; }, 'lookfantastic-cn': function lookfantasticCn() { return { name: $('.product-title').eq(0).text(), price: $('.product-price .price').eq(0).text() }; }, 'guojimami': function guojimami() { return { name: $('#ECS_FORMBUY .name').text(), price: $('#ECS_SHOPPRICE').text(), img: $('#demo li img').eq(0).attr('src') }; }, 'jinxiang': function jinxiang() { return { name: $('.name').eq(0).text(), price: $('.jxPrice').eq(0).text() }; }, 'you163': function you163() { return { name: $('.info .name').eq(0).text(), price: $('.j-retail-price').eq(0).text() }; }, 'bl': function bl() { return { name: $('.goods-name h1').eq(0).text().replace('百联自营', '').trim(), price: $('#FlashPrice').text() }; }, 'bestinfoods': function bestinfoods() { return { name: $('.goodsname').eq(0).text(), price: $('.price1').eq(0).text() }; }, 'axmall': function axmall() { return { name: $('.goods-intro .name').text(), price: $('#sku_vip_price').text() }; }, 'bftv': function bftv() { return { name: $('.title h2').text(), price: $('.price').text() }; }, 'wangjiu': function wangjiu() { return { name: $('.part_line01').text(), price: $('.part_line04 .spare02 span').text() }; }, '189': function _() { var title = $('#articleshorttitle').text(); var price = $('#mall_price').text(); var brand_string = ''; if (title == '') title = $('.ph-title h1').eq(0).text().replace('仅限江西省用户', ''); if (title.toLowerCase().indexOf('iphone') > -1) brand_string = "苹果"; if (price == '') price = $('#assprice').text(); return { name: brand_string + title, price: price, brand_string: brand_string }; }, 'taqu': function taqu() { return { name: $('.details-name').eq(0).text(), price: $('#details-price').text() }; }, 'bestcake': function bestcake() { return { name: $('.info-right-li p').eq(0).text(), price: $('.info-right-li .s4').eq(0).text() }; }, 'gomehigo': function gomehigo() { return { name: $('#gm-prd-main li.prdtit').text(), price: $('#prdPrice').text() }; }, 'lovo': function lovo() { return { name: $('#goodsNameStrong').text(), price: $('#actMsgS big').text() }; }, 'zhe800': function zhe800() { return { name: $('#detail .detailmeta .clear h1').text(), price: $('.price .js_price_st').text() }; }, 'hua': function hua() { return { name: $('.product-r .title h3.product-title').text(), price: $('#fjr .price-sell .price-num').text() }; }, 'mei': function mei() { return { name: $('.Product_title').text() + ' ' + $('.product_name h1').text(), price: $('#productRMB').text() }; }, 'benlai': function benlai() { var price = $('#intro_price .price')[0].firstChild.nodeValue; if (price == '' || !price) price = $('#intro_price .price').text(); return { 'price': price, 'name': $('#Product_ProductDetailsName').text() }; }, 'vsigo': function vsigo() { return { name: $('h1').text(), price: $('.detail-price').text() }; }, 'fengqu': function fengqu() { return { name: $('h1').text(), price: $('.goods-price .goods-price-r1 strong').text() }; }, 'vmei': function vmei() { var price = $('#currPrice').text(); if (price.indexOf('-') > -1) price = price.split('-')[0]; return { name: $('.product_detail_title h1').text(), price: price }; }, 'easeeyes': function easeeyes() { return { name: $('.main div.goods_name_tr span').text(), price: $('.main p.color9 span.fs20.fontArial').text() }; }, 'staples': function staples() { return { 'name': $('.productInfo h3 span').text(), 'price': $('.nowPrice').text() }; }, 'efotile': function efotile() { return { 'name': $('.item-title').text(), 'price': $('.item-actPrice b').text() }; }, 'jgb': function jgb() { return { name: $('.h_des_title').text(), price: $('.h_des_price .J_rmb_price').text() }; }, '51din': function din() { return { name: $('.product_title > div').eq(0).text(), price: $('.price_rmb').text() }; }, 'aidai': function aidai() { return { name: $('.pro-det h3').text(), price: $('#_thisfp').text() }; }, 'boqii': function boqii() { return { name: $('.shop_name').text(), price: $('#bqPrice').text() }; }, 'spider': function spider() { return { name: $('.gdName h1').text(), price: $('#m12priceSpan').text() }; }, 'taobao-xianyu': function taobaoXianyu() { return { name: $('h1.title').text(), price: $('.price-block .price em').text() }; }, 'ai-taobao': function aiTaobao() { var price = undefined; if (!G.chrome_extension) { price = window.pageconfig.promoPrice; if (!price) { price = window.ENV_DATA && window.ENV_DATA.compList && window.ENV_DATA.compList.item_detail && window.ENV_DATA.compList.item_detail.data && window.ENV_DATA.compList.item_detail.data.data1[0].price; } return { name: $('h3.item-title a').text(), price: price, url: window.pageconfig.itemId ? 'http://item.taobao.com/item.htm?id=' + window.pageconfig.itemId : null }; } var pageconfig = $('.aitaobao-edetail-header script').text(); var itemId = /itemId":"(\d+)"/.exec(pageconfig); if (itemId) itemId = itemId[1]; price = /promoPrice":"([\d\.]+)"/.exec(pageconfig); if (price) price = price[1]; return { name: $('h3.item-title a').text(), price: price, url: itemId ? 'http://item.taobao.com/item.htm?id=' + itemId : null }; }, 'm6go': function m6go() { return { name: $('.goodsName h1').text(), price: $('#SGoodsPrice').text().replace(/[\s]+/g, '') }; }, 'logitech': function logitech() { return { name: $('h1.product-title').text() }; }, 'kjt': function kjt() { return { name: $('.prodetailtitle h1').text(), price: $('li.priceinfop span:first').text() }; }, 'test': function test() { return { url: $('#url').text() }; }, 'philips': function philips() { return { name: $('h1.sku-name').text() }; }, 'tcl': function tcl() { return { name: $('.p_name').text() }; }, 'changhong': function changhong() { return { name: $('.pc_name').text() }; }, 'konka': function konka() { return { name: $('.g_title h1').text() }; }, 'ineigo': function ineigo() { return { name: $('h5.ProName').text() }; }, 'skg': function skg() { return { name: $('.product-titles').text() }; }, 'k-touch': function kTouch() { return { name: $('.pro_title').text() }; }, 'gionee': function gionee() { return { name: $('#goodName').text() }; }, '51buy': function buy() { var dp = getProductInfo(); dp.price = $('.mod_price[itemprop="lowPrice"]').text().replace(/[¥¥\s]+/g, ''); if (dp.price == '') dp.price = window.itemInfo && window.itemInfo.price / 100; if (dp.price == '') dp.price = $('.xbase_item .mod_price ').text(); dp.name = window.itemInfo && window.itemInfo.name; dp.brand_string = window.itemInfo && window.itemInfo.brand_name; return dp; }, 'vivo': function vivo() { return { name: document.title, price: $('.now-price').text() }; }, 'taobao-95095': function taobao95095() { var dp = getProductInfo(); dp.price = $('#J_PromoPrice .tm-price').text(); dp.name = $('#J_DetailMeta .tb-detail-hd h1').text(); if (!dp.price) dp.price = $('#J_StrPriceModBox .tm-price').text(); return dp; }, 'walmart': function walmart() { var dp = getProductInfo(); dp.name = $('.js-product-heading span').text(); dp.price = $('.js-price-display').text(); dp.img = $('.js-product-media .slick-track li a img').eq(0) && $('.js-product-media .slick-track li a img').eq(0).attr('src'); return dp; }, 'kongfz': function kongfz() { console.log('here'); var dp = getProductInfo(); var isbn = $('.item:contains("ISBN") .text-value').text(); if (!isbn) { isbn = $('li:contains("ISBN") > span:eq(1)').text().trim(); } dp.isbn = isbn; dp.name = isbn; return dp; }, 'haituncun': function haituncun() { var dp = getProductInfo(); dp.name = $('.product-name h1').text(); dp.price = $('.rmb-price').text(); dp.img = $('.product-img-box li img').eq(0) && $('.product-img-box li img').eq(0).attr('src'); return dp; }, 'ebay': function ebay() { return { name: $('#itemTitle').text().replace(/^Details about/ig, ''), price: $('#prcIsum').attr('content'), img: $('#vi_main_img_fs ul li img').eq(0).attr('src') }; }, 'wy163': function wy163() { return { name: $('.PInfo dt').eq(0).text() || $('.mv_name').text() }; }, 'dianping': function dianping() { return { name: $('.deal-title h1,h1.title').text().replace(/\[.*\]/ig, '') }; }, 'nuomi': function nuomi() { var pdetails = $('.details p.dp') && $('.details p.dp').text() || ''; var name = ''; try { name = $('.details h1').text().replace(/^\u3010.+\u3011/i, ''); } catch (e) {} name = name + pdetails; return { 'name': name }; }, 'meituan': function meituan() { return { name: $('.deal-component-title').text(), isbn: '' }; }, 'meilishuo': function meilishuo() { var name = $('.goods-title').eq(0).text(); var price = $('#J_NowPrice').text(); if (name == '') name = $('h3.s_tle').text(); return { name: name, price: price }; }, 'sfht': function sfht() { var dp = getProductInfo(); dp.name = $('#titleInfo h1').text(); dp.price = $('#itemPrice .goods-price-r1 strong').text(); return dp; }, 'meici': function meici() { var dp = getProductInfo(); dp.name = $('#subpro .relative span').text(); var isprice = $('.pro_price .price').text().match(/[0-9.]+/); if (isprice) dp.price = isprice[0]; return dp; }, 'jianke': function jianke() { var dp = getProductInfo(); dp.name = $('.det_title h1').text(); var pri = $('.Price_info .bigPrice dd em').text().match(/[0-9.]+/); if (pri) dp.price = pri[0]; return dp; }, 'gome-home': function gomeHome() { var dp = getProductInfo(); dp.name = $('.prdmain .prdtit').text(); var price = $('#prdPrice').text().replace(/\s/g, '').match(/[0-9.]+/); if (price) dp.price = price[0]; return dp; }, 'nike': function nike() { var dp = getProductInfo(); dp.name = $('.product-title-text').text(); dp.price = $('.product-price').text(); return dp; }, '360kad': function kad() { var dp = getProductInfo(); dp.name = $('.YIrd_l li').eq(0).text().replace("商品名称:", ""); dp.price = $('#pricenumber').text(); var arr = dp.url.split('/'); var url = arr[0] + '//'; var html = arr[arr.length - 1].split('.'); for (var i = 2; i < arr.length - 1; i++) { url = url + arr[i] + '/'; } var productId = $("div.Ydrug_info dl:first dd").text(); if (productId) { dp.url = url + $("div.Ydrug_info dl:first dd").text() + '.' + html[1]; } else { dp.url = location.href; } return dp; }, 'lbxcn': function lbxcn() { var dp = getProductInfo(); dp.name = $('.detailPas').text().replace(/\s/g, ""); dp.price = $('#lblPrice').text(); return dp; }, 'mogujie': function mogujie() { var dp = getProductInfo(); dp.name = ""; dp.name = $('.goods-title').text(); if (dp.name == "") { dp.name = $('div.shoptitle').text(); } if (dp.name == "") { dp.name = $('.goodstitle').text(); } return dp; }, 'coolpad': function coolpad() { return { name: $('.good_name h1').text() }; }, 'ztedevice': function ztedevice() { return { name: $('.znproducts h3').text() }; }, 'lenovo': function lenovo() { var dp = getProductInfo(); dp.price = $('#gprice').text(); if (dp.price == '') dp.price = window.price; dp.name = $('.goodsname').text(); if (dp.name == '') dp.name = $('.de_proname').text(); if (!dp.price) { dp.price = $('.price-show').text(); } return dp; }, 'showjoy': function showjoy() { var dp = getProductInfo(); dp.name = $('.choose-hd').text().replace(/\s/g, ''); dp.price = $('#J_MainPrice .sj-price-text').text(); return dp; }, 'ocj': function ocj() { var dp = getProductInfo(); dp.name = $('.pv_shop_detail_title h1').text(); dp.price = $('.info_box .val .price').text(); return dp; }, 'ocj-tuan': function ocjTuan() { var dp = getProductInfo(); dp.name = $('.product-info > h1').text().replace(/\s/g, ''); var price = $('.product_price_cont .p1').html().match(/\/span\>([0-9.]+)\</); if (price) dp.price = price[1]; if (dp.price == '') dp.price = $('.product_price_cont .p1').text(); if (dp.name == '') dp.name = $('.product-info h1 .title').text(); return dp; }, 'ocj-kr': function ocjKr() { var dp = getProductInfo(); dp.name = $('.pv1_li_table_wrap th:contains("品名")+td').text(); dp.price = $('.pricekorea').text(); return dp; }, 'gjw': function gjw() { return { 'name': $('.silder_column_name span').text(), 'isbn': '' }; }, 'apple': function apple() { var dp = getProductInfo(); dp.price = $('.price-point-fullPrice span').eq(0).text(); return dp; }, 'jumei': function jumei() { var dp = getProductInfo(); dp.name = $('h1.pop_detail_tit').text(); if (dp.name == "") { dp.name = $("title").html(); var title_arr = $("title").html().split("-"); title_arr.pop(); title_arr.pop(); try { dp.name = title_arr.join('-'); } catch (err) {} } dp.price = $('#mall_price_detail .price_num').text(); if (dp.price == '') { dp.price = $('#stream_id').attr('price'); } return dp; }, 'jumeiglobal': function jumeiglobal() { var dp = getProductInfo(); try { dp.price = $('.jumei_price').text().match(/[0-9.]+/)[0]; dp.name = $('.deal_con_content td:contains("商品名称")').parent().find('td').eq(1).text(); } catch (e) {} if (dp.price == '') { dp.price = $('#stream_id').attr('price'); } return dp; }, 'yunhou': function yunhou() { var dp = getProductInfo(); dp.name = $('.goods-name h1').text(); dp.price = $('#jPriceNormal').text(); dp.img = $('.pic-pager .pic-list a img').eq(0) && $('.pic-pager .pic-list a img').eq(0).attr('src'); if (dp.price == '') dp.price = $('.jFirstPrice').text(); return dp; }, 'boohee': function boohee() { var dp = getProductInfo(); dp.name = $('.widget-goods-primary .row-des h1').text(); dp.price = $('.col-price b').text().match(/[0-9.]+/)[0]; return dp; }, 'moonbasa': function moonbasa() { var name = ''; try { name = $('.p_info h2').html().replace(/<[^>]*[\s\S]*[^<]*>/ig, ''); name = $.trim(name); } catch (e) {} return { 'name': name }; }, 'homevv': function homevv() { var dp = getProductInfo(); dp.name = $('.shop_name p[class="hdr_1"]').text(); dp.name = dp.name.replace(/<div[^>]*[\s\S]*[^<]*\/div>/ig, ''); dp.name = dp.name.replace(/<span[^>]*[\s\S]*[^<]*\/span>/ig, ''); dp.name = dp.name.replace(/ /ig, ''); dp.name = $.trim(dp.name); return dp; }, 'paixie-faxian': function paixieFaxian() { var dp = getProductInfo(); dp.name = $('.find-info-product a p').eq(0).text(); dp.price = $('.find-info-product a span').eq(0).text().match(/[0-9.]+/)[0]; return dp; }, 'xiaomi': function xiaomi() { var dp = getProductInfo(); dp.price = $('#J_goodsInfoBlock .J_mi_goodsPrice').text(); dp.name = $('.name').eq(0).text(); if (!dp.name) { dp.name = $('.product-con h2').text(); } if (dp.price == '') { try { dp.price = $('.J_proPrice')[0].childNodes[0].nodeValue; } catch (e) { var price = $('.J_proPrice').text().match(/[0-9.]+/); if (price) dp.price = price[0]; } } return dp; }, "youpin-mi": function youpinMi() { return { 'name': $('.sku-container .good-name').text(), 'price': $('.price .value').text() }; }, 'ihush': function ihush() { return { 'name': $('h1.title').text() }; }, '1688': function _() { G.site = "taobao"; var sattrs = new Array(); var brand = $('.de-feature:contains(\"品牌\")').text(); if (brand) { sattrs.push(brand); } var no = $('.de-feature:contains(\"系列\")').length > 0 ? $('.de-feature:contains(\"系列\")').text() : null; no = !no ? $('.de-feature:contains(\"货号\")').length > 0 ? $('.de-feature:contains(\"货号\")').text() : null : no; no = !no ? $('.de-feature:contains(\"型号\")').length > 0 ? $('.de-feature:contains(\"型号\")').text() : null : no; if (no) { sattrs.push(no); } var isbn = $('.de-feature:contains(\"书号\")').length > 0 ? $('.de-feature:contains(\"书号\")').text() : null; isbn = isbn ? isbn.substr(isbn.indexOf(':') + 1) : null; if (isbn) { sattrs.push('ISBN:' + isbn); } sattrs = sattrs.join("|"); return { 'name': $('#mod-detail-hd h1').text(), 'isbn': '', 'skeyword': sattrs }; }, 'womai-related': function womaiRelated() { // return getArticleInfo(".detail_goods_cont a", 0, "womai"); return { name: $('.pro_tit_top_forcombi').text(), price: $('#combiProductMarketPrice').text() }; }, '139shop-article': function shopArticle() { return getArticleInfo(".rginfo dt a", 0, "139shop"); }, 'zol-article': function zolArticle() { return getArticleInfo(".nav-header>a ", 1, "zol"); }, 'pconline-article': function pconlineArticle() { return getArticleInfo(".navProWrap h3 a", 0, "pconline"); }, 'yesky-article': function yeskyArticle() { return getArticleInfo(".artitle h3 a", 0, "yesky"); }, 'it168-article': function it168Article() { return getArticleInfo(".bj980 .bj1 div>a", 0, "it168"); }, 'pcpop-article': function pcpopArticle() { return getArticleInfo(".bj980 .bj1 a", 0, "pcpop"); }, 'pchome-article': function pchomeArticle() { return getArticleInfo(".navProWrap h3 a", 0, "pchome"); }, 'newegg': function newegg() { var dp = getProductInfo(); dp.name = $('#proCtner .proHeader h1').text(); dp.price = $('#omHiddenPrice').val(); dp.url = $(".proHeader h1 a").attr('href'); dp.brand_string = $('.goods_info .goods_info_name:contains("牌")+.godds_info_data').text().replace(/\s/g, ''); return dp; }, 'newegg-zhadan': function neweggZhadan() { var dp = getProductInfo(); dp.name = $('.proHeader h1 a').text(); dp.url = $('.proHeader h1 a').attr('href'); return dp; }, 'yiwugou': function yiwugou() { var dp = getProductInfo(); dp.name = $('li.fontbold.tit').text(); dp.price = parseFloat($('#punitprice').text().replace(/\s/g, '')); return dp; }, 'zhiwo': function zhiwo() { var dp = getProductInfo(); dp.name = $('.mall_detail_prd_info .title').text(); return dp; }, 'zhiwo-tuan': function zhiwoTuan() { var dp = getProductInfo(); dp.name = $(".carousel li p").eq(0).text(); return dp; }, 'zol': function zol() { var dp = getProductInfo(); var merchant_price = []; var prices = $('.product-merchant-price em').text(); if (prices != '' && prices.match(/[0-9]+/) && prices.indexOf('至') > -1) merchant_price = prices.replace(/[ ]/g, "").split('至'); dp.name = $('.product-name h3').text(); if (dp.name == "") { dp.name = $('.ptitle').text(); } if (dp.name == "") { dp.name = $('.page-title.clearfix h1').text(); } if (merchant_price.length > 0) { dp.min_price = merchant_price[0].substr(1); dp.max_price = merchant_price[1].substr(1); } dp.price = $('.price-type').text(); if (dp.price.indexOf('万') > -1) { var p = dp.price.match(/[0-9.]+/); if (p) dp.price = p[0] * 10000; } dp.cat_name = $('.breadcrumb a').eq(1).text(); dp.brand_string = $('.breadcrumb a').eq(2).text(); return dp; }, 'vmall': function vmall() { var dp = getProductInfo(); dp.name = $('#pro-name').text(); return dp; }, 'daling': function daling() { var dp = getProductInfo(); dp.name = $('.goods-data h1.clearfix').text().replace(/\s/g, ''); dp.price = $('.goods-price .clearfix .fl .bold').text(); return dp; }, 'fclub': function fclub() { var dp = getProductInfo(); dp.name = $('.goods_introduce').text(); dp.name = dp.name.replace(/(?:\t|\n)/ig, ''); dp.name = dp.name.replace(/(?:\ \ | )/ig, ' '); if (dp.name == '') { dp.name = $('.tdleft:contains("商品名称")+.tdright').text().replace(/(\s)/g, ''); dp.price = $('#priceFont').text(); } return dp; }, 'taoshu': function taoshu() { var dp = getProductInfo(); dp.isbn = $('.book_detailed span:contains("ISBN")').length > 0 ? $('.book_detailed span:contains("ISBN")').text().substr(5) : ""; return dp; }, 'amazon': function amazon() { var dp = getProductInfo(); var isbn_str = ''; var isbn_str1 = $('li:contains("ISBN")').text(); var isbn_str2 = $('li:contains("条形码")').text(); //var isbn_str3 = $('li:contains("ASIN")').text(); var isbn_str3 = $('li b:contains("ASIN")').parent('li').text(); isbn_str1 = isbn_str1 ? isbn_str1.substr(5) : ''; isbn_str2 = isbn_str2 ? isbn_str2.substr(4) : ''; isbn_str3 = isbn_str3 ? isbn_str3.substr(5) : ''; if (isbn_str1 == '') { isbn_str = isbn_str2; } else if (isbn_str2 == '') { isbn_str = isbn_str1; } else { if (isbn_str1.length > isbn_str2.length) { isbn_str = isbn_str2; } else { isbn_str = isbn_str1; } } isbn_str = isbn_str || isbn_str3; isbn_str = isbn_str.replace(/(\s)/g, ""); dp.name = $('#btAsinTitle span').eq(0).text().replace(/(.*)<span.*/i, "$1"); dp.name = $('#productTitle').text().trim(); dp.isbn = isbn_str; dp.brand_string = $('#brand').text().trim(); dp.price = $('#priceblock_dealprice').text().replace(/[¥¥]+/, ''); if (dp.price == '') { dp.price = $('span.a-size-large.a-color-price').is(':visible') && $('span.a-size-large.a-color-price').text(); if (dp.price && dp.price.indexOf('-') > -1) { dp.price = ''; } } if (dp.price == '') { dp.price = $('#apex_desktop .a-price .a-offscreen').text(); } if (dp.price == '') dp.price = $('#priceblock_ourprice').text(); if (dp.price == '') dp.price = $('#priceblock_saleprice').text(); if (dp.price == '') dp.price = $('.offer-price:eq(0)').text(); if (dp.price == '') dp.price = $('#olp_feature_div .a-color-price').text(); if (dp.price == '') dp.price = $('.a-color-price:eq(0)').text(); if (dp.price == '') dp.price = $('#priceblock_saleprice').text(); if (dp.price == '') dp.price = $('#price_feature_div .a-color-price').text(); if (dp.price.indexOf('€') > -1) { dp.price = dp.price.replace(',', '.'); } var url = location.href; var host = location.host; dp.itemId = (function () { var match = location.href.match(/\/dp\/([0-9A-Za-z]+)/); if (match) { return match[1]; } match = location.href.match(/\/gp\/([0-9A-Za-z]+)/); if (match) { return match[1]; } return ''; })(); try { dp.cat_id = (function () { var e, t, a = ""; return document.querySelector(".a-breadcrumb li:nth-child(7) a") ? t = document.querySelector(".a-breadcrumb li:nth-child(7) a").getAttribute("href") : document.querySelector(".a-breadcrumb li:nth-child(5) a") ? t = document.querySelector(".a-breadcrumb li:nth-child(5) a").getAttribute("href") : document.querySelector(".a-breadcrumb li:nth-child(3) a") && (t = document.querySelector(".a-breadcrumb li:nth-child(3) a").getAttribute("href")), e = t.split("?")[1], e && e.split("&").forEach(function (e) { e.match(/node=.*/) && (a = e.match(/node=(.*)/)[1]); }), a; })(); } catch (e) { dp.cat_id = ""; } dp.url2 = url.replace(host, 'www.amazon.cn'); var catdom = $('#wayfinding-breadcrumbs_feature_div .a-unordered-list li a'); var catlen = catdom.length; var cat_name = []; for (var i = 0; i < catlen; i++) { cat_name.push(catdom.eq(i).text().trim()); } dp.cat_name = cat_name.join('#'); dp.website = 'amazon'; dp.pic = $('#altImages li img').eq(0).attr('src'); if (!dp.pic) { dp.pic = $('#landingImage').eq(0).attr('src'); } dp.img = dp.pic; dp.sku = $('#addToCart #ASIN').val(); dp.category = $('#wayfinding-breadcrumbs_feature_div a').text(); var brandhref = $('#brand').attr('href'); var brand = brandhref && brandhref.match(/field-lbr_brands_browse-bin=(.*)$/) && brandhref.match(/field-lbr_brands_browse-bin=(.*)$/)[1]; dp.brand = dp.brand_string ? dp.brand_string : brand; return dp; }, 'muyingzhijia': function muyingzhijia() { var dp = getProductInfo(); dp.name = $('#name h1').text(); dp.price = $('#summary-price .p-price').text(); return dp; }, 'dangdang': function dangdang() { var prodSpuInfo = window.prodSpuInfo; var dp = getProductInfo(); var isbn = $('.book_detailed span:contains("I S B N")').text().substr(8); if (isbn == '') { isbn = $('.intro span:contains("I S B N")').text().substr(8); } if (isbn == '') { isbn = $('.book_messbox .show_info_left:contains("ISBN")').next('.show_info_right').text(); } if (isbn == '') { isbn = $('.book_messbox .show_info_left:contains("I S R C")').next('.show_info_right').text(); } if (isbn == '') { var dom = $('.book_messbox span:contains("I S R C")'); isbn = dom && dom.parent().text().substr(7); } if (isbn == '') { var isbn = $('#detail_describe li:contains("ISBN")').text().match(/[0-9]+/); if (isbn) isbn = isbn[0]; } dp.price = $('#dd-price').text(); dp.isbn = isbn; dp.pic = $('#main-img-slider li img').eq(0).attr('src'); dp.website = "dangdang"; dp.itemId = location.href.match(/dangdang\.com\/(\d+)/)[1]; dp.brand_string = $('.mall_goods_foursort_style_frame:contains("品牌")').text().replace('品牌:', ''); if (dp.brand_string == '') dp.brand_string = window.google_tag_params && window.google_tag_params.ecomm_pbrand; if (!dp.price) dp.price = $('#salePriceTag').text(); dp.name = $('.name_info h1').text().trim(); dp.cat_id = prodSpuInfo && prodSpuInfo.categoryId; return dp; }, '360buy-paimai': function buyPaimai() { var dp = getProductInfo(); dp.price = $('#priceDiv').text().match(/[0-9.]+/)[0]; dp.name = $('.intro_detail .name').attr('title'); return dp; }, '360buy-book': function buyBook() { var name = $('title').text(), isbn = ""; isbn = $('#summary-isbn .dd').text(); name = $('#name h1').html(); if (name.indexOf('<') > 0) { name = name.substr(0, name.indexOf('<')); } isbn = isbn || $('li div:contains("ISBN")').text().substr(5); name = name || $('#name h2').html().replace(/(.*)<font.*/i, "$1"); return { 'name': name, 'isbn': isbn }; }, '360buy-tuan': function buyTuan() { var dp = getProductInfo(); dp.name = dp.name.replace(" - 京品惠团购", ""); G.site = "360buy"; dp.id = $("#PshowSkuid").val(); //默认是从title里获取的信息,如果发现 能从网页中获取的关键字 长度比 title中获取的更长,就替换掉原来的title var tuan_dp_name = $(".e-content h2").text(); if (tuan_dp_name.length > dp.name.length) { dp.name = tuan_dp_name; } //新增 var jdTuanA = $('.e-extra .p-img a'); if (jdTuanA.length > 0 && !/^javascript:/.test(jdTuanA.attr('href'))) { dp.href = jdTuanA.attr('href'); } else { if (typeof $('#PshowSkuid').val() != "undefined") { dp.href = 'http://item.jd.com/' + $('#PshowSkuid').val() + '.html'; } } dp.url = $(".e-extra a").eq(0).attr("href"); if (dp.url.indexOf("javascript") > -1) { dp.url = $(".img-info a").eq(0).attr("href"); } return dp; }, '360buy-bigimage': function buyBigimage() { var url = ""; if (url == "") { url = $('.o-m-1 h1 a').attr("href"); } var name = $('.o-m-1 h1 a').eq(0).text(); return { 'url': url, 'name': name, 'isbn': '' }; }, '360buy-club': function buyClub() { var url = ""; if (url == "") { url = $('.p-name a').attr("href"); } var name = $('.p-name a').eq(0).text(); return { 'url': url, 'name': name, 'isbn': '' }; }, '360buy': function buy() { var dp = getProductInfo(); var name = $('#name h1').text(), isbn = ""; if (!name) name = $('.itemInfo-wrap .sku-name').eq(0).text(); if (name && name.indexOf('<') > 0) { name = name.substr(0, name.indexOf('<')); } isbn = $('#summary-isbn .dd').text(); if (!isbn) { isbn = $("td:contains('ISBN号:')").text().match(/\d+/); if (isbn) isbn = isbn[0]; } if (!isbn) { isbn = $("#product-detail li:contains('ISBN:')").text().match(/\d+/); if (isbn) isbn = isbn[0]; } if (!isbn) { isbn = $("td:contains('ISBN号:')").text().substr(7); } if (!isbn) { var isbntxt = $('.parameter2 li:contains("ISBN")').text(); isbn = isbntxt.replace(/(?:ISBN|isbn)(?:\:|:)/, ''); } if (!isbn) { var isbntxt = $('#parameter2 li:contains("ISBN")').text(); isbn = isbntxt.replace(/(?:ISBN|isbn)(?:\:|:)/, ''); } dp.name = $.trim(name); dp.isbn = isbn; var ab = window.pageConfig && window.pageConfig.product && window.pageConfig.product.brand; if (ab != 0) { dp.brand_string = $('#root-nav a[href*="' + ab + '"]').text(); if (!dp.brand_string) dp.brand_string = $('#crumb-wrap .crumb .item a[href*="' + ab + '"]').eq(0).text(); } dp.price = $('#jd-price').text().replace(/[¥¥]+/, ''); var new_cat_array = []; var cat_array = $("body").attr("class").match(/cat\-\d\-([0-9]+)/g) || []; for (var i = 0; i < cat_array.length; i++) { new_cat_array.push(cat_array[i].match(/\d\-([0-9]+)/)[1]); } if (new_cat_array.legnth === 0) { new_cat_array = window.pageConfig && window.pageConfig.product && window.pageConfig.product.cat; } if (window.pageConfig && window.pageConfig.product) { var pageConfig_pd = window.pageConfig.product; dp.shopId = pageConfig_pd.shopId; dp.venderId = pageConfig_pd.venderId; } dp.cat_id = new_cat_array.join("-"); if (!dp.price) { dp.price = $('.p-price:not(.dj-price):eq(0)').text(); } dp.plus_price = $('.p-price-plus .price').text().replace(/[¥¥]+/, ''); dp.fans_price = $('.fans-price .p-price-fans span').text().replace(/[¥¥]+/, ''); if (!dp.price) dp.price = $('.summary-price .p-price:not(.dj-price) .price').eq(0).text(); dp.pic = $('#spec-img').eq(0).attr('src').replace('/n5/', '/n1/'); if (!dp.pic) { dp.pic = $('.spec-items ul li img').eq(0).attr('src'); } if (dp.pic && dp.pic.indexOf('http') === -1) dp.pic = 'http:' + dp.pic.replace(/\d+x\d+/, '160x160'); dp.img = dp.pic; dp.itemId = location.href.match(/(\d+)\.html/)[1]; dp.name = dp.name && dp.name.replace('【京东超市】', ''); dp.website = 'jd.com'; dp.cat_name = Array.prototype.map.call(document.querySelectorAll('#crumb-wrap .crumb a'), function (d) { return d.textContent; }).slice(0, 3).join('#'); return dp; }, '360buy-re': function buyRe() { var dp = getProductInfo(); dp.name = $('.shop_intro>h2>a').text(); dp.price = $('.shop_intro_a .price a').text(); return dp; }, '360buy-auction': function buyAuction() { var dp = getProductInfo(); dp.name = $('#product-intro .p-info h1').text(); dp.price = $('#cur_price').text().match(/[0-9.]+/)[0]; return dp; }, 'fglady': function fglady() { return { 'name': $('.pd-content-left table tbody').children('tr').eq(1).children('td').eq(0).children('div').eq(0).text(), 'isbn': '' }; }, 'ouku': function ouku() { var dp = getProductInfo(); dp.name = $('.prod-info-title h1').text(); dp.brand_string = $('.specTitle .strong-title:contains("品牌")+.inline span').text(); dp.price = $('.sale-price').text().replace(/[¥¥\s]+/g, ''); return dp; }, '6pm': function pm() { var dp = getProductInfo(); dp.name = $('#productStage .title').text(); dp.brand_string = $('#productStage .title .brand').text(); dp.price = $('#priceSlot .price').text().replace('$', ''); dp.img = $('#productImages ul li img').eq(0).attr('src'); dp.sku = $('input[name="productId"]').val(); dp.category = $('#breadcrumbs a').text(); dp.source = $('#thumbnailImages').next().next().next().text(); dp.brand = $('a[itemprop="brand"]').text(); if (!dp.price) dp.price = $('._3r_Ou').eq(0).text().replace('$', ''); return dp; }, 'kimiss': function kimiss() { var name = ""; name = $('.preview_title h1 a').text(); var price = $('.preview_brief em').text(); if (price.indexOf('-') > -1) { price = price.split('-')[0]; } var pinfo = $('.preview_brief').text().match(/产品规格:(.*)/); if (pinfo) pinfo = pinfo[1]; if (pinfo.indexOf('-') > -1) pinfo = pinfo.split('-')[0]; name = name + pinfo; if (name == "") { name = $('.title h1').text(); } return { 'name': name, 'price': price, 'isbn': '' }; }, 'redbaby': function redbaby() { return { 'name': $('#pName').text(), 'isbn': '' }; }, 'm18': function m18() { return { 'name': $('.goods_detail .name').text(), 'isbn': '' }; }, 'babyhaven': function babyhaven() { var d = getProductInfo(); d.name = $('.product-name').text(); return d; }, 'w1': function w1() { return { 'name': $('.title h1').text(), 'isbn': '' }; }, 'sephoracps': function sephoracps() { var price = $('.proPrice>span:eq(1)').text(); return { 'name': $('.sdTitleL h1').text(), 'isbn': '', 'price': price }; }, 'bookuu': function bookuu() { var dp = getProductInfo(); dp.name = $('.shop-text-info h2').text(); dp.price = $('.wj-meta span:contains("博库价")~strong').text(); var meta = $("meta[name=keywords]")[0].getAttribute("content"); dp.isbn = /ISBN:(\d+)/.exec(meta) && /ISBN:(\d+)/.exec(meta)[1]; return dp; }, 'secoo': function secoo() { var dp = getProductInfo(); dp.price = $('.Dprice').text().replace(/(¥|,)/g, ''); dp.name = $('.proName h2').text(); return dp; }, 'lafaso': function lafaso() { var name = $('#pname').text(); if (typeof name == 'undefined' || name == '') { name = $('title').html(); } return { 'name': name, 'isbn': '' }; }, 's': function s() { return { 'name': $('.goodsname').text(), 'isbn': '' }; }, 'letao': function letao() { return { 'name': $('#buyinfo h1').text(), 'isbn': '' }; }, 'buy007': function buy007() { return { 'name': $('#info_right table tbody').children('tr').eq(0).children('td').eq(0).children('h1').eq(0).text(), 'isbn': '' }; }, 'taoxie': function taoxie() { return { 'name': $('.detail').children('div').eq(0).children('h2').eq(0).text(), 'isbn': '' }; }, 'suning': function suning() { var dp = getArticleInfoNew('input[name=returnURL]', 0, "value", "suning"); var name = $('#itemDisplayName').text().trim(); var isbn; if (!isbn) { isbn = $('#total dt:contains("I")').next().eq(0).text(); isbn = isbn.match(/(?:\d{13}|\d{10}|\d{8})/ig); if (isbn) isbn = isbn[0]; } if (!isbn) { isbn = $('.book-info span:contains("I")').next().eq(0).text(); isbn = isbn.match(/(?:\d{13}|\d{10}|\d{8})/ig); if (isbn) isbn = isbn[0]; } if (!isbn) { isbn = $('#bookParameterField dl:contains("ISBN")').text().match(/[0-9]+/); if (isbn) isbn = isbn[0]; } dp.url = location.href; var labelList = $('.w3').toArray(); labelList = labelList.map(function (i) { return i.innerHTML; }); var tgPrice = undefined; if (labelList.indexOf('团购价') > -1 || labelList.indexOf('预售价') > -1) { tgPrice = $('span.small-price').text(); } var promotionPrice = $('#promotionPrice.mainprice').text(); var mainPrice = $('.mainprice').text(); dp.name = name; dp.isbn = isbn; dp.brand_string = window.sn && window.sn.brandName || ''; dp.price = window.sn && window.sn.promotionPrice || 0; if (mainPrice) { dp.price = mainPrice; } if (promotionPrice) { dp.price = promotionPrice; } if (tgPrice) { dp.price = tgPrice; } dp.itemId = location.href.match(/(\d+\/\d+)\.html/)[1]; var catdom = $(".breadcrumb .dropdown:nth-last-of-type(3) a"); var cathref = catdom && catdom.attr('href'); dp.cat_id = cathref.match(/(\d-\d{0,}-\d)\.html/) ? cathref.match(/(\d-\d{0,}-\d)\.html/)[1] : ""; dp.website = "suning"; dp.pic = $('#bigImage img').attr('src'); if (dp.pic) dp.pic = $('#bigImg img').attr('src'); if (!dp.name) dp.name = window.sn && window.sn.itemDisplayName; dp.name = dp.name && dp.name.replace('【苏宁易购超市】', ''); if ($('#mainPrice').text().indexOf('定金') > -1) { G.noRealPrice = true; } return dp; }, 'suning-ju': function suningJu() { var dp = {}; dp.url = 'http://www.suning.com/emall/prd_10052_10051_-7_' + $("#itemId").attr("value") + '_.html'; if (G.crc64) dp.url = undefined; dp.name = $("h1 a").text(); return dp; }, 'suning-book-new': function suningBookNew() { var dp = getArticleInfoNew('input[name=returnURL]', 0, "value", "suning"); var name = $('title').html(); var isbn = ""; isbn = $('#total dt:contains("I")').next().eq(0).text(); var matches = isbn.match(/(?:\d{13}|\d{10}|\d{8})/ig); if (matches != null) { isbn = matches[0]; } else { isbn = ""; } if (isbn == '') { isbn = $('.book-info span:contains("I")').next().eq(0).text(); var matches = isbn.match(/(?:\d{13}|\d{10}|\d{8})/ig); if (matches != null) { isbn = matches[0]; } else { isbn = ""; } } dp.name = name; dp.isbn = isbn; return dp; }, 'suning-snbook': function suningSnbook() { var dp = getArticleInfoNew('input[name=returnURL]', 0, "value", "suning"); dp.name = $('.brief-info h1 strong').text(); dp.isbn = $('.parm-isbn span.attr-v').text(); return dp; }, 'suning-dgf': function suningDgf() { var that = this; var dp = that.getProductInfo(); var a = $('.detail-first h1.title a').eq(0); dp.name = $('.detail-first h1.title a span strong').text(); G.href = a.attr('href'); G.site = "suning"; if (typeof G.href == 'undefined' || G.href == "") { dp.useless = true; } else { var check = siteInfo.isProductPage(); if (!check) { dp.useless = true; } } return dp; }, 'suning-qiang': function suningQiang() { var dp = getArticleInfo(".product-main-title h1 a", 0, "suning"); var suningQiangProId = $('#catentry').val(); if (suningQiangProId) { G.href = 'http://www.suning.com/emall/prd_10052_10051_-7_' + suningQiangProId + '_.html'; } return dp; }, 'suning-pai': function suningPai() { var dp = getArticleInfoNew('input[name=returnURL]', 0, "value", "suning"); var name = $('.fb-main-title a').text(); var isbn = ""; var url = ""; url = $('.fb-main-title a').attr('href'); isbn = $('#total dt:contains("I")').next().eq(0).text(); var matches = isbn.match(/(?:\d{13}|\d{10}|\d{8})/ig); if (matches != null) { isbn = matches[0]; } else { isbn = ""; } dp.name = name; dp.isbn = isbn; dp.url = url; return dp; }, 'coo8': function coo8() { return { 'name': $('#productname h1').children('strong').eq(0).text(), 'isbn': '' }; }, 'lusen': function lusen() { return { 'url': 'http://www.lusen.com/Product/ProductInfo.aspx?id=' + $("#ProductId").val(), 'name': $('h1.goodsname').text(), 'isbn': '' }; }, 'gome-rushbuy': function gomeRushbuy() { var url = ""; url = $(".pic a").eq(0).attr("href"); return { 'name': $('.product-info .name').text(), 'isbn': '', 'url': url }; }, 'gomehone': function gomehone() { var dp = getProductInfo(); dp.price = $('#prdPrice').text().match(/[0-9.]+/)[0]; dp.name = $('.prdmain .prdtit').text(); return dp; }, 'gome': function gome() { var prdInfo = window.prdInfo; var dp = getProductInfo(); var isbn = ""; var name = $('title').html(); name = $('.prdtit h1').text(); dp.name = name; dp.isbn = isbn; dp.price = $('#prdPrice').text(); if (name == '') dp.name = prdInfo && prdInfo.prdName; if (dp.price == '') dp.price = prdInfo && prdInfo.price; dp.brand_string = prdInfo && prdInfo.breadName; dp.itemId = location.href.match(/gome\.com\.cn\/([A-Z0-9]+)-/)[1]; dp.cat_id = prdInfo && prdInfo.catId; dp.website = 'gome'; dp.pic = $('.pic-small ul li img').eq(0).attr('src'); if (!dp.cat_id) { var dom = $('.local a').eq(3).attr('href'); dp.cat_id = dom.match(/cat\d+/) && dom.match(/cat\d+/)[0]; } return dp; }, 'gome-q': function gomeQ() { var dp = getProductInfo(); dp.name = $('h1.title').text(); dp.url = $('.pro_link')[0].href; return dp; }, 'gome-tao': function gomeTao() { var dp = getProductInfo(); dp.name = $('.prdtit').text(); dp.price = parseInt($('#prdPrice').text().match(/[0-9]+/)[0]); return dp; }, 'gome-tuan': function gomeTuan() { var dp = getProductInfo(); dp.url = $(".compare-link").attr("href"); dp.name = $('title').html(); dp.price = $('#salePrice').text(); return dp; }, 'yihaodian': function yihaodian() { var dp = getProductInfo(); var id = ""; if ($('#productId').length) { id = $('#productId').val(); } else if ($('#productCode').length) { id = parseInt($('#productCode').text().slice(0, -1)); } else if ($('#mainProductId').length) { id = $('#mainProductId').val(); } // 名品特卖 else if ($('.specific_detail p span').length) { id = parseInt($('.specific_detail p span').text().match(/\d+$/)[0].slice(0, -1)); } var name = $('#productMainName').text(); var sp = name.indexOf('<'); if (sp > 0) { name = name.substr(0, sp); } if (name == '') { name = $('.main_info_con p.price').prev().eq(0).text(); }; if (name == '') { name = $('.pro_tit').text(); } var isbn = $('#prodDetailCotentDiv dd:contains("ISBN")').text().substr(5); isbn = $.trim(isbn); var itemId = location.href.match(/item\/([0-9]{5,9})/); dp.itemId = itemId && itemId[1]; dp.img = $('#jsproCrumb .mBox b img').eq(0).attr('src'); dp.brand_string = $('#brandName').val(); dp.price = $('#current_price').text().replace(/[¥¥]+/, ''); dp.cat_id = $('#categoryId').val(); dp.isbn = isbn; dp.name = name; dp.id = id; dp.pic = dp.img; dp.website = 'yhd'; return dp; }, 'yihaodian-tuan': function yihaodianTuan() { var name = ''; var id = ''; var url = ""; name = $('#detailDiv h2').eq(0).text(); id = $('#productId').val(); if (id == '') { id = $('#mainProductId').val(); } if (name == '') { name = $("title").text().replace(/.{2}团购_1号团_1号店官网/, ""); } var price = $('#pricenow').text(); url = 'http://item.yhd.com/item/' + $('#productMercantId').val(); return { 'name': name, 'isbn': '', 'id': id, 'url': url, 'price': price }; }, 'womai': function womai() { var dp = getProductInfo(); dp.name = ""; var matches = $(".main_detail").eq(0).html().match(/var _title = "([^"]+)"/); dp.name = matches[1]; dp.price = $('.buyPrice').text(); if (dp.name == "") { dp.name = $('.WrapTit').text(); } dp.name = window.rtTag.data.ecom_view.prod[0].p_name; dp.price = window.rtTag.data.ecom_view.prod[0].p_price; dp.brand_string = window.rtTag.data.ecom_view.prod[0].p_brand; return dp; }, 'coocaa': function coocaa() { return { 'name': "酷开 " + $(".proHeader h1").text() }; }, 'leyou': function leyou() { var dp = getProductInfo(); dp.name = $('#baseInfoDiv h3').text(); dp.price = $('.item_rmb .font_num').text(); return dp; }, 'shopin': function shopin() { var crumbs = $.trim($('.crumbs').text()); var title = $.trim($('.product-list h2').text()); crumbs = crumbs.replace(/(?:\u5f53\u524d\u4f4d\u7f6e|\u9996\u9875|-)/, "", crumbs); return { 'name': crumbs + " " + title, 'isbn': '' }; }, 'xiu': function xiu() { var name = ""; name = $('.p_title span h1').text(); return { 'name': name, 'isbn': '' }; }, 'xiu-tuan': function xiuTuan() { return { 'name': $('.xit_xqzgong h2').text(), 'isbn': '' }; }, 'vjia': function vjia() { return { 'name': $('.sp-singleName .title').text(), 'isbn': '' }; }, '7cv': function cv() { return { 'name': $('.main_right_top').text(), 'isbn': '' }; }, 'x': function x() { return { 'name': $('p.top_name').text(), 'isbn': '' }; }, 'guopi': function guopi() { return { 'name': $('#p_name').text(), 'isbn': '' }; }, 'no5': function no5() { var name = $('.part01 .p01_r h2').html(); if (name.indexOf('<') > 0) { name = name.substr(0, name.indexOf('<')); } return { 'name': name, 'isbn': '' }; }, 'sasa': function sasa() { var name = $('.product-titles').text(); var price = $('#product_information .action-pric').text(); return { 'name': name, 'price': price, 'isbn': '' }; }, 'dhc': function dhc() { return { 'name': $('head title').text(), 'isbn': '' }; }, '9dadao': function dadao() { return { 'name': $('.pra h2').text(), 'isbn': '' }; }, 'metao': function metao() { return { name: $(".pib_title_detail").text() }; }, 'kzj365': function kzj365() { var content = $("title").text(); var i = content.indexOf("_"); return { name: content.slice(0, i) }; }, 'nubia': function nubia() { var title = ''; if (title == '') { title = $('#subNav .sub-logo').eq(0).text(); } var price = $('.price').text(); return { name: title, price: price }; }, 'gnc': function gnc() { return { name: $('#product-title').text(), price: $('.price-regular').text().match(/[0-9.]+/) && $('.price-regular').text().match(/[0-9.]+/)[0] }; }, 'ymatou': function ymatou() { var content = $("meta[name=description]").attr("content"); var i = content.indexOf('”'); return { name: content.slice(1, i) }; }, 'kaola': function kaola() { return { name: $(".product-title").text(), price: $('.currentPrice').text() }; }, '360kxr': function kxr() { var name = $('.right-intro h2').html(); name = name.indexOf('<') > 0 ? name.substr(0, name.indexOf('<')) : name; return { 'name': name, 'isbn': '' }; }, 'likeface': function likeface() { return { 'name': $('.tCtn h1').text(), 'isbn': '' }; }, 'qxian': function qxian() { return { 'name': $('.product_body1_right_title h1').text(), 'isbn': '' }; }, 'didamall': function didamall() { return { 'name': $('.product-name').text(), 'isbn': '' }; }, 'yaodian100': function yaodian100() { return { 'name': $('.infoboxheader h1').text(), 'isbn': '' }; }, 'lijiababy': function lijiababy() { var name = $('#txtproname').text(); if (typeof name == 'undefined' || name == '') { name = $('#lbl_proname').text(); } return { 'name': name, 'isbn': '' }; }, '99read': function read() { var dp = getProductInfo(); dp.isbn = $('li:contains("产品条码")').html(); if (dp.isbn == null || typeof dp.isbn == 'undefined' || dp.isbn == '') { dp.isbn = ''; } else { dp.isbn = dp.isbn.substr(7); } return dp; }, 'china-pub': function chinaPub() { return { 'name': $('h1.black15c').text(), 'isbn': $('li:contains("ISBN")').children('strong').eq(0).html() }; }, 'bookschina': function bookschina() { var dp = getProductInfo(); dp.name = $('.this-pic').prev().text(); dp.name = $.trim(dp.name); dp.isbn = $('tr:contains(\"出版时间:\")').children().eq(1).text(); dp.isbn = $.trim(dp.isbn); return dp; }, 'bookschina-tuan': function bookschinaTuan() { var dp = getProductInfo(); dp.name = $('.titword').text().match(/《([^》]+)/)[1]; dp.price = $('.pricetime .pright .Mbig').text(); dp.isbn = $('.comments:contains("ISBN")').text().match(/ISBN:([0-9]+)/)[1]; if (dp.isbn == '') { dp.isbn = $('.comments').text().match(/[0-9]{13}/) && $('.comments').text().match(/[0-9]{13}/)[0]; } return dp; }, 'efeihu': function efeihu() { var dp = getProductInfo(); dp.name = $('.share_title em').text(); var p = $('.box_wrap .price .a p').text().match(/[0-9]+/); if (p) dp.price = p[0]; return dp; }, 'yintai': function yintai() { return { 'name': $('.p-tit').text(), 'isbn': '', 'price': $('.qd-num').text() }; }, 'urcosme': function urcosme() { return { 'name': $('.productInformationText h1').text(), 'isbn': '' }; }, 'strawberrynet': function strawberrynet() { return { 'name': $('.product-frame h1').text() + $('.product-frame h2').text(), 'isbn': '' }; }, 'luce': function luce() { return { 'name': $('.Product_Detail ul').children('li').eq(0).children('p').eq(0).text(), 'isbn': '' }; }, 'k121': function k121() { return { 'name': $('.newproductname0').text(), 'isbn': '' }; }, 'happigo': function happigo() { return { 'name': $('.detail_top .detail_tit ').text(), 'price': $('.price_now').text() }; }, 'gap': function gap() { return { 'name': $('.product-name h1').text(), 'isbn': '' }; }, 'misslele': function misslele() { return { 'name': $('#goods_name').text(), 'isbn': '' }; }, 'all3c': function all3c() { return { 'name': $('.buyinfo h1').text(), 'isbn': '' }; }, 'idaphne': function idaphne() { return { 'name': $('.title').text(), 'isbn': '' }; }, 'binggo': function binggo() { var name = $('#pName h1').html(); var len = name.length; var i = 0; for (; i < len; i++) { if (name[i] == '<') { break; } } return { 'name': name.substr(0, i), 'isbn': '' }; }, 'taobao-ju': function taobaoJu() { var info = getProductInfo(); var id = /item_id=(\d+)/ig.exec(location.href); info.id = id && id.length == 2 && id[1]; info.name = $.trim($('.main-box h2').text()); info.url = 'https://detail.tmall.com/item.htm?id=' + info.id; info.itemId = location.href.match(/item_id=(\d+)/)[1]; info.price = $('.currentPrice .J_actPrice').eq(0).text(); return info; }, 'tmall': function tmall() { var info = getProductInfo(); var attrs = $(".attributes-list ul").html(); var sattrs = ''; var userid = ""; if (attrs == null) { attrs = $(".attributes-list").html(); } if (attrs) { attrs = attrs.replace(/(?:<\!\-\-[^\-]*\-\->|<li[^>]*>|\ \ )/ig, ''); attrs = attrs.replace(/ /ig, ' '); attrs = attrs.replace(/<\/li[^>]*>/ig, '|'); attrs = attrs.replace(/\n/ig, ''); var brand = attrs.match(new RegExp(/\|(\u54c1\u724c(?:\:|\uff1a)[^\|]+)/ig)); if (brand) { for (var i = 0; i < brand.length; i++) { sattrs += brand[i] + '|'; } } var no = attrs.match(new RegExp(/((?:\u7cfb\u5217|\u8d27\u53f7|\u578b\u53f7|\u6b3e\u53f7)(?:\:|\uff1a)[^\|]+)/ig)); if (no) { for (var i = 0; i < no.length; i++) { sattrs += no[i] + '|'; } } var isbn = attrs.match(new RegExp(/(ISBN[^\:\uff1a]*(?:\:|\uff1a)[^\|]+)/ig)); if (isbn) { for (var i = 0; i < isbn.length; i++) { sattrs += isbn[i] + '|'; } } info.skeyword = sattrs; } //提取分类信息 info.cat_id = ""; var cat_id = $('#tb-beacon-aplus').attr('exparams'); cat_id = cat_id && cat_id.match(/category=item%5f(\d+)&/); cat_id = cat_id && cat_id[1]; info.cat_id = cat_id; if (info.cat_id == "") { var cat_id = $('#detail-recommend-viewed').attr('data-catid'); info.cat_id = cat_id; } info.root_id = $('#J_FrmBid input[name="rootCatId"]').val(); //提取图片信息 info.pic = $('#J_ImgBooth').attr('src'); if (!info.pic) { var el = $('[class^=PicGallery--thumbnailPic]'); info.pic = el.attr('src'); } if (info.pic && info.pic.indexOf('https:') !== 0) info.pic = 'https:' + info.pic; var itemid = location.href.match(/[?&]id=(\d+)/); itemid = itemid && itemid[1]; //获取用户的id var doms = $("meta[name='microscope-data']").attr('content'); var matches = doms && doms.match(/userid=(\d+)/); if (matches) { userid = matches[1]; } var price = $('#J_PromoBox .tb-wrTuan-num').text(); if (!price) price = $('#J_Price').text(); if (!price) price = $('#J_StrPrice').text(); if (!price) price = $('.tm-promo-price .tm-price').text(); if (!price) price = $('#J_StrPriceModBox .tm-price').text(); if (!price) price = $('.tm-price').text(); if (!price) { price = $('[class^=Price--priceText]:eq(0)').text(); var detailText = $('[class^=Price--originPrice]:eq(0)').text(); if (detailText.indexOf('折后') > -1 || detailText.indexOf('券后') > -1) { // console.log('dp price info bad', price) info.ori_price = price; price = ''; } } info.shop_name = $('.shopkeeper .right a').text(); info.shop_addres = $('.locus .right').text().replace(/(?:\t|\n|\s)/ig, ''); info.price = price; // console.log('dp price info', price) info.userid = userid; info.img = info.pic; info.name = $('#J_DetailMeta .tb-detail-hd h1').text().replace(/\n/g, '').trim(); if (!info.name) { info.name = $('[class^=ItemHeader--mainTitle]').text(); } info.itemId = itemid; var url = location.href; // if (url.indexOf('detail.tmall.com') > -1 && url.indexOf('skuId') > -1) { // let skuId = require('common/commonUtil').getParameterByName('skuId', location.href) // let dp = require('common/commonUtil').getParameterByName('id', location.href) // url = `https://sku-taobao.com/item.htm?id=${dp}-${skuId}` // } info.url = url; var handler = { set: function set(target, prop, value) { if (prop === 'price') { // console.log('dp price set', value) if (!value && window.setBjgDebugger) { debugger; } } if (!target[prop]) { target[prop] = value; } return true; }, get: function get(target, prop) { // console.log(`dp get prop `, prop, target[prop]) return target[prop]; } }; info = tbInfoFix(info); var infoAlter = new Proxy(info, handler); return infoAlter; }, 'mi': function mi() { var info = getProductInfo(); info.name = $('.product-con h1').text(); return info; }, 'taobao': function taobao() { var info = getProductInfo(); var attrs = $(".attributes-list ul").html(); var sattrs = ''; var userid = ""; if (attrs == null) { attrs = $(".attributes-list").html(); } attrs = attrs.replace(/(?:<\!\-\-[^\-]*\-\->|<li[^>]*>|\ \ )/ig, ''); attrs = attrs.replace(/ /ig, ' '); attrs = attrs.replace(/<\/li[^>]*>/ig, '|'); attrs = attrs.replace(/\n/ig, ''); var brand = attrs.match(new RegExp(/\|(\u54c1\u724c(?:\:|\uff1a)[^\|]+)/ig)); if (brand) { for (var i = 0; i < brand.length; i++) { sattrs += brand[i] + '|'; } } var no = attrs.match(new RegExp(/((?:\u7cfb\u5217|\u8d27\u53f7|\u578b\u53f7|\u6b3e\u53f7)(?:\:|\uff1a)[^\|]+)/ig)); if (no) { for (var i = 0; i < no.length; i++) { sattrs += no[i] + '|'; } } var isbn = attrs.match(new RegExp(/(ISBN[^\:\uff1a]*(?:\:|\uff1a)[^\|]+)/ig)); if (isbn) { for (var i = 0; i < isbn.length; i++) { sattrs += isbn[i] + '|'; } } info.skeyword = sattrs; //提取分类信息 info.cat_id = $('#J_Pine').attr('data-catid'); info.root_id = $('#J_Pine').attr('data-rootid'); //提取图片信息 info.pic = $('#J_ImgBooth').attr('src'); info.img = info.pic; //获取用户的id var doms = $("meta[name='microscope-data']").attr('content'); var matches = doms && doms.match(/userid=(\d+)/); userid = matches && matches[1]; var price = $('#J_Price').text(); info.shop_name = $('.shopkeeper .right a').text(); info.shop_addres = $('.locus .right').text().replace(/(?:\t|\n|\s)/ig, ''); info.nnid = location.href.match(/[?&]id=([0-9]+)/) && location.href.match(/[?&]id=([0-9]+)/)[1]; info.price = price; info.newtitle = $('#J_Title .tb-main-title').text().trim(); info.itemId = info.nnid; info.userid = userid; if (info.img.indexOf('//') === 0) { info.img = 'https:' + info.img; } info = tbInfoFix(info); return info; }, 'taobao-spu': function taobaoSpu() { return { 'name': $('#detail .detail-hd h3').text(), 'isbn': '' }; }, 'xijie': function xijie() { return { 'name': $('.detail_sh_right h1').text(), 'isbn': '' }; }, 'caomeipai': function caomeipai() { return { 'name': $('#pro_name h2').text(), 'isbn': '' }; }, 'dahuozhan': function dahuozhan() { return { 'name': $('.property h2').text(), 'isbn': '' }; }, 'huolida': function huolida() { return { 'name': $('.h1_title h1').text(), 'isbn': '' }; }, '12dian': function dian() { return { 'name': $('.goodstitle').text(), 'isbn': '' }; }, '111': function _() { var dp = getProductInfo(); dp.name = $('.detailnav span').last().text(); dp.price = window._BFD.BFD_INFO.price; return dp; }, 'daoyao': function daoyao() { return { 'name': $('.product_1_4 .d_table_3 .font_01').text(), 'isbn': '' }; }, 'douban': function douban() { var tmp_isbn = $('#info').html(); var isbn = ''; var start = tmp_isbn.indexOf('ISBN:'); var length = tmp_isbn.length; start += 12; for (; start < length; start++) { if (tmp_isbn[start] >= '0' && tmp_isbn[start] <= '9') { isbn += tmp_isbn[start]; } } if (isbn === '') { var t = $('#content .indent').eq(1).text().match(/isbn: (\d+)/); if (t) { isbn = t[1]; isbn = isbnTran(isbn); } } var href = window.location.href.toString(); var matches = href.match(/gwd_isbn=(\d+)/); if (isbn == "" && matches) { isbn = matches[1]; } var info = getProductInfo(); info.isbn = isbn; return info; }, 'douban-dongxi': function doubanDongxi() { var info = getProductInfo(); info.title = $('.commodity-name a').text(); return info; }, 'it168': function it168() { return { 'name': $('.title100 h1').text(), 'isbn': '' }; }, 'pconline': function pconline() { return { 'name': $('.pro-tit .name').text(), 'isbn': '' }; }, 'pcpop': function pcpop() { return { 'name': $('.tit1 h1').text(), 'isbn': '' }; }, 'yoka': function yoka() { return { 'name': $('.pInfo_c2_lu h2').text(), 'isbn': '' }; }, '55bbs': function bbs() { return { 'name': $('.cpjsright_name h1').text(), 'isbn': '' }; }, 'onlylady': function onlylady() { return { 'name': $('.bnnaer_text').text(), 'isbn': '' }; }, '24dq': function dq() { return { 'name': $('.goodsname').text(), 'isbn': '' }; }, 'lingshi': function lingshi() { return { 'name': $('#detail_bb h3').text(), 'isbn': '' }; }, 'onlyts': function onlyts() { return { 'name': $('#bread .last').eq(1).text(), 'isbn': '' }; }, 'winxuan': function winxuan() { var isbn = ''; isbn = $('li:contains("I S B N:")').text().substr(8); var title = ''; title = $("meta[name='keywords']").attr("content"); return { 'name': title, 'isbn': isbn }; }, /*'new7' : function(){ return { 'name': $('.mainR h1 strong').text(), 'isbn': '' } },*/ 'beifabook': function beifabook() { var isbn = $('#LabelISBN').text(); isbn = isbn.replace(/-/g, ""); return { 'name': $('#LabelTitle').text(), 'isbn': isbn }; }, 'sina-tech': function sinaTech() { var name = $('.zcblk02 h2').html(); if (typeof name == 'undefined' || name == '' || name == null) { name = $('.PartATitle h2').html(); if (typeof name == 'undefined' || name == '' || name == null) { name = $('.Info h2').html(); if (typeof name == 'undefined' || name == '' || name == null) { name = $('.product-name h1').html(); if (typeof name == 'undefined' || name == '' || name == null) { name = $('title').html().substr(0, $('title').html().indexOf('_')); } } } } if (name.indexOf('<') > 0) { name = name.substr(0, name.indexOf('<')); } name = name.replace(" ", ""); return { 'name': name, 'isbn': '' }; }, 'sina-baby': function sinaBaby() { return { 'name': $('.dp_info_title').text(), 'isbn': '' }; }, 'sina-eladies': function sinaEladies() { return { 'name': $('.blk01 h1').text(), 'isbn': '' }; }, 'sohu-it': function sohuIt() { return { 'name': $('.til h2').text(), 'isbn': '' }; }, 'sohu-women': function sohuWomen() { return { 'name': $('.r h2 span').text(), 'isbn': '' }; }, '163-digi': function digi() { var name = $('.colA h3').text(); if (typeof name == 'undefined' || name == null || name == '') { name = $('.colA h1').text(); } return { 'name': name, 'isbn': '' }; }, '163-lady': function lady() { return { 'name': $('.detailbox-main h1').text(), 'isbn': '' }; }, 'qq-digi': function qqDigi() { var name = $('.top_hd h2').text(); if (typeof name == 'undefined' || name == '' || name == null) { name = $('.font0751 span').text(); } return { 'name': name, 'isbn': '' }; }, 'qq-hea': function qqHea() { var name = $('#pdShow h1').text(); if (typeof name == 'undefined' || name == '' || name == null) { name = $('#pdShow .longName').text(); } return { 'name': name, 'isbn': '' }; }, 'qq-lady': function qqLady() { var name = $('.pro_info .title').text(); return { 'name': name, 'isbn': '' }; }, 'vipshop': function vipshop() { var getCatgory = function getCatgory() { var result; if (window.O_viewed) { return { cat_id: window.O_viewed.category_id, cat_name: window.O_viewed.category_name }; } else { // for chrome var s = $('#J-bottom-adCode').next().text(); if (!s) s = $('#J_topbar_pop_template').next().text(); s = /var O_viewed = {([\s\S]*?)}/.exec(s); if (s) s = s[1]; var cat_id = /'category_id' : '(\d+)'/.exec(s); if (cat_id) cat_id = cat_id[1]; var cat_name = /'category_name' : '(.*?)'/.exec(s); if (cat_name) cat_name = cat_name[1]; return { cat_name: cat_name, cat_id: cat_id }; } }; var cat = getCatgory(); var name = ""; name = $(".bt_layout li:contains('商品名称') .bt_lt_par_p").text(); if (name == "") { name = $.trim($('.pro_info .goods_protit').text()); } if (name == "") { name = $('.bt_title').text().replace(/(?:\n|\t|\s)/ig, ''); } if (name == "") { name = $.trim($('.pib-title-detail').text()); } return { 'price': $('.pbox-price em').text(), 'name': name, 'isbn': '', 'cat_id': cat.cat_id, 'cat_name': cat.cat_name, 'img': $('.J-mer-bigImgZoom').attr('href'), 'brand_string': $('.pib-title-class a').text() }; }, 'j1': function j1() { return { 'name': $('.productarea-right-1 H1').text(), 'isbn': '' }; }, 'yougou': function yougou() { var dp = getProductInfo(); dp.name = $('.goodsCon .f16').text(); if (dp.name == '') dp.name = $('.goodsCon h1').text().replace(/\s/g, ''); if ($('#yitianPrice')) { dp.price = $('#yitianPrice').text(); } return dp; }, 'jxdyf': function jxdyf() { return { 'name': $('.product .pro_name').text(), 'isbn': '' }; }, 'yaofang': function yaofang() { var name = $('.pro_title').html(); if (name.indexOf('<') > 0) { name = name.substr(0, name.indexOf('<')); } return { 'name': name, 'isbn': '' }; }, 'tiantian': function tiantian() { return { 'name': $('.detail_mbx .c_ed').text(), 'isbn': '' }; }, 'tiantian-tuan': function tiantianTuan() { var dp = getProductInfo(); dp.name = $('td:contains("商品名称")+td span').text(); dp.price = $('.buy_pri').text(); return dp; }, 'yiguo': function yiguo() { return { 'name': $.trim($('.main .cpname h1').text()), 'isbn': '' }; }, 'jiuxian': function jiuxian() { var dp = getProductInfo(); dp.name = $('.dmainBox .detail-depict .depict-name h1').text(); if (dp.name == '') dp.name = $('.detailName h2').text().replace('(私人定制)', ''); dp.price = $('#_nowPriceStr').text(); return dp; }, 'meilele-tuan': function meileleTuan() { var dp = getProductInfo(); dp.name = $('#JS_tg_goods_name').text(); var p = $('#JS_bnr_state').text().match(/[0-9]+/); if (p) dp.price = p[0]; return dp; }, 'ehaier': function ehaier() { var dp = getProductInfo(); dp.name = $('.a-product-title').text(); dp.price = $('.pricetag .cur-price').text().match(/[0-9]+/)[0]; return dp; }, 'ule': function ule() { var dp = getProductInfo(); dp.name = $('.productInfo h1').text(); dp.price = $('.productPrice .price strong').text(); return dp; }, 'esprit': function esprit() { var dp = getProductInfo(); dp.name = $('#itemName').text().replace(/\s/g, ''); dp.price = $('#pdpPrice').text().replace(/[¥¥]+/, ''); return dp; }, 'lining': function lining() { var dp = getProductInfo(); dp.name = $('#product_name').text().replace(/\s/g, ''); dp.price = $('#offerPrice .v').text().replace(/[\s¥¥]/g, ''); return dp; }, 'oyeah': function oyeah() { var name = ""; name = $("meta[name='Keywords']").attr("content"); return { 'name': name, 'isbn': '' }; }, 'lvyoumall': function lvyoumall() { return { 'name': $("meta[name='keywords']").attr("content"), 'isbn': '' }; }, 'lefeng': function lefeng() { var name = ""; var url = ""; name = $.trim($(".path").text().split('/').pop()); url = "http://product.lefeng.com/product/" + $("#productId").val() + ".html"; var result = { 'url': url, 'name': name, 'isbn': '' }; if (!G.dp.price) { result['price'] = $('.dity-price-c').text(); } return result; }, 'wbiao': function wbiao() { var dp = getProductInfo(); dp.name = $('#info_on_sale h1').text(); dp.price = $('#price').text(); return dp; }, 'banggo': function banggo() { var dp = getProductInfo(); dp.name = $('.goods-name').text(); dp.price = $('#salePriceText').text(); return dp; }, 'yohobuy': function yohobuy() { var dp = getProductInfo(); dp.price = $('.promotion-price .price').text(); if (!dp.price) dp.price = $('.product-detail-page .main .price').text(); dp.name = $('.product-detail-page .main .name').text(); return dp; }, 'sundan': function sundan() { return { name: $('#buy_form div.box>div.ng-info>h2').text(), price: $('#buy_form div.box>div.ng-size span.price').text() }; }, 'adidas-us': function adidasUs() { return { name: $('.pdp-title h3').text(), price: $('.pdp-title .goods-price').text() }; }, 'jiae': function jiae() { return { name: $('#content div.item-intro>div.property>h1').text(), price: $('#content div.item-intro>div.property .itemDetail-itemPrice span.j-item-now-price').text() }; }, 'zazhipu': function zazhipu() { return { name: $('.ic_content div.grid_m div.xbase_row1>h1').text(), price: $('.ic_content div.grid_m div.xbase_row2 span.mod_price').text().split('¥')[2].split('.')[0] }; }, 'microsoftstore': function microsoftstore() { var name = $('#inner div.pdpContent>div.pdpInfo>.pdp_module_info>div.title>h1').text() || $('#inner div.content-block .right h2.title').text(); var price = $('#inner div.pdpContent>div.pdpInfo>.pdp_module_info>.priceAndRank>div.price>span.current').text() || $('#selectVariantProduct span.price').text(); return { name: name, price: price }; }, 'xgdq': function xgdq() { return { name: $('.product-main .product-titles>h2').text(), price: $('.product-main .product-concerns li:first .action-price').text() }; }, 'xtep': function xtep() { var name = $('.goodsDetailsBox .goodsPrice>dt').text(); var price = $('.goodsDetailsBox .goodsPrice dd>ul>li>div:first>span').text(); if (!name || !price) { name = $('.wrapper .groupTittle').text(); price = $('.wrapper .groupPriceBox>a>span').text(); } return { name: name, price: price }; }, 'midea': function midea() { return { name: $('.product_wrap>.product_right>h1').text(), price: $('.product_wrap>.product_right .price').text() }; } }; module.exports.productPattern = productPattern; var reTry = undefined; var retryCount = 0; var delayConditions = { 'tmall': function tmall() { if ($('[class^=ItemHeader--mainTitle]').length) { return $('[class^=ItemHeader--mainTitle]').text(); } return true; }, 'taobao': function taobao() { if ($('#J_ImgBooth').attr('src')) { return true; } retryCount++; return retryCount > 10; } }; //获取商品信息的统一入口 var get = function get(callback) { var dp, href, delayLoadList, siteName, siteId; return regeneratorRuntime.async(function get$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!(G.pageInfo.type === 1)) { context$1$0.next = 3; break; } callback(); return context$1$0.abrupt('return'); case 3: if (!delayConditions[G.site]) { context$1$0.next = 6; break; } context$1$0.next = 6; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(delayConditions[G.site])); case 6: dp = undefined; siteName = G.pageInfo.siteName; href = window.location.href; try { if (siteName && siteName.indexOf('amazon') > -1) siteName = 'amazon'; dp = productPattern[siteName](); dp.oldPrice = dp.price; if (dp.price && dp.price.match(/(?:\?|\?)/)) dp.activePrice = true; if (typeof parseprice === 'function') { dp.price = parseprice(dp.price); dp.oldPrice = parseprice.getPriceBeforeExchangeRate(dp.oldPrice); } dp.site = siteName; if (dp.url == null) { if (dp.href != null) { dp.url = dp.href; } else { dp.url = href; } } } catch (e) { /*eslint-disable */ G.debug = true; if (G.debug) { console.error(e); } /*eslint-enable */ dp = getProductInfo(); dp.site = siteName; dp.url = href; } if (!(typeof dp.useless != 'undefined' && dp.useless)) { context$1$0.next = 12; break; } return context$1$0.abrupt('return', null); case 12: dp.icon = dp.url.replace(/^http[s]?\:\/\//g, ""); dp.icon = dp.icon.replace(/\/.*?$/g, ""); dp.icon += '/favicon.ico'; if (typeof dp.id == 'undefined' || dp.id == null) { dp.id = ""; } if (typeof dp.keyword == 'undefined' || dp.keyword == null) { dp.keyword = ''; } if (typeof dp.skeyword == 'undefined' || dp.skeyword == null) { dp.skeyword = ''; } if (typeof dp.isbn == 'undefined' || dp.isbn == null) { dp.isbn = ''; } delayLoadList = ['youpin-mi', 'oneplus', 'lenovo', 'vipshop']; if (!(delayLoadList.indexOf(G.site) > -1 && !dp.price && !dp.name && !reTry)) { context$1$0.next = 24; break; } reTry = true; setTimeout(function () { get(callback); }, 2000); return context$1$0.abrupt('return'); case 24: G.dp = dp; if (!dp.price) { siteName = G.site; siteId = detect.getSiteId(siteName); if (!siteId) siteId = 9999; priceParser.init(siteId, function (price) { if (price && price > 0) { dp.oldPrice = price; dp.price = price; } if (callback) callback(); }); } else { if (typeof dp.name == 'undefined' || dp.name == '') { dp.name = $('title').text(); } if (callback) callback(); } __webpack_require__("9c38beef5ff283e15bd2").setMet('productInfoReady'); return context$1$0.abrupt('return', dp); case 28: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports.get = get; module.exports.tbInfoFix = tbInfoFix; module.exports.appendTbInfoForUrl = function (url) { if (!G.aliSite) return url; if (!G.dp) return url; G.dp = tbInfoFix(G.dp); if (G.dp.pic && G.dp.pic[0] === '/') { G.dp.pic = 'https:' + G.dp.pic; } var util = __webpack_require__("3e983ecbff4e1a29654c"); var urlDpId = util.getParameterByName('dp_id', url); if (urlDpId && urlDpId !== G.dp.dpId) { return url; } return '' + url + (url.includes('?') ? '' : '?') + '&title=' + encodeURIComponent(G.dp.name) + '&img=' + encodeURIComponent(G.dp.pic) + '&price=' + (G.dp.price ? G.dp.price : G.dp.ori_price) + '&shopName=' + encodeURIComponent(G.dp.shopName.trim()) + '&sellAmount=' + encodeURIComponent(G.dp.shopAmount); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "48c7bf720f8190dd7cc2": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) {var __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { // 某些网站会覆盖掉js的一些方法 if (G.site === 'keede') { __webpack_require__("74757817411a9c6f8278")(); } if (G.site === 'ule' || G.site === 'yesmywine') { Array.prototype.filter = function (cb) { var temp = []; for (var i = 0; i < this.length; i++) { if (cb(this[i])) { temp.push(this[i]); } } return temp; }; } if (G.site === 'suning') { setTimeout(function () { $('#gwd_mini_compare').on('click', 'a', function (e) { var url = $(this).attr('href'); if (url && url.indexOf('http') > -1) { window.open($(this).attr('href')); e.preventDefault(); } }); }, 500); } if (G.site === 'wstx') { Array.prototype.indexOf = function (searchElement, fromIndex) { var k; if (this == null) { throw new TypeError('"this" is null or not defined'); } var O = Object(this); var len = O.length >>> 0; if (len === 0) { return -1; } var n = +fromIndex || 0; if (Math.abs(n) === Infinity) { n = 0; } if (n >= len) { return -1; } k = Math.max(n >= 0 ? n : len - Math.abs(n), 0); while (k < len) { if (k in O && O[k] === searchElement) { return k; } k++; } return -1; }; } }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "48ec1ca75857b9f279ea": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_style_index_0_id_29b33b2e_scoped_true_lang_less___ = __webpack_require__("babca2a4632382485f5f"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_style_index_0_id_29b33b2e_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_style_index_0_id_29b33b2e_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_style_index_0_id_29b33b2e_scoped_true_lang_less____default.a); /***/ }), /***/ "49215a0e216baca2e154": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjg-hintText[data-v-56eea7fc] {\n color: #333333;\n line-height: 19px;\n font-size: 14px;\n text-align: center;\n margin-top: 16px;\n}\n", ""]); // exports /***/ }), /***/ "4956f070ad37fe34b9f3": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ShopCouponMini_vue_vue_type_template_id_c6f6054e_scoped_true___ = __webpack_require__("80766e20adc7927b28f7"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ShopCouponMini_vue_vue_type_script_lang_js___ = __webpack_require__("f24e264029de1159f489"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__ShopCouponMini_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__ShopCouponMini_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ShopCouponMini_vue_vue_type_style_index_0_id_c6f6054e_scoped_true_lang_less___ = __webpack_require__("f64a8d0d0a911d2ea885"); /* 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__ShopCouponMini_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__ShopCouponMini_vue_vue_type_template_id_c6f6054e_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__ShopCouponMini_vue_vue_type_template_id_c6f6054e_scoped_true___["b" /* staticRenderFns */], false, null, "c6f6054e", 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('c6f6054e')) { api.createRecord('c6f6054e', component.options) } else { api.reload('c6f6054e', component.options) } module.hot.accept("./ShopCouponMini.vue?vue&type=template&id=c6f6054e&scoped=true&", function () { api.rerender('c6f6054e', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/bjgou/components/ShopCouponMini.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "4b51eee8afb51b62fd7d": /***/ (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_CollectionBar_vue_vue_type_script_lang_js___ = __webpack_require__("d4ed2f9825838d5c7c30"); /* 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_CollectionBar_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_CollectionBar_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_CollectionBar_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_CollectionBar_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_CollectionBar_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "4b56f9a4d97d17e3d5db": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_script_lang_js___ = __webpack_require__("be59bd26f0b006167527"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "4b9a1dffc80dda59b7be": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_template_id_4148f062_scoped_true___ = __webpack_require__("5fe9ccd4be2bd86690c4"); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_template_id_4148f062_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_template_id_4148f062_scoped_true___["b"]; }); /***/ }), /***/ "4bc62a7d05b8684b5422": /***/ (function(module, exports, __webpack_require__) { var $imports = __webpack_require__("9f47c636f849c23a0c20"); module.exports = function ($data) { 'use strict'; $data = $data || {}; var $$out = '', $escape = $imports.$escape, link = $data.link, text = $data.text; $$out += '<a href="'; $$out += $escape(link); $$out += '" title="点击领取" target="_blank" class="gwd-middle-act-bar">\n <img '; $$out += 'src="https://cdn.bijiago.com/images/extensions/activity/giftmoney@2x.png"'; $$out += ' style="width: 14px; height: 17px; margin-left: 13px;">\n <span style="font-size: 13px; color: #ff2d53; margin-left: 11px; font-weight: bold">'; $$out += $escape(text); $$out += '</span>\n <div style="flex: 1"></div>\n <img '; $$out += 'src="https://cdn.bijiago.com/images/extensions/activity/arrow.svg"'; $$out += ' style="width: 26px; height: 10px;">\n <span class="gwd-take" style="line-height: initial">立即领取</span>\n</a>\n<style>\n .gwd-middle-act-bar {\n width: 462px;\n height: 34px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n border: 1px solid #e6e9eb;\n background: white;\n font-size: 0;\n }\n\n .gwd-take {\n display: inline-block;\n margin-left: 10px;\n margin-right: 15px;\n text-align: center;\n width:70px;\n height:18px;\n background:linear-gradient(90deg,rgba(239,37,37,1) 0%,rgba(255,47,32,1) 100%);\n border-radius:9px;\n font-size: 12px;\n color: white;\n }\n</style>'; return $$out; }; /***/ }), /***/ "4dbc4849707ea6484a05": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['color'] }; module.exports = exports['default']; /***/ }), /***/ "4e193c8dd6289ce0fdf9": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var request = __webpack_require__("91f250ebeb8d5987491c"); var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var buildTaobaoUrl = __webpack_require__("cc45d932d8dbdb86f2f3"); var globalData = undefined, callbacks = undefined; var hasrun = false; var timeOUT = 2500; var getuniqPid = function getuniqPid(id) { if (id == '') return; var url = G.server + '/extension?ac=getuniqpid&nid=' + id; request.get(url).then(function (data) { if (data && data.uniqid) { sendPid(id, data.uniqid); } else { requestTaobaoImgSearch(); } }); }; var sendPid = function sendPid(id, pid) { var info = { 'nid': id, 'uniqid': pid }; communicate.trigger({ 'type': 'getTaobaouniq', 'info': JSON.stringify(info) }); communicate.on(function (data) { if (typeof data === 'string') { data = JSON.parse(data); } if (data.type == 'getTaobaouniq') { var text = $('#gwd_uniq_info').text(); if (text != '') editData(text); } }); }; var sortData = function sortData(data) { if (!data.sort) return; data = data.sort(function (value1, value2) { if (Number(value1.price) > Number(value2.price)) return 1;else if (Number(value1.price) == Number(value2.price)) return 0;else return -1; }); return data; }; var editData = function editData(txt) { try { var data = JSON.parse(txt); data = data.mods.recitem.data.items; var taobaoarr = [], tmallarr = []; if (!data) return; for (var i = 0, len = data.length; i < len; i++) { var item = {}; var feeDesc = data[i].view_fee == '0.00' ? '包邮' : ''; item.nick = data[i].nick; item.num_iid = data[i].nid; item.title = data[i].title; item.price = data[i].view_price; item.item_location = data[i].item_loc; item.store_name = data[i].nick + feeDesc; item.pic_url = 'http:' + data[i].pic_url; item.same_style = true; item.volume = data[i].view_sales.replace('人付款', ''); var obj = { 'source': 'same_style', 'img_url': 'http:' + data[i].pic_url, 'title': data[i].title, 'price': data[i].view_price, 'shop_name': data[i].nick + feeDesc, 'sales': data[i].view_sales.replace('人付款', ''), 'id': data[i].nid, 'url': 'https:' + data[i].detail_url, 'discuss': data[i].comment_count, 'istaobao': data[i].detail_url.indexOf('detail.tmall.com') > -1 ? '0' : '1', 'dp_id': data[i].nid + '-' + (data[i].detail_url.indexOf('detail.tmall.com') > -1 ? '83' : '123'), 'site_id': data[i].detail_url.indexOf('detail.tmall.com') > -1 ? '83' : '123' }; item.url = buildTaobaoUrl(obj); if (data[i].detail_url.indexOf('detail.tmall.com') > -1) { tmallarr.push(item); } else { taobaoarr.push(item); } } taobaoarr = sortData(taobaoarr); tmallarr = sortData(tmallarr); globalData = { 'taobao': taobaoarr, 'tmall': tmallarr, 'uniqPid': true }; if (callbacks && !hasrun) { callbacks(globalData); hasrun = true; } } catch (e) {} }; var requestTaobaoImgSearch = function requestTaobaoImgSearch() { /*taobao root_id 筛选需要做图片检索的分类*/ // let rootIdArr = ["50510002", "50012029", "50013864", "50011397", "50010404", "1625", "50006842", "50006843", "16", "50011740", "50011699", "50008165", "50008163", "30", "50020857", "50020808", "50013886"]; // let root_id = G.dp.root_id; __webpack_require__("6ad34a6b9808de77f450").uniqPidGetImg(function (data) { if (callbacks) { callbacks(data); hasrun = true; } else { globalData = data; } }); timeOUT = 6000; }; var getNid = function getNid() { if (location.host.indexOf('taobao') > -1 || location.host.indexOf('tmall') > -1) { var id = location.href.match(/[?&]id=([0-9]+)/); if (id && id.length) { id = id[1]; getuniqPid(id); } } }; module.exports.init = function () { /*淘宝价格走势*/ if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) { communicate.trigger({ type: 'get_etao_info' }); } if (G.site == 'taobao' || G.site == 'tmall') getNid(); }; module.exports.getTaobaouniqData = function (callback) { if (globalData) { callback(globalData); hasrun = true; return; } else callbacks = callback; setTimeout(function () { if (callbacks && hasrun === false) { callbacks(null); hasrun = true; } }, timeOUT); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "4e21de5af07fa44fda82": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__PriceProtectAuthLoginRequest_vue_vue_type_template_id_5d50758c___ = __webpack_require__("8243485b512c7d53d3be"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__PriceProtectAuthLoginRequest_vue_vue_type_script_lang_js___ = __webpack_require__("2d0b5fe94661263c2439"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__PriceProtectAuthLoginRequest_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__PriceProtectAuthLoginRequest_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__PriceProtectAuthLoginRequest_vue_vue_type_style_index_0_lang_less___ = __webpack_require__("6a505220d0f56d349b05"); /* 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__PriceProtectAuthLoginRequest_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__PriceProtectAuthLoginRequest_vue_vue_type_template_id_5d50758c___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__PriceProtectAuthLoginRequest_vue_vue_type_template_id_5d50758c___["b" /* staticRenderFns */], false, null, null, null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('5d50758c')) { api.createRecord('5d50758c', component.options) } else { api.reload('5d50758c', component.options) } module.hot.accept("./PriceProtectAuthLoginRequest.vue?vue&type=template&id=5d50758c&", function () { api.rerender('5d50758c', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/bjgou/components/PriceProtectAuthLoginRequest.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "4e3c7d7dbd4a9cb66f77": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, $) { var request = __webpack_require__("91f250ebeb8d5987491c"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); module.exports = { init: function init(hasCoupon) { var configUrl, config, c, onlyCenter, t, s, e, html, html2, version; return regeneratorRuntime.async(function init$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!window.bjgActivity) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: if (!(G.ss_name === 'priceDog')) { context$1$0.next = 5; break; } __webpack_require__("4e8e39dd5714815e5380").init(hasCoupon); return context$1$0.abrupt('return'); case 5: window.bjgActivity = true; configUrl = 'https://cdn.bijiago.com/js/configs/activity-bijiago-online.json'; if (G.from_device === 'biyibi') { configUrl = 'https://cdn.bijiago.com/js/configs/activity-biyibi.json'; } context$1$0.next = 10; return regeneratorRuntime.awrap(request.rawGet(configUrl)); case 10: config = context$1$0.sent; if (config.aliActivity && G.aliSite) { c = config.aliActivity; onlyCenter = false; if (c.disableWhenHasCoupon && hasCoupon) { onlyCenter = true; } t = new Date(); s = new Date(c.start); e = new Date(c.end); if (t < e && t > s) { if (!onlyCenter) { if (window.innerWidth - $('#bjgext_mainbar').outerWidth() > 160) { html = template.compile(__webpack_require__("80e77af2a2d13f11ec32"))({ img: c.bottom.img, qr: c.bottom.qr, extClass: '', link: c.link }); $('#bjgext_mainbar .common-banner').after(html); __webpack_require__("83271c7588396d2d5e59").hoverLog('.gwd-bottom-tmall', '底部活动二维码'); } html2 = template.compile(__webpack_require__("713022a3c59a01af1a14"))({ qr: c.top.qr, text: c.middle.text, link: c.link }); $('#bjgext_minibar').after(html2); } if (true) { (function () { // 中间 var html = template.compile(__webpack_require__("3138657ff2cdbb7ad342"))({ img: c.top.img, qr: c.top.qr, text: c.center.text, extClass: '', link: c.link, qrText: c.qrText }); $('.bjgext-mini-trend').after(html); $('.gwd-middle-tmall').css('border', '1px solid #f1f1f1'); var centerLogged = false; __webpack_require__("83271c7588396d2d5e59").log('中间活动二维码', '曝光'); setTimeout(function () { $('.gwd-middle-tmall').hover(function () { if (!centerLogged) { centerLogged = true; __webpack_require__("83271c7588396d2d5e59").log('中间活动二维码', '悬浮'); } }); $('.gwd-take').hover(function () { if (!centerLogged) { centerLogged = true; __webpack_require__("83271c7588396d2d5e59").log('中间活动二维码', '悬浮'); } }); }, 0); })(); } } else if (G.from_device === 'biyibi' && G.mv3) { if (!hasCoupon) { $('#bjgext_mainbar .common-banner').after('<a href="https://www.biyibi.com" id="bijiago-banner-ad" target="_blank" class="rinfo-btn close-models" title="点击领取" style="width: initial;"></a>'); } } } if (config.jdActivity && G.site === '360buy') { c = config.jdActivity; t = new Date(); if (t < new Date(c.end) && t > new Date(c.start)) { $('#bijiago-banner-ad').remove(); if (!hasCoupon) { if (true) { html = template.compile(__webpack_require__("4bc62a7d05b8684b5422"))({ link: c.center.link, text: c.center.textlong }); $('#bjgext_minibar').append(html); $('.bjgext-toptabs').css('width', '100%'); // $('.minibar-tab').css('width', '128px') // $('.gwd-middle-tmall').css('width', '159px;') } if (window.innerWidth - $('#bjgext_mainbar').outerWidth() > 160) { html = '<a href="' + c.bottom.link + '" target="_blank" class="rinfo-btn" title="点击领取" style="width: initial; margin-left: 8px; margin-right: 8px"><img style="height: 48px" src="' + c.bottom.img + '"/></a>'; $('#bjgext_mainbar .common-banner').after(html); } } } else { if (window.bjgAutoPriceProtect && !hasCoupon) { html = __webpack_require__("1a37b1c2fed6ac3878dc"); $('.bjgext-toptabs').after(html); } } } if (!(G.from_device === 'biyibi' && G.mv3 && !navigator.userAgent.toLowerCase().includes('edg'))) { context$1$0.next = 18; break; } context$1$0.next = 16; return regeneratorRuntime.awrap(request.rawGet('https://cdn.bijiago.com/js/configs/biyibi-version.json')); case 16: version = context$1$0.sent; if (version.build > G.version) { $('#bijiago-banner-ad').html(version.HTML); $('#bijiago-banner-ad').attr('href', version.link); $('#bijiago-banner-ad').attr('title', ''); } case 18: case 'end': return context$1$0.stop(); } }, null, this); } }; // 底部 // 购物党中间 // 购物党底部 // check version.json for updates /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "4e8e39dd5714815e5380": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, $) { var request = __webpack_require__("91f250ebeb8d5987491c"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); module.exports = { init: function init() { var hasCoupon = arguments.length <= 0 || arguments[0] === undefined ? false : arguments[0]; var site, res, config, c, html; return regeneratorRuntime.async(function init$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: site = G.site; if (site === '360buy') { site = 'jd'; } if (!hasCoupon) { context$1$0.next = 4; break; } return context$1$0.abrupt('return'); case 4: context$1$0.next = 6; return regeneratorRuntime.awrap(request.get(G.server + '/extension?ac=promoActivity&site=' + site)); case 6: res = context$1$0.sent; context$1$0.next = 9; return regeneratorRuntime.awrap(request.rawGet('https://cdn.bijiago.com/js/configs/activity-bijiago-online.json')); case 9: config = context$1$0.sent; c = config.aliActivity; console.log(res); if (res.type === 'link') { if (window.innerWidth - $('#bjgext_mainbar').outerWidth() > 160) { html = '<a href="' + res.link + '" target="_blank" class="rinfo-btn" style="width: initial; margin-left: 8px; margin-right: 8px"><img style="height: 48px" src="' + res.img + '"/></a>'; $('#bjgext_mainbar .common-banner').after(html); } } else if (res.type === 'qrcode') { (function () { var loadQr = function loadQr() { if (qrLoaded) return; request.get(res.qrcode).then(function (data) { if (data.code === 1 && data.data && data.data.qrImgStr) { $('.gwd-act-qr-img').attr('src', data.data.qrImgStr); qrLoaded = true; } }); }; if (window.innerWidth - $('#bjgext_mainbar').outerWidth() > 160) { // 底部 var html = template.compile(__webpack_require__("a67ae8abc77de2e0df06"))({ img: res.img, qr: '', extClass: '' }); $('#bjgext_mainbar .common-banner').after(html); } var html2 = template.compile(__webpack_require__("6aaa3fa41eb59246bed3"))({ qr: '', text: config.aliActivity.middle.text }); $('#bjgext_minibar').append(html2); // let html = template.compile(require('art-template-loader!activities/gwd-ali-center.html'))({ // img: res.img, // qr: '', // text: c.center.text, // extClass: '', // qrText: c.qrText // }) // $('.bjgext-mini-trend').after(html) // $('.gwd-middle-tmall').css('border', '1px solid #f1f1f1') var qrLoaded = false; $('.gwd-middle-tmall').hover(loadQr); $('.gwd-middle-act-bar').hover(loadQr); $('.gwd-bottom-tmall').hover(loadQr); })(); } case 13: case 'end': return context$1$0.stop(); } }, null, this); } }; // 购物党底部 /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "504587c23f469ea6dea5": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SubsidyBottom_vue_vue_type_template_id_1cab7080_scoped_true___ = __webpack_require__("261f74b1fc0f0e859581"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__SubsidyBottom_vue_vue_type_script_lang_js___ = __webpack_require__("42e5305d1548ddab2040"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__SubsidyBottom_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__SubsidyBottom_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__SubsidyBottom_vue_vue_type_style_index_0_id_1cab7080_scoped_true_lang_css___ = __webpack_require__("0b9454dd68751085211f"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__SubsidyBottom_vue_vue_type_style_index_1_id_1cab7080_scoped_true_lang_less___ = __webpack_require__("7f384690db4d1cd1049f"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_4__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__SubsidyBottom_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__SubsidyBottom_vue_vue_type_template_id_1cab7080_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__SubsidyBottom_vue_vue_type_template_id_1cab7080_scoped_true___["b" /* staticRenderFns */], false, null, "1cab7080", 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('1cab7080')) { api.createRecord('1cab7080', component.options) } else { api.reload('1cab7080', component.options) } module.hot.accept("./SubsidyBottom.vue?vue&type=template&id=1cab7080&scoped=true&", function () { api.rerender('1cab7080', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/bjgou/components/SubsidyBottom.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "516ce1fc7a3117b39d29": /***/ (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( "a", { staticClass: "gwd-member-coupon-top gwd-member-coupon", attrs: { title: "点击领取", href: _vm.link, target: "_blank" } }, [ _c("span", { staticStyle: { color: "white", "margin-left": "5px" } }, [ _vm._v("当前商品可领会员券") ]), _vm._v(" "), _c( "span", { staticStyle: { color: "white", "margin-left": "9px", "margin-right": "9px" } }, [_vm._v("领取")] ) ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "518abe8e49e83ac9c7dd": /***/ (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_TransPort_vue_vue_type_style_index_0_id_666fed93_scoped_true_lang_less___ = __webpack_require__("b7b3e4b08d38d55b3c1e"); /* 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_TransPort_vue_vue_type_style_index_0_id_666fed93_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_TransPort_vue_vue_type_style_index_0_id_666fed93_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_TransPort_vue_vue_type_style_index_0_id_666fed93_scoped_true_lang_less____default.a); /***/ }), /***/ "51f976974a6ecf19db5f": /***/ (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: "bjg-qr-error" }, [ _c("img", { attrs: { src: "https://cdn.gwdang.com/images/extensions/warn@2x.png", alt: "" } }), _vm._v(" "), _c( "span", { staticClass: "grayText", staticStyle: { "margin-top": "10px" } }, [ _vm._v("当前网络异常"), _c("br"), _vm._v("点此"), _c("span", { staticClass: "red", on: { click: _vm.click } }, [ _vm._v("刷新") ]) ] ) ]) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "528d0f727e634940241b": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjg-price-protect-jd-login[data-v-e995141a] {\n height: 250px;\n}\n.bjg-price-protect-jd-login .bjg-hint[data-v-e995141a] {\n width: 120px;\n height: 44px;\n font-size: 12px;\n color: #64615D;\n line-height: 22px;\n text-align: center;\n}\n.bjg-price-protect-jd-login .gwd-button[data-v-e995141a] {\n margin-top: 30px;\n width: 340px;\n height: 30px;\n border-radius: 15px;\n background: linear-gradient(270deg, #FFCD47 0%, #FF9F22 100%);\n font-weight: bold;\n font-size: 14px;\n color: white;\n}\n", ""]); // exports /***/ }), /***/ "54ccbbccbca2a434343b": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, regeneratorRuntime) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); var user = __webpack_require__("d098bd5eb9f0b2883cf6"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); exports['default'] = { data: function data() { return { productChecked: G.productChecked, login: G.userLogin }; }, methods: { checkCollected: function checkCollected() { var dpId, token; return regeneratorRuntime.async(function checkCollected$(context$1$0) { var _this = this; while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(globalCondition.met('GwdDpIdGot')); case 2: dpId = context$1$0.sent; context$1$0.next = 5; return regeneratorRuntime.awrap(user.hasUserToken()); case 5: token = context$1$0.sent; if (token) { context$1$0.next = 11; break; } G.userLogin = false; this.login = false; G.trigger('bjgouFavor'); return context$1$0.abrupt('return'); case 11: G.userLogin = true; this.login = true; user.checked(dpId).then(function (res) { if (res.code === -3) { G.userLogin = false; _this.login = false; G.trigger('bjgouFavor'); return; } if (res.code === 0) { _this.productChecked = false; G.productChecked = false; G.trigger('bjgouFavor'); return; } _this.productChecked = res.data.id; G.productChecked = res.data.id; G.trigger('bjgouFavor'); // G.productChecked = res.data }); case 14: case 'end': return context$1$0.stop(); } }, null, this); }, favorClick: function favorClick() { var dpId, res; return regeneratorRuntime.async(function favorClick$(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: dpId = context$1$0.sent; if (this.productChecked) { context$1$0.next = 11; break; } context$1$0.next = 6; return regeneratorRuntime.awrap(user.collect(dpId)); case 6: res = context$1$0.sent; console.log(res); if (res.code === 1) { this.productChecked = res.data.id; G.productChecked = res.data.id; } context$1$0.next = 16; break; case 11: context$1$0.next = 13; return regeneratorRuntime.awrap(user.del(this.productChecked)); case 13: res = context$1$0.sent; console.log(res); if (res.code === 1) { this.productChecked = false; G.productChecked = false; } case 16: G.trigger('bjgouFavor'); case 17: case 'end': return context$1$0.stop(); } }, null, this); }, goLogin: function goLogin() { //location.href = `https://i.bijiago.com/UserUnion/Authorize?utype=2&app_platform=ext&_referer=${encodeURIComponent(location.href)}` user.goLogin(); } }, created: function created() { var _this2 = this; console.log('created execute'); var k = setInterval(function callee$1$0() { var token; return regeneratorRuntime.async(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: k++; if (!(k > 10)) { context$2$0.next = 3; break; } return context$2$0.abrupt('return'); case 3: context$2$0.next = 5; return regeneratorRuntime.awrap(user.hasUserToken()); case 5: token = context$2$0.sent; if (token) { context$2$0.next = 11; break; } G.userLogin = false; this.login = false; G.trigger('bjgouFavor'); return context$2$0.abrupt('return'); case 11: G.userLogin = true; this.login = true; case 13: case 'end': return context$2$0.stop(); } }, null, _this2); }, 1000); this.checkCollected(); G.on('bjgouFavor', function () { _this2.productChecked = G.productChecked; _this2.login = G.userLogin; }); } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "54d4cf596e36f1bc186c": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("cbdd14bb7d8022e75be0"); if(typeof content === 'string') content = [[module.i, content, '']]; // add the styles to the DOM var update = __webpack_require__("ed1f825ff922d4e45a2e")(content, {}); if(content.locals) module.exports = content.locals; // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./PriceProtectPageButton.vue?vue&type=style&index=0&lang=css&", function() { var newContent = require("!!../../../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!./PriceProtectPageButton.vue?vue&type=style&index=0&lang=css&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "55327c6868cccffbbddd": /***/ (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_MemberCouponTop_vue_vue_type_template_id_28e28ad7_scoped_true___ = __webpack_require__("516ce1fc7a3117b39d29"); /* 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_MemberCouponTop_vue_vue_type_template_id_28e28ad7_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_MemberCouponTop_vue_vue_type_template_id_28e28ad7_scoped_true___["b"]; }); /***/ }), /***/ "55ccdce0b5a15dc1776b": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("86ad55987cc7f0c46cb3"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("e14e2374", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./BjgBottomWindow.vue?vue&type=style&index=0&id=683c35f8&scoped=true&lang=less&", function() { var newContent = require("!!../../../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!./BjgBottomWindow.vue?vue&type=style&index=0&id=683c35f8&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "55cdd25a1106acda1922": /***/ (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: "bjg-bar-button gwd-row gwd-align gwd-jcc", on: { mouseover: _vm.startLoad } }, [ _c("img", { staticStyle: { width: "22px" }, attrs: { src: __webpack_require__("af05a3f925d4ae900882"), alt: "" } }), _vm._v(" "), _c( "span", { staticStyle: { "margin-left": "7px", "font-size": "14px", color: "#64615d" } }, [_vm._v("收藏夹")] ), _vm._v(" "), _vm.tip > 0 ? _c("span", { staticClass: "bjg-collection-tip" }, [ _vm._v(_vm._s(_vm.tip)) ]) : _vm._e(), _vm._v(" "), _vm.user ? _c( "BjgBottomWindow", { style: _vm.positionStyle + "px", attrs: { name: "降价" } }, [ _c( "div", { staticClass: "gwd-column", staticStyle: { height: "470px" } }, [ _c( "div", { staticStyle: { "margin-top": "19px", "padding-left": "14px" } }, [ _c( "OrangeButton", { attrs: { selected: _vm.selected === "all" }, on: { click: function($event) { return _vm.select("all") } } }, [_vm._v("全部")] ), _vm._v(" "), _c( "OrangeButton", { staticStyle: { "margin-left": "24px" }, attrs: { selected: _vm.selected === "reduction" }, on: { click: function($event) { return _vm.select("reduction") } } }, [_vm._v("降价")] ) ], 1 ), _vm._v(" "), _c("CollectionList", { directives: [ { name: "show", rawName: "v-show", value: _vm.selected === "all", expression: "selected === 'all'" } ], ref: "default", attrs: { tab: "default" } }), _vm._v(" "), _c("CollectionList", { directives: [ { name: "show", rawName: "v-show", value: _vm.selected === "reduction", expression: "selected === 'reduction'" } ], ref: "reduction", attrs: { tab: "down" } }) ], 1 ) ] ) : _vm._e(), _vm._v(" "), !_vm.user ? _c( "div", { staticClass: "gwd-column bjg-login", staticStyle: { width: "407px", height: "197px", position: "absolute", bottom: "59px" }, style: _vm.positionStyle + "px" }, [ _c("img", { attrs: { src: __webpack_require__("ef32c375bce0abaae6a0"), alt: "" }, on: { click: _vm.doLogin } }) ] ) : _vm._e() ], 1 ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "5718695c1fa25d021f07": /***/ (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_QRLinkLeft_vue_vue_type_script_lang_js___ = __webpack_require__("e1f1ecf2911e180e2d4a"); /* 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_QRLinkLeft_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_QRLinkLeft_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_QRLinkLeft_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_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_QRLinkLeft_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_QRLinkLeft_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "5794cd167f3f64fcce67": /***/ (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_BottomFavor_vue_vue_type_style_index_0_id_013bbf9d_lang_less_scoped_true___ = __webpack_require__("7aa06633a1f51565602c"); /* 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_BottomFavor_vue_vue_type_style_index_0_id_013bbf9d_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_BottomFavor_vue_vue_type_style_index_0_id_013bbf9d_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_BottomFavor_vue_vue_type_style_index_0_id_013bbf9d_lang_less_scoped_true____default.a); /***/ }), /***/ "57981fc895e0110a4346": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function (txt) { var m = ''; for (var i = 0; i < txt.length; i++) m = m + "_" + txt.charCodeAt(i).toString(8); return m; }; // let decode = function(txt) { // var m = ''; // var s = txt.split("_"); // for (var i = 1; i < s.length; i++) // m += String.fromCharCode(parseInt(s[i], 8)); // return m; // } /***/ }), /***/ "580fdef2bbaa9f2dc7e9": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_0_lang_css___ = __webpack_require__("d98e58cfc5180294bd6a"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_0_lang_css____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_0_lang_css___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_0_lang_css____default.a); /***/ }), /***/ "584acb3732f3db3467f3": /***/ (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_OrangeButton_vue_vue_type_style_index_0_id_64323026_lang_less_scoped_true___ = __webpack_require__("d760a97dd0942814e94d"); /* 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_OrangeButton_vue_vue_type_style_index_0_id_64323026_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_OrangeButton_vue_vue_type_style_index_0_id_64323026_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_OrangeButton_vue_vue_type_style_index_0_id_64323026_lang_less_scoped_true____default.a); /***/ }), /***/ "5850f79bb671f443b01f": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("b9b6f6804467a73ba8b7"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("76fcbe86", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./CollectionItem.vue?vue&type=style&index=0&id=6af99812&scoped=true&lang=less&", function() { var newContent = require("!!../../../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!./CollectionItem.vue?vue&type=style&index=0&id=6af99812&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "5b06e86d4e174cdfac92": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, "__esModule", { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var _MemberCouponMixin = __webpack_require__("1fffec0778a8d8b2e8e2"); var _MemberCouponMixin2 = _interopRequireDefault(_MemberCouponMixin); var _MemberCouponQr = __webpack_require__("0c4497b5d7aa90d42b50"); var _MemberCouponQr2 = _interopRequireDefault(_MemberCouponQr); exports["default"] = { mixins: [_MemberCouponMixin2["default"]], components: { MemberCouponQr: _MemberCouponQr2["default"] }, data: function data() { return { G: G }; } }; module.exports = exports["default"]; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "5bf21ec3a7ebfb912cb2": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var request = __webpack_require__("91f250ebeb8d5987491c"); var parseprice = __webpack_require__("cb0906562effcf1b0e6c"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var go_union = __webpack_require__("8dc7f5a7e7a7f98e12b6"); var amazonName = { '1': '中国', '228': '美国', '229': '日本', '246': '德国', '266': '英国', '365': '法国', '366': '加拿大' }; var amazonCurrency = { '228': 'USD', '229': 'JPY', '246': 'EUR', '266': 'GBP', '365': 'EUR', '366': 'CAD' }; var amazonMoney = { '1': '¥', '228': '$', '229': '円', '246': 'EUR', '266': '£', '365': 'EUR', '366': 'CDN$' }; var reqInfo = function reqInfo(dp_id, callback) { var url = G.server + '/extension?ac=amazonGlobal&dp_id=' + dp_id; request.get(url).done(function (data) { if (data && data.length > 0) { callback(data); } else { $('.bjgext-mini-trend').css('border-right', 'none'); } }); }; var editData = function editData(data) { for (var i = 0, len = data.length; i < len; i++) { var site_id = data[i].dp_id.split('-')[1]; if (data[i].nowpage === '1') data[i].siteName = amazonName[site_id] + '亚马逊(当前商城)';else data[i].siteName = amazonName[site_id] + '亚马逊'; var price = (Number(data[i].pri) / 100).toFixed(2); var purePrice = ''; if (site_id !== "1") { var price2 = ''; if (site_id === '229') price2 = price + amazonMoney[site_id];else price2 = amazonMoney[site_id] + price; purePrice = parseprice(price, amazonCurrency[site_id]); price = '¥' + purePrice + ('(' + price2 + ')'); } else { purePrice = price; price = '¥' + price; } var obj = { 'site_id': site_id, 'url': data[i].url, 'mod': 'amazon_global', 'union': G.union.split('_')[1], 'dp_id': data[i].dp_id }; data[i].url = go_union.init(obj); data[i].price = price; data[i].purePrice = purePrice; } data.sort(function (value1, value2) { return Number(value1.purePrice) - Number(value2.purePrice); }); return data; }; var render = function render(data) { if (G.showYjht) { $('.bjgext-mini-trend').css('border-right', 'none'); return; } data = editData(data); var dp = data[0]; var btn = '<a href="' + dp.url + '" target="_blank" id="amazon_global_link">亚马逊海外购:<span>' + dp.price + '</span></a>'; $('.bjgext-mini-compare').append($(btn)).show(); $('#bjgext_minibar').css('min-width', '393px'); if (!G.showMinibar) { $('#bjgext_minibar').css('display', 'inline-block'); G.showMinibar = true; } G.amazonGlobal = true; }; module.exports.init = function (dp_id) { reqInfo(dp_id, render); }; module.exports.amazonMoney = amazonMoney; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "5bf35efcba140cc610bb": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_script_lang_js___ = __webpack_require__("f6604761a98ac98bbcec"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "5c0a131eca601d0f106f": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, regeneratorRuntime, $) { var _this = this; var template = __webpack_require__("274e32dfd54a6b0d18a9"); var request = __webpack_require__("91f250ebeb8d5987491c"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); var posDict = { '360buy': { '#fitting-suit': ['#fitting-suit', 'before'], '#fittings': ['#fittings', 'before'], '#shopRecSuit': ['#shopRecSuit', 'before'] }, '360buy-re': { '#similar_goods': ['#similar_goods', 'prepend'] }, 'amazon': { '#buyxgety_feature_div': ['#buyxgety_feature_div', 'before'], '#rhf-container .rhf-border': ['#rhf-container .rhf-border', 'before'], '#fallbacksession-sims-feature': ['#fallbacksession-sims-feature', 'before'] }, '51buy': { '.grid_c1 .xtiein': ['.grid_c1 .xtiein', 'before'] }, 'suning': { '#accessoryInfo': ['#accessoryInfo', 'prepend'], '#listProContent': ['#listProContent', 'prepend'], '.wrapper .procon-side': ['.wrapper .procon-side', 'before'] }, 'dangdang': { '#main_bd .show': ['#main_bd .show', 'after'], '#main_bd .product_main': ['#main_bd .product_main', 'after'] }, 'gome': { '#gm-other-info': ['#gm-other-info', 'prepend'] }, 'yihaodian': { '.fm_detail_one': ['.fm_detail_one', 'after'] }, 'jumei': { '.layout_1090 .deal_content': ['.layout_1090 .deal_content', 'after'], '.mall_detail_wrap': ['.mall_detail_wrap', 'append'] }, // 'jumeiglobal': { // '#deal_prefer': ['#deal_prefer', 'before'] // }, 'vmall': { '#group-area+.hr-20+.layout': ['#group-area+.hr-20+.layout', 'prepend'] }, 'feiniu': { '#tracker_item .product-about': ['#tracker_item .product-about', 'before'] }, 'yougou': { '#goodsContainer+p': ['#goodsContainer+p', 'after'] }, 'kaola': { '.PInfoWrap': ['.PInfoWrap', 'after'] }, 'vipshop': { '#J-FW-detail .M-detail': ['#J-FW-detail .M-detail', 'before'] }, 'womai': { '.detail_main': ['.detail_main', 'prepend'], '.detailed': ['.detailed', 'before'] }, 'jiuxian': { '.detail-box2': ['.detail-box2', 'before'] }, 'secoo': { '#showAdds': ['#showAdds', 'before'] }, 'wbiao': { '#history_buy': ['#history_buy', 'before'] }, 'sfbest': { '.main-box': ['.main-box', 'before'] }, 'miyabaobei': { '.poppro .bfd_div': ['.poppro .bfd_div', 'before'] }, 'fengqu': { '#recommend': ['#recommend', 'before'] }, 'ehaier': { '.product-details-box': ['.product-details-box', 'before'] }, 'zol': { '#J_RecommendedDistributor': ['#J_RecommendedDistributor', 'before'], '.product-detail-box': ['.product-detail-box', 'after'] } }; var PageObj = { low: { loadPages: [] }, favor: { loadPages: [] } }; var animateLock = undefined; module.exports.init = function (data) { var dp_id = data.now.dp_id; var site_id = data.now.site_id; if (dp_id.indexOf(site_id) === -1) { dp_id = dp_id + '-' + site_id; } getGuessInfo(dp_id, site_id); }; var getGuessInfo = function getGuessInfo(dp_id, site_id) { if (dp_id == '') return; var url = G.server + '/brwext/guess_favor?dp_id=' + dp_id + '&site_id=' + site_id + '&union=' + G.union; request.get(url).done(function (data) { //延迟加载,方便计算京东页面尺寸 setTimeout(function () { var msg = editData(data); renderView(msg); }, 400); }); }; var editData = function editData(data) { if (!data || data.length === 0) return data; for (var i = 0; i < data.length; i++) { data[i].price = (Number(data[i].price) / 100).toFixed(2); } return data; }; var renderView = function renderView(data) { var size, pos, html, tbdata, tmdata, allAliData, x, view; return regeneratorRuntime.async(function renderView$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: size = data.length; pos = getPos(); if (!(pos === false || data.length == 0)) { context$1$0.next = 4; break; } return context$1$0.abrupt('return'); case 4: html = __webpack_require__("d060b319b70791c8aa7e"); context$1$0.next = 7; return regeneratorRuntime.awrap(globalCondition.met('AliProducttaobao')); case 7: tbdata = context$1$0.sent; context$1$0.next = 10; return regeneratorRuntime.awrap(globalCondition.met('AliProducttmall')); case 10: tmdata = context$1$0.sent; allAliData = tbdata.map(function (x) { x.site_id = '123'; x.img_url = x.pic_url.replace('100x100', '200x200'); return x; }).concat(tmdata.map(function (x) { x.site_id = '83'; x.img_url = x.pic_url.replace('100x100', '200x200'); return x; })).filter(function (x) { return x.volume; }).sort(function (a, b) { return b.price - a.price; }).map(function (x) { x.price = parseFloat(x.price).toFixed(2); return x; }); while (data.length < 5 && allAliData.length) { x = allAliData.pop(); data.push(x); } view = template.compile(html, { escape: false })({ 'type': 'favor', data: data, loadImg: G.s_server + '/template/aug/images/new/120.gif', 's_server': G.s_server }); innerInsert(view, pos[0], pos[1]); PageObj['favor'].nowPage = 1; PageObj['favor'].data = data; setWidth(size, 'favor'); checkImage(0, PageObj['favor']['perNum'], $('#bjg_inner_favor ul li .item_img img')); PageObj['favor'].loadPages.push(1); addEvent('favor'); fixedInner(); case 22: case 'end': return context$1$0.stop(); } }, null, _this); }; var calNums = function calNums(contentWidth) { var nums = parseInt((contentWidth - 172) / (172 + 30)); var resW = contentWidth - 172 - nums * (172 + 30); var itemResW = parseInt(resW / nums); return { nums: nums + 1, resW: 30 + itemResW }; }; var setWidth = function setWidth(size, type) { var width = $('#bjg_inner_' + type).outerWidth(); var contentWidth = width - 74 * 2; $('#bjg_inner_' + type + ' .inner_pro_list').width(contentWidth); var calObj = calNums(contentWidth); var nums = calObj.nums; var resW = calObj.resW; var pages = Math.ceil(size / nums); PageObj[type].pages = pages; PageObj[type].perNum = nums; PageObj[type].resW = resW; $('#bjg_inner_' + type + ' .inner_pro_list li:not(":first")').css('margin-left', resW + 'px'); $('#bjg_inner_' + type + ' .total_page').text(pages); }; var getPos = function getPos() { var position = posDict[G.site]; for (var p in position) { if ($(p).length > 0) { if (position[p][1] == 'prepend' && $(p).css('display') == 'none') continue; return position[p]; } } return false; }; var innerInsert = function innerInsert(html, dom, pos) { switch (pos) { case 'before': $(dom).before(html); break; case 'append': $(dom).append(html); break; case 'after': $(dom).after(html); break; case 'prepend': $(dom).prepend(html); break; } }; var setTimeFnc = function setTimeFnc(turntype, type) { if (animateLock) { setTimeout(function () { setTimeFnc(turntype, type); }, 100); } else { turnpage(turntype, type); } }; var fixtime = 0; var fixedInner = function fixedInner() { if (fixtime >= 10) return; if (G.site === 'suning') { if ($('#shopingGuideContent').length > 0) { $('#bjg_inner_favor').css('margin-top', '124px'); } else { fixtime++; setTimeout(function () { fixedInner(); }, 500); } } }; var addEvent = function addEvent(type) { var timer = undefined; $('#bjg_inner_' + type).on('click', function (e) { var d = e.target; if (e.target.nodeName === "EM") d = e.target.parentNode; if ($(d).hasClass('turnpage')) { (function () { var turntype = 1; if ($(d).hasClass('inner_page_left')) { turntype = -1; } var type = $(d).attr('data-type'); if (animateLock) { clearTimeout(timer); timer = setTimeout(function () { setTimeFnc(turntype, type); }, 450); } else { turnpage(turntype, type); } })(); } }); // $('.inner_page_left').on('click', function() { // let type = $(this).attr('data-type'); // turnpage(-1, type) // }) // $('.inner_page_right').on('click', function() { // let type = $(this).attr('data-type'); // turnpage(1, type) // }) }; var turnpage = function turnpage(turntype, type) { var left = $('#bjg_inner_' + type + ' ul').css('left'); left = Number(left.replace('px', '')) || 0; if (turntype === 1) { if (PageObj[type].nowPage === PageObj[type].pages) return; PageObj[type].nowPage++; left = left - PageObj[type].perNum * (172 + PageObj[type].resW); } else { if (PageObj[type].nowPage === 1) return; PageObj[type].nowPage--; left = left + PageObj[type].perNum * (172 + PageObj[type].resW); } var start = (PageObj[type].nowPage - 1) * PageObj[type]['perNum']; var end = PageObj[type].nowPage * PageObj[type]['perNum']; if (PageObj[type].loadPages.indexOf(PageObj[type].nowPage) === -1) { checkImage(start, end, $('#bjg_inner_' + type + ' ul li .item_img img')); PageObj[type].loadPages.push(PageObj[type].nowPage); } if ($('#bjg_inner_' + type + ' ul').animate) { animateLock = true; $('#bjg_inner_' + type + ' ul').animate({ left: left + 'px' }, 400, function () { animateLock = false; }); } else { $('#bjg_inner_' + type + ' ul').css('left', left + 'px'); } $('#bjg_inner_' + type + ' .cur_page').text(PageObj[type].nowPage); }; var checkImage = function checkImage(start, end, dom) { for (var i = start; i < end; i++) { var src = dom.eq(i).attr('data-src'); if (!src) continue; loadImg(src, dom.eq(i)); } }; var loadImg = function loadImg(src, img) { var image = new Image(); image.onload = function () { if (image.complete == true) { img.attr('src', src).removeClass('loadImg'); } }; image.onerror = function () { img.attr('src', G.s_server + '/images/extensions/default_load_image.png').removeClass('loadImg'); img.attr('data-src', G.s_server + '/images/extensions/default_load_image.png'); }; image.src = src; }; module.exports.renderLowest = function (data) { var size = data.length; var pos = getPos(); if (pos === false || size == 0) return; var html = __webpack_require__("98f51953afe6c0ddf72d"); var view = template.compile(html, { escape: false })({ 'type': 'low', data: data, loadImg: G.s_server + '/template/aug/images/new/120.gif', 's_server': G.s_server }); innerInsert(view, pos[0], pos[1]); PageObj['low'].nowPage = 1; PageObj['low'].data = data; setWidth(size, 'low'); checkImage(0, PageObj['low']['perNum'], $('#bjg_inner_low ul li .item_img img')); PageObj['low'].loadPages.push(1); addEvent('low'); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "5c2efa94913e2ffc627b": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, $, Vue) {// 会员券 var _this = this; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _commonComponentsMemberCouponTopVue = __webpack_require__("f423f4cf37e1e709bc4d"); var _commonComponentsMemberCouponTopVue2 = _interopRequireDefault(_commonComponentsMemberCouponTopVue); var _commonComponentsMemberCouponMiniVue = __webpack_require__("00c99715365e333b6472"); var _commonComponentsMemberCouponMiniVue2 = _interopRequireDefault(_commonComponentsMemberCouponMiniVue); var _bjgouComponentsMemberCouponMiniBjg = __webpack_require__("461dcf71927012141a32"); var _bjgouComponentsMemberCouponMiniBjg2 = _interopRequireDefault(_bjgouComponentsMemberCouponMiniBjg); var _bjgouComponentsMemberCouponBottomBjg = __webpack_require__("19254b8c4bfcc18933d0"); var _bjgouComponentsMemberCouponBottomBjg2 = _interopRequireDefault(_bjgouComponentsMemberCouponBottomBjg); var getMemberCoupon = function getMemberCoupon(shopId, userId) { return regeneratorRuntime.async(function getMemberCoupon$(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__("91f250ebeb8d5987491c").rawGet('https://alisitecdn.m.taobao.com/minidata/shop/index/downgrade.htm?pathInfo=shop/index2&userId=' + userId + '&shopId=' + shopId)); case 2: return context$1$0.abrupt('return', context$1$0.sent); case 3: case 'end': return context$1$0.stop(); } }, null, _this); }; var render = function render() { __webpack_require__("9c38beef5ff283e15bd2").setMet('couponLink', { content: '发现店铺优惠券,速领', url: 'https://tb.gwdang.com/extension/qrpage?dp_id=' + G.dp.dpId + '&tag=2' }); var divTop = document.createElement('div'); $('.gwd-topbar-left').append(divTop); new Vue({ el: divTop, render: function render(h) { return h(_commonComponentsMemberCouponTopVue2['default'], { props: { tag: 2 } }); } }); // const divBottom = document.createElement('div'); // $('#gwd_minibar').after(divBottom); new Vue({ el: '#gwd-coupon-placeholder', render: function render(h) { return h(_commonComponentsMemberCouponMiniVue2['default'], { props: { tag: 2 } }); } }); }; var renderBjg = function renderBjg() { new Vue({ el: '#bjg-coupon-placeholder', render: function render(h) { return h(_bjgouComponentsMemberCouponMiniBjg2['default'], { props: { tag: 8 } }); } }); var el = document.createElement('DIV'); $('.bjg-coupon-space').after(el); new Vue({ el: el, render: function render(h) { return h(_bjgouComponentsMemberCouponBottomBjg2['default'], { props: { tag: 8 } }); } }); }; module.exports = { init: function init() { return new Promise(function (resolve, reject) { if (!G.aliSite) { resolve(false); } var metaStr = $('meta[name="microscope-data"]').attr('content'); if (!metaStr) { resolve(false); return; } var parsedMetaStr = metaStr.split(';').map(function (item) { var arr = item.split('='); return { key: arr[0], value: arr[1] }; }); var meta = {}; parsedMetaStr.forEach(function (item) { meta[item.key.trim()] = item.value; }); getMemberCoupon(meta.shopId, meta.userid).then(function (res) { if (JSON.stringify(res).indexOf('market.m.taobao.com/app/cem-fe/benefit-exchange/benefit-exchange/index.html') > -1) { __webpack_require__("83271c7588396d2d5e59").logOnce('淘宝会员券:展示'); if (G.from_device === 'bijiago' || G.from_device === 'biyibi') { renderBjg(); } else { render(); } resolve(true); } else { resolve(false); } }); }); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "5d4f0e584bd9a3a675b3": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = { modules: {}, version: 1687246163603, mv3: true, browser: {}, // debug: /gwdebug/.test(window ? window.location.href: ''), extend: function extend(obj) { for (var i in obj) { this[i] = obj[i]; } } }; /***/ }), /***/ "5e05e6f5fe79ccf5d009": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) {function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i < arr.length;i++) arr2[i] = arr[i];return arr2;}else {return Array.from(arr);}}var href=window.location.href;var host=window.location.host;var pageInfo; //检查是否在此页面出现小工具栏 module.exports.isAvailablePage = function(){if(location.hostname.includes('.gwdang.com') && location.href.includes('/jd_enhance')){return 'gwdang';}for(var pattern in sitePattern) {if(host.match(new RegExp(pattern,'i'))){return sitePattern[pattern];}}return false;}; //检查是否在此页面出现比价 module.exports.isProductPage = function(url){url = url || href;if(url.indexOf('oneplus.com/cn/store') > -1){return false;}if(G.from_device === 'bijiago' && location.href.indexOf('https://pcsitepp-fm.jd.com/') > -1){return '360buy';}for(var pattern in productPattern) {var matchs=url.match(new RegExp(pattern,'i'));if(matchs){ //if (url.match(new RegExp(pattern))) { var site=productPattern[pattern];var _host=new URL(url).host;if(site === "amazon" && _host !== "www.amazon.cn" && matchs[1]){var m=matchs[1];if(m.indexOf('.') > -1)m = m.split('.')[1];m = 'amazon-' + m;return m;}return productPattern[pattern];}}return false;};var page404=function page404(site){var page;switch(site){default:if($('#content h2').text().indexOf('您查看的商品找不到了') > -1)page = true;break;}return page;}; //检查是否屏蔽此域名 module.exports.isInBanList = function(){if(G.dcmExt)return false;if(!G.iframe){var no_url=href.match(/[&\?]no_url/);if(!no_url && (self.location != top.location || self.frameElement && self.frameElement.tagName == "IFRAME" || window.top != window.self)){return true;}}var main_url=href;if(location.href.indexOf('?') > 0){main_url = href.substr(0,href.indexOf('?'));} // kaluli网站 if(main_url.match(/\.kaluli.com/)){return false;} //有一个carters的网站,防止被下面cart匹配到给屏蔽,提前判断如果匹配到carters就return false if(main_url.match(/(?:cartridge|Camcorder|carters|feifei\.com\/order\/|ref=ord_cart_shr)/) != null){return false;}if(location.host.indexOf(G.extName + '.com') > -1 && !location.href.includes('jd_enhance'))return true;if(main_url.match(/detail\.zol\.com\.cn/))return false;if(main_url.match(/(?:cart|member|order|myhome|picture_index|handle-buy-box|chat|t.sina.com.cn|discussion|union.dangdang|eve.360buy|bank.vmall|checkout|confirm|gateway|trade|http:\/\/i.taobao.com|we.taobao.com|passport.yougou.com)/ig) != null){return true;}return false;};var specialHost=function specialHost(name){if(name === 'swarovski'){if(location.href.match(/Web_GB\/en/)){name = 'swarovski-en';}}return name;};var getPageInfo=function getPageInfo(){if(pageInfo)return pageInfo;var name="";if(module.exports.isInBanList()){return pageInfo = {type:0,siteName:name};}name = module.exports.isProductPage();if(name){if(typeof name !== 'string'){G.hidebar = name.hidebar;name = name.name;}G.site = name;G.logsite = name;if(name.indexOf("amazon") > -1)G.site = "amazon";if(page404(name)){return pageInfo = {type:0,siteName:name};}return pageInfo = {type:2,siteName:name};}name = module.exports.isAvailablePage();if(name){if(typeof name !== 'string'){G.hidebar = name.hidebar;name = name.name;}name = specialHost(name);G.site = name;G.logsite = name;return pageInfo = {type:1,siteName:name};}return pageInfo = {type:0,siteName:''};};var sitePattern={'www\\.epicgames\\.com':'epic','www\\.stbchina\\.cn':'stbchina','www\\.mafengwo\\.cn':'mafengwo','www\\.kjt\\.com':'kjt','www\\.lifevc.com':'lifevc','www\\.coocaa\\.com':'coocaa','(?:www|shop)\\.nubia\\.(?:cn|com)':'nubia','www\\.kzj365\\.com':'kzj365','\\.kaola\\.com':'kaola','www\\.ymatou\\.(?:com|hk)':'ymatou','www\\.metao\\.com':'metao','shop\\.philips\\.com\\.cn':'philips','www\\.tcl\\.com':'tcl','www\\.e-changhong\\.com':'changhong','shop\\.konka\\.com':'konka','shop\\.hisense\\.com':'hisense','www\\.ineigo\\.com':'ineigo','www\\.skg\\.com':'skg','www\\.k-touch\\.cn':'k-touch','\\.gionee\\.com':'gionee','(?:www|store)\\.oppo\\.com':'oppo','gfive\\.b2c\\.eqimingxing\\.com':'gfive','shop\\.vivo\\.com\\.cn':'vivo','www\\.grainger\\.cn':'grainger','(?:mall|piao)\\.163\\.com':'wy163','t\\.dianping\\.com':'dianping','\\.nuomi\\.com':'nuomi','\\.meituan\\.com':'meituan','www\\.ebay\\.com':'ebay','yao\\.95095\\.com':{name:'taobao',hidebar:true},'\\.feiniu\\.com':'feiniu','item\\.feiniu\\.com':'feiniu','\\.feifei\\.(?:cn|com)':'feifei','\\.guang\\.com':'guang','\\.meilishuo\\.com':'meilishuo','\\.mogu(?:jie|)\\.com':'mogujie','shop\\.coolpad\\.cn':'coolpad','\\.sephora\\.cn':'sephoracps','cn\\d*\\.strawberrynet\\.com':'strawberrynet','\\.yesmywine\\.com':'yesmywine','(\\.)?yiguo\\.com':'yiguo','\\.wanggou\\.com':'wanggou','mall\\.jia\\.com':'jia','weigou\\.baidu\\.com':'baidu-weigou','\\.(xiao)?mi\\.com':'xiaomi','shop\\.letv\\.com':'lemall','\\.handu\\.com':'handu','(?:www\\.|^)taoshu\\.com':'taoshu','\\.ouku\\.com':'ouku','\\.j1\\.com':'j1','\\.zm7\\.cn':'zm7','\\.1688\\.com':{name:'1688',hidebar:true},'\\.yiwugou\\.com':'yiwugou','\\.zhiwo\\.com':'zhiwo','\\.muyingzhijia\\.com':'muyingzhijia','\\.vmall\\.com':'vmall','\\.hihonor\\.com':'hihonor','\\.didamall\\.com':'didamall','\\.xiji.com':'xiji','\\.xijie.com':'xijie','\\.miqi\\.cn':'miqi','\\.zol\\.com(?:$|/|\\?)':'zol','zol\\.com\\.cn':'zol','\\.camel\\.com\\.cn':'camel','camel.com.cn':'camel','(\\.)?homevv\\.com':'homevv','\\.paixie\\.net':'paixie','\\.tao3c\\.com':'tao3c','\\.amazon\\.cn':'amazon','\\.dangdang\\.com':'dangdang','s8\\.taobao\\.com':'s8','taobao\\.(?:com|hk)':{name:'taobao',hidebar:true},'fake\\.taobao\\.com':'taobao','\\.(?:360buy|jd|jkcsjd)\\.com':'360buy','\\.(?:360buy|jd)\\.hk':'360buy','\\.yiyaojd.com':'360buy','\\i-item\\.jd\\.com':'360buy','\\.newegg(\\.com)?\\.cn':'newegg','\\.redbaby\\.com\\.cn':'redbaby','\\.51buy\\.com':'51buy','\\.yixun\\.com':'51buy','\\.okbuy\\.com':'okbuy','\\.shopee\\.tw':'shopee','\\.suning\\.com':'suning','\\.coo8\\.com':'coo8','\\.lusen\\.com':'lusen','\\.gome\\.com\\.cn':'gome','\\.gomehome\\.com':'gome','\\.gomehigo\\.hk':'gomehigo','\\.yhd\\.com':'yihaodian','\\.yihaodian\\.com':'yihaodian','\\.1mall\\.com':'yihaodian','\\.womai\\.com':'womai','\\.leyou\\.com\\.cn':'leyou','\\.shopin\\.net':'shopin','\\.no5\\.com\\.cn':'no5','\\.xiu\\.com':'xiu','\\.mbaobao\\.com':'mbaobao','\\.360kxr\\.com':'360kxr','\\.m6go\\.com':'m6go','\\.gou\\.com':'m6go','\\.smzdm\\.com':'smzdm','\\.99read\\.com':'99read','\\.china-pub\\.com':'china-pub','\\.bookschina\\.com':'bookschina','\\.efeihu\\.com':'efeihu','\\.yintai\\.com':'yintai','\\.quwan\\.com':'quwan','\\.k121\\.com':'k121','\\.happigo\\.com':'happigo','\\.gap\\.cn':'gap','\\.binggo\\.com/':'binggo','\\.yougou\\.com':'yougou','\\.jxdyf\\.com':'jxdyf','\\.winxuan\\.com':'winxuan','\\.bookuu\\.com':'bookuu','\\.jiuxian\\.com':'jiuxian','\\.vancl\\.com':'vancl','\\.111\\.com\\.cn':'111','\\.sfbest\\.(?:hk|com)':'sfbest','\\.vip(shop)?\\.com':'vipshop','\\.vipglobal\\.hk':'vipshop','\\.jumei\\.com':'jumei','jumeiglobal\\.com':'jumeiglobal','\\.lefeng\\.com':'lefeng','www\\.benlai\\.com':'benlai','(?:\\.|^)letao\\.com':'letao','\\.139shop\\.com':'139shop','(?:\\.|^)zzl365\\.com':'zzl365','\\.tiantian\\.com':'tiantian','\\.taoxie\\.com':'taoxie','\\.gjw\\.com':'gjw','www\\.d1\\.com\\.cn':'d1','\\.ihush\\.com':'ihush','www\\.s\\.cn':'s','\\.(?:moonbasa|korirl|rutisher|suorang|alaves|ing2ing|0-100s|qjherb|monteamor)\\.com':'moonbasa','\\.wangjiu\\.com':'wangjiu','\\.liebo\\.com':'liebo','\\.esprit\\.cn':'esprit','(?:\\.|^)lamiu\\.com':'lamiu','\\.aimer\\.com\\.cn':'aimer','www\\.kadang\\.com':'kadang','www\\.lizi\\.com':'lizi','www\\.metromall\\.cn':'metromall','www\\.pba\\.cn':'pba','\\.shangpin\\.com':'shangpin','\\.wbiao\\.cn':'wbiao','\\.handuyishe\\.com':'handuyishe','\\.ehaier\\.com':'ehaier','\\.secoo\\.com':'secoo','(?:vivian|linkmasa|masamaso)\\.(?:com|cn)':'masamaso','www\\.naruko\\.cn':'naruku','www\\.sportica\\.cn':'sportica','(?:\\.|^)xifuquan\\.com':'xifuquan','www\\.milier\\.com':'milier','www\\.nop\\.cn':'nop','\\.lenovo\\.com':'lenovo','shop\\.lenovo\\.com\\.cn':'lenovo','shop\\.lenovomobile\\.com':'lenovo','\\.189\\.cn':'189','\\.hicdma\\.com':'hicdma','\\.e100\\.cn':'e100','store\\.samsung\\.com':'samsung','www.apple\\.com':'apple','store.apple\\.com':'apple','\\.meizu\\.com':'meizu','\\.958shop\\.com':'958shop','\\.okhqb\\.com':'okhqb','\\.ztedevice\\.com\\.cn':'ztedevice','\\.kuaishubao\\.com':'kuaishubao','\\.lvyoumall\\.com':'lvyoumall','(?:www\\.|^)x\\.com\\.cn':'x','\\.lingshi\\.com':'lingshi','\\.ctrip\\.com':'ctrip','\\.zuipin\\.cn':'zuipin','www\\.xgbaby\\.com':'bbready','\\.yohobuy\\.com':'yohobuy','\\.lvmama\\.com':'lvmama','(?:\\.|^)qmango\\.com':'qmango','www\\.228cai\\.com':'228cai','\\.ikjtao\\.com':'ikjtao','www\\.bestkeep\\.cn':'ikjtao','\\.bagtree\\.cn':'bagtree','yichengpin\\.com':'yichengpin','zgzcw\\.com':{name:'zgzcw',hidebar:true},'www\\.mia\\.com':'miyabaobei','\\.miyabaobei.hk':'miyabaobei','\\.ule\\.com':'ule','minshengec\\.com':'minshengec','wangfujing\\.com':'wangfujing','\\.qunar\\.com':'qunar','\\.meilele\\.com':'meilele','www\\.55tuan\\.com':'55tuan','jinjianginns\\.com':'jinjianginns','\\.elong\\.com':'elong','podinns\\.com':'podinns','mangocity\\.com':'mangocity','\\.500\\.com':'500','www\\.ly\\.com':'ly','e-lining\\.com':'e-lining','\\.lining\\.com':'lining','\\.koolearn\\.com':'koolearn','\\.springtour\\.com':'springtour','\\.qinqinbaby\\.com':'qinqinbaby','winenice\\.com':'winenice','\\.sasa\\.com':'sasa','(?:\\.|^)5lux\\.com':'5lux','\\.228\\.com\\.cn':'228','\\.rrs\\.com':'rrs','\\.rrsjk.com':'rrs','(?:\\.|^)buy\\.ccb\\.com':'ccb','\\.banggo\\.com':'banggo','www\\.amazon\\.com':'amazon-com','www\\.amazon\\.co\\.jp':'amazon-jp','www\\.amazon\\.in':'amazon-in','www\\.amazon\\.fr':'amazon-fr','www\\.amazon\\.de':'amazon-de','www\\.amazon\\.it':'amazon-it','www\\.amazon\\.co.uk':'amazon-uk','www\\.amazon\\.nl':'amazon-nl','www\\.amazon\\.es':'amazon-es','www\\.amazon\\.ca':'amazon-ca','www\\.amazon\\.com\\.mx':'amazon-mx','www\\.amazon\\.com\\.br':'amazon-br','www\\.amazon\\.com\\.au':'amazon-au','store\\.logitech\\.com\\.cn':'logitech','\\.boohee\\.com':'boohee','nike\\.com':'nike','\\.jianke\\.com':'jianke','\\.360kad\\.com':'360kad','\\.lbxcn\\.com':'lbxcn','\\.meici\\.com':'meici','\\.beibei\\.com':'beibei','\\.aliexpress\.com':{name:'aliexpress',hidebar:true},'\\.6pm\\.com':'6pm','\\.gnc\\.com':'gnc','\\.myhabit\\.com':'myhabit','\\.shopbop\\.com':'shopbop','\\.drugstore\\.com':'drugstore','www\\.walgreens\\.com':'walgreens','sierratradingpost\\.com':'sierratradingpost','\\.newegg\\.com':'newegg-us','\\.jomashop\\.com':'jomashop','\\.ashford\\.com':'ashford','lookfantastic\\.com':'lookfantastic-com','lookfantastic\\.cn':'lookfantastic-cn','\\.rei\\.com':'rei','cn\\.iherb\\.com':'iherb','\\.iherb\\.com':'iherb-com','\\.carters\\.com':'carters','www\\.endclothing\\.com':'endclothing','\\.campsaver\\.com':'campsaver','global\\.rakuten\\.com':'rakuten','(?:\\.|^)100yue\\.com':'100yue','www\\.woot\\.com':'woot','www\\.haitaocheng\\.com':'haitaocheng','joesnewbalanceoutlet\\.com':'joesnewbalanceoutlet','\\.finishline\\.com':'finishline','\\.vitacost\\.com':'vitacost','\\.groupon.com':'groupon','\\.supumall\\.com':'supumall','www1\\.macys\\.com':'macys','www\\.moosejaw\\.com':'moosejaw','www\\.lemall\\.com':'lemall','www\\.jiumei\\.com':'jiumei','(?:\\.|^)chunshuitang\\.com':'chunshuitang','www\\.daling.com':'daling','www\\.oyeah\\.com':'oyeah','www\\.morefood\\.com':'morefood','www\\.yummy77\\.com':'yummy77','www\\.fruitday\\.com':'fruitday','www\\.gilt\\.com':'gilt','www\\.fengqu\\.com':'fengqu','www\\.mei\\.com':'mei','\\.vsigo\\.cn':'vsigo','www\\.keede\\.com':'keede','www\\.kede\\.com':'keede','k1\\.keede\\.cn':'keede','www\\.showjoy\\.com':'showjoy','\\.ocj\\.com\\.cn':'ocj','\\.ocj\\.kr':'ocj','\\.tmall\\.(?:com|hk)':{name:'tmall',hidebar:true},'www\\.sundan\\.com':'sundan','www\\.jiae\\.com':'jiae','(?:\\.|^)zazhipu\\.com':'zazhipu','www\\.easeeyes\\.com':'easeeyes','microsoftstore\\.com\\.cn':'microsoftstore','(?:\\.|^)xgdq\\.com':'xgdq','\\.bestcake\\.com':'bestcake','\\.lovo\\.cn':'lovo','www\\.hua\\.com':'hua','www\\.xtep\\.com\\.cn':'xtep','www\\.staples\\.cn':'staples','(?:\\.|^)efotile\\.com':'efotile','www\\.zhe800\\.com':'zhe800','www\\.aidai\\.com':'aidai','www\\.bftv\\.com':'bftv','\\.tujia\\.com':'tujia','\\.cosme\\.com':'cosme','www\\.diapers\\.com':'diapers','www\\.windeln\\.de':'windeln','www\\.babyneo\\.de':'babyneo','www\\.escentual\\.com':'escentual','www\\.thewatchery\\.com':'thewatchery','\\.biccamera.com':'biccamera','\\.tuhu.(?:cn|com)':'tuhu','eshop\\.htc\\.com':'htc','roseonly\\.com\\.cn':'roseonly','\\.rong360.com':'rong360','\\.niwodai.com':'niwodai','www\\.esteelauder.com':'esteelauder','\\.saksfifthavenue.com':'saksfifthavenue','\\.taqu.cn':'taqu','\\.qyer.com':'qyer','\\.axmall\\.com\\.au':'axmall','\\.muji.net':'muji','(?:\\.|^)gmarket.co.kr':'gmarket','english.11st.co.kr':'11st','\\.smartbargains\\.com':'smartbargains','\\.shopping\\.yahoo\\.co\\.jp':'yahooshop','\\.bloomingdales\\.com':'bloomingdales','\\.mikihouse\\.jp':'mikihouse','\\.toysrus\\.co\\.jp':'toysrus','\\.comfortfirst\\.com':'comfortfirst','\\.gymboree\\.com':'gymboree','\\.albeebaby.com':'albeebaby','\\.babymarkt.de':'babymarkt','\\.uggaustralia.co.uk':'uggaustralia','www\\.ugg\\.com':'ugg','neimanmarcus\\.com':'neimanmarcus','www\\.shoebuy.com':'shoebuy','www\\.szul\\.com':'szul','www\\.timex.com':'timex','\\.timex.com':'timex','www\\.kay.com':'kay','\\.ewatches.com':'ewatches','\\.swarovski.com':'swarovski','\\.worldofwatches.com':'worldofwatches','www.danielwellington.com':'danielwellington','\\.danielwellington\\.cn':'danielwellington-cn','\\.beautybay.com':'beautybay','\\.beauty.com':'beauty','www.beautybar.com':'beautybar','skinstore.com':'skinstore','www.laneige.com':'laneige','(?:\\.|^)bose.com':'bose','(?:\\.|^)bestbuy.com':'bestbuy','bhphotovideo.com':'bhphotovideo','(?:\\.|^)sony.jp':'sony','\\.bl\\.com':'bl','(?:\\.|^)you.163.com':'you163','(?:\\.|^)jinjiang.com':'jinjiang','(?:\\.|^)bestinfoods.com':'bestinfoods','(?:\\.|^)jinxiang.com':'jinxiang','(?:\\.|^)guojimami.com':'guojimami','(?:\\.|^)baiyangwang.com':'baiyangwang','\\.aoyou.com':'aoyou','(?:\\.|^)royyoungchemist.com.au':'royyoungchemist','(?:\\.|^)medihealshop.com':'medihealshop','(?:\\.|^)1001pharmacies.com':'1001pharmacies','(?:\\.|^)lookfantastic.cn':'lookfantastic-cn','(?:\\.|^)1\\.163\\.com':'1-163','www\\.kaixinbao.com':'kaixinbao','(?:\\.|^)booking.com':'booking','(?:\\.|^)juanpi.com':'juanpi','(?:\\.|^)pharmacyonline.com':'pharmacyonline','(?:\\.|^)bodyguardapotheke.com':'bodyguardapotheke','(?:\\.|^)purcotton.com':'purcotton','(?:\\.|^)wstx.com':'wstx','www\\.midea\\.com':'midea','www\\.midea\\.cn':'midea','mall\\.midea\\.com':'midea','\\.kaluli.com':'kaluli',"(?:\\.|^)yunhou\\.com":"yunhou","(?:\\.|^)haituncun\\.com":"haituncun","(?:\\.|^)vmei\\.com":"vmei","(?:\\.|^)jgb\\.cn":"jgb","(?:\\.|^)51din\\.com":"51din","(?:\\.|^)boqii\\.com":"boqii","cn.toursforfun\\.com":"toursforfun","(?:\\.|^)lulutrip\\.com":"lulutrip","(?:\\.|^)spider\\.com\\.cn":"spider","(?:\\.|^)walmart\\.com":"walmart","mall.to8to.com":"to8to",'www.opposhop.cn':'opposhop','baobeigezi.com':'baobeigezi','www.yao123.com':'yao123','www.menglu.com':'menglu','www.guopi.com':'guopi','www.likeface.com':'likeface','www.mallvv.com':'homevv','www.markmall.com':'markmall','www\\.baicheng\\.com':'baicheng','www\\.suanjuzi\\.com':'suanjuzi','\\.jinxiang\\.com':'jinxiang','\\.aomygod\\.com':'aomygod','(?:\\.|^)luolai\\.cn':'luolai','\\.vivo\\.com\\.cn':'vivo','\\.dixintong\\.com':'dixintong','\\.coolpad\\.com':'coolpad','\\.skg\\.com':'skg','vip\\.iqiyi\\.com':'iqiyi','\\aolaigo\\.com':'aolaigo','vip\\.missfresh\\.cn':'missfresh','\\.pushenkuajing\\.com':'pushenkuajing','cn\\.feelunique\\.com':'feelunique-cn','\\.chemistdirect\\.com\\.au':'chemistdirect','\\.netpharmacy\\.co\\.nz':'netpharmacy','\\.pharmacy4less\\.com\\.au':'pharmacy4less','\\.pharmacydirect\\.co\\.nz':'pharmacydirect','\\.amcal\\.com\\.au':'amcal','\\.laredoute\\.cn':'laredoute','cn\\.unserekleineapotheke\\.de':'unserekleineapotheke','\\.erwinmueller\\.com\\.cn':'erwinmueller','\\.kiwidiscovery\\.co\\.nz':'kiwidiscovery','\\.springlane\\.de':'springlane','\\.jako-o\\.com':'jako-o','\\.easytoys\\.cn':'easytoys','\\.tlcpharmacy\\.cn\\.com':'tlcpharmacy','\\.bienmanger\\.cn':'bienmanger','\\.dewaren\\.com':'dewaren','\\.discount-apotheke\\.de':'discount-apotheke','\\.holland-at-home\\.com':'holland-at-home','\\.youyu\\.com':'youyu','\\.kiwistarcare\\.com':'kiwistarcare','\\.lenovomobile\\.com':'lenovomobile','\\.51taouk\\.com':'51taouk','\\.kiehls\\.com':'kiehls','\\.zappos\\.com':'zappos','\\.coach\\.com':'coach','\\.yoox\\.cn':'yoox','\\.11street\\.com\\.cn':'11street','\\.ba\\.de':'ba','www\\.hqhair\\.com':'hqhair','www\\.katespade\\.co\\.uk':'katespade','cn\\.vitafy\\.de':'vitafy','www\\.yoox\\.cn':'yoox','\\.m18\\.com':'m18','comfortfirst\\.com':'comfortfirst','china\\.lotte\\.com':'lotte','\\.carrefour\\.cn':'carrefour','www\\.tea7\\.com':'tea7','\\.zhongjiu.cn':'zhongjiu','\\.puzeyf\\.com':'puzeyf','www\\.kohls\\.com':'kohls','www\\.bodybuilding\\.com':'bodybuilding','\\.nordstrom\\.com':'nordstrom','www\\.costco\\.com':'costco','www\\.target\\.com':'target','www\\.kmart\\.com':'kmart','www\\.overstock\\.com':'overstock','www\\.sears\\.com':'sears','www\\.shoprobam\\.com':'shoprobam','mall\\.goumin\\.com':'goumin','www\\.flyco\\.com':'flyco','www\\.opplestore\\.com':'opplestore','www\\.syshop\\.com':'syshop','www\\.yfdyf\\.com':'yfdyf','ssl\\.hotels\\.cn':'hotels','aihuishou\\.com':'aihuishou','www\\.thebeastshop\\.com':'thebeastshop','www\\.jomooshop\\.com':'jomooshop','www\\.septwolves\\.cn':'septwolves','\\.lianjia\\.com':{name:'lianjia',hidebar:true},'\\.maitian\\.cn':{name:'maitian',hidebar:true},'\\.5i5j\\.com':{name:'5i5j',hidebar:true},'\\.ke\\.com':{name:'ke',hidebar:true},'\\.6\\.cn':'home6','www\\.800pharm\\.com':'800pharm','www\\.ujipin\\.com':'ujipin','pc\\.mmb\\.cn':'mmb','www\\.ihaveu\\.com':'ihaveu','mall\\.ikang\\.com':'ikang','www\\.wyn88\\.com':'wyn88','www\\.mcake\\.com':'mcake','www\\.xmeise\\.com':'xmeise','www\\.lecake\\.com':'lecake','www\\.jd100\\.com':'jd100','www\\.jinghua\\.com':'jinghua','www\\.taohwu\\.com':'taohwu','www\\.zbird\\.com':'zbird','www\\.km1818\\.com':'km1818','www\\.zocai\\.com':'zocai','www\\.taoshu\\.com':'taoshu','www\\.aizhigu\\.com\\.cn':'aizhigu','www\\.tieyou\\.com':'tieyou','www\\.fieldschina\\.com':'fieldschina','www\\.wdmcake\\.cn':'wdmcake','mall\\.lqxshop\\.com':'lqxshop','www\\.usashopcn\\.com':'usashopcn','www\\.wine9\\.com':'wine9','www\\.qipaimall\\.com':'qipaimall','www\\.yododo\\.cn':'yododo','www\\.yoger\\.com\\.cn':'yoger','www\\.dapu\\.dapu':'dapu','www\\.winona\\.cn':'winona','www\\.wl\\.cn':'wl','www\\.shanmai\\.cn':'shanmai','www\\.zgshoes\\.com':'zgshoes','www\\.maichawang\\.com':'maichawang','www\\.uemall\\.com':'uemall','\\.51you\\.com':'51you','\\.beifabook\\.com':'beifabook','www\\.jpeen\\.com':'jpeen','www\\.huatuoyf\\.com':'huatuoyf','www\\.fengbuy\\.com':'fengbuy','\\.uiyi\\.com':'uiyi','www\\.hecha\\.cn':'hecha','www\\.t10\\.com':'t10','www\\.qw\\.cc':'qw','\\.miutour\\.com':'miutour','www\\.ehaoyao\\.com':'ehaoyao','www\\.idx\\.com\\.cn':'idx','www\\.uya100\\.com':'uya100','www\\.ssnewyork\\.com':'ssnewyork','www\\.clinique\\.com':'clinique','www\\.hxepawn\\.com':'hxepawn','www\\.brooksbrothers\\.com':'brooksbrothers','www\\.omtao\\.com':'omtao','www\\.ep365\\.com':'ep365','www\\.columbiasports\\.cn':'columbiasports','\\.bstapp\\.cn':'bstapp','www\\.newbalance\\.com':'newbalance','\\.wjike\\.com':'wjike','www\\.bally\\.co\\.uk':'bally','\\.1hai\\.cn':'1hai','www\\.jialich\\.cn':'jialich','\\.takeya\\.co\\.jp':'takeya','www\\.forever21\\.com':'forever21','www\\.modernavenue\\.com':'modernavenue','www\\.muniao\\.com':'muniao','\\.centanet\\.com':'centanet','www\\.zuihuiyou\\.com':'zuihuiyou','www\\.bobbibrowncosmetic\\.com':'bobbibrowncosmetics','www\\.super-in\\.com':'super-in','www\\.hangowa\\.com':'hangowa','www\\.levi\\.com':'levi','www\\.fila\\.cn':'fila','www\\.converse\\.com\\.cn':'converse','us\\.nextdirect\\.com':'nextdirect','www\\.itrip\\.com':'itrip','www\\.lashou\\.com':'lashou','www\\.liufeng\\.com':'liufeng','www\\.trt\\.hk':'trt','www1\\.wodinghua\\.com':'wodinghua','\\.wuliwuli\\.cn':'wuliwuli','www\\.forestfood\\.com':'forestfood','\\.bonjourhk\\.com':'bonjourhk','www\\.vitagou\\.hk':'vitagou','\\.kinhom\\.com':'kinhom','www\\.360lj\\.com':'360lj','v\\.changba\\.com':'changba','www\\.oakley\\.com':'oakley','www\\.jpyoo\\.com':'jpyoo','www\\.clarksusa\\.com':'clarksusa','www\\.starwoodhotels\\.com':'starwoodhotels','www\\.marriott\\.com\\.cn':'marriott-cn','www\\.yesstyle\\.com':'yesstyle','^evisu\\.com':'evisu','^lifeseasy\\.com\\.cn':'lifeseasy','www\\.ccxpet\\.com':'ccxpet','www\\.0061\\.com\\.au':'x0061','www\\.kkguan\\.com':'kkguan','www\\.style-oclock\\.com':'style-oclock','www\\.peikua\\.com':'peikua','www\\.airfrance\\.(?:us|com)':'airfrance','www\\.accorhotels\\.com':'accorhotels','www\\.spacenk\\.com':'spacenk','www\\.haichufang\\.com':'haichufang','us\\.wconcept\\.com':'wconcept','www\\.gant\\.co\\.uk':'gant','www\\.catfootwear\\.com':'catfootwear','www\\.saucony\\.com':'saucony','www\\.zaozuo\\.com':'zaozuo','\\.littleswan\\.com':'littleswan','www\\.can\\.tv':'can','www\\.ssrj\\.com':'ssrj','shop\\.guess\\.net\\.au':'guess','www\\.etihad\\.com':'etihad','store\\.fiil\\.com':'fiil','www\\.mianshui365\\.com':'mianshui365','www\\.tegoushe\\.com':'tegoushe','www\\.wiggle\\.cn':'wiggle','www\\.mdreams\\.com':'mdreams','\\.ecovacs\\.cn':'ecovacs','www\\.calvinklein\\.cn':'calvinklein','cn\\.memebox\\.com':'memebox','www3\\.hilton\\.com':'hilton','www\\.revolve\\.com':'revolve','www\\.shiseido\\.com':'shiseido','www\\.clarinsusa\\.com':'clarinsusa','store\\.starbucks\\.com':'starbucks','www\\.ray-ban\\.com':'ray-ban','us\\.puma\\.com':'puma','www\\.nautica\\.com':'nautica','www\\.cremedelamer\\.com':'cremedelamer','www\\.kipling-usa\\.com':'kipling-usa','www\\.jurlique\\.com':'jurlique','www\\.hushpuppies\\.com':'hushpuppies','www\\.origins\\.com':'origins','www\\.follifollie\\.us\\.com':'follifollie','usa\\.loccitane\\.com':'loccitane','\\.hpstore\\.cn':'hpstore','\\.01home\\.com':'01home','www\\.healthpost\\.co\\.nz':'healthpost','\\.imengxiang\\.cn':'imengxiang','www\\.hysj\\.com':'hysj','\\.saohuo7\\.com':'saohuo7','\\.repai\\.com':'repai','www\\.mayi\\.com':'mayi','\\.yinpiao\\.com':'yinpiao','\\.ihome-ins.com':'ihome-ins','\\.incake\\.net':'incake','\\.kuwo\\.cn':'kuwo','www\\.ywart\\.com':'ywart','www\\.cct\\.cn':'cct','www\\.ansgo\\.com':'ansgo','www\\.pilibaba\\.com':'pilibaba','www\\.xiaoniu88\\.com':'xiaoniu88','www\\.ahava\\.com':'ahava','\\.5-fifth\\.com':'5-fifth','\\.thewatchhut\\.co\\.uk':'thewatchhut','\\.babyhaven\\.com':'babyhaven','cn\\.cosme-de\\.com':'cosme-de','cn\\.getthelabel\\.com':'getthelabel','cn\\.matsuya\\.com':'matsuya','www\\.timberland\\.com':'timberland','\\.topman\\.com':'topman','www\\.homeaway\\.com':'homeaway','www\\.beautyexpert\\.com':'beautyexpert','\\.haimi\\.com':'haimi','www\\.mankind\\.co\\.uk':'mankind','www\\.thehut\\.com':'thehut','www\\.topshop\\.com':'topshop','mamaladen\\.com':'mamaladen','www\\.traveler-store\\.com':'traveler-store','www\\.travelzoo\\.com':'travelzoo','www\\.umishoes\\.com':'umishoes','store\\.ferrari\\.com':'ferrari','willerexpress\\.com':'willerexpress','www\\.unineed\\.com':'unineed','www\\.acnestudios\\.com':'acnestudios','www\\.aeropostale\\.com':'aeropostale','www\\.agoda\\.com':'agoda','www\\.albamoda\\.de':'albamoda','www\\.allbeauty\\.com':'allbeauty','www\\.allsaints\\.com':'allsaints','www\\.allsole\\.com':'allsole','www\\.urbanoutfitters\\.com':'urbanoutfitters','www\\.vitabiotics\\.com':'vitabiotics','www\\.bellemaison\\.jp':'bellemaison','www\\.benefitcosmetics\\.com':'benefitcosmetics','www\\.bhcosmetics\\.com':'bhcosmetics','www\\.bjmylikes\\.com':'bjmylikes','www\\.vitaminbay\\.com':'vitaminbay','www\\.waitrose\\.com':'waitrose','www\\.wolfordshop\\.co\\.uk':'wolfordshop','www\\.boohoo\\.com':'boohoo','www\\.boots\\.com':'boots','www\\.britishcornershop\\.co\\.uk':'britishcornershop','www\\.yirendai\\.com':'yirendai','www\\.ys7\\.com':'ys7','www\\.coggles\\.com':'coggles','www\\.corsetdeal\\.com':'corsetdeal','^cottonon\\.com':'cottonon','www\\.crocs\\.co\\.uk':'crocs','www\\.cruisefashion\\.com':'cruisefashion','www\\.dell\\.com':'dell','www\\.dermstore\\.com':'dermstore','www\\.disneystore\\.com':'disneystore','www\\.dorothyperkins\\.com':'dorothyperkins','www\\.doudoukang\\.com':'doudoukang','www\\.dujiake\\.com':'dujiake','www\\.dunelondon\\.com':'dunelondon','www\\.eastbay\\.com':'eastbay','www\\.eastdane\\.com':'eastdane','www\\.zaful\\.com':'zaful','www\\.zavvi\\.com':'zavvi','cn\\.feinkeit\\.de':'feinkeit','www\\.eibmarkt\\.com':'eibmarkt','www\\.belluna\\.cn':'belluna','www\\.emirates\\.com':'emirates','www\\.ems\\.com':'ems','www\\.eterna\\.de':'eterna','www\\.eurail\\.com':'eurail','www\\.exantediet\\.com':'exantediet','www\\.expedia\\.co\\.uk':'expedia','www\\.falke\\.com':'falke','www\\.famousfootwear\\.com':'famousfootwear','www\\.foreo\\.com':'foreo','www\\.wangxinlicai\\.com':'wangxinlicai','www\\.foreverunique\\.co\\.uk':'foreverunique','www\\.au\\.forzieri\\.com':'forzieri','www\\.freecountry\\.com':'freecountry','www\\.frenchconnection\\.com':'frenchconnection','www\\.gift-land\\.com':'gift-land','cn\\.growgorgeous\\.com':'growgorgeous','www\\.hotel\\.info':'hotel','www\\.houseoffraser\\.co\\.uk':'houseoffraser','www\\.huizuche\\.com':'huizuche','www\\.iwantoneofthose\\.com':'iwantoneofthose','www\\.jjglobal\\.com':'jjglobal','www\\.juicycouture\\.com':'juicycouture','www\\.kenko\\.com':'kenko','www\\.kikocosmetics\\.com':'kikocosmetics','www\\.lancerskincare\\.co\\.uk':'lancerskincare','shop\\.lego\\.com':'lego','www\\.lordandtaylor\\.com':'lordandtaylor','www\\.maizhi\\.com':'maizhi','www\\.matchesfashion\\.com':'matchesfashion','www\\.matsukiyo\\.co\\.jp':'matsukiyo','www\\.microsoft\\.com':'microsoft','cn\\.mioskincare\\.com':'mioskincare','www\\.missselfridge\\.com':'missselfridge','www\\.mountaingear\\.com':'mountaingear','www\\.mybag\\.com':'mybag','www\\.myprotein\\.com':'myprotein-com','www\\.myvitamins\\.com':'myvitamins','www\\.net-a-porter\\.com':'net-a-porter','www\\.newbalance\\.co\\.uk':'newbalance-uk','www\\.newlook\\.com':'newlook','www\\.nike\\.com\\.br':'nike-br','www\\.nike\\.com\\.hk':'nike-hk','www\\.nyandcompany\\.com':'nyandcompany','www\\.oasis-stores\\.com':'oasis-stores','www\\.orbitz\\.com':'orbitz','www\\.orchira\\.co\\.uk':'orchira','www\\.origins\\.co\\.uk':'origins-uk','www\\.petsmart\\.com':'petsmart','www\\.probikekit\\.co\\.uk':'probikekit','www\\.qatarairways\\.com':'qatarairways','www\\.radley\\.co\\.uk':'radley','www\\.ralphlauren\\.cn':'ralphlauren','www\\.rebeccaminkoff\\.com':'rebeccaminkoff','www\\.rentalcars\\.com':'rentalcars','www\\.ricaud\\.com':'ricaud','www\\.rockport\\.com':'rockport','www\\.ruelala\\.com':'ruelala','www\\.saksoff5th\\.com':'saksoff5th','www\\.sc24\\.com':'sc24','www\\.shoes\\.com':'shoes','www\\.shopspring\\.com':'shopspring','www\\.simplysupplements\\.co\\.uk':'simplysupplements','www\\.ssense\\.com':'ssense','www\\.stevemadden\\.com':'stevemadden','www\\.taodo\\.com':'taodo','www\\.michaelkors\\.cn':'michaelkors','www\\.ttcj\\.tv':'ttcj','www\\.uf-club\\.com':'uf-club','www\\.zhaidou\\.com':'zhaidou','www\\.163yun\\.com':'163yun','cn\\.apo\\.com':'apo','loan-m\\.jimu\\.com':'jimu','www\\.hao24\\.com':'hao24','m\\.seagoor\\.com':'seagoor','www\\.wannar\\.com':'wannar','www\\.caihang\\.com':'caihang','www\\.csmall\\.com':'csmall','www\\.kuajing\\.com':'kuajing','www\\.millenniumhotels\\.com':'millenniumhotels','www\\.reebonz\\.cn':'reebonz','cn\\.wemakeprice\\.com':'wemakeprice','www\\.wzhouhui\\.com':'wzhouhui','www\\.huijiayou\\.cn':'huijiayou','www\\.melimelo\\.cn':'melimelo','www\\.91xcm\\.com':'91xcm','zh\\.ashford\\.com':'ashford-zh','cjonmart\\.cn':'cjonmart','www\\.cnyto\\.me':'cnyto','www\\.granddfs\\.com':'granddfs','www\\.officedepot\\.com':'officedepot','www\\.tianhong\\.cn':'tianhong','www\\.yilingshop\\.com':'yilingshop','www\\.klook\\.com':'klook','m\\.ddky\\.com':'ddky','www\\.chinaacc\\.com':'chinaacc','www\\.bmai\\.com':'bmai','m\\.inke\\.cn':'inke','www\\.junrongdai\\.com':'junrongdai','www\\.napai\\.cn':'napai','mall\\.gree\\.com':'gree','sales\\.allianz\\.com':'allianz','v\\.youmi\\.cn':'youmi','www\\.21cake\\.com':'21cake','www\\.56ren\\.com':'56ren','www\\.anantara\\.com':'anantara','www\\.chesudi\\.com':'chesudi','www\\.ehmall\\.com':'ehmall','www\\.farfetch\\.cn':'farfetch','www\\.freepeople\\.com':'freepeople','www\\.gaosouyi\\.com':'gaosouyi','www\\.charm-color\\.':'charm-color','www\\.felissimo\\.co\\.jp':'felissimo','www\\.surfstitch\\.com':'surfstitch','www\\.lornajane\\.sg':'lornajane','www\\.reiss\\.com':'reiss','www\\.gzl\\.com\\.cn':'gzl','www\\.9drug\\.com':'9drug','www\\.yungoubs\\.com':'yungoubs','www\\.yencity\\.com':'yencity','class\\.hujiang\\.com':'hujiang','iphx\\.meituan\\.com':'meituan-iphx','www\\.svgouwu\\.com':'svgouwu','linktech\\.hqwx\\.com':'hqwx','\\.hysjg\\.com':'hysjg','\\.maimaicn\\.com':'maimaicn','\\.tyfo\\.com':'tyfo','www\\.tthigo\\.com':'tthigo','www\\.mayn\\.com\\.cn':'mayn','\\.harrods\\.com':'harrods','\\.theundone\\.com':'theundone','www\\.imomoko\\.com':'imomoko','www\\.perfumesclub\\.cn':'perfumesclub','www\\.godaddy\\.com':'godaddy','www\\.mytheresa\\.com':'mytheresa','www\\.backcountry\\.com':'backcountry','www\\.marriott\\.com':'marriott','www\\.mrporter\\.com':'mrporter','www\\.priceline\\.com':'priceline','english\\.ctrip\\.com':'ctrip-en','cn\\.monnierfreres\\.com':'monnierfreres','www\\.myprotein\\.cn':'myprotein','www\\.toryburch\\.com':'toryburch-com','www\\.italist\\.com':'italist','www\\.askderm\\.com':'askderm','www\\.tatcha\\.com':'tatcha','www\\.hollandandbarrett\\.com':'hollandandbarrett','www\\.ninewest\\.com':'ninewest','www\\.bergdorfgoodman\\.com':'bergdorfgoodman','www\\.ihg\\.com':'ihg','www\\.footlocker\\.com':'footlocker','www\\.rodial\\.co':'rodial','www\\.feelunique\\.com':'feelunique','www\\.jackwills\\.com':'jackwills','www\\.kidsroom\\.de':'kidsroom','cn\\.dod\\.nl':'dod','www\\.karenmillen\\.com':'karenmillen','cn\\.illicopharma\\.com':'illicopharma','www\\.tedbaker\\.com':'tedbaker','www\\.b-glowing\\.com':'b-glowing','www\\.adiexpress\\.com':'adiexpress','www\\.fragrancex\\.com':'fragrancex','www\\.peterthomasroth\\.com':'peterthomasroth','www\\.gap\\.com':'gap-com','www\\.cecile\\.co':'cecile','www\\.barneys\\.com':'barneys','www\\.debuycn\\.com':'debuycn','www\\.smashbox\\.com':'smashbox','www\\.lastcall\\.com':'lastcall','www\\.superdrug\\.com':'superdrug','www\\.libertylondon\\.com':'libertylondon','www\\.chemistdirect\\.co\\.uk':'chemistdirect-uk','www\\.skincarerx\\.com':'skincarerx','www\\.haba\\.co':'haba','shop\\.panasonic\\.com':'panasonic','www\\.beautifiedyou\\.com':'beautifiedyou','store\\.nba\\.com':'nba','www\\.elfcosmetics\\.com':'elfcosmetics','www\\.uniqlo\\.com':'uniqlo','www\\.uniqlo\\.cn':'uniqlo','www\\.colehaan\\.com':'colehaan','www\\.carters\\.com':'carters','www\\.sportsdirect\\.com':'sportsdirect','www\\.adorama\\.com':'adorama','www\\.ae\\.com':'ae','us\\.amorepacific\\.com':'amorepacific','www\\.anntaylor\\.com':'anntaylor','clearance\\.asics\\.com':'asics','www\\.asos\\.com':'asos','www\\.aveneusa\\.com':'aveneusa','www\\.barneyswarehouse\\.com':'barneyswarehouse','bensherman\\.com':'bensherman','www\\.blissworld\\.com':'blissworld','www\\.blueandcream\\.com':'blueandcream','www\\.bonds\\.com':'bonds','www\\.cookieskids\\.com':'cookieskids','www\\.cosmeland\\.jp':'cosmeland','www\\.crabtree-evelyn\\.com':'crabtree-evelyn','www\\.crocs\\.ca':'crocs-ca','www\\.darphin\\.com':'darphin','www\\.davidscookies\\.com':'davidscookies','www\\.dickiesstore\\.co':'dickiesstore','us\\.dockers\\.com':'dockers','www\\.easyspirit\\.com':'easyspirit','www\\.ebags\\.com':'ebags','www\\.echemist\\.co':'echemist','www\\.eddiebauer\\.com':'eddiebauer','www\\.elemis\\.com':'elemis','www\\.elizabetharden\\.co':'elizabetharden','www\\.ena\\.travel':'ena','www\\.evitamins\\.com':'evitamins','www\\.fashionesta\\.com':'fashionesta','www\\.figleaves\\.com':'figleaves','www\\.folica\\.com':'folica','www\\.fragrancenet\\.com':'fragrancenet','www\\.glamglow\\.co\\.uk':'glamglow-uk','www\\.godivachocolates\\.co':'godivachocolates','www\\.goldsmiths\\.co':'goldsmiths','www\\.growgorgeous\\.co\\.uk':'growgorgeous-uk','www\\.happysocks\\.com':'happysocks','www\\.harveynichols\\.com':'harveynichols','www\\.hatley\\.com':'hatley','www\\.herbspro\\.com':'herbspro','www\\.houseofholland\\.co':'houseofholland','www\\.jayjays\\.com':'jayjays','www\\.jetairways\\.com':'jetairways','www\\.journeys\\.com':'journeys','www\\.karmaloop\\.com':'karmaloop','www\\.keds\\.com':'keds','www\\.labseries\\.co':'labseries','leejeans\\.com':'leejeans','livingsocial\\.com':'livingsocial','www\\.wkzuche\\.com':'wkzuche','www\\.uzise\\.com':'uzise','m\\.laiyifen\\.com':'laiyifen','www\\.avast\\.com':'avast','usa\\.kaspersky\\.com':'kaspersky','www\\.steepandcheap\\.com':'steepandcheap','www\\.glamglow\\.com':'glamglow-com','www\\.cledepeaubeaute\\.com':'cledepeaubeaute','www\\.kicksusa\\.com':'kicksusa','www\\.lacoste\\.com':'lacoste','.*\\.bilibili\\.com':'bilibili','www\\.perriconemd\\.com':'perriconemd','www\\.gemvara\\.com':'gemvara','www\\.bluenile\\.com':'bluenile','www\\.modaoperandi\\.com':'modaoperandi','www\\.parrot\\.com':'parrot','cn\\.fashionbunker\\.com':'fashionbunker','www\\.final-score\\.com':'final-score','www\\.dkny\\.com':'dkny','shop\\.mango\\.com':'mango','www\\.charlottetilbury\\.com':'charlottetilbury','www\\.vmware\\.com':'vmware','www\\.avira\\.com':'avira','www\\.jewelry\\.com':'jewelry','www\\.eset\\.com':'eset','buy\\.norton\\.com':'norton','www\\.jimmyjazz\\.com':'jimmyjazz','www\\.roxy\\.com':'roxy','www\\.nastygal\\.com':'nastygal','www\\.marcjacobs\\.com':'marcjacobs','(?:^|www\\.)beastsmode\\.cn':'beastsmode','www\\.theapollobox\\.com':'theapollobox','www\\.yamibuy\\.com':'yamibuy','www\\.hbx\\.com':'hbx','www\\.horchow\\.com':'horchow','www\\.bluefly\\.com':'bluefly','www\\.swansonvitamins\\.com':'swansonvitamins','www\\.jcrew\\.com':'jcrew','www\\.bebe\\.com':'bebe','www\\.mucfc\\.com':'mucfc','www\\.only\\.cn':'only','www\\.veromoda\\.com':'veromoda','www\\.jackjones\\.com':'jackjones','www\\.selected\\.com':'selected','www\\.hanes\\.com':'hanes','www\\.algenist\\.com':'algenist','(?:^|www\\.)factory\\.jcrew\\.com':'jcrew-factory','www\\.lolewomen\\.com':'lolewomen','www\\.underarmour\\.com':'underarmour-com','www\\.theory\\.com':'theory','www\\.intimina\\.com':'intimina','www\\.nydj\\.com':'nydj','www\\.jny\\.com':'jny','bonobos\\.com':'bonobos','www\\.alphaindustries\\.com':'alphaindustries','venuekings\\.com':'venuekings','(?:^|www\\.)goop\\.com':'goop','www\\.silkyscents\\.com':'silkyscents','www\\.shopsky\\.com':'shopsky','www\\.vitaminworld\\.com':'vitaminworld','www\\.bumbleandbumble\\.com':'bumbleandbumble','mattandnat\\.com':'mattandnat','www\\.ladyfootlocker\\.com':'ladyfootlocker','www\\.aliceandolivia\\.com':'aliceandolivia','www\\.lancome-usa\\.com':'lancome-usa','www\\.sk-ii\\.com':'sk-ii','www\\.beautifulhalo\\.com':'beautifulhalo','www\\.footaction\\.com':'footaction','www\\.vitaminshoppe\\.com':'vitaminshoppe','www\\.reebok\\.com':'reebok','(?:^|www\\.)jet\\.com':'jet','www\\.burtsbeesbaby\\.com':'burtsbeesbaby','www\\.yoins\\.com':'yoins','www\\.skechers\\.com':'skechers','www\\.toofaced\\.com':'toofaced','elevtd\\.shoebuy\\.com':'shoebuy-elevtd','www\\.katvondbeauty\\.com':'katvondbeauty','www\\.mountainsteals\\.com':'mountainsteals','www\\.tours4fun\\.com':'tours4fun','www\\.jewelryaffairs\\.com':'jewelryaffairs','www\\.perfume\\.com':'perfume','www\\.tgw\\.com':'tgw','www\\.prescriptives\\.com':'prescriptives','www\\.perryellis\\.com':'perryellis','www\\.originalpenguin\\.com':'originalpenguin','www\\.naturalizer\\.com':'naturalizer','www\\.luisaviaroma\\.com':'luisaviaroma','www\\.giorgioarmanibeauty-usa\\.com':'giorgioarmanibeauty-usa','us\\.caudalie\\.com':'caudalie','www\\.murad\\.com':'murad','www\\.betseyjohnson\\.com':'betseyjohnson','www\\.thebodyshop\\.com':'thebodyshop','hampdenclothing\\.com':'hampdenclothing','www\\.anthropologie\\.com':'anthropologie','www\\.armani\\.com':'armani','us\\.shop\\.ecco\\.com':'ecco-us','www\\.loft\\.com':'loft','www\\.shuuemura-usa\\.com':'shuuemura-usa','www\\.therealreal\\.com':'therealreal','www\\.c21stores\\.com':'c21stores','www\\.ctshirts\\.com':'ctshirts','www\\.superjeweler\\.com':'superjeweler','us\\.jimmychoo\\.com':'jimmychoo','www\\.fwrd\\.com':'fwrd','www\\.aveda\\.com':'aveda','na-kd\\.com':'na-kd','www\\.nancymeyer\\.com':'nancymeyer','www\\.baublebar\\.com':'baublebar','us\\.elevenparis\\.com':'elevenparis','www\\.lindtusa\\.com':'lindtusa','www\\.narscosmetics\\.com':'narscosmetics','www\\.jackrabbit\\.com':'jackrabbit','www\\.macmall\\.com':'macmall','www\\.champssports\\.com':'champssports','store\\.dji\\.com':'dji','www\\.bodenusa\\.com':'bodenusa','www\\.crazy8\\.com':'crazy8','www\\.moltonbrown\\.com':'moltonbrown','needsupply\\.com':'needsupply','www\\.solesociety\\.com':'solesociety','www\\.childrensplace\\.com':'childrensplace','www\\.sigmabeauty\\.com':'sigmabeauty','www\\.adidas\\.com':'adidas-us','www\\.veronicabeard\\.com':'veronicabeard','www\\.cross\\.com':'cross','www\\.monsterproducts\\.com':'monsterproducts','www\\.theoutnet\\.com':'theoutnet','www\\.clarisonic\\.com':'clarisonic','www\\.dermadoctor\\.com':'dermadoctor','www\\.solsticesunglasses\\.com':'solsticesunglasses','www\\.pixiemarket\\.com':'pixiemarket','vip\\.yunifang\\.com':'yunifang','api\\.globalwinner\\.cn':'globalwinner','www\\.biotherm-usa\\.com':'biotherm-usa','www\\.jomalone\\.com':'jomalone','www\\.yvesrocherusa\\.com':'yvesrocherusa','www\\.mountainhardwear\\.com':'mountainhardwear','www\\.boscovs\\.com':'boscovs','www\\.putmeinthestory\\.com':'putmeinthestory','www\\.petit-bateau\\.us':'petit-bateau','www\\.striderite\\.com':'striderite','www\\.bcbg\\.com':'bcbg','www\\.marissacollections\\.com':'marissacollections','www\\.chineselaundry\\.com':'chineselaundry','www\\.ylang23\\.com':'ylang23','www\\.thewalkingcompany\\.com':'thewalkingcompany','www\\.perfumania\\.com':'perfumania','www\\.philosophy\\.com':'philosophy','www\\.underarmour\\.cn':'underarmour','www\\.bestgymequipment\\.co':'bestgymequipment','thesportsedit\\.com':'thesportsedit','www\\.treds\\.co':'treds','www\\.selfridges\\.com':'selfridges','www\\.toryburch\\.co\\.uk':'toryburch-uk','zh\\.virginatlantic\\.com':'virginatlantic','www.\\chowsangsang\\.com':'chowsangsang','www.speedo.com.cn':'speedo', // '\\.steampowered\\.com': 'steampowered', '\\.pinduoduo\\.com':'pinduoduo','\\.yangkeduo\\.com':'yangkeduo','\\.rakuten\\.co\\.jp':'rakuten','\\.computeruniverse\\.net':'computeruniverse','\\.prodirectsoccer\\.com':'prodirectsoccer','\\.prodirectrunning\\.com':'prodirectrunning','\\.dbox\\.co\\.nz':'dbox','\\.motorola\\.com\\.cn':'motorola','\\.haiershui\\.com':'haiershui','\\.wandougongzhu\\.cn':'wandougongzhu','www\\.xiaomiyoupin\\.com':'youpin-mi','bananarepublic\\.gap\\.com':'bananarepublic-gap','\\.decathlon\\.com\\.cn':'decathlon','\\.oneplus\\.com':'oneplus','\\.heytap\\.com':'heytap','\\.momoshop\\.com\\.tw':'momoshop','\\.rakuten\\.com\\.tw':'rakuten','\\.books\\.com\\.tw':'books','\\.pchome\\.com\\.tw':'pchometw','\\.tw\\.buy\\.yahoo\\.com':'twbuyyahoo','\\.rakuten\\.com\\.tw':'rakuten'};var productPattern={'dest/test\\.html':'test','\\.books\\.com\\.tw/products/':'books','24h\\.pchome\\.com\\.tw/prod/.*':'pchometw','tw\\.buy\\.yahoo\\.com/gdsale/.*\\.html':'twbuyyahoo','tw\\.bid\\.yahoo\\.com/item/':'twbuyyahoo','tw\\.buy\\.yahoo\\.com/gdsale/gdsale\\.asp':'twbuyyahoo','https://www\\.rakuten\\.com\\.tw/shop/.*/product/.*':'rakuten','^(?:http|https)://www\\.epicgames\\.com/store\\/[\\w\\W]+':'epic','^(?:http|https)://www\\.stbchina\\.cn/item.html#\\?itemId=\\d+':'heytap','^(?:http|https)://www\\.heytap\\.com/products\\/\\d+\\.html':'heytap','^(?:http|https)://shopee\\.tw/.*\\.\\d+\\.\\d+':'shopee','^(?:http|https)://shopee\\.tw/product\\/\\d+\\/\\d+':'shopee','https://www\\.momoshop\\.com\\.tw/goods/GoodsDetail.jsp':'momoshop','^(?:http|https)://traveldetail\\.fliggy\\.com/item.htm':'fliggy','^(?:http|https)://www\\.wzhouhui\\.com/product[\\d\\-\\/]+.html':'wzhouhui','^(?:http|https)://cn\\.wemakeprice\\.com/[\\d\\-\\/]+':'wemakeprice','^(?:http|https)://cn\\.dod\\.nl/product/\\d+\\.html':'dod','^(?:http|https)://www\\.decathlon\\.com\\.cn/zh/p/':'decathlon','^(?:http|https)://cn\\.apo\\.com/product/detail/\\d+':'apo','^(?:http|https)://www\\.ansgo\\.com/product-\\d+\\.html':'ansgo','^(?:http|https)://www\\.perfumesclub\\.cn/product/\\d+\\.html':'perfumesclub','^(?:http|https)://www\\.net-a-porter\\.com/cn/[a-z]{2}/product/[\\w\\W]+':'net-a-porter','^(?:http|https)://www\\.kidsroom\\.cn/zh/[\\w\\W]+':'kidsroom','^(?:http|https)://cn\\.getthelabel\\.com/product/\\d+\\.html':'getthelabel','^(?:http|https)://www\\.farfetch\\.cn/cn/shopping/[\\w\\W]+\\.aspx':'farfetch','^(?:http|https)://item\\.kongfz\\.com/book/\\d+\\.html':'kongfz','^(?:http|https)://book\\.kongfz\\.com/\\d+/\\d+/':'kongfz','^(?:http|https)://cn\\.iherb\\.com/pr/[a-z0-9A-Z-]+/\\d+':'iherb','^(?:http|https)://www\\.hqhair\\.com/[a-z0-9-]+/\\d+\\.html':'hqhair','^(?:http|https)://www\\.wl\\.cn/\\d+':'wl','^(?:http|https)://www\\.columbia\\.com/[a-z0-9A-Z-]+\\.html\\?cgid=':'columbia','^(?:http|https)://www\\.columbiasports\\.cn/product-\\d+\\.html':'columbiasports','^(?:http|https)://www\\.ehaoyao\\.com/product-\\d+\\.html':'ehaoyao','^(?:http|https)://www\\.bhphotovideo\\.com/c/product/\\d+':'bhphotovideo','^(?:http|https)://www\\.shoes\\.com/[a-z0-9-]+/\\d+/\\d+':'shoes','^(?:http|https)://www\\.jomashop\\.com/[a-z0-9-]+\\.html':'jomashop','^(?:http|https)://cn\\.pharmacydirect\\.co\\.nz/\\d+\\.html':'pharmacydirect','^(?:http|https)://cn\\.pharmacydirect\\.co\\.nz/product/\\d+\\.html':'pharmacydirect','^(?:http|https)://www\\.holland-at-home\\.com/cn/(\\w+/){1,5}\\w+\\.html':'holland-at-home','^(?:http|https)://cn\\.holland-at-home\\.com/product/\\d+.html':'holland-at-home','^(?:http|https)://www\\.rei\\.com/product/\\d+':'rei','^(?:http|https)://item\\.aomygod\\.com/\\d+\\.html':'aomygod','^(?:http|https)://www\\.huatuoyf\\.com/product/\\d+\\.htm':'huatuoyf','^(?:http|https)://www\\.forever21\\.com/uk/shop/catalog/product':'forever21','^(?:http|https)://zh\\.ashford\\.com/([a-z0-9-]+/){1,6}[a-zA-Z0-9]+\\.pid':'ashford-zh','^(?:http|https)://www\\.bestbuy\\.com/[a-z]+/[a-z0-9-]+/\\d+\\.p\\?skuId=\\d+':'bestbuy','^(?:http|https)://www\\.target\\.com/p/[a-z0-0-]+':'target','^(?:http|https)://cn\\.chemistdirect\\.com\\.au/\\d+\\.html':'chemistdirect','^(?:http|https)://cn\\.chemistdirect\\.com\\.au/product/\\d+\\.html':'chemistdirect','^(?:http|https)://www\\.ba\\.de/product/\\d+\\.html':'ba','^(?:http|https)://m\\.wandougongzhu\\.cn/product/\\d+\\.html':'wandougongzhu','^(?:http|https)://cn\\.feelunique\\.com/\\d+\\.html':'feelunique','^(?:http|https)://cn\\.feelunique\\.com/product/\\d+\\.html':'feelunique','^(?:http|https)://shop\\.dixintong\\.com/products-[0-9-]+\\.html':'dixintong','^(?:http|https)://cn\\.pharmacyonline\\.com\\.au/\\d+\\.html':'pharmacyonline','^(?:http|https)://cn\\.pharmacyonline\\.com\\.au/product/\\d+\\.html':'pharmacyonline','^(?:http|https)://cn\\.discount-apotheke\\.de/\\d+\\.html':'discount-apotheke','^(?:http|https)://cn\\.discount-apotheke\\.de/product/\\d+\\.html':'discount-apotheke','^(?:http|https)://www\\.carters\\.com/[a-z0-9-]+/[A-Z]_\\d+\\.html\\?':'carters','^(?:http|https)://www\\.katespade\\.co\\.uk/[a-z-]+/([a-z0-9-]+/){1,3}[A-Za-z0-9]+\\.html':'katespade','^(?:http|https)://www\\.katespade\\.cn/[\\W\\w]+':'katespade','^(?:http|https)://www\\.beautybay\\.com/p/\\w+':'beautybay','^(?:http|https)://cn\\.pharmacy4less\\.com\\.au/\\d+\\.html':'pharmacy4less','^(?:http|https)://www\\.newegg\\.com/Product/Product\\.aspx':'newegg-us','^(?:http|https)://www\\.newbalance\\.com/pd/\\w+':'newbalance','^(?:http|https)://www\\.bodybuilding\\.com/store/[a-z0-9-]+/[a-z0-9-]+\\.html\\?skuId=':'bodybuilding','^(?:http|https)://www\\.ssnewyork\\.com/good/detail/\\d+':'ssnewyork','^(?:http|https)://www\\.wine9\\.com/\\d+\\.html':'wine9','^(?:http|https)://www\\.kohls\\.com/product/prd-\\d+':'kohls','^(?:http|https)://www\\.gnc\\.com/[a-z0-9-]+/\\d+\\.html\\?cgid=':'gnc','^(?:http|https)://www\\.qw\\.cc/goods-\\d+\\.html':'qw','^(?:http|https)://www\\.haiershui\\.com/product/\\d+\\.html':'haiershui','^(?:http|https)://www\\.ugg\\.com/[a-z0-9-]+/[a-z0-9-]+/\\d+\\.html':'ugg','^(?:http|https)://www\\.ugg\\.cn/product-\\d+\\.html':'ugg','^(?:http|https)://www\\.yoger\\.com\\.cn/product/\\d+\\.html':'yoger','^(?:http|https)://www\\.flyco\\.com/goods-[a-zA-Z0-9-_]+\\.html':'flyco','^(?:http|https)://www\\.yfdyf\\.com/product-\\d+\\.html':'yfdyf','^(?:http|https)://www\\.joesnewbalanceoutlet\\.com/product/':'joesnewbalanceoutlet','^(?:http|https)://www\\.jomoo\\.com\\.cn/item/[a-z0-9-]+\\.htm':'jomooshop','^(?:http|https)://www\\.dapu\\.com/product-\\d+\\.html':'dapu','^(?:http|https)://china\\.coach\\.com/product/\\d+':'coach','^(?:http|https)://china\\.coach\\.com/[a-z\\-]+/\\d+_\\w+':'coach','^(?:http|https)://www\\.shanmai\\.cn/product-\\d+\\.html':'shanmai','^(?:http|https)://www\\.fengbuy\\.com/[a-z0-9-]+\\.html':'fengbuy','^(?:http|https)://www\\.t10\\.com/\\w+-\\d+/':'t10','^(?:http|https)://cn\\.amcal\\.com\\.au/\\d+\\.html':'amcal','^(?:http|https)://cn\\.amcal\\.com\\.au/product/\\d+\\.html':'amcal','^(?:http|https)://cn\\.babyhaven\\.com/product/\\d+\\.html':'babyhaven','^(?:http|https)://www\\.51taouk\\.com/[A-Z0-9]+$':'51taouk',"^(?:http|https)://(?:www|shop)\\.usashopcn\\.com/goods\\.php\\?id=\\d+":"usashopcn","^(?:http|https)://www\\.petit-bateau\\.us/[a-z0-9-]+/d/[0-9A-Z]+\\?CategoryId":"petit-bateau","^(?:http|https)://www\\.tlcpharmacy\\.cn\\.com/\\d+\\.html":"bienmanger","^(?:http|https)://www\\.km1818\\.com/products/\\d+\\.html":"km1818","^(?:http|https)://www\\.bienmanger\\.cn/\\d+\\.html":"bienmanger","^(?:http|https)://www\\.syshop\\.com/goods/gooddetail/\\d+\\.html":"syshop","^(?:http|https)://www\\.qipaimall\\.com/goods/\\?goods_sn=":"qipaimall","^(?:http|https)://mall\\.goumin\\.com/mall/view/\\d+":"goumin","^(?:http|https)://www\\.taohwu\\.com/goods-\\d+\\.html":"taohwu","^(?:http|https)://www\\.xmeise\\.com/goods-\\d+\\.html":"xmeise","^(?:http|https)://www\\.septwolves\\.cn/ishop/web/theme/default/Ishop_pc/dist/#/goods_details\\?goods_id=\\d+":"septwolves","^(?:http|https)://www\\.kiehls\\.com/[a-z]+/[a-z0-9-]+/[a-z0-9-]+/\\d+\\.html":"kiehls","^(?:http|https)://www\\.puzeyf\\.com/detail/\\d+\\.html":"puzeyf","^(?:http|https)://www\\.aizhigu\\.com\\.cn/product\\.\\d+\\.html":"aizhigu","^(?:http|https)://www\\.hecha\\.cn/sgoods-\\d+\\.html":"hecha","^(?:http|https)://www\\.zgshoes\\.com/goods-\\d+\\.html":"zgshoes","^(?:http|https)://cn\\.takeya\\.co\\.jp/\\d+\\.html/":"takeya","^(?:http|https)://cn\\.takeya\\.co\\.jp/product/\\d+\\.html":"takeya","^(?:http|https)://www\\.shoprobam\\.com/Home/Products/detail/gid/\\d+":"shoprobam","^(?:http|https)://www\\.opplestore\\.com/item\\.html\\?itemId=\\d+":"opplestore","^(?:http|https)://www\\.maichawang\\.com/goods-\\d+\\.html":"maichawang","^(?:http|https)://www\\.bose\\.com/en_us/products/":"bose","^(?:http|https)://dewaren\\.com/cn/[a-zA-Z0-9]+/[a-zA-Z0-9-]+/\\w+/[0-9]+\\.html":"dewaren","^(?:http|https)://dewaren\\.com/cn/[a-zA-Z0-9-]+/\\w+[0-9\\-]+\\.html":"dewaren","^(?:http|https)://www\\.winona\\.cn/product/[0-9]+\\.html":"winona","^(?:http|https)://www\\.motorola\\.com\\.cn/store/[0-9_]+\\.html":"motorola","^(?:http|https)://www\\.motorola\\.com\\.cn/[a-z0-9]+/[a-z0-9]+/index\\.html":"motorola","^(?:http|https)://www\\.danielwellington\\.cn/[a-z0-9-]+[^\\/]$":"danielwellington-cn","^(?:http|https)://www\\.danielwellington\\.com/us/[a-z0-9-]+[^\\/]$":"danielwellington","^(?:http|https)://www\\.danielwellington\\.com/global/[a-z0-9-]+[^\\/]$":"danielwellington",'^(?:http|https)://youhui\\.pinduoduo\\.com/goods/goods-detail\\?goodsId=\\d+':'pinduoduo', // "^(?:http|https)://www.iherb.com/pr/[a-z0-9A-Z-]+/\\d+": "iherb", "^(?:http|https)://(?:mobile\\.|)yangkeduo.com/goods(?:2|1)?\\.html\\?":"yangkeduo","^(?:http|https)://www.finishline.com/store/product/":"finishline","^(?:http|https)://www.skinstore.com/[a-z0-9A-Z-]+/\\d+\\.html":"skinstore","^(?:http|https)://item.wjike.com/\\d+\\.html":"wjike","^(?:http|https)://youpin.mi.com/detail\\?gid=\\d+":"youpin-mi","^(?:http|https)://www\\.xiaomiyoupin\\.com/detail\\?gid=\\d+":"youpin-mi","^(?:http|https)://store\\.steampowered\\.com/app/\\d+":"steampowered","^(?:http|https)://store\\.steampowered\\.com/sub/\\d+":"steampowered","^(?:http|https)://www.forever21.com/UK/Product/Product\\.aspx":"forever21","^(?:http|https)://www.jialich.cn/goods\\.php\\?id=\\d+":"jialich","^(?:http|https)://www.tthigo.com/product/\\w+":"tthigo","^(?:http|https)://www\\.modernavenue\\.com/product-\\d+\\.html":"modernavenue","^(?:http|https)://www\\.tcl\\.com/\\w+/\\w+":"tcl","^(?:http|https)://www\\.bonjourhk\\.com/\\d+":"bonjourhk","^(?:http|https)://m\\.bonjourhk\\.com/[a-z]+/\\d+":"bonjourhk","(?:http:|https:)//www\\.trt\\.hk/page/products/\\d+\\.html":"trt","^(?:http|https)://www\\.forestfood\\.com/goods\\.php\\?id=\\d+":"forestfood","(?:http:|https:)//www\\.converse\\.com\\.cn/[a-z-_]+/\\d+/item":"converse","(?:http:|https:)//www\\.converse\\.com\\.cn/[a-z0-9-_]+/\\w+/item\\.htm":"converse","^(?:http|https)://www\\.fila\\.cn/item-index-[a-z0-9]+\\.html":"fila","^(?:http|https)://www\\.fila\\.cn/fila-[A-Za-z0-9]+\\.html":"fila","(?:http:|https:)//www\\.levi\\.com\\.cn/(?:men|women)/[a-z-]+/[0-9-]+/item":"levi","(?:http:|https:)//www\\.levi\\.com/[A-Z]+/[a-zA-Z_]+/[a-z]+/[a-z0-9-]+/p/\\d+":"levi","^(?:http|https)://www\\.hangowa\\.com/item-\\d+\\.html":"hangowa","^(?:http|https)://www\\.super-in\\.com/product/\\d+\\.html":"super-in","^(?:http|https)://www\\.ccxpet\\.com/Product/Detail":"ccxpet","^(?:http|https)://www\\.360lj\\.com/product/\\d+\\.html":"360lj","^(?:http|https)://www\\.hysjg\\.com/goods\\.php\\?id=\\d+":"hysjg","^(?:http|https)://www\\.0061\\.com\\.au/product/content/\\d+":"x0061","^(?:http|https)://mall\\.ecovacs\\.cn/product-\\d+\\.html":"ecovacs","^(?:http|https)://mall\\.littleswan\\.com/detail/index(?:/sale|)\\?itemid":"littleswan","^(?:http|https)://www\\.vitagou\\.hk/products/id/\\d+":"vitagou","^(?:http|https)://www\\.vitagou\\.hk/product-\\d+\\.html":"vitagou","^(?:http|https)://www\\.vitagou\\.hk/detail-\\d+\\.html":"vitagou","^(?:http|https)://www\\.hpstore\\.cn/accessary/\\w+":"hpstore","^(?:http|https)://www\\.hpstore\\.cn/(?:hp|omen)-":"hpstore","^(?:http|https)://www\\.kkguan\\.com/goods-\\d+\\.html":"kkguan","^(?:http|https)://www\\.mayn\\.com\\.cn/html/\\d+/\\d+":"mayn","^(?:http|https)://www\\.peikua\\.com/product-\\d+\\.html":"peikua","^(?:http|https)://item\\.kinhom\\.com/\\d+\\.html":"kinhom","^(?:http|https)://www.9drug.com/goods-\\d+\\.html":"9drug","^(?:http|https)://www.tea7.com/item/\\d+\\.html":"tea7","^(?:http|https)://www.01home.com/product/[a-z0-9-]+\\.html":"01home","^(?:http|https)://www.hpstore.cn/wasd-ii-[a-z0-9-]+\\.html":"hpstore","^(?:http|https)://www\\.hpstore.cn/(?:[a-z0-9-]+/|)[a-z0-9-]+\\.html":"hpstore","^(?:http|https)://www.aliexpress.com/store/product/":"aliexpress","^(?:http|https)://www.aliexpress.com/item/\\w+":"aliexpress","^(?:http|https)://www.easytoys.cn/\\d+\\.html":"easytoys","^(?:http|https)://www.kiwistarcare.com/goods-\\d+\\.html":"kiwistarcare","^(?:http|https)://www.carrefour.cn/product/\\d+":"carrefour","^(?:http|https)://china.lotte.com/goods/viewGoodsDetail\\.lotte":"lotte","^(?:http|https)://www.ewatches.com/detail\\.asp":"ewatches","^(?:http|https)://global.timex.com/node/\\d+":"timex","^(?:http|https)://comfortfirst.com/[a-z0-9-]+/[a-z0-9-]+/[a-z0-9-]+\\.html":"comfortfirst","^(?:http|https)://www.luolai.cn/product-\\d+\\.html":"luolai","^(?:http|https)://www.youyu.com/goods\\?sn=\\d+":"youyu","^(?:http|https)://www.yoox.cn/(?:cn/)[a-z0-9A-Z]+/item":"yoox","^(?:http|https)://store.yoox.cn/(?:cn/)[a-z0-9A-Z]+/item":"yoox", // "^(?:http|https)://www.walgreens.com/store/\\w+/[a-z0-9-]+/ID=prod\\d+-product": "walgreens", "^(?:http|https)://www.suanjuzi.com/product-\\d+\\.html":"suanjuzi","^(?:http|https)://www.yao123.com/product/\\w+":"yao123","^(?:http|https)://item.baobeigezi.com/product/\\d+\\.html":"baobeigezi","^(?:http|https)://www.baobeigezi.com/product/\\d+\\.html":"baobeigezi","^(?:http|https)://www.opposhop.cn/products/\\d+\\.html":"opposhop","^(?:http|https)://www.opposhop.cn/products/\\d+":"opposhop",'^(?:http|https)://store\\.oppo\\.com/(?:goods|products)/\\d+':'opposhop','^(?:http|https)://www\\.oppo\\.com/cn/product':'opposhop','^(?:http|https)://hd.oppo.com/act/\\d+/oppoR9s':'opposhop',"^(?:http|https)://mall.to8to.com/temai/\\d+.html":"to8to","^(?:http|https)://item\\.yunhou\\.com/\\d+\\.html":"yunhou","^(?:http|https)://item\\.yhd\\.com":"yihaodian","^(?:http|https)://www\\.haituncun\\.com/[a-z]+/[a-z0-9]+/\\d+/":"haituncun","^(?:http|https)://www\\.walmart\\.com/ip/[a-zA-Z0-9-]+/\\d+":"walmart","^(?:http|https)://www\\.vmei\\.com/product/[0-9]+":"vmei","^(?:http|https)://www\\.jgb\\.cn/p/[a-z0-9_]+\\.html":"jgb","^(?:http|https)://www\\.51din\\.com/product/[0-9]+/[0-9]+\\.html":"51din","^(?:http|https)://www.51din.com/product/(?!list)/[0-9]+.jhtml":"51din","^(?:http|https)://www\\.aidai\\.com/Product[0-9]+\\.html":"aidai","^(?:http|https)://shop\\.boqii\\.com/product-[0-9]+\\.html":"boqii","^(?:http|https)://www\\.spider\\.com.cn/[a-z]+/[0-9]+\\.html":"spider","^(?:http|https)://www\\.spider\\.com.cn/auction.html?auctionid=[0-9]+ ":"spider","^(?:http|https)://www\\.jiae\\.com/productdetail?productId=[0-9]+":"jiae","^(?:http|https)://(?:item|www)\\.zazhipu\\.com/[0-9]+\\.html":"zazhipu","^(?:http|https)://www\\.walmart\\.com/ip/\\d+":"walmart","^(?:http|https)://www\\.shop\\.philips\\.com\\.cn/item/[a-z0-9-]+":"philips",'^(?:http|https)://tuan.zhongjiu.cn/product/detail/\\d+.htm':'zhongjiu','^(?:http|https)://www.zhongjiu.cn/productdetail/\\d+.htm':'zhongjiu','^(?:http|https)://www.kaluli.com/product/\\d+.html':'kaluli','^(?:http|https)://shop.wstx.com/item/\\d+':'wstx','^(?:http|https)://www.purcotton.com/detail/\\d+/[0-9-]+\\.html':'purcotton','^(?:http|https)://shop.juanpi.com/[a-z]+/\\d+':'juanpi','^(?:http|https)://www.gnc.com/[A-Za-z0-9-]+/product.jsp':'gnc','^(?:http|https)://www.jinxiang.com/product/\\d+\\.html':'jinxiang','^(?:http|https)://1.163.com/detail/\\d+-\\d+\\.html':'1-163','^(?:http|https)://www.guojimami.com/goods-\\d+\\.html':'guojimami','^(?:http|https)://www.baiyangwang.com/product/\\d+\\.html':'baiyangwang','^(?:http|https)://www.baiyangwang.com/item-\\d+\\.html':'baiyangwang','^(?:http|https)://cn.royyoungchemist.com.au/\\d+\\.html':'royyoungchemist','^(?:http|https)://cn.medihealshop.com/\\d+':'medihealshop','^(?:http|https)://(?:www\\.|)medihealshop.com/shop/shopdetail\\.html\\?':'medihealshop','^(?:http|https)://cn.1001pharmacies.com/\\d+\\.html':'1001pharmacies','^(?:http|https)://www.lookfantastic.cn/[a-z0-9-.]+/\\d+':'lookfantastic-cn','^(?:http|https)://www.lookfantastic.cn/beauty-box/[a-z0-9-.]+/\\d+':'lookfantastic-cn','^(?:http|https)://www.lookfantastic.com/[a-z0-9-.]+/\\d+':'lookfantastic-com','^(?:http|https)://www.lookfantastic.com/beauty-box/[a-z0-9-.]+/\\d+':'lookfantastic-com','^(?:http|https)://you.163.com/item/detail':'you163','^(?:http|https)://product.bl.com/\\d+\\.html':'bl','^(?:http|https)://www.bestinfoods.com/(?:\\?|)product-[0-9]+\\.html':'bestinfoods','^(?:http|https)://www.muji.net/store/\\w+/detail/[0-9]+':'muji', // 'item2.gmarket.co.kr/Item/detailview/Item.aspx': 'gmarket', '^(?:http|https)://www\\.easeeyes\\.com/goods[0-9]+\\.html':'easeeyes','^(?:http|https)://www\\.lingshi\\.com/product/lingshi-\\d+\\.htm':'lingshi','^(?:http|https)://www\\.nubia\\.com/(?:nubian1|nubiamyprague|pragues|nubiaz9mark|nubiaz9|nubiaz9max|nubiaz9max|nubiaz9max|nubiaz11mini|nubiaZ11mini|nubiaz11max|nubiaz11max|nubiaz11max|nubiaz11|nubiaz11|nubiaz11)':'nubia','^(?:http|https)://shop\\.nubia\\.com/active/\\w+\\.html':'nubia','^(?:http|https)://shop\\.nubia\\.com/product\\.php\\?(?:s|)id=\\d+':'nubia','^(?:http|https)://(?:www|shop)\\.nubia\\.cn/product\\.php\\?sid=\\d+':"nubia",'^(?:http|https)://www.nubia.com/((?!.php).)*$':'nubia','^(?:http|https)://shop.nubia.com/buy/(?:nubian1|nubiamyprague|pragues|nubiaz9mark|nubiaz9|nubiaz9max|nubiaz9max|nubiaz9max|nubiaz11mini|nubiaZ11mini|nubiaz11max|nubiaz11max|nubiaz11max|nubiaz11|nubiaz11|nubiaz11|nubia\\w+)':'nubia','^(?:http|https)://www\\.kzj365\\.com/goods-\\d+\\.html':'kzj365','^(?:http|https)://(?:www|goods)\\.kaola\\.com/product/\\d+\\.html':'kaola','^(?:http|https)://www\\.kaola\\.com.hk/product/\\d+\\.html':'kaola','^(?:http|https)://(?:www|goods)\\.kaola\\.com.hk/product/\\d+\\.html':'kaola','^(?:http|https)://www\\.ymatou\\.(?:com|hk)/product/[a-zA-Z0-9-]+\\.html':'ymatou','^(?:http|https)://detail\\.metao\\.com/products/\\d+':'metao','^(?:http|https):tv\\.coocaa\\.com/goods/\\d+.htm':'coocaa','^(?:http|https)://www\\.coocaa\\.com/goods/get_[0-9]+\\.html':'coocaa','^(?:http|https)://www\\.lifevc\\.com/item/\\d+':'lifevc','^(?:http|https)://www\\.supuy\\.com/products/\\d+\\.html':'supuy','^(?:http|https)://www\\.supumall\\.com/Goods/goodsinfo/goodsCode/[0-9]+':'supuy','^(?:http|https)://www\\.mia\\.com/item-\\d+\\.html':'miyabaobei','^(?:http|https)://miyabaobei.hk/item-[0-9]+.html':'miyabaobei','^(?:http|https)://www.miyabaobei.hk/item-[0-9]+.html':'miyabaobei', //'item.gomehigo.hk/[0-9a-zA-Z]+-pop[0-9]+': 'gomehigo', '^(?:http|https)://item.gomehigo.hk/[0-9a-zA-Z]+-.*':'gomehigo','http://www\\.wangfujing\\.com/item/[0-9A-Z]+':'wangfujing','^(?:http|https)://global\\.gou\\.com/product_[0-9]+\\.html':'gou','^(?:http|https)://www\\.gou\\.com/[a-z0-9_]+\\.html':'gou','^(?:http|https)://(?:www\\.|)ikjtao\\.com/goods-[0-9]+\\.html':'ikjtao','^(?:http|https)://(?:www\\.|)ikjtao\\.com/goods.php':'ikjtao','^(?:http|https)://(?:www\\.|)bestkeep\\.cn/item/\\d+':'ikjtao','^(?:http|https)://(?:item|np)\\.ule\\.com/item/[0-9-]+\\.html':'ule','^(?:http|https)://shop\\.philips\\.com\\.cn/product/\\w+/detail\\.htm':'philips','^(?:http|https)://shop\\.tcl\\.com/ProductDetail/index/id/\\d+\\.html':'tcl','^(?:http|https)://mall\\.tcl\\.com/front/product/toProduct/[a-z0-9]+':'tcl','^(?:http|https)://www\\.e-changhong\\.com/webapp/wcs/stores/servlet/Product[\\w_-]+':'changhong','^(?:http|https)://shop\\.konka\\.com/goods\\.php\\?id=\\d+':'konka','^(?:http|https)://shop\\.konka\\.com/product-[0-9]+\\.html':'konka','^(?:http|https)://shop\\.hisense\\.com/Home/Products/detail/gid/\\d+':'hisense','^(?:http|https)://(?:www|shop)\\.hisense\\.com/(?:product|items)/[a-z0-9-]+':'hisense','^(?:http|https)://www\\.ineigo\\.com/Product/product.aspx\\?&?id=\\d+':'ineigo','^(?:http|https)://www\\.skg\\.com/\\d+\\.html':'skg','^(?:http|https)://www\\.skg\\.com/product/[0-9]+\\.htm':'skg','^(?:http|https)://www\\.oyeah\\.com/giveaway-[0-9a-z-]+':'oyeah','^(?:http|https)://www\\.morefood\\.com/products/info/[0-9]+\\.html':'morefood','^(?:http|https)://www\\.zhen\\.com/product-[0-9]+\\.html':'zhen','^(?:http|https)://shop\\.vivo\\.com\\.cn/index\\.php/product-\\d+\\.html':'vivo','^(?:http|https)://shop\\.vivo\\.com\\.cn/product-[0-9]+':'vivo','^(?:http|https)://shop\\.vivo\\.com\\.cn/product/[0-9]+':'vivo','^(?:http|https)://gfive\\.b2c\\.eqimingxing\\.com/product-\\d+\\.html':'gfive','^(?:http|https)://www\\.6pm\\.com/product/':'6pm','^(?:http|https)://www\\.6pm\\.com/p/[a-z0-9-]+/product/':'6pm', // '^(?:http|https)://www\\.sierratradingpost\\.com/[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-': 'sierratradingpost', '^(?:http|https)://shop\\.gionee\\.com/goods/\\d+':'gionee','^(?:http|https)://z\\.gionee\\.com/details-pc/\\w+/index\\.html':'gionee','^(?:http|https)://store\\.lining\\.com/shop/goods-[0-9]+':'lining','^(?:http|https)://store\\.lining\\.com/goods/detail.*':'lining','^(?:http|https)://www\\.mf910\\.com/product-[0-9]+\\.html':'mf910','^(?:http|https)://www\\.k-touch\\.cn/product/detail/prod_id/\\d+\\.html':'k-touch','^(?:http|https)://www\\.k-touch\\.cn/Product/ProductDetail\\?productid':'k-touch','^(?:http|https)://item\\.grainger\\.cn/g/\\d+':'grainger','^(?:http|https)://piao\\.163\\.com/\\w+/movie/\\d+\\.html':'wy163','^(?:http|https)://mall\\.163\\.com/p/product/\\d+\\.html':'wy163', //'^(?:http|https)://[\\w]+\\.nuomi\\.com/deal/\\w+\\.html':'nuomi', '^(?:http|https)://detail\\.yao.\\95095\\.com/item\\.htm':'taobao-95095','^(?:http|https)://www\\.ebay\\.com/itm/[0-9a-zA-Z]+':'ebay','^(?:http|https)://(?:www\\.|)100yue\\.com/product-[0-9]+\\.html':'100yue','^(?:http|https)://www\\.feiniu\\.com/item/[-\\w]+':'feiniu','^(?:http|https)://www\\.lemall\\.com/product/':'lemall','^(?:http|https)://www\\.lemall\\.com/cn/(?:tv|sale|phone)/\\w+':'lemall','^(?:http|https)://www\\.lemall\\.com/(?:le_2|le_max|le_1pro|x55pro|x65|x55|x43s|x40s|umax120|chao4max70)':'lemall','^(?:http|https)://www\\.lemall\\.com/(?:chao4|le_max|le_max2|le_2pro|le_2|le_max2|x40sx40s)/(?:\\w+/|)\\w+\\.html':'lemall','^(?:http|https)://item\\.feiniu\\.com/[0-9]+':'feiniu','^(?:http|https)://www\\.xgbaby\\.com/product/[0-9]+':'bbready','^(?:http|https)://www\\.zuipin\\.cn/[0-9a-z-]+\\.html':'zuipin','^(?:http|https)://www\\.zuipin\\.cn/goods\\?id=\\d+':'zuipin','^(?:http|https)://item\\.feifei\\.(?:cn|com)/\\w+\\.html':'feifei','^(?:http|https)://www\\.feifei\\.com/order/-/product-info/productname/[0-9]+\\.html':'feifei','^(?:http|https)://guang\\.com/baobei/\\d+':'guang','^(?:http|https)://www\\.haitaocheng\\.com/Product/Detail-\\d+\\.html':'haitaocheng','^(?:http|https)://www\\.rrs(?:jk|)\\.com/product/[0-9]+\\.html':'rrs','^(?:http|https)://shop\\.ccb\\.com/products/pd_[0-9]+\\.jhtml':'ccb','^(?:http|https)://www\\.meilishuo\\.com/(?:prom|share)/item/\\d+':'meilishuo','^(?:http|https)://www\\.meilishuo\\.com/share/[\\d]+':'meilishuo','^(?:http|https)://item\\.meilishuo\\.com/detail/':'meilishuo','^(?:http|https)://www\\.mogujie\\.com/tuan/detail/\\w+':'mogujie','^(?:http|https)://shop\\.mogu(?:jie|)\\.com/detail/\\w+':'mogujie','^(?:http|https)://www\\.mogujie\\.com/note/.*?showtype=good':'mogujie','^(?:http|https)://www\\.supumall\\.com/products/[0-9]+\\.html':'supumall','^(?:http|https)://shop\\.coolpad\\.(?:com|cn)/goods/\\d+\\.htm':'coolpad','^(?:http|https)://(www\\.)?yiguo\\.com/product/\\d+\\.html':'yiguo','^(?:http|https)://(www\\.)?yiguo\\.com/CommodityDetail\\.aspx\\?CommodityId=':'yiguo','^(?:http|https)://item\\.wanggou\\.com/':'wanggou','^(?:http|https)://mall\\.jia\\.com/item/':'jia','^(?:http|https)://www\\.jiumei\\.com/product/[a-z0-9_-]+\\.shtml':'jiumei','^(?:http|https)://weigou\\.baidu\\.com/item':'baidu-weigou','^(?:http|https)://shop\\.letv\\.com/product/':'letv','^(?:http|https)://www\\.(xiao)?mi\\.com/(goods|item)/':'xiaomi','^(?:http|https)://item\\.mi\\.com/[0-9]+\\.html':'xiaomi','^(?:http|https)://item\\.mi\\.com/product/[0-9]+\\.html':'xiaomi','^(?:http|https)://www\\.mi\\.com/(shop/)?buy/detail':'xiaomi','^(?:http|https)://item\\.mi\\.com/buy(?:phone|mitv|mitv\\w+)/[a-z0-9]+':'xiaomi','^(?:http|https)://item\\.mi\\.com/static/[a-z0-9]+':'xiaomi','^(?:http|https)://item\\.mi\\.com/buy/[a-z0-9]+':'xiaomi','^(?:http|https)://www\\.mi\\.com/(?:mi5|mimax|redminote4|note3|hongmi3s|redmipro|hongmi3|hongmi3x|mibookair|mipad2|mitv3s|mitv3s|mitv3s|mitv3|mitv3|mitv3|tvzj|hezi3s|hezi3|hezimini|shb|mivr1c|miwifi3|scooter|mibicycle|kettle|dianfanbao|micamera|xiaoyi|air2|water|water2|ihealth2|ihealth|mjsmartlamp|desklamp|mitu|cute|wangguan|shouhuan2|shouhuan|scale|mituwatch|miwifimini|miwifilite|miwifi3c|miwifi|dianyuan10000|dianyuan10000|dianyuan5000|chaxianban2|powerstrip|recharger|chongdianqi4kou|headphone|quantie|capsuleearphone|pocketaudio|littleaudio|yinxiang|speaker|radio|mimosdge|gelpen|pillowZ1|pillowZ2|roomrobot|recharger7|charger|bluetooth-headset|suitcase|redmi\\w+|mi5splus|mi5s|mix|minote\\w+|mi5c|max\\w+|mi6|mipad3|mitv\\w+)/':'xiaomi','^(?:http|https)://www\\.handu\\.com/goods-':'handu','^(?:http|https)://www\\.yummy77\\.com/product/[0-9]+\\.html':'yummy77','^(?:http|https)://www\\.fruitday\\.com/web/pro/[0-9]+':'fruitday','^(?:http|https)://www\\.fruitday\\.com/prodetail/index/[0-9]+':'fruitday','^(?:http|https)://www\\.benlai\\.com/items?-\\d+':'benlai','^(?:http|https)://www\\.benlai\\.com/[a-z/]+/item-[0-9]+\\.html':'benlai','^(?:http|https)://taoshu\\.com/\\d+\\.html':'taoshu','^(?:http|https)://www\\.meilele\\.com/category-[a-z]+/goods-[0-9]+\\.html':'meilele','^(?:http|https)://www\\.meilele\\.com/tuangou/info-[0-9]+.html':'meilele-tuan','^(?:http|https)://www\\.meilele\\.com/miaosha/ms-[0-9]+.html':'meilele-ms','^(?:http|https)://www\\.gjw\\.com/product/item':'gjw','^(?:http|https)://www\\.gjw\\.com/Home/TuanItem/\\d+\\.htm':'gjw','^(?:http|https)://www\\.gjw\\.com/TryDrink/item-id-[0-9]+\\.htm':'gjw','^(?:http|https)://www\\.oneplus\\.com/cn/':'oneplus','^(?:http|https)://store\\.apple\\.com/cn/product/':'apple','^(?:http|https)://www\\.apple\\.com/cn/(?:macbook|ipad-pro|ipad|ipad-mini-4|iphone-7|iphone-\\w+|ipod-shuffle)/':'apple','^(?:http|https)://store\\.apple\\.com/cn/buy-iphone/iphone\\w+':'apple','^(?:http|https)://store\\.apple\\.com/cn/buy-mac/\\w+-\\w+\\?product=\\w+/\\w+':'apple','^(?:http|https)://www\\.apple\\.com\\.cn/shop/':'apple','^(?:http|https)://store\\.apple\\.com/cn/buy-ipad/ipad-\\w+-\\w+':'apple','^(?:http|https)://store\\.apple\\.com/cn/buy-ipod/ipod-\\w+-\\w+':'apple','^(?:http|https)://www\\.apple\\.com/cn/shop/(?:product|buy-[a-z]+)/[a-z0-9-]+':'apple','^(?:http|https)://www\\.j1\\.com/product/':'j1','^(?:http|https)://miao\\.j1\\.com/product/':'j1-miao','^(?:http|https)://(?:www\\.|)zzl365\\.com/product-\\d+':'zzl365','^(?:http|https)://mobile\\.139shop\\.com/.*?/\\d+/\\d+\\.htm':'139shop','^(?:http|https)://139shop\\.com/[a-z0-9-]+/[a-z0-9]+/[a-z0-9]+\\.htm':'139shop', // '^(?:http|https)://detail\\.1688\\.com/offer/\\d+': '1688', '^(?:http|https)://www\\.yiwugou\\.com/product/detail/[0-9]+\\.html':'yiwugou','^(?:http|https)://www\\.zhiwo\\.com/product/\\d+':'zhiwo','^(?:http|https)://www\\.zhiwo\\.com/group/\\d+':'zhiwo-tuan','^(?:http|https)://[^\\.]+\\.miqi\\.cn/[^/]+/p\\d+':'miqi','^(?:http|https)://www\\.miqi\\.cn/[a-z]+/[0-9]+\\.html':'miqi','^(?:http|https)://www\\.camel\\.com\\.cn/[a-zA-Z0-9]+(_[a-zA-Z0-9]+)+/[\\w]+\\.shtml':'camel','^(?:http|https)://www\\.camel\\.com\\.cn/[a-zA-Z0-9_]+/[A-Za-z0-9]+\\.shtml':'camel','^(?:http|https)://www\\.kuaishubao\\.com/\\d+/\\d+':'kuaishubao','^(?:http|https)://www.kuaishubao.com/g/':'kuaishubao','^(?:http|https)://www\\.juegg\\.com/templets/DefaultGreen/Product\\.jsp':'juegg','^(?:http|https)://mall\\.10010\\.com/goodsdetail/[\\d]+\\.html':'mall10010','^(?:http|https)://www\\.wowsai\\.com/goods/':'wowsai','^(?:http|https)://www\\.tianpin\\.com/item/':'tianpin','^(?:http|https)://www\\.tootoo\\.cn/product-':'tootoo','^(?:http|https)://www\\.tootoo\\.cn/[a-z]+/detail/[0-9]+':'tootoo','^(?:http|https)://item\\.minshengec\\.com/[a-z]-(?:|[a-zA-Z%0-9]+)/[a-z0-9-]+\\.jhtml':'minshengec','^(?:http|https)://www\\.sfbest\\.com/html/(sfv)?products/':'sfbest','^(?:http|https)://ht\\.sfbest\\.hk/[0-9a-z_]+\\.htm':'sfbest','^(?:http|https)://shop\\.lenovo\\.com\\.cn/product-':'lenovo','^(?:http|https)://(?:item|\\w+)\\.lenovo\\.com\\.cn/product/\\d+\\.html':'lenovo','^(?:http|https)://shop\\.lenovomobile\\.com/ShowPhone.aspx\\?GdsID=':'lenovo','^(?:http|https)://www\\.lenovomobile\\.com/store/\\d+\\.html':'lenovo','^(?:http|https)://www\\.lenovo\\.com\\.cn/product/[0-9]+\\.html':'lenovo','^(?:http|https)://www\\.lenovo\\.com\\.cn/abtest/[0-9_]+\\.shtml':'lenovo','^(?:http|https)://thinkpad\\.lenovo\\.com\\.cn/product/[0-9]+\\.html':'lenovo','^(?:http|https)://www\\.vmall\\.com/item/\\d+/(?:index|buy)':'vmall','^(?:http|https)://www\\.vmall\\.com/product/\\d+\\.html':'vmall','^(?:http|https)://www.hihonor.com/cn/shop/product/\\d+\\.html':'hihonor','^(?:http|https)://www\\.ihush\\.com/product':'ihush','^(?:http|https)://(?:www\\.)?fclub\\.cn/goods':'fclub','^(?:http|https)://item\\.yohobuy\\.com/product/\\w+/\\w+\\.html':'yohobuy','^(?:http|https)://item\\.yohobuy\\.com/\\w+\\.html':'yohobuy','^(?:http|https)://www\\.yohobuy\\.com/product/\\d+\\.html':'yohobuy','^(?:http|https)://www\\.fclub\\.cn/tuangouDetail\\.html':'fclub','^(?:http|https)://ju\\.taobao\\.com/tg/home\\.htm.*(item_)?id=[\\d]+':'taobao-ju','^(?:http|https)://detail\\.tmall\\.com/item(_o)?\\.htm':'tmall','^(?:http|https)://detail\\.liangxinyao\\.com/item\\.htm':'tmall','^(?:http|https)://world\\.tmall\\.com/item/[0-9]+\.htm':'tmall','^(?:http|https)://detail\\.tmall\\.hk/hk/item\.htm':'tmall','^(?:http|https)://detail\\.tmall\\.hk/item\\.htm':'tmall','^(?:http|https)://item\\.taobao\\.com/item\.htm':'taobao','^(?:http|https)://2\\.taobao\\.com/item\\.htm':'taobao-xianyu','^(?:http|https)://ai\\.taobao\\.com/auction':'ai-taobao','^(?:http|https)://chaoshi\\.detail\\.tmall\\.com/item\\.htm':'tmall','^(?:http|https)://chaoshi\\.detail\\.tmall\\.com/item_o\\.htm':'tmall','^(?:http|https)://detail\\.ju\\.taobao\\.com/home\\.htm':'taobao-ju','^(?:http|https)://(?:archive-shop|shop|www|day|lux)\\.vip(shop)?\\.com/detail':'vipshop','^(?:https|http):\\/\\/detail\\.vip\\.com\\/detail-\\d+':'vipshop','^(?:https|http):\\/\\/www\\.vipglobal\\.hk\\/detail-\\d+':'vipshop','^(?:http|https)://tuan\\.lefeng\\.com/.*?/\\d+_\\d+\\.html':'lefeng','^(?:http|https)://(?:www|product)\\.lefeng\\.com/(product|pklist)/':'lefeng','^(?:http|https)://(?:www|1hour)\\.jxdyf\\.com/product[-/][\\d]+':'jxdyf','^(?:http|https)://www\\.jxdyf\\.com/ProductContent':'jxdyf','^(?:http|https)://www\\.tnice\\.com/product/':'tnice','^(?:http|https)://auction1\\.paipai\\.com/':'paipai','^(?:http|https)://item\\.xinbaigo\\.com/Goods/StyleDetail':'xinbaigo','^(?:http|https)://www\\.orbis\\.com\\.cn.*product\\-[\\d]+':'orbis','^(?:http|https)://www\\.sfht\\.com/detail/[0-9]+\\.html':'sfht','^(?:http|https)://(?:www|cosmetic)\\.d1\\.com\\.cn/product/':'d1','^(?:http|https)://www\\.chazuo\\.com/Product/p\\-[\\d]+':'chazuo','^(?:http|https)://www\\.u1baby\\.com/product\\-[\\d]+':'u1baby','^(?:http|https)://(www\\.)?homevv\\.com/vvshopProductView/pid\\-[\\d]+\\.jhtml':'homevv','^(?:http|https)://(www\\.)?homevv\\.com/vvshopProductView\\.jhtml':'homevv','^(?:http|https)://www\\.paixie\\.net/shoe\\-.+\\.html':'paixie','^(?:http|https)://tuan\\.paixie\\.net/[0-9]+\\.html':'paixie-tuan','^(?:http|https)://faxian\\.paixie\\.net/[0-9]+\\.html':'paixie-faxian','^(?:http|https)://www\\.tao3c\\.com/(outlets/)?product/[\\d]+\\.html':'tao3c','^(?:http|https)://www\\.zm7\\.cn/goods':'zm7','^(?:http|https)://s\\.etao\\.com/item/[\\d]+\\.html':'etao','^(?:http|https)://s\\.etao\\.com/search\\?epid=[\\d]+':'etao','^(?:http|https)://product\\.pchouse\\.com\\.cn/item/[\\d]+\\.html':'pchouse','^(?:http|https)://buy\\.daphne\\.cn/goods\\.php':'daphne','^(?:http|https)://www\\.lucemall\\.com\\.cn/.+/[\\d]+\\.html':'lucemall','^(?:http|https)://www\\.lifevc\\.com/detail/':'lifevc','^(?:http|https)://www\\.easy361\\.com/[^\\?]*goods-[\\d]+\\.html':'easy361','^(?:http|https)://item\\.360hqb\\.com/spu\\-[\\d]+\\.html':'360hqb','^(?:http|https)://item\\.360hqb\\.com/[\\d]+\\.html':'360hqb','^(?:http|https)://q\\.360hqb\\.com/detail/[\\d\\_]+\\.html':'360hqb','^(?:http|https)://www\\.goujiuwang\\.com/product/item\\-id\\-[\\d]+\\.htm':'goujiuwang','^(?:http|https)://www\\.huimai365\\.com/goods\\-[\\d]+\\.html':'huimai365','^(?:http|https)://(www|tuan|dingzhi)\\.jiuxian\\.com/(goods|tuan_detail)\\-.+\\.htm':'jiuxian','^(?:http|https)://www\\.winenice\\.com/p_[\\d]+\\.shtml':'winenice','^(?:http|https)://www\\.yesmywine\\.com/goods/[\\d]+\\.html':'yesmywine','^(?:http|https)://mall\\.yesmywine\\.com/shop/junkang/item-[\\d]+':'yesmywine','^(?:http|https)://mall\\.yesmywine\\.com/shop/[\\w]+/item-[\\d]+':'yesmywine','^(?:http|https)://mall\\.yesmywine\\.com/groupbuy/\\d+\\.html':'yesmywine','^(?:http|https)://www\\.banggo\\.com/Goods/[\\d]+\\.shtml':'banggo','^(?:http|https)://www\\.banggo\\.com/goods_[0-9]+\\.shtml':'banggo','^(?:http|https)://www\\.banggo\\.com/goods/[0-9A-Za-z]+\\.s?html':'banggo','^(?:http|https)://www\\.banggo\\.com/goods/[0-9A-Za-z]+':'banggo','^(?:http|https)://ploy\\.banggo\\.com/second/[0-9-_]+\\.shtml':'banggo','^(?:http|https)://www\\.yanyue\\.cn/smoke\\-product\\-[\\d]+\\.html':'yanyue','^(?:http|https)://www\\.bearbuy\\.com\\.cn/goods\\.php\\?id=[\\d]+':'bearbuy','^(?:http|https)://www\\.amazon\\.cn/.*?(?:dp/|gp/product/|detailApp)':'amazon','^(?:http|https)://www\\.amazon\\.(com|co\\.uk|de|co\\.jp|fr|ca|cn|it|es|com\\.au)/.*?(?:dp/|gp/product/|detailApp)(?!search)':'amazon','^(?:http|https)://(?:product\\.dangdang\\.com/[^\\?]*product.aspx|reco\\.dangdang\\.com/reco_pub\\.php)\\?product_id=\\d+':'dangdang','^(?:http|https)://(?:product|detail)\\.dangdang\\.com/[\\d]+':'dangdang','^(?:http|https)://(?:product|detail)\\.globaldangdang\\.hk/[\\d]+\\.html':'dangdang','^(?:http|https)://z\\.jd\\.com/project/details/\\d+\\.html':"360buy",'^(?:http|https)://item\\.jd\\.com/\\d+\\.html':'360buy','^(?:http|https)://item\\.m\\.jd\\.com/product/\\d+\\.html':'360buy','^(?:http|https)://item\\.m\\.jd\\.com/ware/view.action':'360buy','^(?:http|https)://kpl\\.m\\.jd\\.com/product\\?wareId=\\d+':'360buy','^(?:http|https)://pcitem\\.jd\\.hk/\\d+\\.html':'360buy','^(?:http|https)://npcitem\\.jd\\.hk/\\d+\\.html':'360buy','^(?:http|https)://i-item\\.jd\\.com/\\d+\\.html':'360buy','^(?:http|https)://item\\.paipai\\.com/\\d+\\.html':'360buy','^(?:http|https)://item\\.yiyaojd\\.com/\\d+\\.html':'360buy','^(?:http|https)://item\\.jkcsjd\\.com/\\d+\\.html':'360buy','^(?:http|https)://item\\.jd\\.hk/\\d+\\.html':'360buy','^(?:http|https)://paimai\\.jd\\.com/\\d+':'360buy-paimai','^(?:http|https)://day\\.jd\\.com/item/.*\\.html':'360buy-day','^(?:http|https)://www\\.(?:360buy|jd)\\.com/product/\\d+\\.html':'360buy','^(?:http|https)://(?:book|e)\\.(?:360buy|jd)\\.com/\\d+\\.html':'360buy-book','^(?:http|https)://re\\.jd\\.com/cps/item/[0-9]+\\.html':'360buy-re','^(?:http|https)://auction\\.jd\\.com/[0-9]+':'360buy-auction','^(?:http|https)://mvd\\.(?:360buy|jd)\\.com/\\d+\\.html':'360buy-mvd','^(?:http|https)://tuan\\.(?:360buy|jd)\\.com/team\\-\\d+\\.html':'360buy-tuan','^(?:http|https)://www\\.(?:360buy|jd)\\.com/tuan/[\\d]+\\-[\\d]+\\.html':'360buy-tuan','^(?:http|https)://www\\.(?:360buy|jd)\\.com/bigimage\\.aspx\\?id=\\d+':'360buy-bigimage','^(?:http|https)://club\\.jd\\.com/bbsDetail/[a-z0-9_-]+\\.html':'360buy-club','^(?:http|https)://www\\.360top\\.com/product/\\d+\\.html':'360top','^(?:http|https)://detail\\.zol\\.com\\.cn/.*?(?:index).*?\\.shtml':'zol','^(?:http|https)://detail\\.zol\\.com\\.cn/[\\d]+/[\\d]+/[a-zA-Z]+\\.shtml':'zol','^(?:http|https)://dealer\\.zol\\.com\\.cn/detail/[\\d]+/[\\d]+_[\\d]+.html':'zol','^(?:http|https)://(?:www|mall)\\.zol\\.com/detail':'zol','^(?:http|https)://detail\\.zol\\.com\\.cn/series/[0-9]+/[0-9_]+\\.html':'zol','^(?:http|https)://www\\.fglady\\.cn/BMsgL':'fglady','^(?:http|https)://(www.|)ouku\\.com/(?:goods|product)':'ouku','^(?:http|https)://(www.|)ouku\\.com/cn/[0-9a-z-_]+\\.html':'ouku','^(?:http|https)://www\\.newegg(\\.com)?\\.cn/Product/.*?\\.htm':'newegg','^(?:http|https)://zhadan\\.newegg(\\.com)?\\.cn/Bomb-\\d+\\.htm':'newegg','^(?:http|https)://zhadan\\.newegg\\.cn':'newegg-zhadan','^(?:http|https)://tuan\\.newegg\\.cn/deal/[0-9]+\\.htm':'newegg-tuan','^(?:http|https)://product\\.kimiss\\.com/product/':'kimiss','^(?:http|https)://www\\.redbaby\\.com\\.cn/.*?/\\d{7}\\d+\\.html':'redbaby','^(?:http|https)://product\\.m18\\.com/':'m18','^(?:http|https)://list\\.m18\\.com/item/':'m18','^(?:http|https)://list\\.m18\\.com/g/':'m18','^(?:http|https)://list\\.m18\\.com/.*Goods.aspx':'m18','^(?:http|https)://www\\.m18\\.com/item/':'m18','^(?:http|https)://www\\.w1\\.cn/goods':'w1','^(?:http|https)://www\\.ashford\\.com/us/watches/[a-z0-9-]+/[a-z0-9-]+':'ashford','^(?:http|https)://www\\.sephora\\.cn/productDetailAction/':'sephoracps','^(?:http|https)://www\\.sephora\\.cn/product/\\d+\\.html':'sephoracps','^(?:http|https)://www\\.sephora\\.cn/tryout/\\d+\\.html':'sephoracps','^(?:http|https)://www\\.lafaso\\.com/(?:product/|goods/product_detail)':'lafaso','^(?:http|https)://www\\.s\\.cn/(?!page)\\w{2,}\\-[A-Za-z0-9]+?[0-9]+?[A-Za-z0-9]+?[\\-_*\\.].*?html':'s', // '^(?:http|https)://www\\.s\\.cn/\\w{2,}\\-[A-Z0-9]+?[0-9]+?[A-Z0-9]+?[\\-_*\\.].*?html': 's', '^(?:http|https)://w?item\\.(?:51buy|yixun)\\.com/':'51buy','^(?:http|https)://www\\.okbuy\\.com/.*?/detail-':'okbuy','^(?:http|https)://www\\.okbuy\\.com/.*?-[\\d]+.html':'okbuy','^(?:http|https)://(www\\.)?letao\\.com/[^\\?]*shoe\\-[^\\~]*$':'letao','^(?:http|https)://(www\\.)?letao\\.com/[a-z0-9]+/detail\\.do\\?id=':'letao','^(?:http|https)://www\\.buy007\\.com/.*?/.*?/[A-Za-z\\d\\_\\-]*?\\.html':'buy007','^(?:http|https)://www\\.taoxie\\.com/commodity':'taoxie','^(?:http|https)://ju\\.suning\\.com/product-[a-zA-Z0-9]+\\.htm':'suning-ju','^(?:http|https)://item\\.suning\\.com/[0-9]+\\.html':'suning','^(?:http|https)://item\\.suning\\.com/[0-9]+/[0-9]+\\.html':'suning','^(?:http|https)://www\\.suning\\.(?:com|cn)/webapp/wcs/stores/servlet/(Prod|prd)':'suning','^(?:http|https)://pai\\.suning\\.(?:com|cn)/shanpai/detail/':'suning-pai','^(?:http|https)://pai\\.suning\\.(?:com|cn)/shanpai/[0-9]/detail/d/[0-9]+\-[0-9]':'suning-pai','^(?:http|https)://[\\w]+\\.suning\\.(?:com|cn)/emall/dgf':'suning-dgf','^(?:http|https)://qiang\\.suning\\.com/rps-web/rp/showActivity_[\\d]+\\.htm':'suning-qiang','^(?:http|https)://product\\.suning\\.com/\\d+':'suning','^(?:http|https)://product\\.suning\\.com/detail[0-9_]+\\.html':'suning','^(?:http|https)://www\\.suning\\.com/detail/':'suning-book-new','^(?:http|https)://snbook\\.suning\\.(?:com|cn)/web/prd/':'suning-snbook','^(?:http|https)://www\\.coo8\\.com/product/':'coo8','^(?:http|https)://(www.|)lusen\\.com/product/productinfo':'lusen','^(?:http|https)://www\\.lusen\\.com/Tuan/ComityInfo\\.aspx\\?id=[0-9]+':'lusen','^(?:http|https)://item\\.gome\\.com\\.cn/[^\\?]':'gome','^(?:http|https)://tao\\.gome\\.com\\.cn/p\\-D[0-9]+':'gome-tao','^(?:http|https)://q\\.gome\\.com\\.cn/item/\\w[0-9]+\\.html':'gome-q','^(?:http|https)://tuan\\.gome\\.com\\.cn/deal/\\w+\\.html':'gome-tuan','^(?:http|https)://www\\.gomehome\\.com/product/productinfo\\?p=[0-9-]+':'gome-home','^(?:http|https)://www\\.gome\\.com\\.cn/ec/rushbuy/limitbuy/itemdetail':'gome-rushbuy','^(?:http|https)://(?:www|item|s)\\.(yhd|yihaodian|1mall)\\.com/(?:product|item)/\\d+':'yihaodian','^(?:http|https)://item\\.yhd\\.com/item/lp/[0-9_]+':'yihaodian','^(?:http|https)://try\\.yhd\\.com/(free|fee)/\\d{4,6}_\\d+/':'yihaodian','^(?:http|https)://t\\.(yhd|yihaodian|1mall)\\.com/detail/\\d+':'yihaodian-tuan','^(?:http|https)://[a-zA-Z]+\\.womai\\.com/(.*)Product(?:\\-|\\.do\\?m?id)':'womai','^(?:http|https)://(www|sh|gz|zs)\\.womai\\.com/related-':'womai-related','^(?:http|https)://(www\\.)?leyou\\.com\\.cn/product/single/':'leyou','^(?:http|https)://haitao\\.leyou\\.com\\.cn/item/single/sku/':'leyou','^(?:http|https)://leleshan\\.leyou\\.com\\.cn/product/single/[A-Z0-9]+':'leyou-leleshan','^(?:http|https)://www\\.shopin\\.net/product/':'shopin','^(?:http|https)://(?:item|www|ebay)\\.xiu\\.com/product/':'xiu','^(?:http|https)://outlets\\.xiu\\.com/[\\d]+\\.shtml':'xiu','^(?:http|https)://ferragamo\\.xiu\\.com/[\\d]{6,10}\\.shtml':'xiu','^(?:http|https)://tuan\\.xiu\\.com/team_[\\d]+':'xiu-tuan','^(?:http|https)://item\\.mbaobao\\.com/pshow':'mbaobao','^(?:http|https)://www\\.mbaobao\\.com/item/':'mbaobao','^(?:http|https)://item\\.vjia\\.com/[\\d]*?\\.html':'vjia','^(?:http|https)://www\\.7cv\\.com/product/':'7cv','^(?:http|https)://www\\.qinqinbaby\\.com/product/':'qinqinbaby','^(?:http|https)://www\\.qinqinbaby\\.com/goods/[0-9]+':'qinqinbaby','^(?:http|https)://www\\.chunshuitang\\.com/[a-z]+/[0-9]+\\.html':'chunshuitang','^(?:http|https)://www\\.x\\.com\\.cn/n_product/[\\w]+\\.shtml':'x','^(?:http|https)://www\\.x\\.com\\.cn/product':'x','^(?:http|https)://www\\.guopi\\.com/p\\.jsp':'guopi','^(?:http|https)://www\\.no5\\.com\\.cn/goods/':'no5','^(?:http|https)://www\\.no5\\.com\\.cn/product/[0-9]+\\.html':'no5','^(?:http|https)://web[\\d]+\\.sasa\\.com/SasaWeb/sch/product/viewProductDetail':'sasa','^(?:http|https)://www\\.sasa\\.com/[a-z]+/[a-zA-Z0-9_-]+':'sasa','^(?:http|https)://www\\.sasa\\.com/[a-z]+-\\d+\\.html':'sasa','^(?:http|https)://www\\.hksasa\\.cn/[a-z]+-\\d+\\.html':'sasa','^(?:http|https)://www\\.dhc\\.net\\.cn/gds/(?:detail|csearch\\.jsp\\?ccd=[\\d]+)':'dhc','^(?:http|https)://www\\.9dadao\\.com/product/':'9dadao','^(?:http|https)://www\\.360kxr\\.com/product/':'360kxr','^(?:http|https)://www\\.m6go\\.com/product':'m6go','^(?:http|https)://www\\.gou\\.com/product':'m6go','^(?:http|https)://www\\.m6go\\.com/qg/product':'m6go','^(?:http|https)://www\\.gou\\.com/qg/product':'m6go','^(?:http|https)://www\\.likeface\\.com/product':'likeface','^(?:http|https)://www\\.qxian\\.com/.*?[0-9]*?\\.html':'qxian','^(?:http|https)://www\\.didamall\\.com/(?:products|libao)/info/':'didamall','^(?:http|https)://www\\.yaodian100\\.com/ecmall/product':'yaodian100','^(?:http|https)://www\\.yaofang\\.cn/goods':'yaofang','^(?:http|https)://www\\.lijiababy\\.com\\.cn/(?:eshop/product|Clothing/.*?/Product_item\\.aspx)':'lijiababy','^(?:http|https)://99read\\.com/Product/[a-zA-Z]*\\d+[a-zA-Z]*\\.aspx':'99read','^(?:http|https)://product\\.china-pub\\.com/\\d+':'china-pub','^(?:http|https)://(www.|)bookschina\\.com/[\\d]+\\.htm':'bookschina','^(?:http|https)://(www.|)bookschina\\.com/GROUPBUY/groupbuy.aspx\\?groupid\\=[0-9]+':'bookschina-tuan','^(?:http|https)://(?:|www\\.)efeihu\\.com/(?:Product/|Pages/ProductShow/ProductDetails\\.aspx)':'efeihu','^(?:http|https)://tuan\\.efeihu\\.com/[0-9a-zA-Z]+/Detials.aspx\\?id=[0-9]+':'efeihu','^(?:http|https)://www\\.360mart\\.com/product[s]?/.*?\\.html':'360mart','^(?:http|https)://www\\.yintai\\.com/product/productdetail':'yintai','^(?:http|https)://item\\.yintai\\.com/':'yintai','^(?:http|https)://www\\.quwan\\.com/goods':'quwan','^(?:http|https)://www\\.urcosme\\.com/search/final':'urcosme','^(?:http|https)://cn\\d*\\.strawberrynet\\.com/.*?/[0-9]+/':'strawberrynet','^(?:http|https)://www\\.strawberrynet\\.com/.*?/[0-9]+/':'strawberrynet','^(?:http|https)://www\\.luce\\.com\\.cn/product/':'luce','^(?:http|https)://www\\.k121\\.com/item':'k121','^(?:http|https)://www\\.happigo\\.com/[\\w]+/[\\w]+/[\\w]+/[\\d]+\\.html':'happigo','^(?:http|https)://www.happigo.com/item-[0-9]+.html':'happigo','^(?:http|https)://mall\\.happigo\\.com/goods-[\\d]+\\.html':'happigo','^(?:http|https)://mall\\.happigo\\.com/groupbuy-[0-9-]+\\.html':'happigo','^(?:http|https)://www\\.gap\\.cn/[^\\?]*product/[\\d]+\\.html':'gap','^(?:http|https)://www\\.misslele\\.com/.+[\\d]+\\.html':'misslele','^(?:http|https)://www\\.5lux\\.com/goods':'5lux','^(?:http|https)://(?:www|hui)\\.5lux\.com/good/detail/[0-9]+':'5lux','^(?:http|https)://www\\.xiaozhuren\\.com/(Disney/)?goods\\.php':'xiaozhuren','^(?:http|https)://www\\.all3c\\.com/product/':'all3c','^(?:http|https)://www\\.idaphne\\.com/goods':'idaphne','^(?:http|https)://product\\.pcbaby\\.com\\.cn/a/':'pcbaby','^(?:http|https)://www\\.binggo\\.com/.*?/\\d{7}\\d+\\.html':'binggo','^(?:http|https)://www\\.tiantian\\.com/.+/[a-zA-Z]?[\\d]+\\.html':'tiantian','^(?:http|https)://tuan\\.tiantian\\.com/Sale/(?:Details|FlashDetails)/[a-zA-Z0-9]+':'tiantian-tuan','^(?:http|https)://www\\.xiji\\.com/product-[0-9]+\\.html':'xiji','^(?:http|https)://www\\.xijie\\.com/prod':'xijie','^(?:http|https)://mall\\.jumei\\.com[^\\?]*/product_':'jumei','^(?:http|https)://pop\\.jumei\\.com/i/deal/\\w+\\.html':'jumei','^(?:http|https)://(gz|bj|sh)\\.jumei\\.com/i/deal/\\w+\\.html':'jumei','^(?:http|https)://item\\.jumei\\.com/[0-9a-zA-Z]+\\.html':'jumei','^(?:http|https)://www\\.jumeiglobal\\.com/deal/\\w+\\.html':'jumeiglobal','^(?:http|https)://item\\.jumeiglobal\\.com/[0-9a-zA-Z]+\\.html':'jumeiglobal','^(?:http|https)://www\\.jumeiglobal\\.com/Deal/Combination\\?':'jumeiglobal','^(?:http|https)://buy\\.caomeipai\\.com/goods':'caomeipai','^(?:http|https)://www\\.dahuozhan\\.com/product/':'dahuozhan','^(?:http|https)://www\\.dazhe\\.cn/goodsdetail':'dazhe','^(?:http|https)://www\\.huolida\\.com/product/':'huolida','^(?:http|https)://www\\.12dian\\.com/product':'12dian','^(?:http|https)://www\\.yougou\\.com/c_':'yougou','^(?:http|https)://(?:outlets|www)\\.yougou\\.com/[^?]+sku-[\\w]+':'yougou','^(?:http|https)://(?:outlets|seoul|www)\\.yougou\\.com/[a-z-]+/sku-[a-z0-9-]+\\.shtml':'yougou','^(?:http|https)://www\\.111\\.com\\.cn/(?:product|item)/':'111','^(?:http|https)://www\\.daoyao\\.com/product':'daoyao','^(?:http|https)://www\\.jianke\\.com/product/':'jianke','^(?:http|https)://www\\.jianke\\.com/tuan/product/[0-9]+\\.html':'jianke','^(?:http|https)://www\\.360kad\\.com/product/[0-9a-z]+\\.shtml':'360kad','^(?:http|https)://www\\.lbxcn.com/(?:Product|item)/[0-9]+.html':'lbxcn','^(?:http|https)://www\\.lbxcn.com/hepstorefront/lbx/zh/LBX/.*/p/[0-9]+':'lbxcn','^(?:http|https)://book\\.douban\\.com/subject/[\\d]+':'douban','^(?:http|https)://dongxi\\.douban\\.com/show/[\\d]+':'douban-dongxi','^(?:http|https)://product\\.it168\\.com/detail/doc/[0-9]+/index\\.shtml':'it168','^(?:http|https)://product\\.pconline\\.com\\.cn/[^/]*?/[^/]*?/[0-9]+\\.html':'pconline','^(?:http|https)://product\\.pcpop\\.com/[0-9]+/Index\\.html':'pcpop','^(?:http|https)://cosme\\.pclady\\.com\\.cn/product/[0-9]+\\.html':'pclady','^(?:http|https)://brand\\.yoka\\.com/cosmetics/.*?/detail[0-9]+\\.htm':'yoka','^(?:http|https)://detail\\.55bbs\\.com/.*?/index[0-9]+\\.shtml':'55bbs','^(?:http|https)://hzp\\.onlylady.com/.*?/[0-9]+/':'onlylady','^(?:http|https)://www\\.24dq.com/product.*?html':'24dq','^(?:http|https)://www\\.muyingzhijia\\.com/Shopping/ProductDetail\\.aspx':'muyingzhijia','^(?:http|https)://www\\.muyingzhijia\\.com/product/\\d+\\.html':'muyingzhijia','^(?:http|https)://item\\.muyingzhijia\\.com/\\d+\\.html':'muyingzhijia','^(?:http|https)://www\\.houmart\\.com/p\\-[\\d]+\\.html':'houmart','^(?:http|https)://www\\.onlyts\\.cn/goods':'onlyts','^(?:http|https)://www\\.winxuan\\.com/product/.*?[0-9]*?':'winxuan','^(?:http|https)://item\\.winxuan\\.com/[0-9]+':'winxuan','^(?:http|https)://detail\\.bookuu\\.com/[0-9]*?\\.html':'bookuu','^(?:http|https)://www\\.bookuu\\.com/detail\\.php\\?id=\\d+':'bookuu','^(?:http|https)://e\\.bookuu\\.com/detail\\.php\\?id=\\d+':'bookuu','^(?:http|https)://wenju\\.bookuu\\.com/detail\\.php\\?id=\\d+':'bookuu','^(?:http|https)://book\\.beifabook\\.com/Product/BookDetail.aspx':'beifabook','^(?:http|https)://product\\.yesky\\.com/product/.*?[0-9]*?/':'yesky','^(?:http|https)://product\\.pchome\\.net/.*?[0-9]*?\\.html':'pchome','^(?:http|https)://product\\.enet\\.com\\.cn/[a-zA-Z\\-].*?[\\d].*?\\.html':'enet','^(?:http|https)://(www\\.)?(?:ruiyi|rayi)\\.(?:com|cn|com\\.cn)/\\?product-[\\d].*?\\.html':'ruiyi','^(?:http|https)://www\\.nop\\.cn/product-[\\d]*?\\.html':'nop','^(?:http|https)://product\\.imobile\\.com\\.cn/show/[\\d].*?\\.html':'imobile','^(?:http|https)://product\\.cnmo\\.com/cell_phone/index[\\d].*?\\.shtml':'cnmo','^(?:http|https)://phone\\.shouji\\.com\\.cn/[\\d]+/detail/[\\d]+':'shouji','^(?:http|https)://product\\.tompda\\.com/[a-zA-Z]/[a-zA-Z]/[\\d]+/[\\d]+':'tompda','^(?:http|https)://www\\.3533\\.com/phone/phone.+\\.htm':'phone3533','^(?:http|https)://product\\.intozgc\\.com/[a-zA-Z\\_]+\\_[\\d]+':'intozgc','^(?:http|https)://product\\.chinabyte\\.com/product/[\\d]+/[\\d]+':'chinabyte','^(?:http|https)://app\\.tech\\.ifeng\\.com/[a-zA-Z\\-\\_]+/[a-zA-Z\\-\\_]+/[a-zA-Z0-9\\-\\_]+':'ifeng','^(?:http|https)://app\\.tech\\.ifeng\\.com/[a-zA-Z\\-\\_]+/detail\\-index\\-[0-9]+\\.html':'ifeng','^(?:http|https)://www2\\.xitek\\.com/production/product.php':'xitek','^(?:http|https)://product\\.imp3\\.net/product\\.php':'imp3','^(?:http|https)://www\\.menglu\\.com/product/[\\d]+\\.html':'menglu','^(?:http|https)://(?:lady|lingerie|www|fashion|shipin|item)\\.moonbasa\\.com/[a-zA-Z]\\-[\\d]+\\.html':'moonbasa','^(?:http|https)://www\\.(?:ing2ing|qjherb|korirl|alaves|0-100s|cherriespie|clafield|baoyeah|suorang|monteamor|rutisher)\\.com/p\\-[\\d]+\\.html':'moonbasa','^(?:http|https)://www\\.keede\\.com(\\.cn)?/[a-zA-Z]+[\\d]+\\.html':'keede','^(?:http|https)://www\\.kede\\.com(\\.cn)?/[a-zA-Z]+[\\d]+\\.html':'keede','^(?:http|https)://k1\\.keede\\.cn/[a-zA-Z]+[\\d]+\\.html':'keede','^(?:http|https)://k1\\.kede\\.cn/[a-zA-Z]+[\\d]+\\.html':'keede','^(?:http|https)://item(\\.vt)?\\.vancl\\.com/[\\d]+\\.html':'vancl','^(?:http|https)://www\\.dazhongdianqi\\.com\\.cn/dazhong/product[\\-\\d]+\\.htm':'dazhongdianqi','^(?:http|https)://www\\.skinstorechina\\.com/.+/.+[\\d]+\\-p\\.html':'skinstorechina','^(?:http|https)://item\\.buy\\.qq\\.com/item/':'qq','^(?:http|https)://.*\\.zol\\.com\\.cn/\\d+/\\d+\\.html':'zol-article','^(?:http|https)://.*\\.pconline\\.com\\.cn/\\d+/\\d+\\.html':'pconline-article','^(?:http|https)://.*\\.yesky\\.com/\\d+/\\d+\\.shtml':'yesky-article','^(?:http|https)://.*\\.it168\\.com/[a-z]\\d+/\\d+/\\d+/\\d+\\.shtml':'it168-article','^(?:http|https)://.*\\.pcpop\\.com/doc/\\d+/\\d+/\\d+\\.shtml':'pcpop-article','^(?:http|https)://.*\\.pchome\\.net/content-\\d+\\.html':'pchome-article','^(?:http|https)://.*\\.139shop\\.com/.*?/\\d+/\\d+\\.htm':'139shop-article','^(?:http|https)://www\\.milier\\.com/product/':'milier','^(?:http|https)://www\\.sportica\\.cn/goods':'sportica','^(?:http|https)://www\\.zhenpin\\.com/product':'zhenpin','^(?:http|https)://www\\.gaojie\\.com/product/':'gaojie','^(?:http|https)://www\\.naruko\\.com\\.cn/shop/product/Goods\\.aspx':'naruko','^(?:http|https)://www\\.(?:vivian|masamaso|linkmasa)\\.(?:com|cn)/goods_':'masamaso','^(?:http|https)://item\\.secoo\\.com/':'secoo','^(?:http|https)://paimai\\.secoo\\.com/[0-9]+\\.shtml':'secoo','^(?:http|https)://sale\\.secoo\\.com/[0-9]+\\.shtml':'secoo','^(?:http|https)://(?:www|tuan)\\.ehaier\\.com/product/':'ehaier','^(?:http|https)://qiji\\.ehaier\\.com/new/newExploreManager/dateil/[0-9]+':'ehaier','^(?:http|https)://www\\.handuyishe\\.com/goods':'handuyishe','^(?:http|https)://www\\.wbiao\\.cn/[a-z0-9-]+\\.html':'wbiao', // '^(?:http|https)://www\\.wbiao\\.cn/[a-z]+/[a-z0-9-]+\\.html': 'wbiao', '^(?:http|https)://www\\.wbiao\\.cn/goods\\.php\\?goods_id=[0-9]+':'wbiao','^(?:http|https)://www\\.wbiao\\.cn/van-der-bauwede-\\w[0-9]+\\.html':'wbiao','^(?:http|https)://www\\.shangpin\\.com(\\.hk)*/.*?product/':'shangpin','^(?:http|https)://www\\.pba\\.cn/(?:product|sp)':'pba','^(?:http|https)://www\\.metromall\\.cn/Product/':'metromall','^(?:http|https)://www\\.lizi\\.com/product':'lizi','^(?:http|https)://www\\.kadang\\.com/[a-zA-Z0-9/]*detail\\d+':'kadang','^(?:http|https)://www\\.kadang\\.com/product/[0-9]+':'kadang','^(?:http|https)://www\\.aimer\\.com\\.cn/goods/':'aimer','^(?:http|https)://www\\.lamiu\\.com/goods_':'lamiu','^(?:http|https)://www\\.lamiu\\.com/(?:goods_|product-)':'lamiu','^(?:http|https)://www\\.esprit\\.cn/(?:product|item)/\\w+':'esprit','^(?:http|https)://www\\.liebo\\.com/product/':'liebo','^(?:http|https)://www\\.wangjiu\\.com/product/(?!flashPromotion)':'wangjiu','^(?:http|https)://www.wangjiu.com/mall/item-pid-[a-zA-Z0-9]+\\.html':'wangjiu','^(?:http|https)://www\\.xifuquan\\.com/product/':'xifuquan','^(?:http|https)://www\\.189\\.cn/products/':'189','^(?:http|https)://www\\.hicdma\\.com/product_detail_':'hicdma','^(?:http|https)://mall\\.10010\\.com/goodsdetail/':'10010','^(?:http|https)://www\\.e100\\.cn/ebiz/channel/(.*/)+\\d+\\.html':'e100','^(?:http|https)://store\\.samsung\\.com/cn/.*/p/.*':'samsung','^(?:http|https)://www\\.samsungeshop\\.com\\.cn/product/.*':'samsung','^(?:http|https)://store\\.meizu\\.com/product/':'meizu','^(?:http|https)://detail\\.meizu\\.com/item/\\w+':'meizu','^(?:http|https)://b2c\\.958shop\\.com/.*/\\d+\\.html':'958shop','^(?:http|https)://www\\.okhqb\\.com/item/\\d+\\.html':'okhqb','^(?:http|https)://www\\.okhqb\\.com/qiang/\\d+/\\d+\\.html':'okhqb','^(?:http|https)://www\\.ztedevice\\.com\\.cn/product/':'ztedevice','^(?:http|https)://www\\.daling\\.com/detail-[0-9]+\\.html':'daling','^(?:http|https)://item\\.showjoy\\.com/sku/[0-9]+\\.html':'showjoy','^(?:http|https)://www\\.ocj\\.com\\.cn/detail/[0-9]+':'ocj','^(?:http|https)://www\\.ocj\\.kr/detail/[0-9]+':'ocj-kr','^(?:http|https)://www\\.ocj\\.com\\.cn/otuans/[a-z]+/[0-9]+':'ocj-tuan','^http://www\\.lvyoumall\\.com/(tuan/goods-|tmh/goods-|goods/)\\d+':'lvyoumall','http://www\\.kjt\\.com/product/detail/\\d+':'kjt','^(?:http|https)://store\\.logitech\\.com\\.cn/pro/proDetail/\\d+':'logitech','^(?:http|https)://store\\.logitech\\.com\\.cn/product/PointDetail/\\d+':'logitech','http://shop\\.boohee\\.com/store/goods/\\w+':'boohee','http://www\\.meici\\.com/product-[a-zA-Z0-9-]+\\.html':'meici','http://www\\.meici\\.com/product.*':'meici','http://(?:global|you|www)\\.beibei\\.com/detail/[0-9-]+\\.html':'beibei','http://store\\.nike\\.com/cn/zh_cn/pd/[a-zA-Z0-9\\u4e00-\\u9fa5-]+':'nike','http://store\\.nike\\.com/cn/zh_cn/product/[a-zA-Z0-9\\u4e00-\\u9fa5-]+':'nike','^(?:http|https)://www\\.nike\\.com/cn/t/[a-zA-Z0-9\\u4e00-\\u9fa5-]+':'nike','^(?:http|https)://www\\.fengqu\\.com\/detail\/':'fengqu','^(?:http|https)://www\\.mei\\.com/silo/.*-event-event/.*\\.html':'mei','^(?:http|https)://www\\.mei\\.com/item\\.html\\?':'mei','^(?:http|https)://www\\.vsigo\\.cn/.*\\.html':'vsigo','^(?:http|https)://www\\.sundan\\.com/product-[0-9]+':'sundan','^(?:http|https)://www\\.jiae\\.com/productdetail':'jiae','^(?:http|https)://hd\\.zazhipu\\.com/.*\\.asp\\?id=[0-9]+':'zazhipu','^(?:http|https)://www\\.microsoftstore\\.com\\.cn/%E7%B1%BB%E5%88%AB/.*/p/.*':'microsoftstore','^(?:http|https)://www\\.microsoftstore\\.com\\.cn/surface/[a-z0-9A-Z-]+':'microsoftstore','^(?:http|https)://www\\.xgdq\\.com/product-[0-9]+\\.html':'xgdq','^(?:http|https)://(?:www\\.|)xtep\\.com\\.cn/goods/do_index':'xtep','^(?:http|https)://www\\.xtep\\.com\\.cn/team-[0-9]+\\.html':'xtep','^(?:http|https)://www\\.xtep\\.com\\.cn/spike-[0-9]+\\.html':'xtep','^(?:http|https)://www\\.staples\\.cn/product/[0-9a-zA-Z]+':'staples', // '^(?:http|https)://(?:www\\.|)efotile\\.com/productdetail/[a-z0-9-_]+/[a-z0-9-_]+\\.html': 'efotile', '^(?:http|https)://mall\\.midea\\.com/detail/index':'midea','^(?:http|https)://www\\.midea\\.cn/detail/index':'midea','^(?:http|https)://www\\.midea\\.cn/[0-9]+/[0-9]+\\.html':'midea','^(?:http|https)://www1\\.macys\\.com/shop/product/\\w+':'macys','^(?:http|https)://cn.shopbop.com/[a-z0-9-]+/vp/\\w+':'shopbop', // 'www\\.bestcake\\.com/\\w+/item/[a-z0-9-]+': 'bestcake', '^(?:http|https)://www\\.hua\\.com/product/[0-9]+\\.html':'hua','^(?:http|https)://shop.zhe800.com/products/[0-9a-z]+':'zhe800','^(?:http|https)://www.cosme.com/products/detail.php\\?product_id':'cosme','^(?:http|https)://www.diapers.com/p/':'diapers','^(?:http|https)://www.windeln.de/zh/\\w+-':'windeln','^(?:http|https)://www.windeln.com\\.cn/product/\\d+':'windeln','^(?:http|https)://www.escentual.com/[a-z]+[0-9]+/':'escentual','^(?:http|https)://www.biccamera.com/bc/disp/\\w+':'biccamera','^(?:http|https)://www.esteelauder.com/product/\\d+/\\d+/\\w+':'esteelauder','^(?:http|https)://www.saksfifthavenue.com/main/ProductDetail.jsp':'saksfifthavenue','^(?:http|https)://www.thewatchery.com/detail.asp':'thewatchery','^(?:http|https)://item.tuhu.(cn|com)/Products/':'tuhu','^(?:http|https)://item\\.tuhu\\.cn/Products/[A-Z-]+/\\d+\\.html':'tuhu','^(?:http|https)://eshop.htc.com/mall/zh-CN/htc/[a-z0-9-]+':'htc','^(?:http|https)://roseonly.com.cn/item/[0-9]+.html':'roseonly','^(?:http|https)://www.taqu.cn/goods-\\d+.html':'taqu','^(?:http|https)://shop.jx.189.cn/web/productDetail.action\\?productInfoID':'189','^(?:http|https)://www.bftv.com/product/[0-9]+':'bftv','^(?:http|https)://www.axmall.com.au/p/\\d+\\.html':'axmall','^(?:http|https)://www\\.lovo\\.cn/pr-[0-9]+\\.htm':'lovo','^(?:http|https)://www\\.adidas\\.com\\.cn/item/':'adidas','^(?:http|https)://www\\.smzdm\\.com/p/[0-9]+':'smzdm','^(?:http|https)://www\\.uniqlo\\.cn/product-detail\\.html\\?productCode=[a-z0-9-]+':'uniqlo'};module.exports.init = function(){var pageInfo=getPageInfo();__webpack_require__("316f9c352c6202560d16").log(pageInfo);var productSites=new Set(Object.values(productPattern).filter(function(x){return typeof x === 'string';}));var allSites=new Set(Object.values(sitePattern).map(function(x){return typeof x === 'string'?x:x.name;}));var noProductSites=new Set([].concat(_toConsumableArray(allSites)).filter(function(x){return !productSites.has(x);}));G.pageInfo = pageInfo; // if (noProductSites.has(G.site)) { // require('common/log')('view:unsupportedSite') // } else { // require('common/log')('view:supportedSite:' + pageInfo.type) // } // if (G.from_device === 'biyibi') require('common/log')('viewurl') if(G.sjfix)return;if(G.site && (G.site == 'taobao' || G.site == 'tmall' || G.site.indexOf('taobao') > -1 || G.site == '1688')){G.aliSite = true;}}; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "5e26797fe3f8eeb5faf5": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $, Vue) {// const data = require('data/transport.json') module.exports.init = function (data) { if (!(G.aliSite || G.site === '360buy')) { return; } // let match = classId ? data[classId]: '' // if (!match && classId) { // match = data[classId.substr(0, 4) + '0000'] // } // require('common/extConsole').log(match) // if (!match) { // match = { // catName: '' // } // } __webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return $('#bjgext_mb_bg').length; }); var el = document.createElement('DIV'); $('#bjgext_mb_bg').prepend(el); var TransPort = __webpack_require__("93546969b3877c01da54")['default']; new Vue({ el: el, render: function render(h) { return h(TransPort, { props: { data: data } }); } }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "5ee53b35b71f518d7bb3": /***/ (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_MemberCouponMiniBjg_vue_vue_type_template_id_c1c2cbdc_scoped_true___ = __webpack_require__("11658198c931e28b4bb1"); /* 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_MemberCouponMiniBjg_vue_vue_type_template_id_c1c2cbdc_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_MemberCouponMiniBjg_vue_vue_type_template_id_c1c2cbdc_scoped_true___["b"]; }); /***/ }), /***/ "5fc8e3028459f5d0ea52": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("f6e00ee59c94ed9d130a"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("78b1a24a", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./PriceProtectAuthLoginRequest.vue?vue&type=style&index=0&lang=less&", function() { var newContent = require("!!../../../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!./PriceProtectAuthLoginRequest.vue?vue&type=style&index=0&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "5fe9ccd4be2bd86690c4": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "gwd-contact-link", class: { "gwd-new-tm-style": _vm.withLogo }, on: { mouseover: _vm.over } }, [ _vm.withLogo ? _c("div", { staticClass: "gwd-ww-logo" }) : _vm._e(), _vm._v(" "), _c("span", { staticClass: "gwd-contact-text" }, [_vm._v("扫码联系客服")]), _vm._v(" "), _vm.qr ? _c( "div", { staticClass: "gwd-app-qr-content gwd-column gwd-align" }, [ _c( "div", { staticClass: "gwd-qr-img", style: "margin-top: 7px; margin-left: 7px; margin-right: 7px; height: 111.04px; position: relative; width: 111.04px;" }, [ _c("img", { staticClass: "gwd-qr-logo", attrs: { src: __webpack_require__("c9085187c37fc1ab0e5e"), alt: "" } }), _vm._v(" "), _c("img", { staticStyle: { width: "100%" }, attrs: { src: _vm.qr, alt: "" } }) ] ), _vm._v(" "), _c( "div", { staticClass: "gwd-row gwd-align gwd-qr-bottom-line", style: "margin-top: 6px;" }, [ _c( "span", { staticClass: "bold", style: "font-size: 20px;" }, [_vm._v("淘宝APP")] ), _vm._v(" "), _c( "span", { staticClass: "normal", style: "font-size: 18px" }, [_vm._v("扫码")] ), _vm._v(" "), _c( "span", { staticClass: "normal", staticStyle: { "margin-left": "10px" } }, [_vm._v("联系客服")] ) ] ) ] ) : _vm._e() ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "60624e018be49fb2d959": /***/ (function(module, exports, __webpack_require__) { "use strict"; var domains = { '\\.jd\\.com': '360buy', 'dangdang\\.com': 'dangdang', 'vmei\\.com': 'vmei', 'tootoo\\.cn': 'tootoo', 'www\\.spider\\.com\\.cn': 'spider', '.*?boqii\\.com': 'boqii', 'www\\.51din\\.com': '51din', 'www\\.haituncun\\.com': 'haituncun', 'yunhou\\.com': 'yunhou', '.*?vip\\.com': 'vip', 'www\\.mallvv\\.com': 'homevv', 'rayi\\.cn': 'rayi', 'www\\.yaofang\\.cn': 'yaofang', 'www\\.likeface\\.com': 'likeface', 'www\\.guopi\\.com': 'guopi', 'www\\.menglu\\.com': 'menglu', '(.*?)\\.m18\\.com': 'm18', '\\.efeihu\\.com': 'efeihu', '//www\\.mei\\.com/silo/.*-event-event\\.html': 'mei', 'benlai\\.com': 'benlai', '//www\\.kjt\\.com': 'kjt', 'www\\.kjt\\.com': 'kjt', 'bestinfoods.com': 'bestinfoods', '\\.j1\\.com': 'j1', 'yummy77\\.com': 'yummy77', '\\.360kxr\\.com': '360kxr', 'item\\.feiniu\\.com': 'feiniu', 'shop\\.lenovomobile\\.com': 'lenovo', 'supuy\\.com': 'supuy', 'supumall\\.com': 'supumall', 'yohobuy\\.com': 'yohobuy', 'mf910\\.com': 'mf910', 'sundan\\.com': 'sundan', '\\.tao3c\\.com': 'tao3c', 'aidai\\.com': 'aidai', 'x\\.com\\.cn': 'x', 'feifei\\.(?:cn|com)': 'feifei', 'lovo\\.cn': 'lovo', 'yintai\\.com': 'yintai', 'banggo\\.com': 'banggo', '5lux\\.com': '5lux', 'amazon\\.de': 'amazon_de', '\\.paixie\\.net': 'paixie', '\\.handu\\.com': 'handu', '\\.gou\\.com': 'm6go', 'minshengec\\.com': 'minshengec', 'lemall\\.com': 'lemall', 'ocj\\.com\\.cn': 'ocj', 'nike\\.com': 'nike', 'sfbest\\.(?:hk|com)': 'sfbest', '\\.winxuan\\.com': 'winxuan', '\\.shopin\\.net': 'shopin', '\\.mbaobao\\.com': 'mbaobao', 'www\\.ymatou\\.com': 'ymatou', 'coocaa\\.com': 'coocaa', '111\\.com\\.cn': '111', 'shop\\.lenovo\\.com\\.cn': 'lenovo', 'fruitday\\.com': 'fruitday', 'amazon\\.es': 'amazon', 'meici\\.com': 'meici', 'beibei\\.com': 'beibei', 'keede\\.com': 'keede', 'kede\\.com': 'keede', 'xijie.com': 'xijie', 'camel.com.cn': 'camel', 'meituan\\.com': 'meituan', '\\.amazon\\.cn': 'amazon', '\\.amazon\\.com': 'amazon_us', 'lenovo\\.com': 'lenovo', 'easeeyes\\.com': 'easeeyes', 'aimer\\.com\\.cn': 'aimer', 'showjoy\\.com': 'showjoy', 'yesmywine\\.com': 'yesmywine', 'tiantian\\.com': 'tiantian', '\\.gap\\.cn': 'gap', 'wangfujing\\.com': 'wangfujing', '\\.mei\\.com': 'mei', 'amazon\\.ca': 'amazon_ca', 'secoo\\.com': 'secoo', 'www\\.metao\\.com': 'metao', 'metao\\.com': 'metao', 'amazon\\.com\\.br': 'amazon', 'baiyangwang.com': 'baiyangwang', 'bookuu\\.com': 'bookuu', '100yue\\.com': '100yue', 'meilele\\.com': 'meilele', 'd1\\.com\\.cn': 'd1', 'm\\.d1\\.cn': 'd1', '.taqu.cn': 'taqu', 'letao\\.com': 'letao', 'www\\.kaola\\.com': 'kaola', 'lamiu\\.com': 'lamiu', '\\.vmall\\.com': 'vmall', 'morefood\\.com': 'morefood', '\\.xiji.com': 'xiji', 'shop\\.letv\\.com': 'lemall', 'vjia\\.com': 'vjia', 'staples\\.cn': 'staples', '\\.zm7\\.cn': 'zm7', '\\.(?:moonbasa|korirl|rutisher|suorang|alaves|ing2ing|0-100s|qjherb|monteamor)\\.com': 'moonbasa', 'fengqu\\.com': 'fengqu', 'bestkeep\\.cn': 'bestkeep', 'ocj\\.kr': 'ocj', 'amazon\\.co\\.jp': 'amazon_jp', 'zhen\\.com': 'zhen', '\\.xiu\\.com': 'xiu', '(\\.)?homevv\\.com': 'homevv', 'daling.com': 'daling', 'amazon\\.in': 'amazon', 'feiniu\\.com': 'feiniu', 'jiumei\\.com': 'jiumei', 'taoxie\\.com': 'taoxie', 'amazon\\.it': 'amazon', 'zazhipu\\.com': 'zazhipu', '\\.bl\\.com': 'bl', '.*?bl\\.com': 'bl', 'you.163.com': 'you163', 'lingshi\\.com': 'lingshi', 'hua\\.com': 'hua', '\\.m6go\\.com': 'm6go', 'lefeng\\.com': 'lefeng', '360kad\\.com': '360kad', '\\.99read\\.com': '99read', '\\.miqi\\.cn': 'miqi', 'qinqinbaby\\.com': 'qinqinbaby', 'vancl\\.com': 'vancl', '\\.jiuxian\\.com': 'jiuxian', 'jiae\\.com': 'jiae', 'midea\\.com': 'midea', 'amazon\\.com\\.mx': 'amazon', 'xifuquan\\.com': 'xifuquan', 'amazon\\.com': 'amazon_us', 'wangjiu\\.com': 'wangjiu', 'amazon\\.nl': 'amazon', '\\.okbuy\\.com': 'okbuy', 'amazon\\.com\\.au': 'amazon', 'sasa\\.com': 'sasa', '(\\.)?yiguo\\.com': 'yiguo', 'muyingzhijia\\.com': 'muyingzhijia', '.*?zuipin\\.cn': 'zuipin', '\\.zhiwo\\.com': 'zhiwo', 'store\\.logitech\\.com\\.cn': 'logitech', '\\.newegg(\\.com)?\\.cn': 'newegg', 'efotile\\.com': 'efotile', '\\.ouku\\.com': 'ouku', '\\.no5\\.com\\.cn': 'no5', 'haierjingshui\\.com': 'haierjingshui', 'www\\.kzj365\\.com': 'kzj365', 'wbiao\\.cn': 'wbiao', '\\.lusen\\.com': 'lusen', 'jumei\\.com': 'jumei', 'xgdq\\.com': 'xgdq', 'mia\\.com': 'miyabaobei', 'miyabaobei.hk': 'miyabaobei', 'ule\\.com': 'ule', '\\.okhqb\\.com': 'okhqb', 'jianke\\.com': 'jianke', '\\.jxdyf\\.com': 'jxdyf', 'xtep\\.com\\.cn': 'xtep', 'guojimami.com': 'guojimami', 'ehaier\\.com': 'ehaier', 'lbxcn\\.com': 'lbxcn', '\\.camel\\.com\\.cn': 'camel', '(?:vivian|linkmasa|masamaso)\\.(?:com|cn)': 'masamaso', 'lifevc.com': 'lifevc', 'chunshuitang\\.com': 'chunshuitang', '\\.bookschina\\.com': 'bookschina', 'leyou\\.com\\.cn': 'leyou', '\\.yougou\\.com': 'yougou', 'amazon\\.co\\.uk': 'amazon_uk', 'gjw\\.com': 'gjw', 'lining\\.com': 'lining', '\\.s\\.cn': 'scn', 'hisense\\.com': 'hisense', '\\.china-pub\\.com': 'chinapub', 'jumeiglobal\\.com': 'jumei', '\\.(xiao)?mi\\.com': 'mi', '\\.sephora\\.cn': 'sephora', 'jinxiang.com': 'jxdyf', 'purcotton.com': 'purcotton', 'wstx.com': 'wstx', 'zhongjiu.cn': 'zhongjiu', 'www.kaluli.com': 'kaluli', 'mall.to8to.com': 'to8to', 'www.opposhop.cn': 'opposhop', 'baobeigezi.com': 'baobeigezi', 'www.markmall.com': 'markmall', 'happigo\\.com': 'happigo', 'aolaigo\\.com': 'aolaigo', 'skg\\.com': 'skg', 'coolpad\\.com': 'coolpad', 'dixintong\\.com': 'dixintong', 'vivo\\.com\\.cn': 'vivo', 'luolai\\.cn': 'luolai', 'aomygod\\.com': 'aomygod', 'suanjuzi\\.com': 'suanjuzi', 'gionee\\.com': 'gionee', 'yao123\\.com': 'yao123', 'tuhu\\.cn': 'tuhu', 'walmart\\.com': 'walmart', 'vsigo\\.cn': 'vsigo', 'lookfantastic\\.com': 'lookfantastic', 'ashford\\.com': 'ashford', 'shopbop\\.com': 'shopbop', '6pm\\.com': '6pm', 'amazon\\.fr': 'amazon_fr', 'suning\\.com': 'suning', 'gome.com.cn': 'gome', 's\\.taobao\\.com': 'taobao', 'list\\.tmall\\.com': 'tmall', 'yhd.com': 'yihaodian', 'xiaomiyoupin\\.com': 'youpin-mi', '\\.yangkeduo\\.com': 'yangkeduo' }; var siteIdHash = { "amazon": 1, "dangdang": 2, "360buy": 3, "zol": 4, "fglady": 5, "ouku": 6, "newegg": 7, "kimiss": 8, "redbaby": 9, "m18": 10, "sephora": 12, "lefeng": 13, "scn": 14, "51buy": 15, "menglu": 16, "moonbasa": 17, "keede": 18, "vancl": 19, "okbuy": 21, "letao": 22, "buy007": 23, "taoxie": 24, "suning": 25, "coo8": 26, "lusen": 27, "gome": 28, 'dazhongdianqi': 29, "yihaodian": 31, "womai": 32, "leyou": 33, "shopin": 34, "xiu": 35, "mbaobao": 36, "vjia": 37, '7cv': 38, "youpin-mi": 39, "chunshuitang": 40, "x": 41, "guopi": 42, "no5": 43, 'sasa': 45, "360kxr": 50, "m6go": 51, "likeface": 52, "morefood": 54, "yaofang": 56, "99read": 59, "chinapub": 60, "bookschina": 61, "winxuan": 62, "efeihu": 63, "yintai": 66, "happigo": 72, "gap": 73, '5lux': 75, "tmall": 83, "tiantian": 84, "xijie": 85, "jumei": 86, "yougou": 93, "111": 94, 'jianke': 97, "muyingzhijia": 98, "lingshi": 99, "banggo": 100, "yesmywine": 101, "jiumei": 102, "jiuxian": 103, "gjw": 108, "okhqb": 109, "bookuu": 110, "tao3c": 111, "d1": 115, "rayi": 120, "paixie": 122, "taobao": 123, "homevv": 124, "jxdyf": 125, "sfbest": 126, "benlai": 127, "tootoo": 128, "tuotuo": 128, "vip": 129, "vmall": 134, "lenovo": 135, 'apple': 136, "zm7": 138, "miqi": 139, "zhiwo": 140, "j1": 141, 'wangjiu': 142, 'lamiu': 146, 'aimer': 147, "wbiao": 153, 'handu': 154, "ehaier": 155, "secoo": 156, 'camel': 157, 'masamaso': 158, 'zhen': 162, 'xifuquan': 164, "mi": 167, 'lemall': 168, "meituan": 172, 'ctrip': 173, "yiguo": 174, "yummy77": 175, "fruitday": 178, "feiniu": 180, "feifei": 181, 'zuipin': 182, 'yohobuy': 184, 'lvmama': 185, 'bestkeep': 188, 'mf910': 194, 'markmall': 194, "miyabaobei": 195, 'ule': 196, 'minshengec': 197, 'wangfujing': 198, 'nuomi': 199, "meilele": 201, "mogujie": 203, 'elong': 206, "supumall": 210, 'ly': 211, 'lining': 213, 'springtour': 215, 'haierjingshui': 217, "coocaa": 218, 'lifevc': 220, 'kzj365': 222, "kaola": 223, "ymatou": 224, "metao": 225, 'kjt': 226, "logitech": 227, 'amazon_us': 228, 'amazon_jp': 229, "xiji": 232, 'nike': 233, '360kad': 234, 'lbxcn': 235, 'meici': 236, 'beibei': 237, '6pm': 238, 'shopbop': 241, 'amazon_de': 246, 'ashford': 247, 'lookfantastic': 248, 'vsigo': 252, '100yue': 256, 'amazon_uk': 266, "daling": 267, "fengqu": 268, 'mei': 269, 'showjoy': 270, 'ocj': 271, 'sundan': 272, 'easeeyes': 273, 'yunhou': 274, 'haituncun': 275, 'walmart': 276, 'vmei': 277, 'jgb': 278, '51din': 279, 'aidai': 280, 'boqii': 281, 'toursforfun': 282, 'lulutrip': 283, 'spider': 284, 'jiae': 286, 'zazhipu': 287, 'xgdq': 288, 'xtep': 289, 'midea': 290, 'staples': 291, 'efotile': 292, 'lovo': 294, 'hua': 295, 'zhe800': 296, 'tuhu': 299, 'taqu': 313, 'bl': 347, 'bestinfoods': 348, 'you163': 349, 'guojimami': 351, 'baiyangwang': 352, 'juanpi': 360, 'purcotton': 364, 'amazon_fr': 365, 'amazon_ca': 366, 'wstx': 367, 'hisense': 368, 'zhongjiu': 369, 'yangkeduo': 370, 'to8to': 371, 'opposhop': 372, 'baobeigezi': 373, 'yao123': 374, 'gionee': 376, 'suanjuzi': 377, 'aomygod': 378, 'luolai': 379, 'vivo': 380, 'dixintong': 381, 'coolpad': 382, 'skg': 383, 'aolaigo': 385 }; var siteName = { 0: "购物党", 1: "亚马逊", 2: "当当网", 3: "京东商城", 4: "中关村在线", 5: "风尚伊人网", 6: "欧酷网", 7: "新蛋中国", 8: "闺蜜网", 9: "红孩子", 10: "麦网", 11: "唯伊商城", 12: "丝芙兰", 13: "乐蜂网", 14: "名鞋库", 15: "易迅网", 16: "梦露时尚网", 17: "梦芭莎", 18: "可得眼镜网", 19: "凡客诚品", 20: "淘秀-百丽鞋业", 21: "好乐买", 22: "乐淘", 23: "奥讯运动商城", 24: "淘鞋网", 25: "苏宁易购", 26: "库巴网(国美)", 27: "绿森数码", 28: "国美在线", 29: "大中电器", 30: "国美体育", 31: "一号店", 32: "中粮我买网", 33: "乐友孕婴童", 34: "上品折扣", 35: "走秀网", 36: "麦包包", 37: "V+(凡客)", 38: "七彩谷", 39: "小米有品", 40: "春水堂", 41: "桔色成人", 42: "果皮网", 43: "No5时尚广场", 44: "IDSHE.COM", 45: "香港莎莎", 46: "DHC中国", 47: "烧包网", 48: "日全食", 49: "第九大道", 50: "开心人大药房", 51: "麦乐购", 52: "悦美丽", 53: "抢鲜网", 54: "猫诚食品", 55: "耀点100百货商城", 56: "药房网", 57: "中关村在线商城", 58: "丽家宝贝", 59: "99网上书城", 60: "互动出版网", 61: "中国图书网", 62: "文轩网", 63: "飞虎乐购", 65: "致美网(SkinStore China)", 66: "银泰百货", 67: "趣玩", 68: "UrCosme", 69: "草莓网", 70: "露倩网", 71: "酷运动", 72: "快乐购", 73: "GAP中国", 74: "妙乐乐母婴用品商城", 75: "第五大道奢侈品网", 76: "小主人网", 77: "宜家家居官网", 78: "新七天电器网", 79: "达芙妮官网", 80: "太平洋亲子网", 81: "太平洋家居网", 82: "缤购网(红孩子)", 83: "天猫", 84: "天天网", 85: "西街运动网", 86: "聚美优品", 87: "小熊在线商城", 88: "草莓派化妆品商城", 89: "大货栈网上超市", 90: "名品打折", 91: "活力达保健品网", 92: "12点零食", 93: "优购网", 94: "1药网", 95: "导药网(上海复美大药房)", 96: "烟悦网", 97: "健客网", 98: "母婴之家", 99: "中国零食网", 100: "邦购网", 101: "也买酒", 102: "酒美网", 103: "酒仙网", 104: "惠健康商城", 105: "工贸家电", 106: "后玛特网上超市", 107: "虎扑识货", 108: "购酒网", 109: "华强北商城", 110: "博库书城", 111: "高鸿商城", 112: "西单igo5", 113: "新世界百货", 114: "汉光百货", 115: "D1优尚", 116: "易斯来福", 117: "优悦生活", 118: "插座网", 119: "ORBIS中国", 120: "锐意网", 121: "优1宝贝", 122: "拍鞋网", 123: "淘宝网", 124: "为为网", 125: "金象网", 126: "顺丰优选", 127: "本来生活", 128: "沱沱工社", 129: "唯品会", 130: "聚尚网", 131: "俏物悄语", 132: "天品网", 134: "华为商城", 135: "联想商城", 136: "苹果官网", 138: "卓美网", 139: "米奇网", 140: "知我药妆", 141: "健一网", 142: "网酒网", 143: "比度克", 144: "裂帛服饰", 145: "ESPRIT中文官网", 146: "兰缪内衣", 147: "爱慕官网", 148: "卡当网", 149: "丽子美妆", 150: "麦德龙", 151: "PBA美妆", 152: "尚品网", 153: "万表网", 154: "韩都衣舍", 155: "海尔商城", 156: "寺库网", 157: "骆驼官方商城", 158: "玛萨玛索", 159: "NOP男装", 160: "牛尔官网", 161: "高街网", 162: "珍品网", 163: "斯波帝卡", 164: "皙肤泉", 165: "米粒儿", 167: "小米商城", 168: "乐视商城", 169: "多看阅读", 170: "QQ网购", 171: "大众点评", 172: "美团", 173: "携程网", 174: "易果网", 175: "美味七七", 178: "天天果园", 179: "聚美海外购", 180: "飞牛网", 181: "飞飞商城", 182: "醉品商城", 183: "贝备网", 184: "有货", 185: "驴妈妈旅游网", 186: "青芒果", 187: "优彩网", 188: "跨境淘", 189: "包包树", 190: "满座网", 191: "一城一品", 192: "中国足彩网", 193: "发彩网", 194: "马克华菲", 195: "蜜芽", 196: "邮乐网", 197: "民生商城", 198: "王府井网上商城", 199: "百度糯米", 200: "去哪儿网", 201: "美乐乐", 202: "美丽说", 203: "蘑菇街", 204: "窝窝团", 205: "锦江之星", 206: "艺龙旅行网", 207: "布丁酒店", 208: "芒果网", 209: "500彩票网", 210: "速普商城", 211: "同程网", 213: "李宁官方商城", 214: "新东方在线", 215: "春秋旅游", 216: "永乐票务", 217: "海尔净水商城", 218: "酷开商城", 219: "魅族在线商店", 220: "LifeVC", 221: "努比亚官网", 222: "康之家网上药店", 223: "考拉海购", 224: "洋码头", 225: "蜜淘", 226: "跨境通", 227: "罗技官网", 228: "亚马逊美国", 229: "亚马逊日本", 230: "eBay", 231: "AliExpress", 232: "西集网", 233: "Nike", 234: "康爱多网上药店", 235: "老百姓网上药店", 236: "美西时尚", 237: "贝贝网", 238: "6PM", 239: "GNC美国官网", 240: "MYHABIT", 241: "SHOPBOP", 242: "Walgreens", 243: "STP", 244: "美国新蛋", 245: "Jomashop", 246: "亚马逊德国", 247: "Ashford", 248: "LookFantastic", 249: "REI", 250: "iHerb", 251: "Carter's", 252: "视客眼镜网", 253: "END.", 254: "CampSaver", 255: "乐天国际", 256: "百悦网", 257: "Woot", 258: "海淘城", 259: "Joe's NB Outlet", 260: "FinishLine", 261: "Vitacost", 262: "Groupon", 263: "Macy's", 264: "Moosejaw", 265: "GILT", 266: "亚马逊英国", 267: "达令", 268: "丰趣海淘", 269: "魅力惠", 270: "尚妆网", 271: "东方CJ", 272: "顺电网上商城", 273: "易视网", 274: "云猴网", 275: "海豚村", 276: "Walmart", 277: "唯美美妆", 278: "金箍棒海外购", 279: "我要订", 280: "爱戴网", 281: "波奇宠物商城", 282: "途风网", 283: "路路行", 284: "蜘蛛网", 285: "微软中国", 286: "加意新品", 287: "杂志铺", 288: "小狗电器", 289: "特步官方商城", 290: "美的商城", 291: "史泰博", 292: "方太商城", 293: "贝思客", 294: "LOVO家纺", 295: "中国鲜花礼品网", 296: "折800", 297: "暴风TV", 298: "途家网", 299: "途虎养车网", 300: "HTC官方商城", 301: "roseonly官网", 302: "融360", 303: "你我贷", 304: "Cosme Shopping", 305: "Diapers", 306: "Windeln.de", 307: "Babyneo.de", 308: "Escentual", 309: "TheWatchery", 310: "Saks Fifth Avenue", 311: "Estee Lauder", 312: "Bic Camera", 313: "他趣", 314: "穷游网", 315: "澳新优选", 316: "无印良品", 317: "Gmarket", 318: "11号街", 319: "Smartbargains", 320: "雅虎日本商城", 321: "布鲁明戴尔", 322: "Mikihouse", 323: "ToysRUs日本官网", 324: "ComfortFirst", 325: "金宝贝", 326: "Albee Baby", 327: "Babymarkt", 328: "UGG官网", 329: "Neiman Marcus", 330: "Shoebuy", 331: "Szul", 332: "Timex", 333: "Kay Jewelers", 334: "eWatches", 335: "Swarovski美国官网", 336: "World of Watches", 337: "Daniel Wellington", 338: "Beauty Bay", 339: "Beauty.com", 340: "Beauty Bar", 341: "SkinStore", 342: "兰芝韩国官网", 343: "BOSE美国官网", 344: "Best Buy", 345: "B&H", 346: "索尼日本官网", 347: "百联", 348: "源品优购", 349: "网易严选", 350: "锦江国际", 351: "国际妈咪", 352: "百洋商城", 353: "遨游网", 354: "Roy Young中文官网", 355: "Mediheal中文官网", 356: "1001 pharmacies中文官网", 357: "Lookfantastic中文官网", 359: "开心保保险网", 360: "卷皮网", 361: "Booking.com", 362: "澳洲PO药房中文官网", 363: "德国BA保镖药房中文网", 364: "全棉时代", 365: "亚马逊法国", 366: "亚马逊加拿大", 367: "外设天下", 368: "海信商城", 369: "中酒网", 370: "拼多多", 371: "土巴兔家居商城", 372: "OPPO在线商城", 373: "宝贝格子", 374: "国药网", 375: "百程旅行网", 376: "金立手机官网", 377: "酸橘子", 378: "奥买家全球购", 379: "罗莱官方商城", 380: "VIVO官方商城", 381: "迪信通官方商城", 382: "酷派商城", 383: "SKG官网", 384: "爱奇艺", 385: "奥莱购", 386: "每日优鲜", 387: "圃神跨境", 388: "Feelunique中文网", 389: "Chemist Direct中文网", 390: "Net Pharmacy中文网", 391: "Pharmacy 4 Less中文网", 392: "Pharmacy Direct中文网", 393: "Amcal中文网", 394: "La Redoute中文网", 395: "德国UKA优卡有机中文网", 396: "Erwin Mueller穆勒家居中文网", 397: "Kiwi Discovery中文网", 398: "Springlane中文网", 399: "德国JAKO-O婴童用品中文网", 400: "EasyToys中文站", 401: "英国TLC中文网", 402: "法国BM彼洋美食", 403: "Dewaren德国狮子家中文网", 404: "DC德式康线上药房中文官网", 405: "荷兰之家中文站", 406: "鱿鱼网", 407: "KiwiStarcare官网", 408: "ZUK联想手机商城", 409: "Kiehl's美国官网", 410: "Zappos", 411: "COACH蔻驰中国官网", 412: "YOOX中文官网", 413: "韩国11街中文官网", 414: "英超海淘", 415: "HQhair.com", 416: "Kate Spade", 417: "Vitafy中文官网", 418: "乐天网购", 419: "家乐福网上商城", 420: "茶七网", 421: "普泽大药房", 422: "Kohl's", 423: "Body Building", 424: "Nordstrom", 425: "Costco", 426: "Target", 427: "Kmart", 428: "Overstock", 429: "Sears", 430: "老板电器官方商城", 431: "狗民网商城", 432: "飞科商城", 433: "欧普照明", 434: "世界婴童网", 435: "益丰大药房", 436: "好订网", 437: "爱回收", 438: "野兽派", 439: "九牧卫浴官方商城", 440: "七匹狼官方商城", 441: "链家", 442: "我爱我家", 443: "六间房秀场", 444: "八百方网上药店", 445: "优集品", 446: "买卖宝", 447: "优众网", 448: "爱康国宾健康商城", 449: "维也纳酒店官网", 450: "M'CAKE", 451: "美色商城", 452: "诺心蛋糕官网", 453: "简单学习网", 454: "精华在线", 455: "桃花坞", 456: "钻石小鸟官网", 457: "康美健康商城", 458: "佐卡伊官网", 459: "淘书网", 460: "爱之谷", 461: "铁友旅行网", 462: "莆田网", 463: "味多美官网", 464: "林清轩官网", 467: "美国购物网", 468: "品尚汇", 469: "柒牌官方商城", 470: "游多多客栈", 471: "1688平价精选", 472: "优个网", 473: "大朴网", 474: "薇诺娜官网", 475: "蔚蓝图书网", 476: "山脉户外", 477: "何金昌官网", 478: "买茶网", 479: "优e网", 480: "51YOU旅游网", 481: "北发图书网", 482: "晶品网", 483: "华佗药房", 484: "威锋商城", 485: "诺一良品", 486: "和茶网", 487: "天时汇官网", 488: "趣网商城", 489: "蜜柚旅行", 490: "好药师网上药店", 491: "IDX爱定客", 492: "优雅100", 493: "S&S女装", 494: "倩碧美国官网", 495: "华夏e当", 496: "Brooks Brothers", 497: "欧美淘", 498: "印通天下", 499: "哥伦比亚美国官网", 500: "BEST全球购", 501: "New Balance美国官网", 502: "万集客", 503: "Bally英国官网", 504: "一嗨租车", 505: "嘉利成", 506: "多庆屋中文官网", 507: "Forever 21", 508: "摩登大道", 509: "木鸟短租", 510: "最会游", 511: "中原地产", 512: "Bobbi Brown美国官网", 513: "Super-in", 514: "汉购网", 515: "Levis德国官网", 516: "斐乐FILA官方商城", 517: "匡威中国官方商城", 518: "Next美国官网", 519: "iTrip爱去旅行网", 520: "拉手网", 521: "六丰商城", 522: "同仁堂天然淘", 523: "我订花", 524: "Foodi", 525: "中国森林食品网", 526: "香港卓悦化妆品", 527: "维他购", 528: "金海马商城", 529: "亮健好药房", 530: "唱吧直播间", 531: "Oakley美国官网", 532: "逸行网", 533: "Clarks美国官网", 534: "Starwood Hotels", 535: "Marriott万豪美国官网", 536: "Yes Style", 537: "Evisu中文官网", 538: "Life's Easy", 539: "宠宠熊官方商城", 540: "0061澳洲制造", 541: "KK馆全球购", 542: "Style O'Clock", 543: "配夸全球购", 544: "Air France", 545: "Accor Hotels中文官网", 546: "Space.NK", 547: "嗨厨房", 548: "W Concept", 549: "GANT英国官网", 550: "CAT Footwear英国官网", 551: "Saucony英国官网", 552: "造作家居", 553: "小天鹅官方商城", 554: "CAN看尚商城", 555: "时尚日记", 556: "Guess澳大利亚官网", 557: "Etihad Airways", 558: "FIIL商城", 559: "免税易购", 560: "特购社", 561: "Wiggle中文官网", 562: "Melissa香港官网", 563: "科沃斯官方商城", 564: "Calvin Klein", 565: "MEMEBOX美美箱", 566: "Hilton美国官网", 567: "Revolve Clothing", 568: "资生堂美国官网", 569: "娇韵诗美国官网", 570: "Starbucks美国官网", 571: "Ray-Ban美国官网", 572: "Puma美国官网", 573: "Nautica美国官网", 574: "La Mer美国官网", 575: "Kipling美国官网", 576: "Jurlique美国官网", 577: "Hush Puppies", 578: "Origins美国官网", 579: "Folli Follie美国官网", 580: "L'Occitane美国官网", 581: "麦田", 582: "惠普官方商城", 583: "国大地产", 584: "首家商城", 585: "青岛Q房网", 586: "广州家家顺房产网", 587: "杭州豪世华邦房产网", 588: "HealthPost", 589: "房天下", 590: "梦想书城", 591: "海优世纪馆", 592: "扫货特卖", 593: "热拍网", 594: "蚂蚁短租", 595: "银票网", 596: "爱虎保", 597: "Incake官网", 598: "聚星直播", 599: "艺网", 600: "康辉旅行网", 601: "安适购海外商城", 602: "霹雳爸爸海淘平台", 603: "小牛在线", 604: "AHAVA", 605: "Fifth", 606: "The Watch Hut", 607: "BabyHaven中文网", 608: "玫丽网", 609: "Get The Label 中文网", 610: "松屋百货中文网", 611: "Timberland", 612: "Topman", 613: "HomeAway", 614: "Beauty Expert", 615: "海蜜严选", 616: "Mankind", 617: "The Hut", 618: "Topshop", 619: "Mamaladen", 620: "Traveler store", 621: "Travelzoo", 622: "UMI Children's Shoes", 623: "新秀丽美国官网", 624: "Ferrari Store", 625: "Willer Travel", 626: "Unineed", 627: "Acne Studios中文网", 628: "Aeropostale", 629: "Agoda中文站", 630: "Alba Moda", 631: "Allbeauty", 632: "AllSaints", 633: "Allsole", 634: "Urban Outfitters", 635: "Vitabiotics", 636: "Belle Maison", 637: "贝玲妃美国官网", 638: "BH Cosmetics", 639: "美莱新青年", 640: "Vitamin Bay", 641: "Waitrose", 642: "Wolford", 643: "Boohoo", 644: "Boots.com", 645: "British Corner Shop", 646: "宜人贷", 647: "萤石商城", 648: "Coggles.com", 649: "Corset Deal", 650: "COTTON ON", 651: "Crocs英国官网", 652: "CRUISE", 653: "Dell美国官网", 654: "Dermstore", 655: "Disney Store", 656: "Dorothy Perkins", 657: "痘痘康官方商城", 658: "度假客", 659: "Dune London", 660: "Eastbay", 661: "East Dane中文网", 662: "Zaful", 663: "Zavvi", 664: "Feinkeit.de", 665: "eibmarkt", 666: "Belluna中文网", 667: "Emirates阿联酋航", 668: "Eastern Mountain Sports", 669: "ETERNA", 670: "Eurail", 671: "Exante Diet", 672: "Expedia UK", 673: "FALKE", 674: "Famous Footwear", 675: "Bonpont", 676: "Foreo", 677: "网信", 678: "Forever Unique", 679: "Forzieri", 680: "Free Country", 681: "CERRUTI 1881", 682: "French Connection", 683: "Gift land", 684: "Cult Beauty", 685: "Fancy", 686: "Kent&Curwen", 687: "Grow Gorgeous中文网", 688: "KoreanMall中文站", 689: "STYLEBOP.com", 690: "HOTEL INFO", 691: "House of Fraser", 692: "惠租车", 693: "Vitamin Planet", 694: "Wow Mall", 695: "IWOOT", 696: "讲究商城", 697: "YA-MAN", 698: "海保保险", 699: "Juicy Couture", 700: "Kenko", 701: "The jewel hut", 702: "KIKO美国官网", 703: "Lancer Skincare", 704: "LEGO shop", 705: "Moss Bros", 706: "Lord & Taylor", 707: "Stylenanda中文网", 708: "人卫智网", 709: "有道翻译", 710: "Filthy Fragrance", 711: "麦知网", 712: "MatchesFashion", 713: "松本清", 714: "移动商街", 715: "Microsoft Store", 716: "Mio Skincare中文站", 717: "Miss Selfridge", 718: "Mountain Gear", 719: "360好药", 720: "My Bag", 721: "Myprotein", 722: "美骑易购商城", 723: "Myvitamins", 724: "NET-A-PORTER中文网", 725: "New Balance英国官网", 726: "叮当快药", 727: "New Look", 728: "中华会计网校", 729: "必迈官网", 730: "耐克香港官网", 731: "耐克巴西官网", 732: "映客直播", 733: "New York & Company", 734: "Oasis英国官网", 735: "Orbitz", 736: "Orchira", 737: "Origins英国官网", 738: "PetSmart", 739: "君融贷", 740: "哪拍网", 741: "格力官方商城", 742: "ProBikeKit", 743: "Qatar Airways卡塔尔航空", 744: "Radley英国官网", 745: "安联保险", 746: "Ralph Lauren", 747: "Rebecca Minkoff", 748: "优米网", 749: "21Cake", 750: "Rentalcar", 751: "Dr. Pierre Ricaud", 752: "Rockport", 753: "Ruelala", 754: "56人旅游网", 755: "Saks Fifth Avenue OFF 5TH", 756: "安纳塔拉", 757: "SC24.com", 758: "车速递租车", 759: "SHOES.COM", 760: "Spring", 761: "Simply Supplements", 762: "宜和购物", 763: "Farfetch中文网", 764: "Ssense", 765: "Steve Madden", 766: "Free People中文网", 767: "高搜易", 768: "iMomoko中文网", 769: "淘豆", 770: "Michael Kors中文网", 771: "三佳购物", 772: "联金所", 773: "宅豆网", 774: "网易云", 775: "德国药房apo.com中文网", 776: "读秒", 777: "好享商城", 778: "西狗全球购", 779: "玩哪网", 780: "紫马财行", 781: "金猫银猫", 782: "跨境网", 783: "Millennium&Copthorne Hotels中文网", 784: "Reebonz", 785: "薇美铺", 786: "五洲会海购", 787: "惠家有", 788: "Meli Melo中文网", 789: "小财迷", 790: "Ashford中文网", 791: "韩国CJONmart中文网", 792: "益钱网", 793: "THE GRAND中文免税店", 794: "欧迪办公", 795: "天虹网上商城", 796: "以岭健康城", 797: "客路旅行", 1001: "亚马逊第三方", 1003: "京东手机端", 1015: "易迅北京", 1025: "苏宁北京", 1031: "一号店上海", 1032: "中粮我买网华东", 1124: "为为网北京", 1126: "顺丰上海", 2003: "京东微信端", 2015: "易迅广东", 2025: "苏宁广州", 2031: "一号店广东", 2032: "中粮我买华南", 2126: "顺丰广州", 3015: "易迅湖北", 3025: "苏宁成都", 3031: "一号店湖北", 4031: "一号店四川" }; module.exports.getSiteId = function (site) { return siteIdHash[site]; }; module.exports.getSiteName = function (site, siteId) { if (!siteId) siteId = siteIdHash[site]; return siteName[siteId]; }; var passLinks = function passLinks(site, callback) { var pagerParser = __webpack_require__("b80e0015559d9b54ff50"); var id = -1; if (!(id = siteIdHash[site]) || !pagerParser[id]) { return; } var links = pagerParser[id](document); if (!links) { return; } // var sendMessage = function() { // var queue = pyDomain[site] ? 0 : 1 //0: need python // //if (links.length) { // chrome.runtime.sendMessage({ // action: 'pager', // links: Array.prototype.slice.call(links), // args: [ // [id] // ], // url: document.URL, // queue: queue // }) // //} // } if (links.wait) { setTimeout(function () { links = Array.prototype.slice.call(document._links); callback(id, links); }, 5500); } else { callback(id, links); } }; module.exports.init = function (callback) { //$(function() { //document.addEventListener("DOMContentLoaded", function() { for (var key in domains) { if (document.location.hostname.match(key)) { passLinks(domains[key], callback); break; } } //}, false) //}) }; /***/ }), /***/ "6117392a97ef5fb97e10": /***/ (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.showSizeHelp, expression: "showSizeHelp" } ], staticClass: "pricedog-bar gwd-row", staticStyle: { "margin-top": "6px" } }, [ _c( "div", { directives: [ { name: "show", rawName: "v-show", value: false, expression: "false" } ], staticClass: "pricedog-tab gwd-align gwd-row", staticStyle: { width: "102px" } }, [ _vm.rate ? _c( "span", { staticStyle: { color: "#ff6132", "line-height": "initial" } }, [ _vm._v( "税费预估 : ¥" + _vm._s((_vm.price * _vm.rate).toFixed(2)) ) ] ) : _vm._e(), _vm._v(" "), _c("div", { staticClass: "pricedog-tab-content" }) ] ), _vm._v(" "), _vm.showSizeHelp ? _c( "div", { staticClass: "pricedog-tab gwd-align gwd-row", staticStyle: { width: "97px" } }, [ _c("img", { staticStyle: { width: "15px", height: "15px" }, attrs: { src: __webpack_require__("969d7875296ab3655b24"), alt: "" } }), _vm._v(" "), _c( "span", { staticStyle: { "margin-left": "6px", color: "#64615d" } }, [_vm._v(_vm._s(_vm.lang === "en" ? "Size Chart" : "尺码帮助"))] ), _vm._v(" "), _c( "div", { staticClass: "pricedog-tab-content", staticStyle: { width: "475px", height: "278px" } }, [_c("SizeHelp")], 1 ) ] ) : _vm._e() ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "61191ae0f0390d21295c": /***/ (function(module, exports, __webpack_require__) { "use strict"; var pako = __webpack_require__("8860e71fb8000a47caf5"); module.exports.gZip = function (str) { return pako.gzip(JSON.stringify(str)); }; module.exports.unGzip = function (str) { return JSON.parse(pako.ungzip(str)); }; /***/ }), /***/ "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"))) /***/ }), /***/ "62fe80c9218a9dbf937f": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("c05bbcb58c86deadc879"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("8b4c003e", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./CommonCouponBarMini.vue?vue&type=style&index=0&id=3fdd510a&scoped=true&lang=less&", function() { var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./CommonCouponBarMini.vue?vue&type=style&index=0&id=3fdd510a&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "634a5c7438fad1031724": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _ShopCouponMixin = __webpack_require__("a961a3b75385dff22b7e"); var _ShopCouponMixin2 = _interopRequireDefault(_ShopCouponMixin); var getQRCode = __webpack_require__("657bad1e7f3b602f7d70"); var getCouponInfo = __webpack_require__("047b30291b8b83e043ed"); exports['default'] = { props: ['coupon', 'useTb'], mixins: [_ShopCouponMixin2['default']], data: function data() { return { img: '', error: false, loading: false, tag: 6 }; }, mounted: function mounted() { __webpack_require__("83271c7588396d2d5e59").log('店铺券顶部二维码', '曝光'); } }; module.exports = exports['default']; /***/ }), /***/ "64f5bba3b847b99e79a7": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, "/* price_tip */\n#bjgou_price_tip {\n display: none;\n position: absolute;\n top: 0;\n width: 68px;\n height: 24px;\n z-index: 999999999999999;\n cursor: default;\n border-radius: 2px;\n background-image: linear-gradient(-180deg, #FFFFFF 0%, #FFFFFF 100%);\n}\n#bjgou_price_tip .tip_btn_box {\n float: left;\n width: 68px;\n height: 24px;\n background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 100%);\n box-shadow: 0px 2px 4px 0px rgba(217, 217, 217, 0.5);\n border-radius: 2px;\n}\n#bjgou_price_tip:hover {\n box-shadow: 0 1px 5px 0 rgba(210, 210, 210, 0.5);\n}\n#bjgou_price_tip .tip_btn_box > em {\n background: white url(\"https://cdn.bijiago.com/images/extensions/bijiago/tipLogo@2x.png\") 0px 0px no-repeat;\n float: left;\n height: 22px;\n width: 22px;\n border-top-left-radius: 2px;\n border-bottom-left-radius: 2px;\n box-sizing: content-box;\n background-size: contain;\n position: relative;\n top: 1px;\n left: 4px;\n}\n#bjgou_price_tip .tip_btn_box > span {\n float: left;\n width: 43px;\n height: 22px;\n font-family: \"microsoft yahei\";\n font-size: 13px;\n color: #64615d;\n line-height: 22px;\n text-align: center;\n box-sizing: content-box;\n position: relative;\n top: 1px;\n}\n#bjgou_price_tip_detail {\n top: -1px;\n left: 69px;\n display: none;\n position: absolute;\n width: 450px;\n height: auto;\n background: #FFFFFF;\n border: 1px solid #edf1f3;\n box-shadow: 0 4px 6px 0 rgba(100, 125, 142, 0.5);\n border-radius: 4px;\n z-index: 999999999999;\n}\n#bjgou_price_tip_detail .tip-title,\n#bjgou_price_tip_detail .tip-box-right > p,\n#bjgou_price_tip_detail .tip-info-promo > span {\n color: #64615d;\n}\n#bjgou_price_tip_detail .tip-highest-btn,\n#bjgou_price_tip_detail .tip-now-btn {\n color: #ff6132;\n}\n#bjgou_price_tip_detail.tip-error-info {\n background: #FFFFFF;\n border: 1px solid #edf1f3;\n box-shadow: 0 4px 6px 0 rgba(100, 125, 142, 0.5);\n border-radius: 4px;\n width: 200px;\n height: 40px;\n text-indent: 12px;\n line-height: 40px;\n}\n#bjgou_price_tip_detail.tip-error-info div {\n font-family: MicrosoftYaHei;\n font-size: 14px;\n color: #5E707C;\n}\n#bjgou_price_tip:hover {\n background-position: -261px -69px;\n}\n#bjgou_price_tip_store {\n width: 100px;\n float: left;\n border: 0;\n padding: 0;\n margin: 2px 0px 2px 5px;\n list-style: none;\n}\n#bjgou_price_tip_store li {\n clear: both;\n line-height: 20px;\n font-size: 12px;\n font-weight: bold;\n margin: 0 0 0 5px;\n color: #18a0f5;\n list-style: none;\n}\n#bjgou_price_tip_store li a {\n cursor: pointer;\n text-decoration: none;\n color: #333;\n}\n#bjgou_price_tip_store li a span.tle {\n color: #18a0f5;\n line-height: 25px;\n height: 25px;\n float: right;\n margin-right: 10px;\n}\n#bjgou_price_tip_store li a span.tleb {\n color: #2f7ed8;\n line-height: 25px;\n height: 25px;\n font-weight: bold;\n font-size: 14px;\n font-family: 'Microsoft Yahei';\n}\n#bjgou_price_tip_store li img {\n width: 16px;\n height: 16px;\n float: left;\n margin: 2px 8px 2px 0px;\n}\n#bjgou_more_link {\n color: #333;\n}\n#bjgou_price_tip_store li span {\n font-size: 12px;\n font-weight: normal;\n}\n#bjgou_price_tip_trend {\n float: left;\n border: 0;\n padding: 0;\n}\n#bjgou_price_tip_notice {\n border: 0;\n padding: 10px;\n margin: 0;\n color: #333;\n font-size: 12px;\n font-weight: normal;\n}\n#bjgou_max {\n color: #666;\n margin-left: 10px;\n}\n#bjgou_min {\n color: #00a66c;\n}\n#bjgou_more_link a {\n color: #2f7ed8;\n text-decoration: none;\n}\n#bjgou_more_link a:hover {\n color: #2f7ed8;\n text-decoration: underline;\n}\n#bjgou_price_tip_other {\n clear: both;\n padding: 5px 5px 5px 5px;\n display: block;\n}\n#bjgou_price_tip_logo {\n float: left;\n background: url('https://cdn.gwdang.com/images/brwext_assets_34.png') no-repeat -99px -199px;\n width: 58px;\n height: 29px;\n margin: 7px 18px 0 17px;\n display: none;\n}\n#bjgou_price_tip_input {\n height: 22px;\n line-height: 22px;\n font-size: 12px;\n width: 186px;\n border: 1px solid #cdcdcd;\n float: right;\n box-sizing: border-box;\n}\n#bjgou_price_tip_notify {\n float: right;\n width: 300px;\n display: none;\n}\n#bjgou_price_tip_notify_btn {\n display: inline-block;\n background: #2f7ed8;\n float: right;\n color: white;\n padding: 2px 6px;\n text-decoration: none;\n border-radius: 2px;\n -webkit-border-radius: 2px;\n -moz-border-radius: 2px;\n}\n#bjgou_price_tip_notify_btn:hover {\n background: #18A0F5;\n text-decoration: none;\n}\n#bjgou_price_tip_record {\n float: left;\n height: 24px;\n line-height: 24px;\n}\n#bjgou_price_tip_notify {\n font-size: 12px;\n}\n#bjgou_price_tip_notify span.remind-error {\n color: #d80001;\n display: none;\n}\n", ""]); // exports /***/ }), /***/ "6524c6395176cac4885b": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("04dcccd8601de1b226fb"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("4a9787eb", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QRLinkContact.vue?vue&type=style&index=0&id=9a793014&scoped=true&lang=less&", function() { var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QRLinkContact.vue?vue&type=style&index=0&id=9a793014&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "657bad1e7f3b602f7d70": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G) { var _this = this; var cnzz = __webpack_require__("83271c7588396d2d5e59"); var QRCode = __webpack_require__("22c6d528618fc14b5d1c"); /**获取二维码 * * @param obj * @param url * @param callback * @param useOriTitle 使用原始标题 * @param noReplace 直接生成二维码,不请求接口 */ module.exports = function callee$0$0(obj, url, callback) { var useOriTitle = arguments.length <= 3 || arguments[3] === undefined ? false : arguments[3]; var noReplace = arguments.length <= 4 || arguments[4] === undefined ? false : arguments[4]; var id; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: obj.couponUrl = url; if (obj.title.length === 0 && !useOriTitle) { obj.title = 'x'; } id = obj.id; obj = JSON.stringify(obj); // let xml = new XMLHttpRequest() // xml.open('POST', `${G.server}/extension/CouponQrCode?w=150`) // xml.addEventListener('load', function() { // try { // let data = JSON.parse(xml.response); // callback(data) // } catch (e) {} // }) // xml.send(obj); if (!noReplace) { context$1$0.next = 7; break; } QRCode.toDataURL(url, { errorCorrectionLevel: 'L' }, function (err, url) { if (err) { //require('common/extConsole').error(err) return; } callback([{ imgSrc: url }]); }); return context$1$0.abrupt('return'); case 7: if (!(G.ss_name === 'priceDog' && G.aliSite)) { context$1$0.next = 10; break; } __webpack_require__("91f250ebeb8d5987491c").get(G.u_server + '/helper/qrcode?event=appQrcode&dp_id=' + id + '&union=' + G.union).then(function (res) { if (res.code === 1 && res.data && res.data.qrImgStr) { callback([{ imgSrc: res.data.qrImgStr }]); } else { callback([{ etag: 0 }]); } }); return context$1$0.abrupt('return'); case 10: __webpack_require__("91f250ebeb8d5987491c").post(G.server + '/extension/CouponQrCode?union=' + G.union + '&w=150&from_device=' + G.from_device + '&rand=' + parseInt(Math.random() * 1000), obj, false, false).then(function (data) { try { data = JSON.parse(data); callback(data); } catch (e) { callback(data); //require('common/extConsole').error(e) } }); cnzz.log("实时抓取发送请求"); case 12: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "65ad68e62ea9b0c1f858": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("2f23bc4c147e0b81ebd7"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("04bc72ae", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./SizeHelp.vue?vue&type=style&index=0&id=b3b47bf0&scoped=true&lang=less&", function() { var newContent = require("!!../../../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!./SizeHelp.vue?vue&type=style&index=0&id=b3b47bf0&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "660610db8f6e89357da9": /***/ (function(module, exports, __webpack_require__) { "use strict"; var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); module.exports = { get: function get(path, params, callback) { var reqId = parseInt(Math.random() * 10000).toString() + Date.now(); return new Promise(function (resolve) { communicate.trigger({ type: 'backgroundReq', reqId: reqId, path: path, params: typeof params === 'object' ? JSON.stringify(params) : '{}', referer: location.href }); communicate.on(function (resp) { if (resp.type === 'backgroundResp' && resp.value.reqId === reqId) { if (!callback) { try { resolve(JSON.parse(resp.value.data)); } catch (e) { __webpack_require__("316f9c352c6202560d16").error(e); resolve(resp.value.data); } return; } try { callback(JSON.parse(resp.value.data)); } catch (e) { callback(resp.value.data); } } }); }); } }; /***/ }), /***/ "664f6df1f2ec50016f49": /***/ (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_QRLinkTaobaoLogin_vue_vue_type_template_id_6179ab9e_scoped_true___ = __webpack_require__("c93ec1baf074bff55639"); /* 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_QRLinkTaobaoLogin_vue_vue_type_template_id_6179ab9e_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_QRLinkTaobaoLogin_vue_vue_type_template_id_6179ab9e_scoped_true___["b"]; }); /***/ }), /***/ "67d4adf49747587945f1": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G, regeneratorRuntime) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var request = __webpack_require__("91f250ebeb8d5987491c"); var option = __webpack_require__("97bc96d348c614d5d08b"); var util = __webpack_require__("d6aec8444c650eeab5f2"); var buildTaobaoUrl = __webpack_require__("cc45d932d8dbdb86f2f3"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); // const replaceHref = require('common/replaceHref') var tbhtml = __webpack_require__("3f85ad70caa55bd95b86"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); var globalProduct = {}; var renderTaobao = function renderTaobao(name, title, price, tts) { var view = __webpack_require__("a7669790436ef86b8cec"); var obj = { dp_id: name, price: parseFloat(price).toFixed(2), site_name: title }; var dom = template.compile(view)({ data: [obj], classname: 'bjgext-item-tb' }); $('.bjgext-product-compare').append(dom).css('display', 'flex'); option.autoWidth(); addEvent(tts); }; var editData = function editData(data, id, tts) { var newdata = []; for (var i = 0; i < data.length; i++) { if (!data[i].title || !data[i].pic_url || !data[i].price || !data[i].url) continue; data[i].img_url = data[i].pic_url; if (data[i].img_url.match(/_\d+x\d+/)) { var match = data[i].img_url.match(/_(\d+)x\d+/); if (match) { match = Number(match[1]); if (match > 200) { data[i].img_url = data[i].img_url + '_100x100'; } } } else { data[i].img_url = data[i].img_url + '_100x100'; } // if (data[i].num_iid && !G.aliSite) { // data[i].oldUrl = data[i].url; // let type = data[i].type ? ('&type=' + data[i].type) : ''; // data[i].url = `https://browser.bijiago.com/coupon_redirect?id=${data[i].num_iid}${type}&column=bijiago&union=${G.union}`; // } data[i].rev_cnt = 0; newdata.push(data[i]); } return newdata; }; var renderDetail = function renderDetail(dom, id, tts) { var pages = 0; var width = $(window).width(); var itemDetail = editData(globalProduct[id], id, tts); var len = itemDetail.length; var itemPageInfo = option.calDetailNum(); var itemPageNum = itemPageInfo.num; if (len >= itemPageNum) { pages = Math.ceil(len / itemPageNum); } if (pages <= 1) width = 220 * len; var html = __webpack_require__("da2ee592f69bf96c6e99"); if (id === "tmall" || id === "taobao") html = tbhtml; if (id === 'taobao') { itemDetail.forEach(function (x) { x.nick = x.item_location; }); } dom.append(template.compile(html)({ data: itemDetail, 'per': itemPageNum, 'loadimg': G.loadImg, 'b_width': width, pages: pages, sale: G.lang === 'en' ? 'Sales:' : '最近销量' })); if (len > itemPageNum) { dom.find('.bjgext-product-box').width(itemPageInfo.width); turnpageEvent(dom); option.loadImage(0, itemPageNum, dom.find('.bjgext-product-box')); } else { option.loadImage(0, len, dom.find('.bjgext-product-box')); option.setSimplePagePos(len, dom); } var lastClick = Date.now(); dom.find('.bjgext-product-box').on('click', 'a', function callee$1$0(e) { var now, k, href, id; return regeneratorRuntime.async(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: now = Date.now(); console.log('time between', now - lastClick); if (!(now - lastClick < 100)) { context$2$0.next = 4; break; } return context$2$0.abrupt('return'); case 4: lastClick = now; e.preventDefault(); console.log(e.target); k = e.target; href = ''; id = ''; if (k.tagName === 'IMG') { href = $(k).parents('a').attr('href'); id = $(k).parents('a').attr('data-id'); } else { href = k.href; id = $(k).attr('data-id'); } // https://u.bijiago.com/redirect/tao?id=623934330690&site=&source=common&from_device=bijiago&union=union_bijiago_mogu if (G.aliSite) { window.open(href); } else { window.open(G.u_server + '/redirect/tao?id=' + id + '&site=&source=common&from_device=' + G.from_device + '&union=' + G.union); } // if (href.indexOf('coupon') > -1) { // console.log($(e.target).attr('data-id')) // let pidConfig = require('bjgou/modules/pidConfig'); // let coupon = await require('common/getCouponNew').initWithDpAsync(id, pidConfig[G.union], 'compare'); // console.log('window open', Date.now()) // window.open(coupon.data.click_url2) // } else { // window.open(href) // } case 12: case 'end': return context$2$0.stop(); } }, null, this); }); }; var turnpageEvent = function turnpageEvent(dom) { dom.find('.bjgext-turnleft .turnpage-btn').on('click', function () { option.changePage(-1, this); }); dom.find('.bjgext-turnright .turnpage-btn').on('click', function () { option.changePage(1, this); }); }; var addEvent = function addEvent(tts) { var time1; $('.bjgext-item-tb').on('mouseenter', function () { clearTimeout(time1); $('.bjgext-product-detail').hide(); var dom = $(this); var detail = dom.find('.bjgext-product-detail'); if (detail.length > 0) { detail.show(); } else { var id = dom.attr('data-id'); if (id) { renderDetail(dom, id, tts); } } }); $('.bjgext-item-tb').on('mouseleave', function () { var that = this; time1 = setTimeout(function () { $(that).find('.bjgext-product-detail').hide(); }, 100); }); $('.bjgext-item-tb').on('click', function (e) { var href1 = $(e.target).attr('href'); var href2 = $(e.target).parent().attr('href'); if (href1 || href2) { href1 = href1 || href2; util.tongjiLog('tbuniontotal'); if (href1.indexOf('redirect.simba.taobao.com') > -1) { util.tongjiLog('tbunionsuccess'); } } }); }; var getTbres = function getTbres(data, callback) { if (location.href.indexOf('pcsitepp-fm.jd.com') > -1) return; var msg = data.exact_arr; var code_server = '1'; var code = data['code-server']; if (!code) { code = {}; code_server = '0'; } var price = data.now.price * 100; if (!price) { 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; request.get(url).done(function (data) { if (G.site == 'taobao' || G.site == 'tmall') { getUniqPid(data, function (mm) { callback(mm); }); } else { getImgSearch(data, function (mm) { callback(mm); }); } }); }; var renderTTSdata = function renderTTSdata(data) { var tmalls = [], taobaos = []; for (var i = 0; i < data.length; i++) { data[i].pic_url = data[i].originalimage; data[i].price = data[i].cutprice.toFixed(2); if (data[i].sitename === '淘宝') taobaos.push(data[i]);else tmalls.push(data[i]); } var obj = {}; if (taobaos.length > 0) { var lp = taobaos[0].price, hp = taobaos[taobaos.length - 1].price; if (lp === hp) obj.taobao = lp;else obj.taobao = lp + '~' + hp; globalProduct.taobao = taobaos; } if (tmalls.length > 0) { var lp = tmalls[0].price, hp = tmalls[tmalls.length - 1].price; if (lp === hp) obj.tmall = lp;else obj.tmall = lp + '~' + hp; globalProduct.tmall = tmalls; } return obj; }; var getImgSearch = function getImgSearch(msg, callback) { msg = buildTaobaoUrl.buildCommon(msg); var exact_arr = userData.get('dp_data') && userData.get('dp_data')['exact_arr']; if (exact_arr.type && exact_arr.brand && (!msg.taobao.sort || !msg.tmall.sort)) { // 在京东有brand 有比价结果的情况下, 不走图片检索 callback(msg); return; } __webpack_require__("6ad34a6b9808de77f450").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; } callback(msg); } else { callback(msg); } }); }; var getUniqPid = function getUniqPid(msg, callback) { msg = buildTaobaoUrl.buildCommon(msg); var exact_arr = userData.get('dp_data') && userData.get('dp_data')['exact_arr']; __webpack_require__("4e193c8dd6289ce0fdf9").getTaobaouniqData(function (data) { if (data && data.img_s && exact_arr.type && exact_arr.brand && (!msg.taobao.sort || !msg.tmall.sort)) { callback(msg); return; } 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; } callback(msg); } else { callback(msg); } }); }; module.exports.init = function (data) { if (__webpack_require__("3dbec38a0e3472df70b7").isHaitao() && G.ss_name === 'priceDog') { return; } getTbres(data, function (info) { info.ss = 0; if (!(info.tmall instanceof Array) && info.tmall.product && info.tmall.product.length > 0) { if (!G.showMainbar && $('#bjgext_mainbar').length) { __webpack_require__("316f9c352c6202560d16").log('mainbar flex c'); $('#bjgext_mainbar').css('display', 'flex'); G.showMainbar = true; util.tongji('mainbar', 'show'); __webpack_require__("316f9c352c6202560d16").log('mainbar', $('#bjgext_mainbar')[0]); } var price = info.tmall.min_price; if (info.tmall.min_price === info.tmall.max_price) { price = info.tmall.min_price; } renderTaobao('tmall', '天猫', price); info.ss++; info.tmm = true; __webpack_require__("c6c5de8f1270ad9ace63").init(info.tmall.product, 'tmall', true, info.tmall.min_price); globalProduct.tmall = info.tmall.product; // replaceHref.init('tmall', globalProduct.tmall) } else { __webpack_require__("9c38beef5ff283e15bd2").setMet('AliProducttmall', []); } if (info.taobao || info.tmall) { __webpack_require__("03dd60018ce5ed1344a1")('tbcompare:show'); } if (!(info.taobao instanceof Array) && info.taobao.product && info.taobao.product.length > 0) { if (!G.showMainbar) { __webpack_require__("316f9c352c6202560d16").log('mainbar flex f'); $('#bjgext_mainbar').css('display', 'flex'); G.showMainbar = true; util.tongji('mainbar', 'show'); } var price = info.taobao.min_price; if (info.taobao.min_price === info.taobao.max_price) { price = info.taobao.min_price; } renderTaobao('taobao', '淘宝', price); info.ss++; info.tbb = true; __webpack_require__("c6c5de8f1270ad9ace63").init(info.taobao.product, 'taobao', true, info.taobao.min_price); globalProduct.taobao = info.taobao.product; // replaceHref.init('taobao', globalProduct.taobao) } else { __webpack_require__("9c38beef5ff283e15bd2").setMet('AliProducttaobao', []); } userData.set('tbData', info); }); }; module.exports.init2 = function (data) { if (__webpack_require__("3dbec38a0e3472df70b7").isHaitao() && G.ss_name === 'priceDog') { return; } var info = renderTTSdata(data); if (info.taobao) { renderTaobao('taobao', '淘宝', info.taobao, true); if (!G.showMainbar) { __webpack_require__("316f9c352c6202560d16").log('mainbar flex a'); $('#bjgext_mainbar').css('display', 'flex'); G.showMainbar = true; util.tongji('mainbar', 'show'); } } if (info.tmall) { renderTaobao('tmall', '天猫', info.tmall, true); if (!G.showMainbar) { __webpack_require__("316f9c352c6202560d16").log('mainbar flex b'); $('#bjgext_mainbar').css('display', 'flex'); G.showMainbar = true; util.tongji('mainbar', 'show'); } } if (info.taobao || info.tmall) { __webpack_require__("03dd60018ce5ed1344a1")('tbcompare:show'); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "687eed05e44d3030f0b0": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var html = __webpack_require__("6af84e6bd7add3378928"); var taotaos = __webpack_require__("3afb6d547b10fe89cef9"); var util = __webpack_require__("d6aec8444c650eeab5f2"); var totalPages = undefined; var render = function render(data) { if (!data) return; var pages = undefined; var winH = $(window).height(); var winW = $(window).width(); if (winH < 768 || winW < 1336) return; var newdata = data.productsuggest; var len = newdata.length; if (len > 4) pages = true; totalPages = Math.ceil(len / 4); $('body').append(template.compile(html)({ data: newdata.slice(0, 8), pages: pages })); if (G.guess_fold === '1') { $('.bjgext_big_content').hide(); $('.bjgext_small').show(); } util.tongji('3', 'show'); addEvent(); }; var turnPage = function turnPage(status, nowp, tp) { nowp = Number(nowp); var lists = $('.bjgext_guess_body li'); var len = lists.length; lists.hide(); if (status === -1) { if (nowp === 1) nowp = tp + 1; for (var i = (nowp - 2) * 4, size = (nowp - 1) * 4 > len ? len : (nowp - 1) * 4; i < size; i++) { lists.eq(i).show(); } nowp--; } else { if (nowp === tp) nowp = 0; for (var i = nowp * 4, size = (nowp + 1) * 4 > len ? len : (nowp + 1) * 4; i < size; i++) { lists.eq(i).show(); } nowp++; } $('.guess-n-p').text(nowp); }; var addEvent = function addEvent() { $('.bjgext_guess_footer .bjgext-guess-tl').on('mousedown', function () { $(this).addClass('_press'); }); $('.bjgext_guess_footer .bjgext-guess-tl').on('click', function () { var nowp = $('.guess-n-p').text(); turnPage(-1, nowp, totalPages); }); $('.bjgext_guess_footer .bjgext-guess-tl').on('mouseup', function () { $(this).removeClass('_press'); }); $('.bjgext_guess_footer .bjgext-guess-tr').on('mousedown', function () { $(this).addClass('_press'); }); $('.bjgext_guess_footer .bjgext-guess-tr').on('click', function () { var nowp = $('.guess-n-p').text(); turnPage(1, nowp, totalPages); }); $('.bjgext_guess_footer .bjgext-guess-tr').on('mouseup', function () { $(this).removeClass('_press'); }); $('.bjgext-guess-close').on('click', function () { $('.bjgext_big_content').hide(); $('.bjgext_small').show(); util.settings('guess_fold', '1'); }); $('.bjgext_small').on('click', function () { $('.bjgext_big_content').show(); $('.bjgext_small').hide(); util.settings('guess_fold', '0'); }); $('.bjgext_guess_body a').on('click', function () { var href = $(this).attr('href'); if (href) { util.tongji('3', 'click', href); } }); }; module.exports.init = function () { if (G.show_leftguess === '0') return; if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) { taotaos.init(render); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "69d21005bc806483bd7c": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("e336c6dc5eff4f6bee7a"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("1e70da56", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./MemberCouponMini.vue?vue&type=style&index=0&id=42d39176&scoped=true&lang=less&", function() { var newContent = require("!!../../../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!./MemberCouponMini.vue?vue&type=style&index=0&id=42d39176&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "6a505220d0f56d349b05": /***/ (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_PriceProtectAuthLoginRequest_vue_vue_type_style_index_0_lang_less___ = __webpack_require__("5fc8e3028459f5d0ea52"); /* 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_PriceProtectAuthLoginRequest_vue_vue_type_style_index_0_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_PriceProtectAuthLoginRequest_vue_vue_type_style_index_0_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_PriceProtectAuthLoginRequest_vue_vue_type_style_index_0_lang_less____default.a); /***/ }), /***/ "6aaa3fa41eb59246bed3": /***/ (function(module, exports, __webpack_require__) { var $imports = __webpack_require__("9f47c636f849c23a0c20"); module.exports = function ($data) { 'use strict'; $data = $data || {}; var $$out = '', $escape = $imports.$escape, text = $data.text, qr = $data.qr; $$out += '<div target="_blank" class="gwd-middle-act-bar">\n <img '; $$out += 'src="https://cdn.bijiago.com/images/extensions/activity/tmall-redpack-middle.png"'; $$out += ' style="width: 17px; height: 19px; margin-left: 11px">\n <span style="font-size: 12px; color: #ff471a; margin-left: 7px; font-weight: bold">'; $$out += $escape(text); $$out += '</span>\n <div style="flex: 1"></div>\n <img '; $$out += 'src="https://cdn.bijiago.com/images/extensions/activity/arrow.svg"'; $$out += ' style="width: 26px; height: 10px;">\n <span class="gwd-take" style="line-height: initial">\n 立即领取\n <div class="gwd-qr-act-mid" style="margin-left: -84px;">\n <img class="gwd-act-qr-img" loading="lazy" src="'; $$out += $escape(qr); $$out += '" alt="" style="width: 130px; height: 130px; margin-top: 7px">\n <span style="margin-top: 5px; vertical-align: middle; font-size: 0; height: 14px; line-height: 14px;">\n <span style="font-size: 14px; color: #ff471a; font-weight: bold">微信扫码</span>\n <span style="margin-left: 3px; color: #070707; font-size: 12px; transform-origin: center center; transform: scale(0.9166)">领红包</span>\n </span>\n </div>\n </span>\n</div>\n<style>\n .gwd-middle-act-bar {\n width: 462px;\n height: 34px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n border: 1px solid #e6e9eb;\n background: white;\n font-size: 0;\n }\n\n .gwd-take {\n display: inline-block;\n margin-left: 10px;\n margin-right: 15px;\n text-align: center;\n width:70px;\n height:18px;\n background:linear-gradient(90deg,rgba(255,42,26,1) 0%,rgba(255,98,31,1) 100%);\n border-radius:9px;\n font-size: 12px;\n color: white;\n position: relative;\n cursor: pointer;\n }\n\n .gwd-qr-act-mid {\n display: none;\n flex-direction: column;\n position: absolute;\n width: 144px;\n height: 167px;\n box-sizing: border-box;\n border: 1px solid #ff471a;\n background: #fff9f6;\n top: 25px;\n z-index: 99;\n /*left: 50%;*/\n right: -16px;\n align-items: center;\n margin-left: -72px;\n }\n\n .gwd-qr-act-mid span {\n width: initial;\n margin: 0;\n }\n\n .gwd-take:hover .gwd-qr-act-mid {\n display: flex;\n }\n</style>'; return $$out; }; /***/ }), /***/ "6acdae05d21ed0375a5b": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjgext-bg.bd-head-icon,\n.bjgext-mini-logo em {\n background: url(" + __webpack_require__("b479b3889b6f5521bac9") + ") no-repeat;\n background-size: cover;\n margin-top: 0!important;\n height: 100%!important;\n background-position: unset!important;\n}\n.bjgext-head {\n padding: 9px;\n box-sizing: border-box !important;\n}\n.bjgext-head a.bd-head-icon {\n width: 40px;\n}\n.bjgext-mini-logo em {\n background: url(" + __webpack_require__("b479b3889b6f5521bac9") + ") no-repeat;\n background-position: unset!important;\n background-size: contain;\n width: 32px!important;\n}\n.bjgext-mini-logo a {\n padding: 2px;\n}\n.biyibi-ext#bjgou_price_tip .tip_btn_box em {\n background: url(" + __webpack_require__("b479b3889b6f5521bac9") + ") no-repeat;\n background-position: unset!important;\n background-size: contain;\n width: 22px;\n height: 22px!important;\n}\n", ""]); // exports /***/ }), /***/ "6ad34a6b9808de77f450": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var buildTaobaoUrl = __webpack_require__("cc45d932d8dbdb86f2f3"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var globalData = undefined, callbacks = undefined; var hasrun = false; var timeOUT = 4000; var trueClassId = false; var sitearr = ['vipshop', 'mogujie', 'meilishuo', 'amazon', 'yougou', 'yohobuy', '6pm', 'yintai', 'banggo', 'xiu', 'vancl', 'shopbop', 'shopin', 's', 'masamaso', 'secoo', 'mei', 'gap', 'paixie', 'moonbasa', 'meici', 'macys', 'myhabit', 'zhen', 'gilt', 'mbaobao', 'wangfujing', 'letao', 'camel', 'handu', 'mf910', '5lux', 'd1', 'taoxie', 'm18', "thewatchery", "escentual", 'biccamera', 'zhe800']; if (location.host.indexOf('amazon') > -1 && location.host.indexOf('cn') == -1) timeOUT = 10000; var editData = function editData(data) { var taobaoarr = [], tmallarr = [], guessarr = []; var dpdata = userData.get('dp_data'); var nowprice = dpdata && dpdata.now.price; if (!nowprice) nowprice = G.dp.price; try { var info = JSON.parse(data); var array = info.mods.itemlist.data.collections; if (array.length == 0) return; if (array.length == 2 && array[0].title == '外观相似宝贝') { var similar = array[0].auctions; var len = similar.length > 20 ? 20 : similar.length; for (var i = 0; i < len; i++) { var item = {}; var feeDesc = similar[i].view_fee == '0.00' ? '包邮' : ''; item.nick = similar[i].nick; item.num_iid = similar[i].nid; item.title = similar[i].title; item.price = similar[i].view_price; item.item_location = similar[i].item_loc; item.store_name = similar[i].nick + feeDesc; item.pic_url = 'http:' + similar[i].pic_url; item.volume = similar[i].view_sales.replace('人付款', ''); item.type = 'img_search'; item.price2 = Number(item.price); if (nowprice && item.price2 * 2 < nowprice) continue; if (!item.pic_url.match(/jpg_[0-9]+x[0-9]/)) item.pic_url = item.pic_url.replace(/(\.png|\.jpg)/, '$1' + '_100x100.jpg'); var obj = { 'source': 'img_search', 'img_url': 'http:' + similar[i].pic_url, 'title': similar[i].title, 'price': similar[i].view_price, 'shop_name': similar[i].nick + feeDesc, 'sales': similar[i].view_sales.replace('人付款', ''), 'id': similar[i].nid, 'url': 'https:' + similar[i].detail_url, 'discuss': similar[i].comment_count, 'istaobao': similar[i].detail_url.indexOf('detail.tmall.com') > -1 ? '0' : '1', 'dp_id': similar[i].nid + '-' + (similar[i].detail_url.indexOf('detail.tmall.com') > -1) ? '83' : '123', 'site_id': similar[i].detail_url.indexOf('detail.tmall.com') > -1 ? '83' : '123' }; item.url = buildTaobaoUrl(obj); if (similar[i].detail_url.indexOf('detail.tmall.com') > -1) { tmallarr.push(item); } else { taobaoarr.push(item); } } } else if (array.length == 1 && array[0].title == '您可能会喜欢' || array.length == 2 && array[1].title == '您可能会喜欢') { var guess = array[array.length - 1].auctions; for (var i = 0; i < guess.length; i++) { var item = {}; item.url = 'https:' + guess[i].detail_url; item.pic_url = guess[i].pic_url; item.title = guess[i].title; item.num_iid = guess[i].nid; item.price = guess[i].view_price; item.volume = guess[i].view_sales; item.nick = guess[i].nick; guessarr.push(item); } } taobaoarr = sortData(taobaoarr); tmallarr = sortData(tmallarr); globalData = { 'taobao': taobaoarr, 'tmall': tmallarr, 'img_s': true, 'guessfavor': guessarr }; if (callbacks && !hasrun) { callbacks(globalData); hasrun = true; } } catch (e) {} }; var sortData = function sortData(data) { if (!data.sort) return; data = data.sort(function (value1, value2) { if (Number(value1.price) > Number(value2.price)) return 1;else if (Number(value1.price) == Number(value2.price)) return 0;else return -1; }); return data; }; var getImgSrc = function getImgSrc() { var imgsrc = { '360buy': '#preview .jqzoom img', 'gome': '.jqzoom img', 'suning': '#imgZoom #bigImage', 'yihaodian': '#J_prodImg', 'vancl': '#midimg', 'shopin': '#zoom1 img', 'secoo': '.jqzoom', 'mei': '#bigimg', 'meici': '.zoomPad img', 'macys': '#mainView_1', 'taoxie': '#t_PreviewImage img', 'd1': '.gs_right_spimg img', '5lux': '.cloudzoom', 'mf910': '#op_product_zoom img', 'handu': '#masterImage', 'camel': '#img_jqzoom', 'letao': '#simgouter img', 'wangfujing': '.zoomPad .lazy-pic', 'zhen': '#zoom1 .a_max_pic', 'shopbop': '#productImage', 'yohobuy': '#img-show', 'taobao': '#J_ImgBooth', 'thewatchery': '#detailimage', 'amazon': '#altImages ul li img', 'mogujie': '#J_BigImg', 'escentual': '#zoom1 img', 'biccamera': '#PROD-CURRENT-IMG', 'zhe800': '#detail .deteilpic ul li img', 'vipshop': '#J-mer-ImgReview .zoomPad>img', 'tmall': '#J_ImgBooth' }; if (imgsrc[G.site]) { var src = $(imgsrc[G.site]).eq(0).attr('src'); if (location.host == 'www.amazon.co.jp' && src && src.match(/SR[0-9]+,[0-9]+/)) { src = src.replace(/SR([0-9]+)\,([0-9]+)/, 'SR' + '$1' + '0' + ',' + '$2' + '0'); } else if (location.host.indexOf('amazon') > -1) { return false; } if (src && !src.match(/(?:http:|https:)/) && src.indexOf('//') > -1) src = 'http:' + src; if (G.site === 'zhe800') { src = src.replace('58x58.jpg', '220x220.jpg'); } return src; } return false; }; var readyImg = function readyImg(trueClassId) { var src = getImgSrc(); if (sitearr.indexOf(G.site) > -1 && location.host != 'www.amazon.cn' || location.host.indexOf('1688') > -1 || trueClassId) { trueClassId = true; //发了请求都可以等,为true init里面才不会return communicate.trigger({ type: 'getTaobaoImgInfo', src: src }); communicate.on(function (data) { if (typeof data === 'string') { data = JSON.parse(data); } if (data.type == 'getTaobaoImgInfo') { var text = $('#gwd_img_info').text(); if (text != '') editData(text); } }); } }; module.exports.ready = function () { if (G.site == 'taobao' || G.site == 'tmall' || G.site.indexOf('taobao') > -1) return; var dpdata = userData.get('dp_data'); var classId = dpdata && dpdata['now']['class_id']; var code = dpdata && dpdata['code-server']['code']; var exact_arr = dpdata && dpdata['exact_arr']; if (G.site === 'amazon' && code) return; if (classId) classId = classId.slice(0, 2); if (G.site === '360buy') { var cate_id = G.dp.cat_id; if (cate_id) cate_id = cate_id.split('-')[0]; var cateidArr = ["1620", "1315", "1318", "1672", "1319", "5025", "6144", "11729"]; if (cateidArr.indexOf && cateidArr.indexOf(cate_id) > -1) { trueClassId = true; } } else { if (classId == "13" || classId == "24" || classId == "1A" || classId == '21') trueClassId = true; } if (G.from_device === 'bijiago' && exact_arr && exact_arr.brand && exact_arr.brand_id) { trueClassId = true; } readyImg(trueClassId); }; module.exports.uniqPidGetImg = function (callback) { readyImg(true); callbacks = callback; }; module.exports.init = function (callback) { if (!trueClassId && sitearr.indexOf(G.site) == -1) { callback(null); return; } if (globalData) { callback(globalData); hasrun = true; } else callbacks = callback; setTimeout(function () { if (callbacks && hasrun === false) { callbacks(null); hasrun = true; } }, timeOUT); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "6bac20e4c2caf81c124e": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MiniFavor_vue_vue_type_template_id_ae71a91e_scoped_true___ = __webpack_require__("239c110733b9577048db"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__MiniFavor_vue_vue_type_script_lang_js___ = __webpack_require__("c50d77118f6990a4f9d7"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__MiniFavor_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__MiniFavor_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__MiniFavor_vue_vue_type_style_index_0_id_ae71a91e_lang_less_scoped_true___ = __webpack_require__("34922dc8612989e48906"); /* 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__MiniFavor_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__MiniFavor_vue_vue_type_template_id_ae71a91e_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__MiniFavor_vue_vue_type_template_id_ae71a91e_scoped_true___["b" /* staticRenderFns */], false, null, "ae71a91e", 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('ae71a91e')) { api.createRecord('ae71a91e', component.options) } else { api.reload('ae71a91e', component.options) } module.hot.accept("./MiniFavor.vue?vue&type=template&id=ae71a91e&scoped=true&", function () { api.rerender('ae71a91e', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/bjgou/components/MiniFavor.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "6c0a23e5b52046830607": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var pidConfig = __webpack_require__("b753c5719ef15e48dbee"); var request = __webpack_require__("91f250ebeb8d5987491c"); module.exports.init = function (id, style, callback) { var pidInfo = pidConfig.init(id, style); var dp_id = G.dp.itemId; if (!dp_id) { if (G.site === 'taobao-ju') { dp_id = location.href.match(/item_id=(\d+)/)[1]; } } getInfo(dp_id, pidInfo, callback); }; module.exports.initWithDp = function (dpId, id, style, callback) { var pidInfo = pidConfig.init(id, style); getInfo(dpId, pidInfo, callback); }; module.exports.initWithDpAsync = function (dpId, id, style) { var pidInfo = pidConfig.init(id, style); return new Promise(function (resolve) { getInfo(dpId, pidInfo, resolve); }); }; var getInfo = function getInfo(dpId, pidInfo, callback) { var dp_id = dpId; if (!dp_id) return; dp_id = '' + dp_id; dp_id = dp_id.replace('-83', ''); if (!pidInfo) pidInfo = { token: 'visit', pid: 'show' }; var url = 'https://q.apptimes.cn/union/coupon/' + pidInfo.token + '?pid=' + pidInfo.pid + '&good_id=' + dp_id; request.getCouponFromUrl(url).then(function (res) { var data = res; //console.log(res) if (data && data.data) { data.data.reqid = dp_id; data.data.click_url2 = G.u_server + '/?url=' + encodeURIComponent(data.data.click_url) + '&union=' + G.union; if (G.from_device === 'bijiago' && G.aliSite) { data.data.click_url2 = 'https://tb.' + (G.ss_name === 'priceDog' ? 'pricedog' : 'bijiago') + '.com/extension/qrpage?union=' + G.union + '&dp_id=' + dpId + '&tag=9_chrome&discount=' + data.data.coupon.coupon_money; } if (G.from_device === 'biyibi' && G.aliSite) { data.data.click_url2 = 'https://tb.biyibi123.com/extension/qrpage?union=' + G.union + '&dp_id=' + dpId + '&tag=9_chrome&discount=' + data.data.coupon.coupon_money; } } callback(res); }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "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"]; }); /***/ }), /***/ "6c494a72f1fce85e389d": /***/ (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( "a", { attrs: { href: _vm.href, target: _vm.target }, on: { click: _vm.onClick } }, [_vm._t("default")], 2 ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "6e18703b4f87c27d6898": /***/ (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_PriceProtectPageButton_vue_vue_type_script_lang_js___ = __webpack_require__("98ad5951cb628b39147e"); /* 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_PriceProtectPageButton_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_PriceProtectPageButton_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_PriceProtectPageButton_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_PriceProtectPageButton_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_PriceProtectPageButton_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "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"]; }); /***/ }), /***/ "6ea0aea2a3877232ab5c": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var parseprice = __webpack_require__("cb0906562effcf1b0e6c"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var request = __webpack_require__("91f250ebeb8d5987491c"); var util = __webpack_require__("d6aec8444c650eeab5f2"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var Time1 = undefined, pagePrice = undefined, priceDom = undefined, pageSku = undefined; var pricePattern = { 'amazon-com': ['#priceblock_dealprice span', '#priceblock_ourprice span .buyingPrice', '#priceblock_dealprice', '#priceblock_saleprice', '#priceblock_ourprice', '#price_feature_div .a-color-price', '#wineTotalPrice'], 'amazon-jp': ['#priceblock_dealprice span', '#priceblock_ourprice span .buyingPrice', '#priceblock_dealprice', '#priceblock_saleprice', '#priceblock_ourprice', '#price_feature_div .a-color-price', '#wineTotalPrice'], '6pm': ['li[id="priceSlot"] div[class="price"]'] }; var feePattern = { 'amazon-com': ['#priceBadging_feature_div .a-color-secondary', '#ourprice_shippingmessage .a-color-secondary'], 'amazon-jp': ['#priceBadging_feature_div .a-color-secondary', '#ourprice_shippingmessage .a-color-secondary'], '6pm': [] }; 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 = Number((dp.official_original_postage / 100).toFixed(2)); dp.official_postage = Number((dp.official_postage / 100).toFixed(2)); dp.xm_official = 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); return dp; }; var getSpec = function getSpec() { var color = $('#color+p').text(); if (!color) color = $('#stage-swatches a.active').attr('title'); var spec = { 'color': color }; return JSON.stringify(spec); }; var getFee = function getFee() { var domarr = feePattern[G.site]; if (!domarr) return; for (var i = 0; i < domarr.length; i++) { var txt = $(domarr[i]).text(); if (txt && txt.match(/\d+/)) { txt = parseprice.getPriceBeforeExchangeRate(txt); return txt; } } return 0; }; var getPrice = function getPrice() { var domarr = pricePattern[G.site]; if (!domarr) return; for (var i = 0; i < domarr.length; i++) { var txt = $(domarr[i]).text(); if (txt && txt.match(/\d+/)) { txt = parseprice.getPriceBeforeExchangeRate(txt); return txt; } } }; var getSku = function getSku() { var sku = ''; if (G.site.indexOf('amazon') > -1) { // sku = $('#bottomRow').text().match(/current_asin\"\:\"(\w+)\"/); sku = location.href.match(/\/dp\/(\w+)\//); sku = sku && sku[1]; if (!sku) sku = $('#addToCart #ASIN').val(); } else if (G.site === '6pm') { sku = $('span[id="sku"]').text().match(/\d+/); if (!sku) { sku = $('span[id="sku"]').text().match(/\d+/); sku = sku && sku[0]; } else { sku = sku[0]; } } return sku; }; var isZiYing = function isZiYing() { var dom = $('div[id="merchant-info"] a'); if (dom.length === 0) { return 1; } else if (dom.length === 1) { if (dom.text().toLocaleLowerCase().indexOf('amazon') > -1) return 1;else return 2; } else if (dom.length === 2) { if (dom.eq(1).text().toLocaleLowerCase().indexOf('amazon') > -1) return 1;else return 2; } else { return 2; } }; var isGoodProduct = function isGoodProduct(score, num, type) { if (type == 1 && num >= 5 && score >= 3.5) { return true; } if (type == 2 && num >= 10 && score >= 4) { return true; } return false; }; var addMark = function addMark(url) { if (!url) return url; if (url.indexOf('?') > -1) { url = url + '&p_r=gouwudang&p_k=plug_top_1&outer_pid=8507'; } else { url = url + '?p_r=gouwudang&p_k=plug_top_1&outer_pid=8507'; } return url; }; var buildJumpUrl = function buildJumpUrl(dp) { var url = 'http://www.gwdang.com/promotion/haitaomid?url_crc=' + dp.sku + '&url=' + encodeURIComponent(location.href) + '&f_d=' + G.from_device; return url; }; var getProductInfo = function getProductInfo() { var review_score = 0, review_number = 0; if (G.site.indexOf('amzon') > -1) { review_score = $('div[id="averageCustomerReviews"] span[class="a-icon-alt"]').text().match(/^[0-9.]+/); review_score = review_score && review_score[0]; review_number = $('div[id="averageCustomerReviews"] span[id="acrCustomerReviewText"]').text().match(/^\d+/); review_number = review_number && review_number[0]; } var sku = getSku(); pageSku = sku; var price = getPrice(); pagePrice = price; var fee = getFee(); var ziying = isZiYing(); if (price) price = Number(price) + Number(fee); var goodP = isGoodProduct(review_score, review_number, ziying); return { price: price, sku: sku, review_score: review_score, review_number: review_number, goodP: goodP, ziying: ziying }; }; var getHtInfo = function getHtInfo(obj, callback) { var dp = G.dp; // if (!obj.price) { // $('#bjgext_minibar').hide() // $('#bjgext_mb_bg').hide() // G.showMinibar = false; // return; // } var price = Number(obj.price) * 100; price = Number(price.toFixed(2)); var str = ''; if (G.site === '6pm') str = '&spec=' + getSpec(); var url = G.server + '/api/haitao?price=' + price + '&url_crc=' + obj.sku + '&url=' + encodeURIComponent(location.href) + '&review_number=' + obj.review_number + '&review_score=' + obj.review_score + '&sell_side=' + obj.ziying + '&priority=' + obj.priority + str; request.get(url).done(function (data) { if (data && data.data.product_status === 1) { var dpinfo = data.data.product_detail; dpinfo.url = addMark(data.data.product_url); callback(dpinfo); } else if (data.data.product_status === 2) { var dpinfo = data.data.product_detail_estimate; if (!dpinfo) { $('#bjgext_minibar').hide(); $('#bjgext_mb_bg').hide(); return; } dpinfo.url = buildJumpUrl(dp); callback(dpinfo); } else { var tle = ''; if (data.data.product_status === 4) tle = '抱歉,由于相关法律或者转运禁运的原因,该商品暂时不支持一键海淘'; if (data.data.product_status === 5) tle = '抱歉,该商品已下架,暂时不支持一键海淘'; if (data.data.product_status === 6) tle = '抱歉该商家口碑不好,不建议您购买'; var dpinfo = { goods_price: parseprice(pagePrice), url: 'javascript:void();', type: data.data.product_status, tle: tle, noinfo: true }; callback(dpinfo); } }); }; var specialFixed = function specialFixed() { if (G.site.indexOf('amazon') > -1 && $('#actionPanelWrapper').length > 0) { $('.bjgext-mini-compare').remove(); $('body').addClass('specailHack'); } }; var addEvent = function addEvent() { var logs = undefined; $('#bjgext_htbtn').on('mouseenter', function () { $(this).find('.yjht-box').show(); if (!logs) { cnzz.log('track:yjht:detail'); util.tongjiLog('track:yjht:detail'); logs = true; } $('#bjgext_minibar').addClass('_mshover'); }); $('#bjgext_htbtn').on('mouseleave', function () { $('#bjgext_htbtn .yjht-box').hide(); $('#bjgext_minibar').removeClass('_mshover'); }); $('#bjgext_htbtn .yjht-box').on('mouseleave', function () { $(this).hide(); $('#bjgext_minibar').removeClass('_mshover'); }); $('#bjgext_htbtn').on('click', function () { cnzz.log('click:yjht:title'); util.tongjiLog('click:yjht:title'); }); }; var renderBtn2 = function renderBtn2(data) { if (G.amazonGlobal) return; listenBody('off'); if (!data.noinfo) data = calPrice(data); var html = __webpack_require__("d88415c2290d890f9f31"); $('#bjgext_htbtn').remove(); $('.bjgext-mini-logo').after(template.compile(html)({ data: data })); listenBody('on'); if (!G.showMinibar) { $('#bjgext_minibar').css('display', 'inline-block'); G.showMinibar = true; } G.showYjht = true; addEvent(); }; var mainRender = function mainRender() { var info = getProductInfo(); if (info.goodP) { info.priority = 3; getHtInfo(info, renderBtn2); } else { info.priority = 1; getHtInfo(info, renderBtn2); } }; var listenBody = function listenBody(type) { // 只有亚马逊需要监控价格变化 if (type === 'on') { document.getElementById(priceDom).addEventListener('DOMSubtreeModified', func); } else if (type === 'off') { document.getElementById(priceDom).removeEventListener('DOMSubtreeModified', func); } }; var func = function func() { clearTimeout(Time1); Time1 = setTimeout(function () { if (pagePrice !== getPrice() || pageSku !== getSku()) { mainRender(); } }, 500); }; module.exports.init = function () { priceDom = 'unifiedPrice_feature_div'; if ($('#' + priceDom).length === 0) { priceDom = 'price_feature_div'; } if ($('#' + priceDom).length === 0) { priceDom = 'winePriceAndSavings_feature_div'; } if (G.site === '6pm') { priceDom = 'priceSlot'; } mainRender(); specialFixed(); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "6eb25eb4cdf107c16d13": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) {var __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { // var protocol = location.protocol === 'https:' ? 'https:' : 'http:'; var exports = {}; var $ = __webpack_require__("e081b2491b5c9b12b9da"); var request = __webpack_require__("91f250ebeb8d5987491c"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var now_site, num = 0; var dp_now, thisunion; var sitePatterns = { '360buy': ['#prom-mbuy .mob-buy', '#m-pirce'], 'yihaodian': ['#productSubName'], 'dangdang': ['#mobile_exclusive_price'], 'suning': ['#qrCode', '#phoneOrderCode'], 'gome': ['#shoujizhuanxiang_box'], '51buy': ['#sea_desc'] }; var getPricePattern = { '360buy': '#prom-mbuy .J-m-price', '360buy_1': '#m-pirce .J-m-price', 'dangdang': '#mobile_price' }; var viewsPatterns = { '360buy': '<a id="bjd_m_price" href="{{url}}" target="_blank" rel="noreferrer" title="{{title}}"style="text-decoration:underline;color:#005aa0;">无需扫码,电脑上也可享受手机优惠价!</a>', '360buy_1': '<a id="bjd_m_price" href="{{url}}" target="_blank" rel="noreferrer" title="{{title}}"style="text-decoration:underline;color:#005aa0;">无需扫码,电脑上也可享受手机优惠价!</a>', 'yihaodian': '<a id="bjd_m_price" href="{{url}}" target="_blank" rel="noreferrer" title="{{title}}"style="text-decoration:underline;color:#06c;background-color: #fff4f2;display: block;padding-left: 10px;height: 26px;line-height: 26px;font-size: 13px;">手机专享价{{price}},立即前往购买</a>', 'dangdang': '<a id="bjd_m_price" href="{{url}}" target="_blank" rel="noreferrer" title="{{title}}"style="text-decoration:underline;color:#005aa0;">无需扫码,电脑上也可享受手机优惠价!</a>', 'suning': '<a id="bjd_m_price" href="{{url}}" target="_blank" rel="noreferrer" title="{{title}}"style="text-decoration:underline;float:right;position:absolute;right:15px;width:110px;color: #003399;">前往手机版页面购买</a>', '51buy': '<a id="bjd_m_price" href="{{url}}" target="_blank" rel="noreferrer" title="{{title}}"style="text-decoration:underline;color:#06c;display: block;height: 26px;line-height: 26px;font-size: 13px;">手机专享价{{price}},立即前往购买</a>', 'gome': '<a id="bjd_m_price" href="{{url}}" target="_blank" rel="noreferrer" title="{{title}}"style="text-decoration:underline;color:#06c;display: block;height: 26px;line-height: 26px;font-size: 13px;">手机专享价{{price}},立即前往购买</a>' }; var insertPatterns = { '360buy': ['#m-pirce', '.J-prom-mbuy', '#prom-one'], 'yihaodian': '#' + G.extBrand + '_promo_active_yihaodian', 'dangdang': '#mobile_exclusive_price', 'suning': ['#qrCode .qrcode-main-img', '.ph-price-qrcode .qrcode-region'], '51buy': '#' + G.extBrand + '_promo_active_51buy', 'gome': '#shoujizhuanxiang_box' }; exports.init = function (now, union) { thisunion = union; dp_now = now; if (forbitSite()) hasMobilePrice(); }; function findPattern(pattern) { var doms = sitePatterns[pattern]; for (var i = 0; i < doms.length; i++) { if ($(doms[i]).is(':visible') && siteHasMobile()) { now_site = pattern; sendUrl(thisunion); return; } } num++; if (num === 10) return; setTimeout(function () { findPattern(pattern); }, 1000); } function siteHasMobile() { var hasmobile = false, site = G.site; switch (site) { case '360buy': hasmobile = true; break; case 'dangdang': hasmobile = true; break; case 'suning': if ($('#qrCode').text().indexOf('手机购买') > -1) { hasmobile = true; } else if ($('#phoneOrderCode').text().indexOf('手机专享价') > -1 && $('#phoneOrderCode').is(':visible')) { hasmobile = true; } else { hasmobile = false; } break; case '51buy': if ($('#sea_desc').text().indexOf('手机专享价') > -1) { hasmobile = true; } else if ($('.xprice .m-qrcode .txt em').text().indexOf('手机购买省') > -1) { if ($('.xprice .m-qrcode .txt em').text().indexOf('¥0.00') > -1) return false; hasmobile = true; } else { hasmobile = false; } break; case 'gome': if ($('#shoujizhuanxiang_box .hl_red_bg').text() == '手机专享') { hasmobile = true; } break; case 'yihaodian': if ($('#productSubName').text().indexOf('手机端下单') > -1) { hasmobile = true; } else { hasmobile = false; } break; } return hasmobile; } function hasMobilePrice() { for (var pattern in sitePatterns) { if (G.site === pattern) findPattern(pattern); } if (num === 0) return false; } function sendUrl(union) { var url = document.location.href; request.get(G.server + '/extension?ac=go_mobile&url=' + encodeURIComponent(url)).done(function (data) { if (data.url !== '' && data.status === 1) { if (G.btype == 'luyou' || G.from_device === 'juzi') { insert_a(data.url); insert_b(data.url); } else { renderMinibar(data.url); } } }); } var renderBaidu = function renderBaidu(url) { var price = getPrice(); var dom = '<li class="mobile_price">\n <span>手机专享</span>\n <a href="' + url + '" target="_blank">' + price + '</a>\n </li>'; $('#bdext_minibar .promo-box ul').prepend($(dom)); $('#bdext_minibar .promo-box').show(); $('.bdext-toptabs .bdext-mini-logo, .bdext-mini-compare').addClass('hasPromo'); }; var renderMinibar = function renderMinibar(url) { if (G.from_device === 'baidu') { renderBaidu(url); } else { renderWishlistMobile(url); } }; var renderWishlistMobile = function renderWishlistMobile(url) { if (G.site === '360buy') return; if (G.site != '360buy' || G.from_device == 'mi_new') url = editUrl(url); if (!url) return; var price = getPrice(); var spandom = '<li class="li_0" data-type="mob"><a href="' + url + '" title="购物党将带您前往手机版页面,以专享价购买商品" target="_blank" id="' + G.extBrand + '_mobile_price" rel="noreferrer"><span class="mobile_title" >专享价购买</span><span class="mobile_num">' + price + '</span>>></a></li>'; $('.promo_box_left ul').prepend($(spandom)); var domli = $('.promo_box_left ul li'); var len = domli.length; for (var i = 0; i < len; i++) { domli.eq(i).attr('class', 'li_' + i); } if (len < 3) { $('#' + G.extBrand + '_wishlist_div').addClass('oneline'); $('#' + G.extBrand + '_promo_box').show(); if (len == 1) $('.promo_shuxian').hide(); } else { $('#' + G.extBrand + '_wishlist_div').removeClass('oneline').addClass('twolines'); } cnzz.log('新版嵌入手机专享价展现'); $('#' + G.extBrand + '_mobile_price').on('click', function () { cnzz.log('新版嵌入手机专享价点击'); }); }; function forbitSite() { if (G.site == '360buy') { return true; } else { if ("ActiveXObject" in window) { return false; } else { return true; } } } function addEvent() { var color = ''; $('#bjd_m_price').on('mouseenter', function () { color = $(this).css('color'); if (G.site == 'suning' || G.site.indexOf('suning') > -1) { $(this).css('color', '#fff'); } else { $(this).css('color', '#003399'); } }).on('mouseleave', function () { $(this).css('color', color); }); $('#bjd_m_price').on('click', function () { __webpack_require__("03dd60018ce5ed1344a1")('click:mobile_price'); cnzz.log('手机专享价点击'); }); } function insert_a(url) { if (!url || now_site != '360buy') return; var price = getPrice(); var html = __webpack_require__("1824d892c74ca79a6959"); $('#summary-price .dd').eq(0).append(template.compile(html)({ url: editUrl(url), price: price, new_extension: G.new_extension, extBrand: G.extBrand })); $('#' + G.extBrand + '_mobile_price').on('click', function () { __webpack_require__("03dd60018ce5ed1344a1")('click:mobile_price_360buy'); cnzz.log('手机专享价点击2jd'); }); } function insert_b(url) { if (!url) return; var price = getPrice(); var title = "购物党将带您前往手机版页面,以专享价购买商品"; if (G.new_extension) title = ''; var html = viewsPatterns[now_site]; var insertPt; if ($.isArray(insertPatterns[now_site])) { for (var i = 0; i < insertPatterns[now_site].length; i++) { if ($(insertPatterns[now_site][i]).length > 0) { insertPt = insertPatterns[now_site][i]; break; } } } else { insertPt = insertPatterns[now_site]; } if (now_site == 'dangdang' || now_site == 'suning' || now_site == '360buy' || now_site == '360buy_1') { $(insertPt).eq(0).after(template.compile(html)({ url: editUrl(url), price: price, title: title })); } else { $(insertPt).eq(0).before(template.compile(html)({ url: editUrl(url), price: price, title: title })); } cnzz.log('展现手机专享价'); addEvent(); } function editUrl(url) { var murl = G.toMobileUrl; return murl + "/union/go?site_id=" + dp_now.site_id + '&target_url=' + url + '&union=' + thisunion + '&column=zhuanxiang_' + dp_now.now_dp_id; } function getPrice() { var price = ''; if (now_site == '360buy' || now_site == '360buy_1') { price = $(getPricePattern[now_site]).text(); } if (now_site == 'dangdang') { price = $(getPricePattern[now_site]).text(); } if (now_site == 'yihaodian') { var p = $("#productSubName").text().match(/([0-9.]+)元/); if (p) price = '¥' + p[1]; } if (now_site == '51buy') { var p = $('#sea_desc').text().match(/专享价([0-9.]+)/); if (p) price = '¥' + p[1];else { var dpPrice = G.dp.price; var discount = $('.xprice .m-qrcode .txt em').text().match(/[0-9.]+/); if (discount) { discount = discount[0]; dpPrice = Number(dpPrice) - Number(discount); price = '¥' + dpPrice; } } } if (now_site == 'suning') { var p = Number($('.qrcode-main-price em').text()); if (p != '') { var nowPrice = G.dp.price; var price = (nowPrice - p).toString(); if (price.indexOf('.') == -1) price = '¥' + price + '.00'; } else { var p = $('#phoneOrderCode').text().match(/[0-9.]+/); if (p) p = p[0]; if (p) price = '¥' + p; } } if (now_site == 'gome') { var saveprice = $('#savemoney').text().match(/[0-9.]+/); if (saveprice) saveprice = Number(saveprice[0]) || 0; var nowPrice = G.dp.price; var price = (nowPrice - saveprice).toString(); if (price.indexOf('.') == -1) price = '¥' + price + '.00'; } if (price.match(/[0-9]{5}/)) price = price.replace(/\.[0-9]+/, ''); return price; } 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"))) /***/ }), /***/ "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('<a id ="' + b + '_price_tip" class="' + G.from_device + '-ext" src="javascript:void(0)" target="_self">\n <div class="tip_btn_box">\n <em></em>\n <span>比价</span>\n </div>\n <div id="' + b + '_price_tip_detail"></div>\n </a>'); 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(` // <style> #mainsrp-header.m-header-fixed { display: block !important; } </style> // `) // } }; 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('<img src="' + G.server + '/template/aug/images/035.gif" style="margin: 5px;" id="' + G.extBrand + '_price_tip_loading">'); 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('<div>抱歉,当前商品暂无价格走势~</div>'); 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 <div style="background: white">\n <div>' + year + '/' + month + '/' + day + '</div>\n <div class="price-tip-item">\n <span class="price-tip-sp1" style="color: ' + this.series.color + ';font-size:12px;font-family:arial;float:none">●</span>\n <span class="price-tip-sp2">' + this.series.name + '</span>\n <span class="price-tip-sp3" style="font-family:Helvetica">' + price + price2 + '</span>\n </div>\n</div>'; 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"))) /***/ }), /***/ "6ec95ffde49637733150": /***/ (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 pricedog-size-list", staticStyle: { width: "100%" } }, [ _c( "ul", { staticClass: "gwd-column", style: "width: " + (_vm.lang === "en" ? "110" : "82") + "px;" }, _vm._l(_vm.list, function(item) { return _c( "li", { key: item.name, class: item.url === _vm.src ? "active" : "", on: { click: function($event) { _vm.src = item.url } } }, [_vm._v(_vm._s(item.name))] ) }), 0 ), _vm._v(" "), _c("div", { staticClass: "gwd-row", staticStyle: { flex: "1" } }, [ _c("iframe", { staticStyle: { "margin-top": "12px", "margin-right": "10px", "margin-bottom": "16px", border: "1px solid #e6e9eb", flex: "1" }, attrs: { src: _vm.src } }) ]) ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "713022a3c59a01af1a14": /***/ (function(module, exports, __webpack_require__) { var $imports = __webpack_require__("9f47c636f849c23a0c20"); module.exports = function ($data) { 'use strict'; $data = $data || {}; var $$out = '', $escape = $imports.$escape, link = $data.link, text = $data.text; $$out += '<a target="_blank" class="gwd-middle-act-bar" href="'; $$out += $escape(link); $$out += '">\n <img '; $$out += 'src="https://cdn.bijiago.com/images/extensions/activity/tmall-redpack-middle.png"'; $$out += ' style="width: 17px; height: 19px; margin-left: 11px">\n <span style="font-size: 12px; color: #ff471a; margin-left: 7px; font-weight: bold">'; $$out += $escape(text); $$out += '</span>\n <div style="flex: 1"></div>\n <img '; $$out += 'src="https://cdn.bijiago.com/images/extensions/activity/arrow.svg"'; $$out += ' style="width: 26px; height: 10px;">\n <span class="gwd-take" style="line-height: initial">\n 立即领取\n </span>\n</a>\n<style>\n .gwd-middle-act-bar {\n width: 462px;\n height: 34px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n border: 1px solid #e6e9eb;\n background: white;\n font-size: 0;\n }\n\n .gwd-middle-act-bar:hover {\n text-decoration: none;\n }\n\n .gwd-take {\n display: inline-block;\n margin-left: 10px;\n margin-right: 15px;\n text-align: center;\n width:70px;\n height:18px;\n background:linear-gradient(90deg,rgba(255,42,26,1) 0%,rgba(255,98,31,1) 100%);\n border-radius:9px;\n font-size: 12px;\n color: white;\n position: relative;\n cursor: pointer;\n }\n\n .gwd-qr-act-mid {\n display: none;\n flex-direction: column;\n position: absolute;\n width: 144px;\n height: 167px;\n box-sizing: border-box;\n border: 1px solid #ff471a;\n background: #fff9f6;\n top: 25px;\n z-index: 99;\n /*left: 50%;*/\n right: -16px;\n align-items: center;\n margin-left: -72px;\n }\n\n .gwd-qr-act-mid span {\n width: initial;\n margin: 0;\n }\n\n .gwd-take:hover .gwd-qr-act-mid {\n display: flex;\n }\n</style>'; return $$out; }; /***/ }), /***/ "719962cffbaf4ac55086": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("c8a5b6d6a4f6c49bbced"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("b87ceb42", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./PromotionPlan.vue?vue&type=style&index=0&id=24d41b24&lang=less&scoped=true&", function() { var newContent = require("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./PromotionPlan.vue?vue&type=style&index=0&id=24d41b24&lang=less&scoped=true&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "72e2b7a61c5c0074a032": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['product', 'line', 'outdated'], methods: { goLink: function goLink() { window.open('https://pcsitepp-fm.jd.com/'); } } }; module.exports = exports['default']; /***/ }), /***/ "73027d3bf1a467cf5ac2": /***/ (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_MemberCouponQr_vue_vue_type_template_id_498face2_scoped_true___ = __webpack_require__("78b9935edabcc835af58"); /* 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_MemberCouponQr_vue_vue_type_template_id_498face2_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_MemberCouponQr_vue_vue_type_template_id_498face2_scoped_true___["b"]; }); /***/ }), /***/ "735bc3c8e2dc98526bc5": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-qr-container[data-v-44c0e93e] {\n display: none;\n position: absolute;\n right: 0px;\n width: 153px;\n height: 156px;\n background: #FFF6F4;\n border: 1px solid #FF6132;\n flex-direction: column;\n z-index: 9;\n bottom: 28px;\n align-items: center;\n}\n.mainbar-fold .gwd-member-coupon-top[data-v-44c0e93e] {\n display: none;\n}\n.gwd-member-coupon-top[data-v-44c0e93e] {\n height: 28px;\n background: linear-gradient(to right, #f28936, #ff351e);\n position: relative;\n background-size: cover;\n display: inline-flex;\n align-items: center;\n margin-top: 2px;\n cursor: pointer;\n border-radius: 2px;\n margin-right: 5px;\n}\n.gwd-member-coupon-top .gwd-qr-container[data-v-44c0e93e] {\n display: none;\n position: absolute;\n}\n.gwd-member-coupon-top[data-v-44c0e93e]::before,\n.gwd-member-coupon-top[data-v-44c0e93e]::after {\n content: '';\n position: absolute;\n left: 115px;\n width: 4px;\n height: 4px;\n background: white;\n border-radius: 2px;\n top: -2px;\n}\n.gwd-member-coupon-top[data-v-44c0e93e]::after {\n top: unset;\n bottom: -2px;\n}\n.gwd-member-coupon-top[data-v-44c0e93e]:hover {\n text-decoration: none;\n}\n.gwd-member-coupon-top:hover .gwd-qr-container[data-v-44c0e93e] {\n display: flex;\n}\n", ""]); // exports /***/ }), /***/ "736c759b5b051531338e": /***/ (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_CollectionList_vue_vue_type_style_index_0_id_56eea7fc_scoped_true_lang_less___ = __webpack_require__("d2157f2d9c4578abf953"); /* 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_CollectionList_vue_vue_type_style_index_0_id_56eea7fc_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_CollectionList_vue_vue_type_style_index_0_id_56eea7fc_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_CollectionList_vue_vue_type_style_index_0_id_56eea7fc_scoped_true_lang_less____default.a); /***/ }), /***/ "73ffe551a141cc2a674e": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, Vue, G) { var bgClient = __webpack_require__("660610db8f6e89357da9"); var load = function load() { 'use strict'; var allowBg = arguments.length <= 0 || arguments[0] === undefined ? false : arguments[0]; var Vuex, installSource, cnzz; return regeneratorRuntime.async(function load$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: Vuex = __webpack_require__("436f6d560acb97f873d1"); Vue.use(Vuex); __webpack_require__("5e05e6f5fe79ccf5d009").init(); __webpack_require__("4722071a8c6ae978cb2e").init(); __webpack_require__("3fb8e5219d9e2232a6e9").init(); __webpack_require__("d6aec8444c650eeab5f2").tongjiLog('bdvisit'); if (!allowBg) { context$1$0.next = 14; break; } G.allowBackgroundRequest = true; __webpack_require__("8f965860bd6f3049a7e3").init(); context$1$0.next = 11; return regeneratorRuntime.awrap(bgClient.get('/getStorage', { key: 'install_source' })); case 11: installSource = context$1$0.sent; if (installSource) { G.union = 'union_bijiago_' + installSource; } __webpack_require__("86382bef702254f6385c").init(); case 14: if (!(G.pageInfo.type === 0)) { context$1$0.next = 16; break; } return context$1$0.abrupt('return'); case 16: cnzz = __webpack_require__("83271c7588396d2d5e59"); if (cnzz) cnzz.init(G.bd_cnzz); if (location.host === 'm.fine3q.com') __webpack_require__("07b7d866ad8cfe4a15f1").init(); //判断是否为重复加载,如果为重复加载,直接结束脚本 if (!__webpack_require__("8f2ce96968fee64ad5e0")) { context$1$0.next = 21; break; } return context$1$0.abrupt('return'); case 21: __webpack_require__("edd40abc3cca37fc4610"); __webpack_require__("f2b706dcdb3731e0de2c").init(); if (G.site == 'iqiyi') G.set_force = false; __webpack_require__("edb006a6bdc87dceab2d").common(function (data) { if (data && data.result instanceof Array) { G.set_force = false; G.forbidCoupon = true; } else if (data && data.result) { var result = data.result.address; if (result.indexOf('北京') > -1 || result.indexOf('上海') > -1 || result.indexOf('广州') > -1 || result.indexOf('深圳') > -1 || result.indexOf('杭州') > -1) { G.set_force = false; G.forbidAd = true; } else if (result.indexOf('南京') > -1) { G.set_force = false; } if (result.indexOf('北京') > -1 || result.indexOf('上海') > -1) { G.forbidTkl = true; } if (result.indexOf('北京') > -1 || result.indexOf('杭州') > -1) { G.forbidCoupon = true; G.forbidApp = true; } } __webpack_require__("cb0906562effcf1b0e6c").getRate(function () { __webpack_require__("a67cb0e15fc3b78f18a6").init(); }); }); case 25: case 'end': return context$1$0.stop(); } }, null, this); }; var runned = false; __webpack_require__("97d054c18bc332775c3b"); __webpack_require__("660610db8f6e89357da9").get('/bgVer').then(function (res) { if (res) { loadExt(true); runned = true; } }); setTimeout(function () { if (!runned) { loadExt(false); } }, 2000); function loadExt(allowBg) { console.log('loadExt', allowBg); if (window.Promise) { load(allowBg); } else { (function () { var s = document.createElement('script'); s.src = 'https://cdn.bijiago.com/js/es6-promise.min.js'; document.body.appendChild(s); var k = setInterval(function () { if (window.Promise) { clearInterval(k); load(allowBg); } }, 500); })(); } } /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("3deef7cc191860c0adf2")["default"], __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "7466bdc18c8921db5e2b": /***/ (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-column gwd-align bjg-item", style: _vm.line ? "border-top: 1px solid #f1f1f1" : "" }, [ _c( "div", { staticClass: "gwd-row bjg-dp-item", on: { click: _vm.goLink } }, [ _c("img", { class: _vm.outdated ? "bjg-op" : "", staticStyle: { width: "100px", height: "100px", "margin-right": "10px", "margin-left": "14px" }, attrs: { src: _vm.product.img, onerror: "this.src='https://cdn.bijiago.com/images/extensions/default_load_image.png'", alt: "" } }), _vm._v(" "), _c("div", { staticClass: "gwd-column", staticStyle: { flex: "1" } }, [ _c( "span", { staticClass: "title", style: _vm.outdated ? "color: #8c847b" : "" }, [_vm._v(_vm._s(_vm.product.title))] ), _vm._v(" "), _vm.product.inTime ? _c("div", { staticStyle: { "margin-top": "16px" } }, [ _c("span", { staticClass: "bjg-price-text" }, [ _vm._v( "订单价: " + _vm._s((_vm.product.price / 100).toFixed(2)) ) ]) ]) : _vm._e(), _vm._v(" "), _c("div", { staticStyle: { flex: "1" } }), _vm._v(" "), _c("div", { staticClass: "gwd-row" }, [ _vm.product.inTime ? _c( "span", { staticClass: "bjg-price-text", staticStyle: { flex: "1" } }, [ _vm._v( "现 价: " + _vm._s( (_vm.product.currentPrice ? _vm.product.currentPrice / 100 : _vm.product.price / 100 ).toFixed(2) ) ) ] ) : _vm._e(), _vm._v(" "), !_vm.product.inTime ? _c( "span", { staticClass: "bjg-price-text", staticStyle: { flex: "1" } }, [ _vm._v( "订单价: " + _vm._s((_vm.product.price / 100).toFixed(2)) ) ] ) : _vm._e(), _vm._v(" "), _c( "span", { staticClass: "bjg-price-text", staticStyle: { flex: "1" } }, [ _vm._v( "下单时间: " + _vm._s(_vm.product.ctime.substr(0, 10).replace(/-/g, ".")) ) ] ) ]) ]) ] ), _vm._v(" "), _vm.product.errorText ? _c("div", { staticStyle: { width: "372px" } }, [ _c( "span", { staticStyle: { "font-size": "12px", color: "#333333", transform: "scale(0.9166)", "transform-origin": "top left", display: "block", "margin-top": "12px" } }, [_vm._v(_vm._s(_vm.product.errorText))] ) ]) : _vm._e(), _vm._v(" "), _vm.product.currentPrice < _vm.product.price && !_vm.outdated ? _c("div", { staticClass: "bjg-tip" }, [ _c("span", { staticStyle: { position: "relative", top: "4px" } }, [ _vm._v( "可申请价格保护,预估:" + _vm._s( ( (_vm.product.price - _vm.product.currentPrice) / 100 ).toFixed(2) ) + "元/件 >" ) ]) ]) : _vm._e() ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "74757817411a9c6f8278": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { module.exports = function () { if (G.site === 'keede' && Array.prototype.forEach.toString() !== "function forEach() { [native code] }") { Array.prototype.forEach = function (callback, thisArg) { var T, k; if (this == null) { throw new TypeError(' this is null or not defined'); } var O = Object(this); var len = O.length >>> 0; if (typeof callback !== "function") { throw new TypeError(callback + ' is not a function'); } if (arguments.length > 1) { T = thisArg; } k = 0; while (k < len) { var kValue; if (k in O) { kValue = O[k]; callback.call(T, kValue, k, O); } k++; } }; } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "74ff18b26ae830696f53": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function (o) { o.__events = {}; o.on = function (type, listener) { o.__events[type] = o.__events[type] || []; o.__events[type].push(listener); }; o.off = function (type, listener) { var eventsListeners = o.__events[type]; if (eventsListeners && eventsListeners.length) { for (var i = 0; i < eventsListeners.length; i++) { if (eventsListeners[i] === listener) { eventsListeners.splice(i, 1); break; } } } }; o.trigger = function (type) { var param = Array.prototype.slice.call(arguments); param.shift(); var eventsListeners = o.__events[type]; if (eventsListeners && eventsListeners.length) { for (var i = 0; i < eventsListeners.length; i++) { eventsListeners[i].apply(this, param); } } }; }; /***/ }), /***/ "7533c9aba67fdd1f456c": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MiniList_vue_vue_type_template_id_5637898a_scoped_true___ = __webpack_require__("ca7be28a871c3228a696"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__MiniList_vue_vue_type_script_lang_js___ = __webpack_require__("02608c80b36284fae8ee"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__MiniList_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__MiniList_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__MiniList_vue_vue_type_style_index_0_id_5637898a_lang_less_scoped_true___ = __webpack_require__("9661584dadeb9f990f41"); /* 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__MiniList_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__MiniList_vue_vue_type_template_id_5637898a_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__MiniList_vue_vue_type_template_id_5637898a_scoped_true___["b" /* staticRenderFns */], false, null, "5637898a", 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('5637898a')) { api.createRecord('5637898a', component.options) } else { api.reload('5637898a', component.options) } module.hot.accept("./MiniList.vue?vue&type=template&id=5637898a&scoped=true&", function () { api.rerender('5637898a', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/bjgou/components/MiniList.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "7617244db959e7c4b9b7": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "bjgou-section-title gwd-row gwd-align" }, [ _c("div", { staticClass: "bjgou-hinter" }), _vm._v(" "), _c("span", [_vm._t("default")], 2) ]) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "7679fe95fd073a45096d": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjg-page-protect-button[data-v-41b15ea6] {\n position: absolute;\n top: 0;\n left: 310px;\n}\n.bjg-page-protect-button .bjg-box[data-v-41b15ea6] {\n z-index: 99;\n display: none;\n background: white;\n border: 1px solid #f1f1f1;\n box-shadow: 0px 2px 4px rgba(176, 176, 176, 0.5);\n left: -65px;\n position: relative;\n padding: 5px;\n}\n.bjg-page-protect-button:hover .bjg-box[data-v-41b15ea6] {\n display: block;\n}\n", ""]); // exports /***/ }), /***/ "769b11bc2499d664f2cc": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); var request = __webpack_require__("91f250ebeb8d5987491c"); exports['default'] = { data: function data() { return { showing: '', list: [], src: '', lang: G.lang }; }, mounted: function mounted() { var _this = this; var link = 'https://cdn.bijiago.com/js/configs/sizeHelp.json'; if (G.lang === 'en') { link = 'https://cdn.bijiago.com/js/configs/sizeHelp_en.json'; } request.get(link).then(function (res) { _this.list = res; _this.showing = res[0].name; _this.src = res[0].url; }); } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "76afd03cbebfc0224290": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjgou-set[data-v-ae71a91e] {\n display: block;\n color: #ffae45;\n width: 90px;\n height: 24px;\n border-radius: 14px;\n border: 1px solid #ffae45;\n font-size: 12px;\n margin-top: 24px;\n text-align: center;\n line-height: 24px;\n}\n.bjgou-unset[data-v-ae71a91e] {\n color: white;\n background: #ffae45;\n}\n.bjgou-mini-favor[data-v-ae71a91e] {\n flex: 1;\n position: relative;\n min-width: 133px;\n border: 1px solid #e6e9eb;\n border-top-right-radius: 5px;\n border-left: none;\n align-items: center;\n cursor: pointer;\n justify-content: center;\n display: flex;\n}\n.bjgou-mini-favor .bjg-down[data-v-ae71a91e] {\n color: #6b6761;\n font-size: 14px;\n}\n.bjgou-mini-favor .bjgou-qr[data-v-ae71a91e] {\n position: absolute;\n top: 36px;\n right: -1px;\n width: 182px;\n height: 231px;\n background: white!important;\n /*box-shadow:0px 2px 4px 0px rgba(226,226,226,1);*/\n border: 1px solid #e6e9eb;\n flex-direction: column;\n align-items: center;\n display: none;\n z-index: 99;\n}\n.bjgou-mini-favor .bjgou-login[data-v-ae71a91e] {\n position: absolute;\n top: 36px;\n right: -1px;\n width: 293px;\n height: 88px;\n background: white!important;\n border: 1px solid #e6e9eb;\n flex-direction: column;\n align-items: center;\n display: none;\n z-index: 99;\n}\n.bjgou-mini-favor .bjgou-login button[data-v-ae71a91e] {\n margin-top: 21px;\n width: 228px;\n height: 28px;\n background: linear-gradient(270deg, #ffcd47 0%, #ff9f22 100%);\n border-radius: 16px;\n color: white;\n font-size: 12px;\n border: none!important;\n outline: none;\n}\n.bjgou-mini-favor .bjgou-login span[data-v-ae71a91e] {\n margin-top: 6px;\n color: #8c847b;\n font-size: 12px;\n}\n.bjgou-mini-favor[data-v-ae71a91e]:hover {\n background: #fffbef;\n}\n.bjgou-mini-favor:hover .bjgou-login[data-v-ae71a91e] {\n display: flex;\n}\n.bjgou-mini-favor:hover .bjgou-qr[data-v-ae71a91e] {\n display: flex;\n}\n", ""]); // exports /***/ }), /***/ "7742551da8abed297279": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _BjgBottomWindow = __webpack_require__("9f3c39067bb983909ffe"); var _BjgBottomWindow2 = _interopRequireDefault(_BjgBottomWindow); var _CollectionItem = __webpack_require__("3410b73aaf9fdcb95700"); var _CollectionItem2 = _interopRequireDefault(_CollectionItem); var _mixinsBottomWindowMixin = __webpack_require__("c46f7dae3143963b076f"); var _mixinsBottomWindowMixin2 = _interopRequireDefault(_mixinsBottomWindowMixin); var request = __webpack_require__("91f250ebeb8d5987491c"); var bgClient = __webpack_require__("660610db8f6e89357da9"); exports['default'] = { components: { BjgBottomWindow: _BjgBottomWindow2['default'], CollectionItem: _CollectionItem2['default'] }, mixins: [_mixinsBottomWindowMixin2['default']], data: function data() { return { list: [], loading: false, loaded: false, historyDpIdList: [] }; }, methods: { clearAll: function clearAll() { this.list = []; this.saveHistory([]); }, deleteItem: function deleteItem(id) { this.list = this.list.filter(function (x) { return x.id !== id; }); this.saveHistory(this.historyDpIdList.filter(function (x) { return x !== id; })); }, saveHistory: function saveHistory(newList) { bgClient.get('/setStorage', { history: JSON.stringify(newList) }, function (data) {}); }, addCurrent: function addCurrent() { var historyDpIdList, dpId, res, newList; return regeneratorRuntime.async(function addCurrent$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(bgClient.get('/getStorage', { key: 'history' })); case 2: historyDpIdList = context$1$0.sent; if (!historyDpIdList) { historyDpIdList = []; } this.historyDpIdList = historyDpIdList; context$1$0.next = 7; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('GwdDpIdGot')); case 7: dpId = context$1$0.sent; context$1$0.next = 10; return regeneratorRuntime.awrap(request.post('https://i.bijiago.com/UserHistory/Add?app_platform=ext', { dp_id: dpId }, true)); case 10: res = context$1$0.sent; if (!(res.code !== 1)) { context$1$0.next = 13; break; } return context$1$0.abrupt('return'); case 13: newList = historyDpIdList.filter(function (x) { return x !== dpId; }); newList.unshift(dpId); newList = newList.filter(function (item, idx) { return idx < 30; }); this.saveHistory(newList); case 17: case 'end': return context$1$0.stop(); } }, null, this); }, startLoad: function startLoad() { var historyDpIdList, result, result2; return regeneratorRuntime.async(function startLoad$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!(this.loading || this.list.length > 0 || this.loaded)) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: this.loading = true; historyDpIdList = this.historyDpIdList; if (historyDpIdList.length) { context$1$0.next = 7; break; } this.loaded = true; return context$1$0.abrupt('return'); case 7: context$1$0.next = 9; return regeneratorRuntime.awrap(request.post('https://i.bijiago.com/UserHistory/List?app_platform=ext&union=' + G.union, { dp_ids: historyDpIdList.join(',') }, true)); case 9: result = context$1$0.sent; if (!(historyDpIdList.length > 20)) { context$1$0.next = 15; break; } context$1$0.next = 13; return regeneratorRuntime.awrap(request.post('https://i.bijiago.com/UserHistory/List?app_platform=ext&union=' + G.union, { dp_ids: historyDpIdList.slice(20).join(',') }, true)); case 13: result2 = context$1$0.sent; result.data = result.data.concat(result2.data); case 15: this.list = result.data.map(function (item) { item.id = item.dp_id; return item; }); this.loaded = true; this.loading = false; case 18: case 'end': return context$1$0.stop(); } }, null, this); } }, mounted: function mounted() { this.addCurrent(); } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "77864e5d03a2ac4d3320": /***/ (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-column pricedog-transport" }, [ _vm.innerData.catName ? _c("div", { staticClass: "pricedog-transport-bar gwd-row gwd-align" }, [ _c("span", { staticClass: "pricedog-bold" }, [ _vm._v("\n 類別:" + _vm._s(_vm.innerData.catName) + "\n ") ]) ]) : _vm._e(), _vm._v(" "), !_vm.question && _vm.innerData.catName ? _c( "div", { staticClass: "pricedog-transport-bar gwd-row pricedog-transport-result" }, [ _c( "span", { staticClass: "pricedog-bold pricedog-sub gwd-row gwd-align", staticStyle: { "padding-right": "8px" } }, [_vm._v("\n 運輸方式:\n ")] ), _vm._v(" "), _vm.innerData.catEmbargoAir !== "None" ? _c( "span", { staticClass: "pricedog-sub gwd-row gwd-align", staticStyle: { flex: "1", "justify-content": "center" } }, [ _c("img", { staticStyle: { width: "20px", height: "20px" }, attrs: { src: __webpack_require__("1b35f67b1186f0c74da1"), alt: "" } }), _vm._v(" "), _c("span", { staticStyle: { "margin-left": "8px" } }, [ _vm._v("空運") ]), _vm._v(" "), _c( "span", { class: _vm.innerData.catEmbargoAir === "0" ? "pricedog-allow" : "pricedog-forbid", staticStyle: { "margin-left": "20px" } }, [ _vm._v( "\n " + _vm._s( _vm.innerData.catEmbargoAir === "0" ? "允許" : "禁運" ) + "\n " ) ] ), _vm._v(" "), _vm.innerData.catEmbargoAir === "0" ? _c("img", { staticStyle: { width: "13px", height: "13px", "margin-left": "8px" }, attrs: { src: __webpack_require__("633ef8ad777f0055b611"), alt: "" } }) : _c("img", { staticStyle: { width: "13px", height: "13px", "margin-left": "8px" }, attrs: { src: __webpack_require__("a3ecee62913f922a9bc8"), alt: "" } }) ] ) : _vm._e(), _vm._v(" "), _vm.innerData.catEmbargoSe !== "None" ? _c( "span", { staticClass: "pricedog-sub gwd-row gwd-align", staticStyle: { flex: "1", "justify-content": "center" } }, [ _c("img", { staticStyle: { width: "20px", height: "20px" }, attrs: { src: __webpack_require__("d079071324191de7d860"), alt: "" } }), _vm._v(" "), _c("span", { staticStyle: { "margin-left": "8px" } }, [ _vm._v("海運") ]), _vm._v(" "), _c( "span", { class: _vm.innerData.catEmbargoSe === "0" ? "pricedog-allow" : "pricedog-forbid", staticStyle: { "margin-left": "20px" } }, [ _vm._v( "\n " + _vm._s( _vm.innerData.catEmbargoSe === "0" ? "允許" : "禁運" ) + "\n " ) ] ), _vm._v(" "), _vm.innerData.catEmbargoSe === "0" ? _c("img", { staticStyle: { width: "13px", height: "13px", "margin-left": "8px" }, attrs: { src: __webpack_require__("633ef8ad777f0055b611"), alt: "" } }) : _c("img", { staticStyle: { width: "13px", height: "13px", "margin-left": "8px" }, attrs: { src: __webpack_require__("a3ecee62913f922a9bc8"), alt: "" } }) ] ) : _vm._e() ] ) : _vm._e(), _vm._v(" "), !_vm.question && _vm.innerData.catName ? _c("div", { staticClass: "pricedog-transport-bar gwd-column" }, [ _c( "span", { staticClass: "pricedog-bold", staticStyle: { "line-height": "40px" } }, [_vm._v("進口限製:")] ), _vm._v(" "), _c("div", { staticStyle: { "padding-bottom": "10px" } }, [ _c( "span", { class: _vm.innerData.catShptBrief ? "pricedog-forbid" : "pricedog-allow" }, [ _vm._v( _vm._s( _vm.innerData.catShptBrief ? _vm.innerData.catShptBrief : "無限製" ) ) ] ) ]) ]) : _vm._e(), _vm._v(" "), _vm.question && _vm.innerData.catName ? _c( "div", { staticClass: "pricedog-transport-bar gwd-column pricedog-question" }, [ _c( "span", { staticClass: "pricedog-bold", staticStyle: { "line-height": "40px" } }, [_vm._v(_vm._s(_vm.question))] ), _vm._v(" "), _c( "div", { staticClass: "gwd-row gwd-align", staticStyle: { "padding-bottom": "16px" } }, [ _c("input", { directives: [ { name: "model", rawName: "v-model", value: _vm.currentSelect, expression: "currentSelect" } ], attrs: { type: "radio", value: "qaRadioA" }, domProps: { checked: _vm._q(_vm.currentSelect, "qaRadioA") }, on: { change: function($event) { _vm.currentSelect = "qaRadioA" } } }), _c("span", [_vm._v(_vm._s(_vm.radioA))]), _vm._v(" "), _c("input", { directives: [ { name: "model", rawName: "v-model", value: _vm.currentSelect, expression: "currentSelect" } ], staticStyle: { "margin-left": "40px" }, attrs: { type: "radio", value: "qaRadioB" }, domProps: { checked: _vm._q(_vm.currentSelect, "qaRadioB") }, on: { change: function($event) { _vm.currentSelect = "qaRadioB" } } }), _c("span", [_vm._v(_vm._s(_vm.radioB))]), _vm._v(" "), _c( "button", { class: { "pricedog-active": _vm.currentSelect, "gwd-button": _vm.currentSelect }, on: { click: _vm.submit } }, [_vm._v("提交")] ) ] ) ] ) : _vm._e(), _vm._v(" "), !_vm.innerData.catName ? _c("div", { staticClass: "pricedog-transport-bar gwd-row gwd-align" }, [ _c("span", [ _vm._v("很抱歉,暫未獲取到該商品的集運信息,pricedog努力收錄中~") ]) ]) : _vm._e() ]) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "77a9c55d500e3b83f42d": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("97c0645dcf36e56de349"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("1f96e4e7", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./MemberCouponTop.vue?vue&type=style&index=0&id=28e28ad7&scoped=true&lang=less&", function() { var newContent = require("!!../../../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!./MemberCouponTop.vue?vue&type=style&index=0&id=28e28ad7&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "781592f0f5e474de23a5": /***/ (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"]; /***/ }), /***/ "782aa4484d980c52f14b": /***/ (function(module, exports) { module.exports = {"feedback":{"zh":"反馈","en":"Feedback","zh-tr":"反饋"},"content":{"zh":"反馈内容:","en":"Details:","zh-tr":"反饋內容:"},"contact":{"zh":"联系方式:","en":"Contact:","zh-tr":"聯系方式:"},"submit":{"zh":"提交","en":"Submit","zh-tr":"提交"},"mail":{"zh":"邮箱 / QQ","en":"E-Mail/QQ","zh-tr":"郵箱"}} /***/ }), /***/ "78b9935edabcc835af58": /***/ (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-member-qr gwd-column gwd-align" }, [ _c("img", { staticStyle: { width: "20px", height: "20px", position: "absolute", left: "50%", top: "53px", transform: "translate(-50%, 0%)", background: "white" }, attrs: { src: __webpack_require__("c9085187c37fc1ab0e5e"), alt: "" } }), _vm._v(" "), _c("img", { style: "visibility: " + (_vm.qr ? "visible" : "hidden"), attrs: { src: _vm.qr, alt: "" } }), _vm._v(" "), _vm._m(0) ]) } var staticRenderFns = [ function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticStyle: { "margin-top": "6px", height: "13px", "line-height": "13px", "white-space": "nowrap", "text-align": "center", "padding-left": "4px" } }, [ _c("span", { staticClass: "gwd-bigger" }, [_vm._v("淘宝APP扫码")]), _vm._v(" "), _c( "span", { staticClass: "gwd-font11", staticStyle: { color: "#333333" } }, [_vm._v("联系客服领取")] ) ] ) } ] render._withStripped = true /***/ }), /***/ "79026c9ce190263ec57e": /***/ (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_TransPort_vue_vue_type_template_id_666fed93_scoped_true___ = __webpack_require__("77864e5d03a2ac4d3320"); /* 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_TransPort_vue_vue_type_template_id_666fed93_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_TransPort_vue_vue_type_template_id_666fed93_scoped_true___["b"]; }); /***/ }), /***/ "792416f9e69ebb1f3237": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ShopCouponTop_vue_vue_type_template_id_05b8b243_scoped_true___ = __webpack_require__("03a4f568c59183be3680"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ShopCouponTop_vue_vue_type_script_lang_js___ = __webpack_require__("b0c35ce530f329f4b886"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__ShopCouponTop_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__ShopCouponTop_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ShopCouponTop_vue_vue_type_style_index_0_id_05b8b243_scoped_true_lang_less___ = __webpack_require__("dbdfbfa3b5305a7ac55d"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ShopCouponTop_vue_vue_type_style_index_1_id_05b8b243_scoped_true_lang_less___ = __webpack_require__("1eaa5aa43913a4839414"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_4__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__ShopCouponTop_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__ShopCouponTop_vue_vue_type_template_id_05b8b243_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__ShopCouponTop_vue_vue_type_template_id_05b8b243_scoped_true___["b" /* staticRenderFns */], false, null, "05b8b243", 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('05b8b243')) { api.createRecord('05b8b243', component.options) } else { api.reload('05b8b243', component.options) } module.hot.accept("./ShopCouponTop.vue?vue&type=template&id=05b8b243&scoped=true&", function () { api.rerender('05b8b243', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/bjgou/components/ShopCouponTop.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "79ebaf19a313e6c85941": /***/ (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_PriceProtectPageButton_vue_vue_type_template_id_41b15ea6_scoped_true___ = __webpack_require__("f4dc08505a68602504c4"); /* 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_PriceProtectPageButton_vue_vue_type_template_id_41b15ea6_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_PriceProtectPageButton_vue_vue_type_template_id_41b15ea6_scoped_true___["b"]; }); /***/ }), /***/ "7a162262fe305871f8d9": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($) { var codeOfs = 88; var utitle; try { utitle = ["t=" + $('title').html().substr(0, 250), "k=lxsx", "d=ls"]; } catch (err) { utitle = []; } var pageUrl = encodeURIComponent(location.href); var trendd = { zero: ["0", "00", "000", "0000", "00000", "000000", "0000000", "00000000"], strReverse: function strReverse(a) { var b, l, c = []; for (b = 0, l = a.length; b < l; b++) c[c.length] = a.charAt(b); return c.reverse().join(""); }, isString: function isString(a) { return "[object String]" === Object.prototype.toString.call(a); }, encrypt: function encrypt(a, b, e) { var f, l, g = []; if (!trendd.isString(a)) return ""; for (f = 0, l = a.length; f < l; f++) g[g.length] = trendd.to(a.charCodeAt(f), b); return e ? trendd.strReverse(g.join("")) : g.join(""); }, to: function to(a, c) { var e = "" + (a + codeOfs).toString(16), f = c - e.length; return f > 0 ? trendd.zero[f - 1] + e : e; }, decrypt: function decrypt(a, b, e) { if (!trendd.isString(a)) return ""; var f = []; e && (a = trendd.strReverse(a)); for (var g = 0, h = 0; g < a.length; g += b, h++) { var i = a.substring(g, g + b); f[h] = trendd.tranFormat(i, b); } return String.fromCharCode.apply(String, f); }, tranFormat: function tranFormat(a, c) { return a.length !== c ? 0 : parseInt(a.replace(/^0+/g, ""), 16) - codeOfs; }, genExtensionId: function genExtensionId() { if (window.localStorage['extensionid']) return window.localStorage['extensionid']; var guid = ""; for (var i = 1; i <= 32; ++i) { guid += Math.floor(Math.random() * 16.0).toString(16); if (i == 8 || i == 12 || i == 16 || i == 20) guid += "-"; } window.localStorage['extensionid'] = guid; return guid; } }; module.exports.init = function () { // 这是使用惠惠接口做的接口模拟参数生成模块 var gstr = ""; var ga = "//zhu", gb = "shou.huih", gc = "ui.cn/product", gd = "Sense?br", ge = "owser=chrome&ver", gf = "sion=4.2.9.6&vendor=chrom"; gstr = ga + gb + gc + gd + ge + gf; var extensionid = trendd.genExtensionId(); var trendK = trendd.encrypt(utitle.join("^&"), 4, !1); var z = trendd.encrypt(pageUrl, 2, !0), A = 1900 - z.length; trendK = trendK.length > A ? trendK.substr(0, A) : trendK; var url = location.protocol + gstr + "enew&av=3.0&ext" + "ensionid=" + extensionid + "&email=&pop=&k=" + trendK + "&nl=true&m=" + z; return url; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "7aa06633a1f51565602c": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("a433d565cf5af33ab29b"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("0ae08dff", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./BottomFavor.vue?vue&type=style&index=0&id=013bbf9d&lang=less&scoped=true&", function() { var newContent = require("!!../../../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!./BottomFavor.vue?vue&type=style&index=0&id=013bbf9d&lang=less&scoped=true&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "7b5af9900b7455f21ca0": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var request = __webpack_require__("91f250ebeb8d5987491c"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var util = __webpack_require__("d6aec8444c650eeab5f2"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var pagesite = undefined, urlArr = undefined, clickTime = {}, show_ljfqrcode = true; var ListPattern = { 'lianjia': { list: '.sellListContent li.clear', hrefitem: '.info .title a', insertdom: '.sellListContent li.clear' }, 'maitian': { list: '.list_wrap li.clearfix', hrefitem: '.list_title h1 a', insertdom: '.list_wrap li.clearfix' }, 'lianjia2': { list: '#js-ershoufangList .m-list>ul>li', hrefitem: '.prop-title a', insertdom: '#js-ershoufangList .m-list>ul>li' }, 'ke': { list: '.sellListContent li.clear', hrefitem: '.info .title a', insertdom: '.sellListContent li.clear' }, 'ke2': { list: '.sellListContent li.clear', hrefitem: '.info .title a', insertdom: '.sellListContent li.clear' }, '5i5j': { list: '.pListBox .pList>li', hrefitem: 'a', insertdom: '.pListBox .pList>li' }, 'centanet': { list: '.section-houselists .house-item', hrefitem: '.house-title a', insertdom: '.section-houselists .house-item' }, 'centanet2': { list: '.result-lists .house-main .house-item', hrefitem: '.house-title a', insertdom: '.result-lists .house-main .house-item' } }; var dpPattern = { 'lianjia': ['.content .price-container', '#topImg+.info>.price'], 'lianjia2': ['.houseInfo', '.maininfo-price'], 'ke': ['.content .price-container', '#topImg+.info>.price'], 'ke2': ['.houseInfo', '.maininfo-price'], '5i5j': ['.housesty'], 'centanet': ['#sidefixedbox .infotop'], 'centanet2': ['.roombase-infor .roombase-price'], "maitian": ['.home_content .hc_left table tr:first-child', '.home_content .home_infos li:first-child'] }; var siteIdPattern = { 'lianjia': 441, '5i5j': 442, 'ke': 441, 'maitian': 443, 'centanet': 511 }; var getHouseCode = function getHouseCode() { var type = pageType(); var housecode = undefined; if (type == 2) { var url = location.href; switch (G.site) { case 'lianjia': housecode = url.match(/\/([a-z0-9A-Z]+)\.html/)[1]; break; case 'ke': housecode = url.match(/\/([a-z0-9A-Z]+)\.html/)[1]; break; case 'maitian': housecode = url.match(/\/esfxq\/([a-z0-9A-Z]+)/)[1]; break; case '5i5j': housecode = url.match(/\/([a-z0-9]+)\.html/)[1]; break; case 'centanet': housecode = url.match(/\/([a-z0-9]+)\.html/)[1]; break; } } else { var urls = urlArr; switch (G.site) { case 'lianjia': housecode = Array.prototype.map.call(urls, function (e) { return e.match(/\/([a-z0-9A-Z]+)\.html/)[1]; }).join(','); break; case 'ke': housecode = Array.prototype.map.call(urls, function (e) { return e.match(/\/([a-z0-9A-Z]+)\.html/)[1]; }).join(','); break; case 'maitian': housecode = Array.prototype.map.call(urls, function (e) { return e.match(/\/esfxq\/([a-z0-9A-Z]+)/)[1]; }).join(','); break; case '5i5j': housecode = Array.prototype.map.call(urls, function (e) { return e.match(/\/([a-z0-9]+)\.html/)[1]; }).join(','); break; case 'centanet': housecode = Array.prototype.map.call(urls, function (e) { return e.match(/\/([a-z0-9]+)\.html/)[1]; }).join(','); break; } } return housecode; }; var existRemind = function existRemind() { var siteId = siteIdPattern[G.site]; if (!siteId) return; var housecode = getHouseCode(); var url = G.u_house + '/api/house_collection?ac=exist&site_id=' + siteId + '&house_code=' + housecode; request.get(url).done(function (data) { if (data && data.exist) { var list = $('.ht-price-remind'); for (var i = 0; i < list.length; i++) { var code = list.eq(i).attr('data-id'); if (data.exist[code]) { list.eq(i).addClass('hasremind'); list.eq(i).find('span').text('已添加提醒'); list.eq(i).attr('data-colid', data.exist[code]); } } } }); }; var addRemind = function addRemind(code, callback) { if (clickTime[code] >= 4) { return; } if (!clickTime[code]) { clickTime[code] = 1; } clickTime[code]++; var siteId = siteIdPattern[G.site]; var url = G.u_house + '/api/house_collection?ac=add&site_id=' + siteId + '&house_code=' + code + '&from_url=' + encodeURIComponent(location.href); request.get(url).done(function (data) { if (data && data.msg === '收藏成功') { callback(data); } else if (data.msg === '请先登录') { location.href = data.loginUrl; } }); }; var delRemind = function delRemind(id, callback) { var url = G.u_house + '/api/house_collection?ac=del&collection_id=' + id; request.get(url).done(function (data) { if (data && data.msg === '删除成功') { callback(); } }); }; var addEvent = function addEvent() { var time = undefined, time2 = undefined; $('.ht-trend-desc, #bdext_minibar .bdext-toptabs').on('mouseenter', function () { var c = $(this).parent().parent().hasClass('trend-box-1'); if (c) return; var oldsrc = $(this).parent().next().find('.house-trend-img img').attr('src'); if (!oldsrc) { var src = $(this).parent().next().find('.house-trend-img img').attr('data-src'); $(this).parent().next().find('.house-trend-img img').attr('src', src); } $(this).addClass('mshover'); $(this).parent().next().show(); }); $('.ht-trend-desc, #bdext_minibar .bdext-toptabs').on('mouseleave', function () { var that = this; time = setTimeout(function () { $(that).parent().next().hide(); $(that).removeClass('mshover'); }, 300); }); $('.houset-detail').on('mouseenter', function () { clearTimeout(time); }); $('.houset-detail').on('mouseleave', function () { $(this).hide(); $('.ht-trend-desc, #bdext_minibar').removeClass('mshover'); }); $('.ht-price-remind').on('click', function () { var that = this; var txt = $(this).find('span').text(); var code = $(this).attr('data-id'); if (txt === '降价提醒') { addRemind(code, function (data) { $(that).addClass('hasremind'); $(that).find('span').text('已添加提醒'); $(that).attr('data-colid', data.collect_id); }); } else { var collect_id = $(this).attr('data-colid'); delRemind(collect_id, function () { $(that).attr('data-colid', null); $(that).removeClass('hasremind'); $(that).find('span').text('降价提醒'); }); } }); $('.ht-price-remind').on('mouseenter', function () { if (userData.get('show_ljfqrcode') == 0 || !show_ljfqrcode) return; $(this).parent().parent().find('.ht-wxqrcode').show(); }); $('.ht-price-remind').on('mouseleave', function () { var that = this; time2 = setTimeout(function () { $(that).parent().parent().find('.ht-wxqrcode').hide(); }, 150); }); $('.ht-wxqrcode').on('mouseenter', function () { clearTimeout(time2); }); $('.ht-wxqrcode').on('mouseleave', function () { $('.ht-wxqrcode').hide(); }); $('.ht-wxqrcode .ht-wx-sp3').on('click', function () { $('.ht-wxqrcode').hide(); show_ljfqrcode = false; util.settings('set_show_ljfqrcode', 'show_ljfqrcode', '0'); }); $('body').on('click', function (e) { var dom = $(e.target); var communityDom = dom.parent().parent().parent().find('.community-price'); if (dom.hasClass('bjg-house-trend-b')) { communityDom.hide(); dom.parent().find('span').removeClass('trend-choose'); dom.addClass('trend-choose'); } else if (dom.hasClass('bjg-community-trend-b')) { if (communityDom.children().length === 0) { renderChart(communityDom, function () { dom.parent().find('span').removeClass('trend-choose'); dom.addClass('trend-choose'); communityDom.show(); }); } else { dom.parent().find('span').removeClass('trend-choose'); dom.addClass('trend-choose'); communityDom.show(); } } }); }; var renderChart = function renderChart(dom, callback) { var href = dom.attr('data-u'); var id = dom.attr('id'); getInfo(href, function (data) { __webpack_require__("034f9176860d52edf6c0")({ el: id, msg: data }); if (callback && data.community) { callback(); } }); }; var renderBtn = function renderBtn(data) { var html = __webpack_require__("1c469960191f3f97ff17"); var listobj = ListPattern[pagesite]; var list = $(listobj['list']); for (var i = 0; i < list.length; i++) { var item = list.eq(i).find(listobj['hrefitem']); var href = item.attr('href'); if (href.indexOf('http') === -1) href = location.protocol + '//' + location.host + href; var housecode = undefined; switch (G.site) { case 'lianjia': housecode = href.match(/\/([a-z0-9A-Z]+)\.html/)[1]; break; case 'ke': housecode = href.match(/\/([a-z0-9A-Z]+)\.html/)[1]; break; case '5i5j': housecode = href.match(/\/([a-z0-9]+)\.html/)[1]; break; case 'maitian': housecode = href.match(/\/esfxq\/([a-z0-9A-Z]+)/)[1]; break; case 'centanet': housecode = href.match(/\/([a-z0-9]+)\.html/)[1]; break; } href = encodeURIComponent(href.replace('.ke.', '.lianjia.')); if (data.data[href]) { list.eq(i).append(template.compile(html)({ data: data.data[href], server: G.server, s_server: G.s_server, housecode: housecode })); } } setTimeout(existRemind, 500); addEvent(); }; var renderBtnDp = function renderBtnDp(data) { var housecode = getHouseCode(); var dpdom = undefined; var dpobj = dpPattern[pagesite]; for (var i = 0; i < dpobj.length; i++) { if ($(dpobj[i]).length > 0) { dpdom = dpobj[i]; break; } } var html = __webpack_require__("1c469960191f3f97ff17"); var href = encodeURIComponent(location.href.replace('.ke.', '.lianjia.')); $(dpdom).eq(0).after(template.compile(html)({ data: data.data[href], server: G.server, s_server: G.s_server, pagetype: 'dppage', housecode: housecode })); addEvent(); setTimeout(existRemind, 500); }; var getUrls = function getUrls(type) { var obj = ListPattern[pagesite]; var hrefdom = obj['list'] + ' ' + obj['hrefitem']; var host = location.host; if (host.indexOf('lianjia') > -1 && type === 2) { return location.href; } else if (host.indexOf('lianjia') > -1) { var arr = Array.prototype.map.call($(hrefdom), function (e) { var href = $(e).attr('href'); return (href.indexOf('http') > -1 ? '' : 'http://' + location.host) + href; }); urlArr = arr; return arr.join('||'); } if (host.indexOf('maitian') > -1 && type === 2) { return location.href; } else if (host.indexOf('maitian') > -1) { var arr = Array.prototype.map.call($(hrefdom), function (e) { var href = $(e).attr('href'); return (href.indexOf('http') > -1 ? '' : 'http://' + location.host) + href; }); urlArr = arr; return arr.join('||'); } if (host.indexOf('ke') > -1 && type === 2) { return location.href; } else if (host.indexOf('ke') > -1) { var arr = Array.prototype.map.call($(hrefdom), function (e) { var href = $(e).attr('href'); return (href.indexOf('http') > -1 ? '' : 'http://' + location.host) + href; }); urlArr = arr; return arr.join('||'); } if (host.indexOf('5i5j') > -1 && type === 2) { return location.href; } else if (host.indexOf('5i5j') > -1) { var arr = Array.prototype.map.call($('.pListBox .pList>li .listTit>a'), function (e) { return location.protocol + '//' + location.host + $(e).attr('href'); }); urlArr = arr; return arr.join('||'); } if (host.indexOf('centanet') > -1 && type === 2) { return location.href; } else if (host.indexOf('centanet') > -1) { var arr = Array.prototype.map.call($(hrefdom), function (e) { return location.protocol + '//' + location.host + $(e).attr('href'); }); urlArr = arr; return arr.join('||'); } }; var getInfo = function getInfo(url, callback) { request.get(url).done(function (data) { callback(data); }); }; var pageType = function pageType() { var url = location.href; var type = 0; var site = pagesite; switch (site) { case 'lianjia': if (url.match(/\d+\.html/)) { type = 2; } else { type = 1; } break; case 'maitian': if (url.match(/esfxq\/\w+/)) { type = 2; } else { type = 1; } break; case 'lianjia2': if (url.match(/\d+\.html/)) { type = 2; } else { type = 1; } break; case '5i5j': if (url.match(/(?:exchange|ershoufang)\/\d+\.html/) && $('.big-slide').length > 0) { type = 2; } else if (url.match(/(?:exchange|ershoufang)/)) { type = 1; } break; case 'centanet': if (url.match(/ershoufang\/[a-z0-9]+\.html/) && $('#picBox').length > 0) { type = 2; } else if (url.match(/ershoufang/)) { type = 1; } break; case 'centanet2': if (url.match(/ershoufang\/[a-z0-9]+\.html/)) { type = 2; } else if (url.match(/ershoufang/)) { type = 1; } break; case 'ke': if (url.match(/\d+\.html/)) { type = 2; } else { type = 1; } break; } return type; }; var renderStyle = function renderStyle() { var html = __webpack_require__("02e0fd95ab8762a40af9"); $('body').append(template.compile(html)({ s_server: G.s_server, extBrand: G.extBrand })); $('body').addClass('house_' + pagesite); }; var _init = function _init() { pagesite = G.site; if (pagesite != 'lianjia' && pagesite != '5i5j' && pagesite != 'centanet' && pagesite != 'ke' && pagesite != 'maitian') return; if (location.host === 'sh.lianjia.com' || location.host === 'su.lianjia.com') { pagesite = 'lianjia2'; } if (location.host === 'sh.centanet.com') { pagesite = 'centanet2'; } var type = pageType(); var urls = getUrls(type); var url = G.server + '/extension/houseTip?url=' + encodeURIComponent(urls); if (type === 2) { getInfo(url, renderBtnDp); } else { getInfo(url, renderBtn); } renderStyle(); }; module.exports.init = function () { setTimeout(function () { if ($('html').hasClass('gwd_top') || $('html').hasClass('gwd_bottom')) return; _init(); }, 1000); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "7bb864157b1329e994ad": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var getQRCode = __webpack_require__("657bad1e7f3b602f7d70"); module.exports = { data: function data() { return { qrcode: '', error: false, logged: false, loading: false, site: location.hostname.indexOf('.jd.com') > -1 ? 'jd' : 'taobao', payload: {} }; }, methods: { goLink: function goLink() { if (this.qr) return; __webpack_require__("83271c7588396d2d5e59").log(this.site + 'GiftMoney:click'); if (this.url) { window.open(this.url); } }, over: function over() { var _this = this; if (!this.qr) return; if (this.qrcode) return; if (this.loading) return; this.loading = true; var payload = { id: G && G.dp ? G.dp.itemId : this.id, amount: this.value, title: '', _type: 'rebate' }; if (this.price) { payload.price = this.price; payload.tip = this.price; } if (this.tag) { payload._tag = this.tag; } this.payload = payload; getQRCode(payload, '', function (res) { if (res[0].etag) { _this.error = true; return; } else { _this.error = false; } _this.qrcode = res[0].imgSrc; if (!_this.logged) { __webpack_require__("83271c7588396d2d5e59").log(_this.site + 'GiftMoney:hover'); __webpack_require__("83271c7588396d2d5e59").log(_this.site + 'GiftMoney:-hover'); if (_this.oldPatch) { __webpack_require__("83271c7588396d2d5e59").log(_this.site + 'GiftMoney:hover-oldPatch'); } _this.logged = true; } }); } } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "7bc264230157b5cefc24": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, Highcharts) { module.exports = function (data) { var highest = parseInt(data.msg.highest); var yAxisTitlex = 10; if (highest > 99) yAxisTitlex = 24; var obj = { chart: { renderTo: data.el, marginTop: 24, marginLeft: 78, marginRight: 24, backgroundColor: data.bg ? data.bg : "#394653", type: 'line', events: { load: function load() { this.yAxis[0].update({ tickInterval: parseInt((this.yAxis[0].dataMax - this.yAxis[0].dataMin) / 4) || 1 }); var xinterval = (this.xAxis[0].dataMax - this.xAxis[0].dataMin) / 86400000; xinterval = xinterval / 3; var tickIntervals = undefined; if (xinterval > 30) { xinterval = parseInt(xinterval / 30) + 1; tickIntervals = xinterval * 30 * 86400000; } else { tickIntervals = xinterval * 86400000; } if (!data.shortTime) this.xAxis[0].update({ tickInterval: tickIntervals }); } } }, credits: { enabled: false }, colors: ['#1e94f8'], title: { text: data.title || '', y: -20, style: { color: '#92ABC2' } }, xAxis: { type: 'datetime', labels: { style: { color: "#5f7183" } }, dateTimeLabelFormats: { day: '%m-%e', week: '%m-%e', month: '%y/%m', year: '%y/%m' }, tickLength: 0, lineColor: "#5f7183", gridLineWidth: 1, gridLineColor: '#516171' }, yAxis: { title: { text: data.unit ? data.unit : '价格(元)', rotation: 0, margin: 0, y: -72, x: yAxisTitlex, style: { color: "#5f7183" } }, labels: { style: { color: "#5f7183" }, formatter: function formatter() { return this.value.toFixed(2); } }, plotLines: [{ value: 0, width: 1, color: '#808080' }], gridLineColor: '#5f7183', tickPixelInterval: 50 }, tooltip: { xDateFormat: '%Y-%m-%d', shared: true, shape: 'square', useHTML: true, followPointer: false, width: 110, height: 52, borderWidth: G.site === 'epic' ? 0 : 1, style: { padding: 0 }, formatter: function formatter() { var x = new Date(this.x); var year = x.getFullYear(); var month = x.getMonth() + 1; var day = x.getDate(); if (month < 10) month = '0' + month.toString(); if (day < 10) day = '0' + day.toString(); var datestr = year + '.' + month + '.' + day; // let format = data.msg.formatted[this.x.toString()]; // let disc = format.discount // if (disc !== 0) // disc = '-' + disc.toString() + '%'; var price = undefined; if (this.y !== 0) price = this.y.toFixed(2);else price = '0'; var dom = '<div class="ttip-discount">\n <span class="ttip-sp1">' + datestr + '</span>\n <span class="ttip-sp2">价格: ¥' + price + '</span>\n </div>'; if (G.site === 'epic') { dom = '\n <div class="ttip-discount" style="width: 110px; height: 52px; padding-top: 8px; padding-left: 10px;">\n <span class="ttip-sp1" style="display: inline-block; color: #aaaaaa">' + datestr + '</span><br>\n <span class="ttip-sp2" style="display: inline-block; color: #aaaaaa; margin-top: 4px">价格: $' + price + '</span>\n </div>\n '; } return dom; }, backgroundColor: G.site === 'epic' ? '#000000' : 'rgba(20,37,55,0.94)' }, plotOptions: { series: { marker: { radius: 1, 'stroke-width': 0, stroke: '#1e94f8', lineColor: null }, shadow: false, states: { hover: { marker: { radius: 3, 'stroke-width': 0, stroke: '#1e94f8', lineColor: null }, halo: { size: 5 } } } } }, legend: { enabled: false, borderWidth: 0 }, series: [] }; if (data.title === undefined) obj.title.style.display = 'none'; var store = data.msg; try { obj.series[0] = { visible: true, name: store.name, color: "#61BBEF", lineWidth: 2, data: [] }; obj.series[0].visible = true; obj.series[0].pointStart = store.all_line_begin_time + 8 * 3600000; obj.series[0].pointInterval = store.all_equal_short ? 3600000 : 3600000 * 24; obj.series[0].data = store.all_line; // obj.xAxis.floor = store.all_line_begin_time; // obj.xAxis.max = store.all_line_begin_time + (obj.series[0].data.length - 1) * 3600000 * 24 if (obj.series[0].data.length === 1) { var k = obj.series[0].data[0]; //obj.series[0].data.unshift() } window.chart = new Highcharts.Chart(obj); } catch (e) {} }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("ff50e367dd130fa205e3"))) /***/ }), /***/ "7c0aeff3c6420627d592": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("ff8d16a23118d8d9618f"); if(typeof content === 'string') content = [[module.i, content, '']]; // add the styles to the DOM var update = __webpack_require__("ed1f825ff922d4e45a2e")(content, {}); if(content.locals) module.exports = content.locals; // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../node_modules/.0.20.2@css-loader/index.js!./haitao.css", function() { var newContent = require("!!../../../node_modules/.0.20.2@css-loader/index.js!./haitao.css"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "7c4b8c21fe3ca1ba7f77": /***/ (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_SpinLoading_vue_vue_type_template_id_23093fe4_scoped_true___ = __webpack_require__("379f1e81d3df300589c8"); /* 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_SpinLoading_vue_vue_type_template_id_23093fe4_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_SpinLoading_vue_vue_type_template_id_23093fe4_scoped_true___["b"]; }); /***/ }), /***/ "7cf15cf32a9159fb0c24": /***/ (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_GwdA_vue_vue_type_script_lang_js___ = __webpack_require__("1ae4ef2ead46a154a4a2"); /* 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_GwdA_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_GwdA_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_GwdA_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_GwdA_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_GwdA_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "7ee8c7c37da7b9a78bf5": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_style_index_0_id_8590af9e_scoped_true_lang_less___ = __webpack_require__("a4cd7cabd020eff246a4"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_style_index_0_id_8590af9e_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_style_index_0_id_8590af9e_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_style_index_0_id_8590af9e_scoped_true_lang_less____default.a); /***/ }), /***/ "7f384690db4d1cd1049f": /***/ (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_SubsidyBottom_vue_vue_type_style_index_1_id_1cab7080_scoped_true_lang_less___ = __webpack_require__("404e79ebef9e9956133c"); /* 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_SubsidyBottom_vue_vue_type_style_index_1_id_1cab7080_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_SubsidyBottom_vue_vue_type_style_index_1_id_1cab7080_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_SubsidyBottom_vue_vue_type_style_index_1_id_1cab7080_scoped_true_lang_less____default.a); /***/ }), /***/ "7f54b9e6b1eddb2a3a91": /***/ (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: "btn-lg gwd-btn", on: { mouseover: _vm.over } }, [ _vm._v("\n " + _vm._s(_vm.text) + "\n "), _vm.qr ? _c( "div", { staticClass: "qrcode gwd-align" }, [ _c("img", { staticStyle: { "margin-top": "7px", width: "130px", height: "130px" }, style: _vm.qrcode ? "" : "visibility: hidden", attrs: { src: _vm.qrcode, alt: "" } }), _vm._v(" "), _vm.error ? _c("QrError", { on: { refresh: _vm.over } }) : _vm._e(), _vm._v(" "), _vm._m(0) ], 1 ) : _vm._e() ] ) } var staticRenderFns = [ function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticStyle: { "margin-top": "4px", "text-align": "center", "line-height": "initial" } }, [ _c( "span", { staticStyle: { "font-weight": "bold", color: "#f40f0f", "font-size": "14px" } }, [_vm._v("微信扫码")] ), _vm._v(" "), _c( "span", { staticStyle: { "margin-left": "4px", color: "#070707", "font-size": "12px" } }, [_vm._v("领红包")] ) ] ) } ] render._withStripped = true /***/ }), /***/ "803178e09e55b1c59d2c": /***/ (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: "bjg-qr-error" }, [ _c("img", { attrs: { src: "https://cdn.gwdang.com/images/extensions/warn@2x.png", alt: "" } }), _vm._v(" "), _c( "span", { staticClass: "grayText", staticStyle: { "margin-top": "10px" } }, [ _vm._v("当前网络异常"), _c("br"), _vm._v("点此"), _c("span", { staticClass: "red", on: { click: _vm.click } }, [ _vm._v("刷新") ]) ] ) ]) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "80766e20adc7927b28f7": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponMini_vue_vue_type_template_id_c6f6054e_scoped_true___ = __webpack_require__("9e336bfd4f1d3314facb"); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponMini_vue_vue_type_template_id_c6f6054e_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponMini_vue_vue_type_template_id_c6f6054e_scoped_true___["b"]; }); /***/ }), /***/ "80e77af2a2d13f11ec32": /***/ (function(module, exports, __webpack_require__) { var $imports = __webpack_require__("9f47c636f849c23a0c20"); module.exports = function ($data) { 'use strict'; $data = $data || {}; var $$out = '', $escape = $imports.$escape, link = $data.link, extClass = $data.extClass, img = $data.img; $$out += '<a href="'; $$out += $escape(link); $$out += '"\n target="_blank"\n title="点击领取"\n style="display: inline-flex; position: relative; vertical-align: middle; margin-left: 5px; width: auto" class="gwd-bottom-tmall '; $$out += $escape(extClass); $$out += '">\n <img src="'; $$out += $escape(img); $$out += '" alt="" style="height: 44px">\n</a>\n<style>\n .gwd-bottom-tmall {\n height: 100%;\n align-items: center;\n }\n\n .gwd-qr-act-bottom {\n display: none;\n flex-direction: column;\n position: absolute;\n width: 144px;\n height: 167px;\n box-sizing: border-box;\n border: 1px solid #ff471a;\n background: #fff9f6;\n bottom: 62px;\n left: 50%;\n align-items: center;\n margin-left: -72px;\n }\n\n .gwd-qr-act-bottom span {\n width: initial;\n margin: 0;\n }\n\n .gwd-bottom-tmall:hover .gwd-qr-act-bottom {\n display: flex;\n }\n</style>'; return $$out; }; /***/ }), /***/ "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 /***/ }), /***/ "82114830c114803b44f5": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".ant-spin[data-v-23093fe4] {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-variant: tabular-nums;\n height: 14px;\n list-style: none;\n -webkit-font-feature-settings: \"tnum\";\n font-feature-settings: \"tnum\";\n color: #ff9747;\n text-align: center;\n vertical-align: middle;\n -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);\n transition: -webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);\n transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);\n transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86), -webkit-transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);\n position: static;\n display: inline-block;\n opacity: 1;\n}\n.ant-spin-dot-spin[data-v-23093fe4] {\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg);\n -webkit-animation: antRotate-data-v-23093fe4 1.2s linear infinite;\n animation: antRotate-data-v-23093fe4 1.2s linear infinite;\n}\n.ant-spin-dot[data-v-23093fe4] {\n position: relative;\n display: inline-block;\n font-size: 20px;\n width: 1em;\n height: 1em;\n}\n.ant-spin-dot-item[data-v-23093fe4] {\n position: absolute;\n display: block;\n width: 9px;\n height: 9px;\n background-color: #ff9747;\n border-radius: 100%;\n -webkit-transform: scale(0.75);\n transform: scale(0.75);\n -webkit-transform-origin: 50% 50%;\n transform-origin: 50% 50%;\n opacity: 0.3;\n -webkit-animation: antSpinMove-data-v-23093fe4 1s linear infinite alternate;\n animation: antSpinMove-data-v-23093fe4 1s linear infinite alternate;\n}\n.ant-spin-dot-item[data-v-23093fe4]:first-child {\n top: 0;\n left: 0;\n}\n.ant-spin-dot-item[data-v-23093fe4]:nth-child(2) {\n top: 0;\n right: 0;\n -webkit-animation-delay: 0.4s;\n animation-delay: 0.4s;\n}\n.ant-spin-dot-item[data-v-23093fe4]:nth-child(3) {\n right: 0;\n bottom: 0;\n -webkit-animation-delay: 0.8s;\n animation-delay: 0.8s;\n}\n.ant-spin-dot-item[data-v-23093fe4]:nth-child(4) {\n bottom: 0;\n left: 0;\n -webkit-animation-delay: 1.2s;\n animation-delay: 1.2s;\n}\n.ant-spin-sm .ant-spin-dot[data-v-23093fe4] {\n font-size: 14px;\n}\n.ant-spin-sm .ant-spin-dot i[data-v-23093fe4] {\n width: 6px;\n height: 6px;\n}\n@-webkit-keyframes antSpinMove-data-v-23093fe4 {\nto {\n opacity: 1;\n}\n}\n@keyframes antSpinMove-data-v-23093fe4 {\nto {\n opacity: 1;\n}\n}\n@-webkit-keyframes antRotate-data-v-23093fe4 {\nto {\n -webkit-transform: rotate(405deg);\n transform: rotate(405deg);\n}\n}\n@keyframes antRotate-data-v-23093fe4 {\nto {\n -webkit-transform: rotate(405deg);\n transform: rotate(405deg);\n}\n}\n", ""]); // 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"]; }); /***/ }), /***/ "8243485b512c7d53d3be": /***/ (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_PriceProtectAuthLoginRequest_vue_vue_type_template_id_5d50758c___ = __webpack_require__("ac002b164c5cca29df55"); /* 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_PriceProtectAuthLoginRequest_vue_vue_type_template_id_5d50758c___["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_PriceProtectAuthLoginRequest_vue_vue_type_template_id_5d50758c___["b"]; }); /***/ }), /***/ "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"))) /***/ }), /***/ "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"]; }); /***/ }), /***/ "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 = '<img src="' + img + '" />'; 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"])) /***/ }), /***/ "8671cd87262233d90022": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _SpinLoadingVue = __webpack_require__("dfec65aa18a62ab5fafc"); var _SpinLoadingVue2 = _interopRequireDefault(_SpinLoadingVue); var _SectionTitleVue = __webpack_require__("36fc24d930a0aa9d3219"); var _SectionTitleVue2 = _interopRequireDefault(_SectionTitleVue); var _ProductItemVue = __webpack_require__("bf2de32fc8729bd38731"); var _ProductItemVue2 = _interopRequireDefault(_ProductItemVue); var _commonComponentsGwdAVue = __webpack_require__("31a49fbf55666a9430c0"); var _commonComponentsGwdAVue2 = _interopRequireDefault(_commonComponentsGwdAVue); var client = __webpack_require__("660610db8f6e89357da9"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); function sleep(time) { return new Promise(function (resolve) { setTimeout(function () { return resolve(); }, time); }); } exports['default'] = { components: { SpinLoading: _SpinLoadingVue2['default'], SectionTitle: _SectionTitleVue2['default'], ProductItem: _ProductItemVue2['default'], GwdA: _commonComponentsGwdAVue2['default'] }, data: function data() { return { wait: 1000, protectingItems: [], outdatedItems: [], status: 'syncing' // syncing, complete, needLogin }; }, methods: { syncNow: function syncNow() { var data; return regeneratorRuntime.async(function syncNow$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!(location.href.indexOf('https://pcsitepp-fm.jd.com/?goDown') > -1)) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: cnzz.log('价格保护', '同步按钮点击'); this.status = 'syncing'; context$1$0.next = 6; return regeneratorRuntime.awrap(client.get('/getDpItemList', { reSync: true })); case 6: data = context$1$0.sent; this.process(data); case 8: case 'end': return context$1$0.stop(); } }, null, this); }, goIntro: function goIntro() { window.open('https://www.bijiago.com/priceProtectIntro/'); }, doLogin: function doLogin() { if (G.site !== '360buy') { location.href = 'https://pcsitepp-fm.jd.com/'; } else { location.href = 'https://passport.jd.com/new/login.aspx?ReturnUrl=' + encodeURIComponent(location.href.replace('#crumb-wrap', '') + '#forceOpen'); } }, process: function process(data) { return regeneratorRuntime.async(function process$(context$1$0) { var _this = this; while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (data) { context$1$0.next = 9; break; } if (!(navigator.userAgent.toLowerCase().indexOf('firefox') > -1)) { context$1$0.next = 7; break; } context$1$0.next = 4; return regeneratorRuntime.awrap(sleep(this.wait)); case 4: this.wait += 1000; this.load(); return context$1$0.abrupt('return'); case 7: this.syncNow(); return context$1$0.abrupt('return'); case 9: if (!data.needLogin) { context$1$0.next = 15; break; } if (!(this.protectingItems.length || this.outdatedItems.length)) { context$1$0.next = 13; break; } this.status = 'needLogin'; return context$1$0.abrupt('return'); case 13: this.$emit('needLogin'); return context$1$0.abrupt('return'); case 15: this.status = 'complete'; this.protectingItems = []; this.outdatedItems = []; data.forEach(function (order) { var time = order.ctime; order.related.forEach(function (item) { item.ctime = time; // item.successPrice = 160 // this.protectingItems.push(item) if (item.inTime) { _this.protectingItems.push(item); } else { _this.outdatedItems.push(item); } }); }); case 19: case 'end': return context$1$0.stop(); } }, null, this); }, load: function load() { var data; return regeneratorRuntime.async(function load$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!(location.href.indexOf('https://pcsitepp-fm.jd.com/?goDown') > -1)) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: context$1$0.next = 4; return regeneratorRuntime.awrap(client.get('/getDpItemList', {})); case 4: data = context$1$0.sent; this.process(data); if (location.href.indexOf('forceOpen') > -1) { this.syncNow(); history.replaceState({}, document.title, location.href.replace('#forceOpen', '')); } case 7: case 'end': return context$1$0.stop(); } }, null, this); } }, watch: {}, mounted: function mounted() { this.load(); } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "86ad55987cc7f0c46cb3": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjg-qrText[data-v-683c35f8] {\n cursor: pointer;\n}\n.bjg-qrText img[data-v-683c35f8] {\n display: none;\n}\n.bjg-qrText:hover img[data-v-683c35f8] {\n display: block;\n}\n.bjg-window[data-v-683c35f8] {\n border-radius: 2px 2px 0px 0px;\n cursor: default;\n display: none;\n background: white;\n position: absolute;\n width: 407px;\n bottom: 59px;\n}\n.bjg-window div[data-v-683c35f8] {\n border-left: 1px solid #f1f1f1;\n border-right: 1px solid #f1f1f1;\n}\n.bjg-window .bjg-window-title[data-v-683c35f8] {\n background: url(" + __webpack_require__("6620e3403a3f2951e8cc") + ");\n height: 32px;\n display: flex;\n border-left: none;\n border-right: none;\n align-items: center;\n border-radius: 2px 2px 0px 0px;\n background-size: contain;\n}\n.bjg-window .bjg-window-title span.username[data-v-683c35f8] {\n margin-left: 8px;\n font-size: 12px;\n color: white;\n max-width: 125px;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n}\n.bjg-window .bjg-window-bottom[data-v-683c35f8] {\n border-top: 1px solid #f1f1f1;\n background: white;\n height: 41px;\n}\n.bjg-window .bjg-window-bottom a[data-v-683c35f8] {\n cursor: pointer;\n font-size: 12px;\n color: #64615d;\n text-decoration: underline;\n}\n.bjg-window .bjg-window-bt[data-v-683c35f8] {\n position: absolute;\n bottom: -1px;\n height: 2px;\n background: transparent;\n left: 0;\n right: 0;\n}\n", ""]); // exports /***/ }), /***/ "87038ee9f896d5ddf0a2": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_style_index_0_id_b671e2be_scoped_true_lang_less___ = __webpack_require__("ba004501820aed46ea98"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_style_index_0_id_b671e2be_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_style_index_0_id_b671e2be_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_style_index_0_id_b671e2be_scoped_true_lang_less____default.a); /***/ }), /***/ "8882b82c321a13f31194": /***/ (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_PriceProtectBar_vue_vue_type_template_id_074e6fb7_scoped_true___ = __webpack_require__("bad3c2aac28049568c92"); /* 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_PriceProtectBar_vue_vue_type_template_id_074e6fb7_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_PriceProtectBar_vue_vue_type_template_id_074e6fb7_scoped_true___["b"]; }); /***/ }), /***/ "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']; /***/ }), /***/ "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 /***/ }), /***/ "8a8b9e46f4a6e81f18ab": /***/ (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_HistoryBar_vue_vue_type_style_index_0_id_5d29fc05_scoped_true_lang_less___ = __webpack_require__("c9509a72cff3f5d9d6af"); /* 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_HistoryBar_vue_vue_type_style_index_0_id_5d29fc05_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_HistoryBar_vue_vue_type_style_index_0_id_5d29fc05_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_HistoryBar_vue_vue_type_style_index_0_id_5d29fc05_scoped_true_lang_less____default.a); /***/ }), /***/ "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"))) /***/ }), /***/ "8c986b2d59a1000261d6": /***/ (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: "bjg-bar-button gwd-row gwd-align gwd-jcc", on: { mouseover: _vm.startLoad } }, [ _c("img", { staticStyle: { width: "19px", height: "23px" }, attrs: { src: __webpack_require__("b41ee25e973572705fa8"), alt: "" } }), _vm._v(" "), _c( "span", { staticStyle: { "margin-left": "7px", "font-size": "14px", color: "#64615d" } }, [_vm._v("浏览历史")] ), _vm._v(" "), _c( "BjgBottomWindow", { style: _vm.positionStyle + "px", attrs: { "always-show": "1" } }, [ _c( "div", { staticStyle: { height: "470px", "overflow-y": "auto" } }, [ _vm._l(_vm.list, function(item, idx) { return _c("CollectionItem", { key: item.dp_id, attrs: { product: item, last: idx === _vm.list.length - 1 }, on: { delete: _vm.deleteItem } }) }), _vm._v(" "), _vm.list.length ? _c( "div", { staticClass: "gwd-row gwd-align gwd-jcc", staticStyle: { "margin-bottom": "19px" } }, [ _c("img", { staticStyle: { width: "12px", height: "13px", cursor: "pointer" }, attrs: { src: __webpack_require__("fa9e9bdca97695d1d3da"), hu: "", alt: "" }, on: { click: _vm.clearAll } }), _vm._v(" "), _c( "span", { staticStyle: { "margin-left": "8px", "font-size": "12px", cursor: "pointer", color: "#999" }, on: { click: _vm.clearAll } }, [_vm._v("清空历史")] ) ] ) : _vm._e(), _vm._v(" "), _vm.list.length === 0 && _vm.loaded ? _c( "div", { staticClass: "gwd-column gwd-align gwd-jcc", staticStyle: { height: "100%" } }, [ _c("img", { staticStyle: { width: "60px", height: "52px" }, attrs: { src: __webpack_require__("01e2d7eb2fbd2595c252"), alt: "" } }), _vm._v(" "), _c("span", { staticClass: "bjg-hintText" }, [ _vm._v("暂无浏览历史记录") ]) ] ) : _vm._e() ], 2 ) ] ) ], 1 ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "8dc7f5a7e7a7f98e12b6": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { module.exports.init = function (obj) { var unionUrl = G.u_server; var ukey = 'u.' + G.u_key + '.com'; if (obj.url.includes('.amazon.')) { unionUrl = 'https://u.smartlinkclick.com'; } if (typeof obj != 'object') return; if (obj.url.indexOf(ukey) > -1) return obj.url; var ext = ""; if (obj.ext) ext = "-" + obj.ext; if (obj.is_mobile) { if (obj.isbrowser) return obj.url;else return unionUrl + '/union/go/?site_id=' + obj.site_id + '&target_url=' + encodeURIComponent(obj.url) + '&union=' + obj.union + '&column=' + obj.mod + '-' + obj.dp_id + ext; } else { return unionUrl + '/union/go/?site_id=' + obj.site_id + '&target_url=' + encodeURIComponent(obj.url) + '&union=' + obj.union + '&column=' + obj.mod + '-' + obj.dp_id + ext; } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "8e924730070195f36bf2": /***/ (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_PriceProtectPageButton_vue_vue_type_style_index_1_id_41b15ea6_scoped_true_lang_less___ = __webpack_require__("199240c49d709fb40079"); /* 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_PriceProtectPageButton_vue_vue_type_style_index_1_id_41b15ea6_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_PriceProtectPageButton_vue_vue_type_style_index_1_id_41b15ea6_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_PriceProtectPageButton_vue_vue_type_style_index_1_id_41b15ea6_scoped_true_lang_less____default.a); /***/ }), /***/ "8f2ce96968fee64ad5e0": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var script = __webpack_require__("081526742bfe6e0e4762"); if (script) script.parentNode && script.parentNode.removeChild && script.parentNode.removeChild(script); if (document.getElementById('BAIDU_HAS_BUILT')) { $("#BAIDU_HAS_BUILT").addClass(G.from_device); module.exports = true; } else { var BUILT_FLAG = document.createElement('div'); BUILT_FLAG.id = 'BAIDU_HAS_BUILT'; var head = document.getElementsByTagName('head'); if (head && head[0]) head = head[0]; head.appendChild(BUILT_FLAG); $("#BAIDU_HAS_BUILT").addClass(G.from_device); module.exports = false; } /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "8f965860bd6f3049a7e3": /***/ (function(module, exports, __webpack_require__) { "use strict"; var util = __webpack_require__("d6aec8444c650eeab5f2"); var user = __webpack_require__("d098bd5eb9f0b2883cf6"); module.exports = { init: function init() { // if (location.href.indexOf('trade.jd.com/shopping/order/getOrderInfo.action') > -1) { // require('common/infoCollect/jdCart').init() // } if (location.href.indexOf('https://pcsitepp-fm.jd.com/?goDown') > -1) { setTimeout(function () { __webpack_require__("64d3a81027bb06c723c1").init(); }, 5000); } window.bjgAutoPriceProtect = true; if (location.href.indexOf('https://passport.jd.com/new/login.aspx') > -1) { __webpack_require__("660610db8f6e89357da9").get('/setLoginStatus', { loginStatus: false }); } // if (location.href.indexOf('success.jdpay.com') > -1) { // (async function() { // let cart = await util.getStorage('cartItem') // const isUserLogin = await user.hasUserToken() // let allowPriceProtect = await util.getStorage('allowPriceProtect') // // let el = document.createElement('div') // document.body.appendChild(el) // const PriceProtectBanner = require('../components/PriceProtectBanner.vue').default // new Vue({ // el: el, // render: h => h(PriceProtectBanner) // }) // })() // } } }; /***/ }), /***/ "8fa197530a881ccf85b8": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-row {\n display: flex;\n flex-direction: row;\n}\n.gwd-inline-row {\n display: inline-flex;\n flex-direction: row;\n}\n.gwd-column {\n display: flex;\n flex-direction: column;\n}\n.gwd-inline-column {\n display: inline-flex;\n flex-direction: column;\n}\n.gwd-align {\n align-content: center;\n align-items: center;\n}\n.gwd-jcc {\n justify-content: center;\n}\n.gwd-jic {\n justify-items: center;\n}\n.gwd-button {\n outline: none;\n border: none;\n}\n.bjg-bar-button {\n font-size: 0;\n}\n.bjg-bar-button:hover {\n background: #fffbef;\n cursor: pointer;\n}\n.bjg-bar-button:hover .bjg-window {\n display: block;\n}\n.mainbar-fold .bjg-bar-button,\n.mainbar-fold #top_coupon_btn,\n.mainbar-fold .rinfo-btn,\n.mainbar-fold .gwd-bottom-tmall {\n display: none!important;\n}\n.gwd-font12 {\n font-size: 12px;\n}\n.gwd-font14 {\n font-size: 14px;\n}\n.gwd-red {\n color: #ff3532;\n}\n.gwd-red-bg {\n background: #ff3532;\n}\n.gwd-hui333 {\n color: #333333;\n}\n.gwd-hui999 {\n color: #999999;\n}\n.gwd-font10 {\n font-size: 12px;\n transform: scale(0.8333);\n transform-origin: bottom center;\n}\n.gwd-font11 {\n font-size: 12px;\n transform: scale(0.91666);\n transform-origin: bottom center;\n}\n.gwd-font9 {\n font-size: 12px;\n transform: scale(0.75);\n transform-origin: bottom center;\n}\n.gwd-hoverable:hover {\n background: #edf1f2;\n}\n.right-info > * {\n border-left: 1px solid #edf1f2;\n}\n.gwd-red-after-visit:hover {\n color: #e03024 !important;\n}\n.gwd-button:hover {\n filter: brightness(1.1);\n}\n.gwd-button {\n padding-top: 1px;\n padding-bottom: 1px;\n}\n.gwd-button:active {\n filter: brightness(0.9);\n}\n.gwd-fadeout-5s {\n opacity: 0;\n transition: opacity 5s;\n}\n", ""]); // exports /***/ }), /***/ "8fb031a388a8723c750a": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjgou-subsidy-bar-bottom[data-v-05b8b243] {\n padding-left: 5px;\n height: 100%;\n}\n.bjgou-subsidy-bar-bottom .qrcode[data-v-05b8b243] {\n display: none;\n position: absolute;\n bottom: 45px;\n right: 5px;\n width: 148px;\n height: 156px;\n background: #FFF7F7;\n border: 1px solid #FF2D53;\n z-index: 9;\n}\n.bjgou-subsidy-bar-bottom .gwd-coupon-qr[data-v-05b8b243] {\n display: none;\n position: absolute;\n width: 148px;\n height: 175px;\n right: 0;\n z-index: 9;\n bottom: 30px;\n background: #FFF6F4;\n border: 1px solid #FF6132;\n flex-direction: column;\n align-items: center;\n}\n.bjgou-subsidy-bar-bottom .gwd-coupon-qr .gwd-coupon-title[data-v-05b8b243] {\n display: inline-block;\n position: relative;\n font-size: 12px;\n color: #333333 !important;\n z-index: 2;\n}\n.bjgou-subsidy-bar-bottom .gwd-coupon-qr .gwd-coupon-title[data-v-05b8b243]::after {\n content: '';\n position: absolute;\n bottom: 2px;\n left: 0;\n right: 0;\n height: 4px;\n z-index: -1;\n background: #ff8f4b;\n}\n.bjgou-subsidy-bar-bottom:hover .gwd-coupon-qr[data-v-05b8b243] {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n", ""]); // exports /***/ }), /***/ "8fd11442b2cc4f90850c": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjg-qr-error[data-v-8590af9e] {\n width: 118px;\n height: 118px;\n background: white;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.bjg-qr-error img[data-v-8590af9e] {\n margin-top: 22px;\n width: 32px;\n height: 32px;\n}\n.bjg-qr-error .grayText[data-v-8590af9e] {\n color: #999999;\n display: inline-block;\n font-size: 20px;\n width: 125px;\n text-align: center;\n line-height: 32px;\n transform: scale(0.5);\n transform-origin: top center;\n}\n.bjg-qr-error .grayText .red[data-v-8590af9e] {\n color: #ff2d53;\n text-decoration: underline;\n cursor: pointer;\n}\n", ""]); // exports /***/ }), /***/ "91f250ebeb8d5987491c": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, regeneratorRuntime) { var _this = this; var $ = __webpack_require__("e081b2491b5c9b12b9da"); var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var _require = __webpack_require__("4733a3dd803685ec596a"); var tbInfoFix = _require.tbInfoFix; Promise.prototype.done = function (onFulfilled, onRejected) { return this.then(onFulfilled, onRejected)['catch'](function (error) { setTimeout(function () { throw error; }, 0); }); }; Promise.prototype.fail = function (onFulfilled, onRejected) { this.then(onFulfilled, onRejected)['catch'](function (error) { setTimeout(function () { throw error; }, 0); }); }; var wrap = function wrap(url) { if (!url) throw new Error('url 不能为空'); var start = '?'; var callback = 'callback=?&'; if (url.indexOf('?') > -1) { start = '&'; } var extension_env; //format是历史接口兼容 var format = 'format=jsonp&'; if (G.chrome_extension || G.from_device === 'maxthon' || G.from_device === 'firefox' || G.from_device === 'chrome') { extension_env = true; } //extension_env = true if (G.allowBackgroundRequest) { extension_env = true; } if (extension_env) { callback = ''; format = 'format=json&'; } var fp = ''; if (localStorage.getItem('gwdang-fp')) { fp = 'fp=' + localStorage.getItem('gwdang-fp') + '&dfp=' + localStorage.getItem('gwdang-dfp') + '&'; } return '' + url + start + callback + format + fp; }; module.exports.getCouponFromUrl = function (url) { return new Promise(function (resolve, reject) { module.exports.get(G.server + '/extension/CouponHandler?op=get&rawApi=' + encodeURIComponent(url)).then(function (res) { if (res.map && res.map.length > 0 && res.map[0].is_api && res.handle) { var _ret = (function () { var escapeStringRegExp = function escapeStringRegExp(str) { return str.replace(escapeStringRegExp.matchOperatorsRe, '\\$&'); }; var trueUrl = res.map[0].api.uri; var tag = res.map[0].api.tag; var NamedRe = __webpack_require__("a7b2f56734970cb48205").named; escapeStringRegExp.matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g; if (!res.handle[tag]) { if (url.indexOf('open.lesiclub.cn') > -1) { module.exports.rawGet(url).then(function (res) { resolve(res); }); return { v: undefined }; } else { // module.exports.rawGet(url).then(res => { // resolve(res) // }) res.handle = { "sg.weitaoke": ['"coupon_click_url":"(:<link>.+?)"[\\s\\S]*?"coupon_info":"满(:<limit>\\d+)元减(:<coupon>\\d+)元"'], "weitaoke": ['"coupon_click_url":"(:<link>.+?)"[\\s\\S]*?"coupon_info":"满(:<limit>\\d+)元减(:<coupon>\\d+)元"'], "uc.weitaoke": ['"coupon_click_url":"(:<link>.+?)"[\\s\\S]*?"coupon_info":"满(:<limit>\\d+)元减(:<coupon>\\d+)元"'], "edge.weitaoke": ['"coupon_click_url":"(:<link>.+?)"[\\s\\S]*?"coupon_info":"满(:<limit>\\d+)元减(:<coupon>\\d+)元"'] }; } } var re = NamedRe(new RegExp(res.handle[tag][0])); //trueUrl = trueUrl.replace('http://q.weitaoke.net', 'https://q.apptimes.cn') var r = undefined; if (trueUrl.indexOf('open.lesiclub.cn') > -1) { if (G.from_device === 'bijiago' || G.from_device === 'biyibi') { (function () { var runned = false; r = new Promise(function (resolve) { $.get(url).done(function (res) { runned = true; resolve(res); }); setTimeout(function () { if (!runned) { resolve(null); } }, 4000); }); })(); } else { r = module.exports.rawGet(trueUrl); } } else { r = module.exports.rawGet(trueUrl); } r.then(function (data) { if (!data || !data.data) { resolve(null); return; } window.toTest = JSON.stringify(data); window.toTestRe = re; try { var result = re.exec(JSON.stringify(data)).captures; resolve({ code: 200, data: { click_url: result.link[0], tkl: result.tkl ? result.tkl[0] : '', coupon: { coupon_money: result.coupon[0], coupon_limit: result.limit[0] } } }); } catch (e) { resolve(null); } })['catch'](function (err) { resolve(null); }); })(); if (typeof _ret === 'object') return _ret.v; } else { resolve(null); } })['catch'](function (e) { return resolve(null); }); }); }; module.exports.raw = function (url, isarg) { if (isarg) { url = url + '&union=' + G.union + '&version=' + G.version + '&from_device=' + G.from_device; } var _done; if (G.allowBackgroundRequest) { return new Promise(function (resolve) { communicate.trigger({ type: 'proxyRequest', url: url }); communicate.on(function (info) { if (info.type === 'proxyRequest' && info.id === url) { resolve(JSON.stringify(info.value)); } }); }); } else { var r = { done: function done(cb) { _done = cb; } }; var xhr = new XMLHttpRequest(); xhr.addEventListener('load', function () { if (_done) _done(xhr.responseText); }); xhr.addEventListener('error', function () { if (_done) _done(xhr.responseText); }); xhr.open("GET", url, true); xhr.send(); return r; } }; /** * 普通GET请求,不会加上多余的参数 * @param urls * @returns {Promise<unknown>|*} */ module.exports.rawGet = function (url) { var allowCredentials = arguments.length <= 1 || arguments[1] === undefined ? false : arguments[1]; if (url.includes('/helper/qrcode?')) { url = __webpack_require__("4733a3dd803685ec596a").appendTbInfoForUrl(url); } if (G.allowBackgroundRequest) { return new Promise(function (resolve, reject) { var resolved = false; communicate.trigger({ type: 'proxyRequest', url: url, referer: location.href }); communicate.on(function (info) { if (info.type === 'proxyRequest' && info.id === url) { resolved = true; resolve(info.value); } }); setTimeout(function () { if (!resolved) { reject(); } }, 3000); }); } else { if (allowCredentials) { return module.exports.requestXHR(url, {}); } return new Promise(function (resolve, reject) { $.get(url).then(function (res) { return resolve(res); }).fail(function (err) { return reject(err); }); }); // return $.get(url) } }; // function request(url, callback, referer) { // var xmlhttp = new XMLHttpRequest(); // xmlhttp.addEventListener('load', function() { // callback(xmlhttp.responseText) // }) // xmlhttp.withCredentials = true // xmlhttp.open("GET", url, true); // // if (referer) { // // xmlhttp.setRequestHeader('x-referer', referer) // // } // xmlhttp.send(); // }; /** 请求自己接口 */ module.exports.get = function (url) { var instanceId = G.instanceId; var from_type = ""; if (G.from_type) { from_type = '&from_type=' + G.from_type; } url = wrap(url) + 'version=' + G.version + '&from_device=' + G.from_device + from_type; if (!url.includes('union=')) { url += '&union=' + G.union; } if (G.crc64) url += "&crc64=1"; if (!Promise.prototype.done) { Promise.prototype.done = Promise.prototype.then; Promise.prototype.fail = Promise.prototype['catch']; } if (G.allowBackgroundRequest) { return new Promise(function (resolve) { communicate.trigger({ type: 'proxyRequest', url: url, referer: location.href }); communicate.on(function (info) { if (instanceId && instanceId !== G.instanceId) { // require('common/extConsole').warn('instanceId不一致,不处理', instanceId, G.instanceId) resolve(null); return; } if (info.type === 'proxyRequest' && info.id === url) { resolve(info.value); } }); }); } else { return new Promise(function (resolve, reject) { // request(url, function(res) { // try { // resolve(JSON.parse(res)) // } catch (e) { // resolve(res) // } // }, location.href) window.ts = $; $.ajax({ beforeSend: function beforeSend(request) { if (G.requestNeedToken) { //request.setRequestHeader("x-bjg-token", G.requestNeedToken); } }, dataType: "json", url: url, success: function success(data) { if (instanceId && instanceId !== G.instanceId) { resolve(null); return; } resolve(data); } }); // $.getJSON(url).then(res => resolve(res)) // console.log(url) // $.ajax(url, { // xhrFields: { // withCredentials: true // }, // jsonp: false, // jsonpCallback: '' // }).then(res => { // resolve(res) // }) }); } }; var postingId = 0; module.exports.post = function (url, data) { var useForm = arguments.length <= 2 || arguments[2] === undefined ? false : arguments[2]; var withCredentials = arguments.length <= 3 || arguments[3] === undefined ? true : arguments[3]; var reqId = postingId; postingId++; if (G.allowBackgroundRequest && navigator.userAgent.indexOf('MetaSr') === -1) { return new Promise(function (resolve) { communicate.trigger({ type: useForm ? 'proxyRequestPostForm' : 'proxyRequestPost', url: url, payload: data, reqId: reqId, referer: location.href }); communicate.on(function (info) { if (info.type.indexOf('proxyRequestPost') > -1 && info.id === reqId) { resolve(info.value); } }); }); } else { return module.exports.requestXHRPost(url, data, useForm, withCredentials); } }; /** 请求别人接口,隐藏痕迹 */ var getPure = function getPure(url) { //console.log('getPure ' + url) // 曾用于获取商品信息,现在不需要了 if (url.indexOf('https://acs.m.taobao.com/h5/mtop.taobao.detail.getdetail/6.0') > -1) { //console.warn('interupt ' + url) return { done: function done(cb) { cb({ intercepted: true, msg: 'view request.js' }); }, then: function then(cb) { cb({ intercepted: true, msg: 'view request.js' }); } }; } url = wrap(url); return $.ajax({ beforeSend: function beforeSend(request) { if (G.requestNeedToken) { //request.setRequestHeader("x-bjg-token", G.requestNeedToken); } }, dataType: "json", url: url }); }; module.exports.getPure = getPure; module.exports.requestXHR = function requestXHR(url) { var withCredentials = arguments.length <= 1 || arguments[1] === undefined ? true : arguments[1]; var customHeaders = arguments.length <= 2 || arguments[2] === undefined ? null : arguments[2]; return new Promise(function (resolve) { var xmlhttp = new XMLHttpRequest(); xmlhttp.addEventListener('load', function () { try { var res = JSON.parse(xmlhttp.responseText); resolve(res); } catch (e) { resolve(xmlhttp.responseText); } }); xmlhttp.withCredentials = withCredentials; xmlhttp.open("GET", url, true); if (customHeaders) { Object.keys(customHeaders).forEach(function (key) { xmlhttp.setRequestHeader(key, customHeaders[key]); }); } xmlhttp.send(); }); }; module.exports.requestXHRPost = function requestXHR(url, data) { var form = arguments.length <= 2 || arguments[2] === undefined ? true : arguments[2]; var withCredentials = arguments.length <= 3 || arguments[3] === undefined ? true : arguments[3]; return new Promise(function (resolve) { var xmlhttp = new XMLHttpRequest(); xmlhttp.addEventListener('load', function () { try { var res = JSON.parse(xmlhttp.responseText); resolve(res); } catch (e) { resolve(xmlhttp.responseText); } }); xmlhttp.withCredentials = withCredentials; xmlhttp.open("POST", url, true); if (G.requestNeedToken) { //xmlhttp.setRequestHeader('x-bjg-token', G.requestNeedToken) } if (form) { (function () { var formData = new FormData(); Object.keys(data).forEach(function (item) { formData.append(item, data[item]); }); xmlhttp.send(formData); })(); } else { xmlhttp.setRequestHeader('Content-Type', 'text/plain'); xmlhttp.send(data); } }); }; module.exports.jdRequest = function callee$0$0(id) { var area, cat, t, shopId, vendorId, params, payload, payloadCopy, sign; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: area = '1_72_55653_0', cat = pageConfig.product.cat.join(','), t = Date.now(), shopId = pageConfig.product.shopId, vendorId = pageConfig.product.venderId; params = { skuId: id, cat: cat, area: area, shopId: shopId, venderId: vendorId, paramJson: pageConfig.product.paramJson, num: pageConfig.product.countNum || '1' }; payload = { appid: 'pc-item-soa', functionId: 'pc_detailpage_wareBusiness', client: 'pc', clientVersion: '1.0.0', t: t, body: JSON.stringify(params) }; payloadCopy = Object.assign({}, payload); payloadCopy.body = SHA256(JSON.stringify(params)).toString(); context$1$0.next = 7; return regeneratorRuntime.awrap(window.PSign.sign(payloadCopy)); case 7: sign = context$1$0.sent; payload.h5st = encodeURI(sign.h5st); payload['x-api-eid-token'] = jdtRiskContext.deviceInfo.jsToken; payload.loginType = '3'; payload.uuid = window.getCookie('__jda'); return context$1$0.abrupt('return', module.exports.requestXHR('https://api.m.jd.com/?' + Object.keys(payload).map(function (key) { return key + '=' + encodeURIComponent(payload[key]); }).join('&'), true, { 'x-referer-page': 'https://item.jd.com/' + id + '.html', 'x-rp-client': 'h5_1.0.0' })); case 13: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports.buildUrl = function (url, payload) { return url + '?' + Object.keys(payload).map(function (key) { return key + '=' + encodeURIComponent(payload[key]); }).join('&'); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "91f58afd0ad3a4e2ef06": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {//content-env 与 extension-env 通信 module.exports.trigger = function (data) { if (document.createEvent) { var evt = document.createEvent('CustomEvent'); data.evt_from = G.from_device; evt.initCustomEvent('gwd_extension', true, true, data); document.dispatchEvent(evt); } }; module.exports.on = function (cb) { if (document.addEventListener) { document.addEventListener('gwd_content', function (e) { if (navigator.userAgent.indexOf('Firefox') > -1) { cb(JSON.parse(e.detail)); } else { cb(e.detail); } }); } else { document.attachEvent('gwd_content', function (e) { cb(e.detail); }); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "93201dafc10fe2ec927e": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_script_lang_js___ = __webpack_require__("ed91e916f05d2986bcd1"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "93546969b3877c01da54": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TransPort_vue_vue_type_template_id_666fed93_scoped_true___ = __webpack_require__("79026c9ce190263ec57e"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__TransPort_vue_vue_type_script_lang_js___ = __webpack_require__("a625e5859805ff83d305"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__TransPort_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__TransPort_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__TransPort_vue_vue_type_style_index_0_id_666fed93_scoped_true_lang_less___ = __webpack_require__("518abe8e49e83ac9c7dd"); /* 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__TransPort_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__TransPort_vue_vue_type_template_id_666fed93_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__TransPort_vue_vue_type_template_id_666fed93_scoped_true___["b" /* staticRenderFns */], false, null, "666fed93", 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('666fed93')) { api.createRecord('666fed93', component.options) } else { api.reload('666fed93', component.options) } module.hot.accept("./TransPort.vue?vue&type=template&id=666fed93&scoped=true&", function () { api.rerender('666fed93', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/bjgou/components/TransPort.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "93f5ae02e9159c27f690": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__HistoryBar_vue_vue_type_template_id_5d29fc05_scoped_true___ = __webpack_require__("21c41e4b6f7e04c8e8c9"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__HistoryBar_vue_vue_type_script_lang_js___ = __webpack_require__("dabcede8faf47cb438a9"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__HistoryBar_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__HistoryBar_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__HistoryBar_vue_vue_type_style_index_0_id_5d29fc05_scoped_true_lang_less___ = __webpack_require__("8a8b9e46f4a6e81f18ab"); /* 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__HistoryBar_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__HistoryBar_vue_vue_type_template_id_5d29fc05_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__HistoryBar_vue_vue_type_template_id_5d29fc05_scoped_true___["b" /* staticRenderFns */], false, null, "5d29fc05", 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('5d29fc05')) { api.createRecord('5d29fc05', component.options) } else { api.reload('5d29fc05', component.options) } module.hot.accept("./HistoryBar.vue?vue&type=template&id=5d29fc05&scoped=true&", function () { api.rerender('5d29fc05', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/bjgou/components/HistoryBar.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "943197de5d5f506919a6": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( _vm.type === "link" ? "a" : "div", { tag: "component", staticClass: "gwd-row gwd-align gwd-coupon-bar", attrs: { href: _vm.alterHref, target: "_blank", title: _vm.type === "link" ? "点击领取" : "" }, on: { mouseenter: function($event) { return _vm.over() } } }, [ _c("img", { staticStyle: { "margin-left": "12px", "margin-right": "8px", "max-width": "15px" }, attrs: { src: _vm.icon, alt: "" } }), _vm._v(" "), _c("span", { style: "color: " + _vm.mainColor + "; font-size: 13px" }, [ _vm._v(_vm._s(_vm.text)) ]), _vm._v(" "), _c("div", { staticStyle: { flex: "1" } }), _vm._v(" "), _vm.type === "link" ? _c("CouponArrow", { attrs: { color: _vm.mainColor } }) : _vm._e(), _vm._v(" "), _vm.type === "link" ? _c( "span", { staticClass: "gwd-round-click", style: "background: linear-gradient(180deg, " + _vm.secondColor + " 0%, " + _vm.mainColor + " 100%)" }, [_vm._v("点击领取")] ) : _vm._e(), _vm._v(" "), _vm.type === "qr" ? _c( "div", { staticClass: "gwd-take gwd-row gwd-align", style: "background: url(" + _vm.takeBg + ")" }, [ _c("span", { style: "color: " + _vm.mainColor }, [ _vm._v("¥" + _vm._s(_vm.couponValue)) ]), _vm._v(" "), _c("span", { staticStyle: { color: "white" } }, [_vm._v("领取")]) ] ) : _vm._e(), _vm._v(" "), _vm.type === "qr" ? _c( "div", { staticClass: "gwd-qr-hover-window gwd-column gwd-align", style: "border-color: " + _vm.mainColor }, [ !_vm.error && _vm.actualQr ? _c("img", { staticStyle: { width: "120px", height: "120px", "margin-top": "8px" }, attrs: { src: _vm.actualQr, alt: "" } }) : _vm._e(), _vm._v(" "), _vm.error ? _c("QRError", { on: { refresh: _vm.over } }) : _vm._e(), _vm._v(" "), _c( "div", { staticClass: "gwd-row", staticStyle: { "margin-top": "8px" } }, [ _c( "span", { style: "color: " + _vm.mainColor + "; font-size: 12px;" }, [_vm._v("微信扫码")] ), _vm._v(" "), _c( "span", { staticStyle: { color: "#070707", "font-size": "12px", transform: "scale(0.8333)", "transform-origin": "center left", "margin-top": "1px" } }, [_vm._v(_vm._s(_vm.qrTitle))] ) ] ) ], 1 ) : _vm._e() ], 1 ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "95245dbd2c2c8f1d13db": /***/ (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_MemberCouponMiniBjg_vue_vue_type_script_lang_js___ = __webpack_require__("781592f0f5e474de23a5"); /* 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_MemberCouponMiniBjg_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_MemberCouponMiniBjg_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_MemberCouponMiniBjg_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_MemberCouponMiniBjg_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_MemberCouponMiniBjg_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "95ac883e76a464af371e": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['products'], data: function data() { return { currentPage: 0 }; }, methods: { nextPage: function nextPage() { this.currentPage++; }, prevPage: function prevPage() { this.currentPage--; } }, computed: { totalPage: function totalPage() { return Math.ceil(this.products.length / 2); }, showingList: function showingList() { var list = [this.products[this.currentPage * 2]]; if (this.products[this.currentPage * 2 + 1]) { list.push(this.products[this.currentPage * 2 + 1]); } return list; } } }; module.exports = exports['default']; /***/ }), /***/ "95b5a8392f3e95ca15b5": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($) { var getQRCode = __webpack_require__("657bad1e7f3b602f7d70"); var qrFailed = __webpack_require__("b2919de4a905a42b0310"); module.exports = { init: function init(newData, url, element, cb) { var appended = false; $(element).css('visibility', 'hidden'); var get = function get() { return getQRCode(newData, url, function (newData2) { if (element === '.bjgext-toptabs .mini-coup-detail > img') { qrFailed = qrFailed.replace(/118px/g, '100px').replace(/59px/g, '50px'); } if (newData2[0].etag && parseInt(newData2[0].etag) >= 1 && parseInt(newData2[0].etag) <= 2) { $(element).css('visibility', 'hidden'); var el = $(element).parent(); if (appended) { $(element.replace('img', '.gwd-qr-warn')).show(); $(element.replace('img', '.gwd-qr-warn img')).css('visibility', 'visible'); $(element.replace('img', '.gwd-qr-warn img')).attr('src', 'https://cdn.gwdang.com/images/extensions/warn@2x.png'); } else { appended = true; $(el).append(qrFailed); $(element.replace('> img', '.gwd-qr-reload')).click(function () { get(); $(element.replace('img', '.gwd-qr-warn')).hide(); }); } // $(element).click(function() { // $(element).css('visibility', 'hidden') // $(element).css('cursor', 'pointer') // get() // }) } else { $(element).attr('src', newData2[0].imgSrc); $(element).css('visibility', 'visible'); } cb(newData2); }, false, false); }; get(); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "9661584dadeb9f990f41": /***/ (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_MiniList_vue_vue_type_style_index_0_id_5637898a_lang_less_scoped_true___ = __webpack_require__("315a1307e3b888b0da3a"); /* 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_MiniList_vue_vue_type_style_index_0_id_5637898a_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_MiniList_vue_vue_type_style_index_0_id_5637898a_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_MiniList_vue_vue_type_style_index_0_id_5637898a_lang_less_scoped_true____default.a); /***/ }), /***/ "97bc96d348c614d5d08b": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var Times = 0; var mainW = $(window).width(); var caches = {}; // 计算有多少空间给比价 var calFreeWidth = function calFreeWidth() { var head = 300; var rightW = 0; var ad = 0; var compare = $('.bjgext-product-compare').outerWidth(); if ($('#bijiago-banner-ad').length > 0) { ad += 176; } if ($('#bijiago-banner-ad2').length > 0) { ad += 136; } var freeWidth = mainW - head - rightW - compare - ad; return freeWidth; }; var changeUrl = function changeUrl(start, end, dom) { var replaceHref = __webpack_require__("dba9674cb89e2f226ce4"); var urlObj = replaceHref.getInfo(); for (var i = start; i < end; i++) { var item = $(dom).find('.bjgext-item-img').eq(i); var href = item.attr('href'); if (urlObj[href]) { item.attr('href', urlObj[href]); } } }; module.exports.calCompare = function () { var width = calFreeWidth(); return parseInt(width / 120); }; module.exports.loadImage = function (start, end, dom) { for (var i = start; i < end; i++) { var itemimg = $(dom).find('img').eq(i)[0]; if (!itemimg) return; var src = itemimg.getAttribute('data-original') || ''; var defaultsrc = itemimg.src; if (src.indexOf('start.png') > -1 || src.indexOf('blank.png') > -1) { $(itemimg).attr('src', G.noImg); continue; } if (src !== defaultsrc) module.exports.checkImage(itemimg, src); } }; module.exports.checkImage = function (dom, src) { var image = new Image(); image.onload = function () { $(dom).attr('src', src); }; image.onerror = function () { $(dom).attr('src', G.noImg); }; image.src = src; }; module.exports.calDetailNum = function () { var turnpage = 66 * 2; var itemW = 190 + 30; // 最后一个不需要右边距 所以加30 总距离减两边翻页 return { 'num': parseInt((mainW - turnpage) / itemW), 'width': mainW - turnpage - 1 }; }; module.exports.changePage = function (o, dom) { var parentDom = $(dom).parent().parent(); var list = parentDom.find('.bjgext-product-box li'); var len = list.length; var curpage = Number(parentDom.find('.bjgext-page-num em').text()); var perpage = module.exports.calDetailNum().num; var totalpage = Math.ceil(len / perpage); list.hide(); if (o == 1) { if (curpage === totalpage) { curpage = 0; } for (var i = curpage * perpage, size = (curpage + 1) * perpage > len ? len : (curpage + 1) * perpage; i < size; i++) { list.eq(i).show(); } module.exports.loadImage(curpage * perpage, (curpage + 1) * perpage > len ? len : (curpage + 1) * perpage, list); curpage++; } else { if (curpage === 1) { curpage = totalpage + 1; } for (var i = (curpage - 2) * perpage, size = (curpage - 1) * perpage > len ? len : (curpage - 1) * perpage; i < size; i++) { list.eq(i).show(); } module.exports.loadImage((curpage - 2) * perpage, (curpage - 1) * perpage > len ? len : (curpage - 1) * perpage, list); curpage--; } parentDom.find('.bjgext-page-num em').text(curpage); }; module.exports.setSimplePagePos = function (size, dom) { var left = dom.offset().left; var domw = dom.outerWidth(); var detail = dom.find('.bjgext-product-detail'); var width = 220 * size + 2; var dleft = left + domw / 2 - width / 2; if (dleft < 0) dleft = 0; if (dleft + width > mainW) dleft = mainW - width - 2; detail.css('left', dleft + 'px'); }; module.exports.autoWidth = function () { setTimeout(function () { var timer = 0; while ($('#bjg-space').width() > 0 && timer < 10) { timer++; var len = $('.bjgext-item-dp').length; $('.bjgext-item-dp')[len - 1].remove(); } }, 0); if (Times > 10) return; var width = calFreeWidth(); if (width < 0) { Times++; $('.bjgext-item-dp:last').remove(); module.exports.autoWidth(); } else { return; } }; module.exports.resizeAutoWidth = function () { mainW = $(window).width(); $('.bjgext-product-detail').remove(); module.exports.autoWidth(); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "97c0645dcf36e56de349": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-member-coupon-top[data-v-28e28ad7] {\n height: 28px;\n background: linear-gradient(to right, #f28936, #ff351e);\n position: relative;\n background-size: cover;\n display: inline-flex;\n align-items: center;\n margin-top: 2px;\n cursor: pointer;\n border-radius: 2px;\n}\n.gwd-member-coupon-top .gwd-qr-container[data-v-28e28ad7] {\n display: none;\n position: absolute;\n top: 28px;\n}\n.gwd-member-coupon-top[data-v-28e28ad7]::before,\n.gwd-member-coupon-top[data-v-28e28ad7]::after {\n content: '';\n position: absolute;\n left: 115px;\n width: 4px;\n height: 4px;\n background: white;\n border-radius: 2px;\n top: -2px;\n}\n.gwd-member-coupon-top[data-v-28e28ad7]::after {\n top: unset;\n bottom: -2px;\n}\n.gwd-member-coupon-top[data-v-28e28ad7]:hover {\n text-decoration: none;\n}\n.gwd-member-coupon-top:hover .gwd-qr-container[data-v-28e28ad7] {\n display: block;\n}\n", ""]); // exports /***/ }), /***/ "97d054c18bc332775c3b": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {//添加基本的参数配置和函数 G.extend({ crc64: 1, server: 'https://browser.bijiago.com', s_server: 'https://cdn.bijiago.com', u_server: 'https://u.bijiago.com', tb_server: 'https://tb.bijiago.com', img_server: 'http://f67dfe7ee7e63.cdn.sohucs.com', img64_server: 'http://645568b71d6b6.cdn.sohucs.com', loadImg: 'https://cdn.bijiago.com/template/aug/images/new/120.gif', noImg: 'https://cdn.bijiago.com/images/extensions/default_load_image.png', bd_cnzz: 'https://s22.cnzz.com/z_stat.php?id=1273747289&web_id=1273747289', specialUnion: "https://u.smartlinkclick.com/union/go/", u_house: 'https://api.lufangjia.com', cssname: "bjext2-new.css", union: "union_bijiago", from_device: "bijiago", isServer: '1', from_type: "bjg_ser", show_wishlist: 1, set_force: true, extBrand: 'bd', extName: 'bjext', ss_name: 'bijiago', ut: '&trans=1', subsite_id: '', force: [], href: window.location ? window.location.href : '', gwd_cnzz: '' }); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "984fb26cd63aa11f2f19": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-ww-logo[data-v-4148f062] {\n display: inline-block;\n width: 20px;\n height: 22px;\n background-image: -webkit-image-set(url(\"//img.alicdn.com/tps/i1/T15AD7FFFaXXbJnvQ_-130-60.gif\") 1x, url(\"//img.alicdn.com/tps/i4/T1Rsz7FPJaXXbZhKn7-520-240.gif\") 4x);\n background-position: -110px 0;\n margin-right: 5px;\n}\n.gwd-qr-bottom-line[data-v-4148f062] {\n transform: scale(0.5);\n transform-origin: top center;\n white-space: nowrap;\n height: 20px;\n line-height: 20px;\n}\n.gwd-qr-bottom-line span.bold[data-v-4148f062] {\n font-size: 22px;\n font-weight: bold;\n color: #EF6701;\n}\n.gwd-qr-bottom-line span.normal[data-v-4148f062] {\n font-size: 16px;\n color: #070707;\n}\n.gwd-qr-logo[data-v-4148f062] {\n position: absolute;\n left: 50%;\n top: 50%;\n width: 20px;\n height: 20px;\n margin-left: -10px;\n margin-top: -10px;\n}\n.gwd-contact-link[data-v-4148f062] {\n margin-left: 7px;\n top: -3px;\n display: inline-block;\n font-size: 12px;\n color: #333333;\n text-decoration: underline;\n cursor: pointer;\n position: relative;\n z-index: 999999;\n}\n.gwd-contact-link .gwd-app-qr-content[data-v-4148f062] {\n position: absolute;\n width: 123px;\n height: 137px;\n background: #FFF3ED;\n border-radius: 0px 0px 2px 2px;\n border: 1px solid #FF9851;\n top: 24px;\n left: -38px;\n visibility: hidden;\n z-index: 999;\n}\n.gwd-contact-link:hover .gwd-app-qr-content[data-v-4148f062] {\n visibility: visible;\n}\n.gwd-contact-link.gwd-new-tm-style[data-v-4148f062] {\n text-decoration: none;\n position: relative;\n top: 18px;\n display: inline-flex;\n align-items: center;\n z-index: 0;\n}\n.gwd-contact-link.gwd-new-tm-style .gwd-contact-text[data-v-4148f062] {\n text-decoration: underline;\n}\n.gwd-contact-link.gwd-new-tm-style .gwd-app-qr-content[data-v-4148f062] {\n left: -14px;\n}\n", ""]); // exports /***/ }), /***/ "98ad5951cb628b39147e": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _vuex = __webpack_require__("436f6d560acb97f873d1"); var _PriceProtectAuthLoginRequestVue = __webpack_require__("4e21de5af07fa44fda82"); var _PriceProtectAuthLoginRequestVue2 = _interopRequireDefault(_PriceProtectAuthLoginRequestVue); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var client = __webpack_require__("660610db8f6e89357da9"); exports['default'] = { components: { PriceProtectAuthLoginRequest: _PriceProtectAuthLoginRequestVue2['default'] }, data: function data() { return { ready: false }; }, methods: { init: function init() { return regeneratorRuntime.async(function init$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('PriceProtectReady')); case 2: this.ready = true; if (!this.user || !this.enabled) { cnzz.log('价格保护中心按钮', '引导提示展示'); } case 4: case 'end': return context$1$0.stop(); } }, null, this); }, setEnable: function setEnable() { this.enable(); document.body.dispatchEvent(new Event('bjgWindowOpen')); }, over: function over() { cnzz.logOnce('价格保护中心按钮', '展示下拉框'); }, enable: function enable() { cnzz.log('价格保护', '用户手动开启'); client.get('/setStorage', { enabled: true }); this.$store.commit('user/setState', { priceProtectEnabled: true }); } }, computed: (0, _vuex.mapState)({ userName: function userName(state) { return state.user.userName; }, user: function user(state) { return state.user.userLogin; }, hasWx: function hasWx(state) { return state.user.userHasWx; }, enabled: function enabled(state) { return state.user.priceProtectEnabled; } }), mounted: function mounted() { this.init(); } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "98cef5500d52270259d8": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $, Vue) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var util = __webpack_require__("d6aec8444c650eeab5f2"); var extConsole = __webpack_require__("316f9c352c6202560d16"); //嵌入位置设置 var sitePattern = { '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'], 'lenovo': ['#div_product_dec', '#span_product_name'], 'microsoftstore': ['.priceAndRank'], 'xiaomi': ['.J_saleWrap.sale-wrap', '.goods-info-head-price', '.pro-time.J_proOrder'], 'okbuy': ['.prodPriceLiJ .prodPrice'], 'banggo': ['.mbshop_detail_baseinfo'], 'you163': ['.price>.f-clearfix'], 'amazon-com': [ // '#omnibusPrice_feature_div', '#corePrice_desktop', '#corePriceDisplay_desktop_feature_div', '#price_feature_div', '#unifiedPrice_feature_div', '#tmmSwatches'], 'amazon-uk': [ // '#omnibusPrice_feature_div', '#price_feature_div', '#unifiedPrice_feature_div', '#tmmSwatches'], 'amazon-jp': [ // '#omnibusPrice_feature_div', '#corePriceDisplay_desktop_feature_div', '#price_feature_div', '#unifiedPrice_feature_div', '#tmmSwatches'], 'amazon-au': [ // '#omnibusPrice_feature_div', '#price_feature_div', '#unifiedPrice_feature_div', '#tmmSwatches'], 'amazon-fr': [ // '#omnibusPrice_feature_div', '#price_feature_div', '#unifiedPrice_feature_div', '#tmmSwatches'], 'amazon-ca': [ // '#omnibusPrice_feature_div', '#price_feature_div', '#unifiedPrice_feature_div', '#tmmSwatches'], 'amazon-de': ['#price_feature_div', '#unifiedPrice_feature_div', '#tmmSwatches'], 'momoshop': ['.prdPrice'], 'rakuten': ['.mRZzLzcnN8KK8we4U6l1'], 'books': ['.mod.type02_p011'], 'shopee': ['.h-y3ij'], 'pchometw': ['.prod_describe'], 'twbuyyahoo': ['.HeroInfo__heroInfo___1V1O8', '.subtitle__3NvAJ'] }; var totalPages = 0, nowPage = undefined; var getPosition = function getPosition(callback) { var site = G.site; if (site.includes('amazon')) { site = 'amazon-com'; } var pos = sitePattern[site]; if (!pos) return; for (var i = 0; i < pos.length; i++) { if ($(pos[i]).length > 0) { // debugger callback(pos[i]); return; } } setTimeout(function () { getPosition(callback); }, 400); }; var setMiniBarComTle = function setMiniBarComTle(item, num, isfuzzy) { if (G.ss_name === 'priceDog' && __webpack_require__("3dbec38a0e3472df70b7").isHaitao()) return; if (G.site === '6pm') return; $('.bjgext-mini-compare').show(); var tle = undefined; if (!item && !num) { tle = '<span class="no_pri_sp">暂无商家比价</span>'; } else if (isfuzzy) { tle = '<span class="" style="width: 100%; display: flex; align-items: center; justify-content: center"><img src="https://cdn.bijiago.com/images/extensions/bijiago/exchange@2x.png" style="width: 16px; height: 16px; margin-right: 6px; vertical-align: middle">' + (G.lang === 'en' ? 'Similar Products' : '商城相似款') + '</span>'; } else { var lowest = Number(item.price.toString().replace(',', '')); if (lowest < G.dp.price) { var site_name = item.site_name; var price = item.price; tle = '<img src="https://cdn.bijiago.com/images/extensions/bijiago/yuan.svg" style="display: inline-block; vertical-align: middle; width: 10px; height: 14px; margin-right: 4px" alt=""><span class="low_sp1">' + (G.lang === 'en' ? 'Lower Price' : '更低价') + ': </span><span class="low_sp3">¥' + price + '</span>'; } else { tle = '<div class="low_qtdiv"><img src="https://cdn.bijiago.com/images/extensions/bijiago/yuan.svg" style="display: inline-block; vertical-align: middle; width: 10px; height: 14px; margin-right: 6px;">其他<span class="other_sp">' + num + '</span>家报价</div>'; if (G.lang === 'en') { tle = '<div class="low_qtdiv"><img src="https://cdn.bijiago.com/images/extensions/bijiago/yuan.svg" style="display: inline-block; vertical-align: middle; width: 10px; height: 14px; margin-right: 6px;">Prices at other stores</div>'; } } } if (!item && !num) { $('.bjgext-mini-compare').addClass('no-comare'); } $('.bjgext-mini-compare').append($(tle)).show(); }; var lock = undefined, hidebtn = undefined; var turnPage = function turnPage(t, dom) { lock = true; var left = Number(dom.css('left').replace('px', '')); if (t === '-1') { nowPage--; if (nowPage === 1) { $('.mini-com-foot .mini-com-tleft').hide(); } if (hidebtn) { hidebtn = false; $('.mini-com-tright').show(); } dom.animate({ left: left + 450 + 'px' }, 500, function () { lock = false; }); } else if (t === '1') { if (nowPage === totalPages) { lock = false; return; } nowPage++; if (nowPage === totalPages) { hidebtn = true; $('.mini-com-tright').hide(); } if (nowPage === 2) { $('.mini-com-foot .mini-com-tleft').show(); } dom.animate({ left: left - 450 + 'px' }, 500, function () { lock = false; }); } }; var renderMiniCompare = function renderMiniCompare() { var html1 = __webpack_require__("63a6a8eca251b085347e"); var html2 = __webpack_require__("9d372b7fd1bc8f9e9e03"); var html = undefined; var dp_data = userData.get('dp_data'); var products = []; var domid = undefined; var renderCmp = false; if (dp_data.b2c.store && dp_data.b2c.store.length > 0) { html = html1; var len = dp_data.b2c.store && dp_data.b2c.store.length; len = len > 6 ? 6 : len; for (var i = 0; i < len; i++) { var item = dp_data.b2c.store[i].product[0]; if (dp_data.now.now_dp_id == item.dp_id && dp_data.b2c.store[i].product[1]) item = dp_data.b2c.store[i].product[1]; item.site_id = item.dp_id.match(/\d+-(\d+)/)[1]; products.push(item); } setMiniBarComTle(dp_data.b2c.store[0].product[0], len); } else if (dp_data.b2c_fuzzy && dp_data.b2c_fuzzy.product && dp_data.b2c_fuzzy.product.length > 0) { html = html2; for (var i = 0; i < dp_data.b2c_fuzzy.product.length; i++) { var item = dp_data.b2c_fuzzy.product[i]; if (item.price && item.url && item.site_name && (item.img_url || item.pic_url)) { products.push(item); } } var len = products.length; totalPages = parseInt(len / 3); products = products.slice(0, totalPages * 3); if (totalPages === 0) { setMiniBarComTle(); return; } nowPage = 1; domid = '.mini-compare-fuzzy-detail ul'; setMiniBarComTle(products[0], len, true); renderCmp = true; } else { setMiniBarComTle(); return; } $('#bjgext_minibar').css('display', 'inline-block'); G.showMinibar = true; var dom = template.compile(html)({ data: products, totalPages: totalPages, s_server: G.s_server }); $('.bjgext-mini-compare').append(dom); if (G.ss_name === 'priceDog') { $('#minibar_compare').css('left', '50%'); $('#minibar_compare').css('margin-left', '-147px'); } if (renderCmp) { var _ret = (function () { $('.bjgext-mini-compare').css('position', 'static'); var MiniList = __webpack_require__("7533c9aba67fdd1f456c")['default']; new Vue({ el: '#bjg-mini-cmp-fuzzy', render: function render(h) { return h(MiniList, { props: { products: products } }); } }); return { v: undefined }; })(); if (typeof _ret === 'object') return _ret.v; } addEvent(domid); }; var addEvent = function addEvent(id) { var uldom = $(id); $('.bjgext-mini-compare').on('mouseenter', function () { $('#bjgext_minibar').addClass('_mshover'); }); $('.bjgext-mini-compare').on('mouseleave', function () { $('#bjgext_minibar').removeClass('_mshover'); }); if (id) { $('.bjgext-mini-compare .mini-com-foot').on('click', function (e) { var type = $(e.target).attr('data-type'); if (type && !lock && e.target.nodeName !== 'A') { turnPage(type, uldom); } }); } }; var setHackSite = function setHackSite() { if (G.site === 'suning') { if ($('#R-n-similar').children().length > 0) { var h = $('#proinfoMain').height(); $('#proinfoMain').height(h + 110); } } }; var renderMiniBar = function renderMiniBar(pos) { var html = __webpack_require__("ad91ce384b2f3f17474a"); var p = 'after'; if (G.site === 'shopee') { p = 'before'; } $(pos).eq(0)[p](template.compile(html)({ alisite: G.aliSite, setting: G.server + '/brwext/setting_feedback?set=1' })); util.tongji('1', 'show'); if (G.site.indexOf('amazon') > -1) { $('#bjgext_mb_bg').css('display', 'inline-block'); } $('#bjgext_minibar').css('display', 'inline-block'); $('#bjgext_minibar .bjgext-mini-logo').on('click', function () { cnzz.log('minibar-logo-click'); }); $('#bjgext_minibar').on('click', function (e) { var href = undefined; if (e.target.nodeName === 'A') { href = e.target.href; } else if (e.target.parentNode.nodeName === 'A') { href = e.target.parentNode.href; } if (href && href.indexOf('javascript:') === -1) { util.tongji('1', 'click', href); } }); if (location.host === 'item.taobao.com') { setTimeout(function () { if (!$('#J_PromoPrice').is(':visible')) { $('#bjgext_mb_bg').css('margin-top', '10px'); } }, 500); } else if (G.site === 'gome') { if ($('#bjgext_mb_bg').prev().hasClass('p20')) { $('#bjgext_mb_bg').addClass('p20'); } } if (G.site === '360buy') { var bgcolor = $('.summary-price-wrap').css('background-color'); if (bgcolor) { $('#bjgext_mb_bg').css('background-color', bgcolor); } } setHackSite(); if (G.disableLogin) { return; } // if (navigator.userAgent.toLowerCase().indexOf('metasr') === -1) { var MiniFavor = __webpack_require__("6bac20e4c2caf81c124e")['default']; new Vue({ el: '#bjgouRemind', render: function render(h) { return h(MiniFavor); } }); // } else { // $('#bjgouRemind').remove() // } }; module.exports.init = function () { if (G.show_minibar === '0') return; if (location.host === 'www.amazon.cn') return; extConsole.log('minibar init'); getPosition(function (pos) { extConsole.log('begin minibar render'); renderMiniBar(pos); if (G.ss_name === 'priceDog') { $('.bjgext-mini-logo a').attr('title', 'PriceDog'); var div = document.createElement('div'); div.id = 'pricedog-toolbar'; if (location.host.indexOf('detail.ju.taobao.com') > -1) { $('#bjgext_mb_bg').eq(0).append(div); setTimeout(function () { $('.pricedog-bar').css({ position: 'relative', top: '4px' }); }, 0); } else { $('#bjgext_mb_bg').eq(0).after(div); } if (__webpack_require__("3dbec38a0e3472df70b7").isHaitao()) { // const TaxViewer = require('../components/TaxViewer.vue').default // if (location.host === 'www.amazon.com') { // new Vue({ // el: '#pricedog-toolbar', // render: h => h(TaxViewer) // }) // } } else { (function () { var PriceDogMiniBar = __webpack_require__("d54b9cd8eb0379417eab")['default']; new Vue({ el: '#pricedog-toolbar', render: function render(h) { return h(PriceDogMiniBar); } }); })(); } } $('.bjgext-mini-compare').hide(); if (!G.aliSite && G.site.indexOf('amazon') === -1) renderMiniCompare(); // require('./yifenqian').init() if (location.host.indexOf('taobao') > -1 || location.host.indexOf('tmall') > -1) __webpack_require__("1736a9a881f3acc7501f").init(); if (location.host.indexOf('.jd.com') > -1 || location.host.indexOf('suning') > -1) __webpack_require__("1736a9a881f3acc7501f").init2(); if (location.host.includes('amazon.co.jp')) { $('#centerCol').css('overflow', 'visible'); } }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "99967238159b55ea4e52": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G, regeneratorRuntime) { var _this2 = this; var detect = __webpack_require__("60624e018be49fb2d959"); var priceParser = __webpack_require__("e29ce4c2a4af273fcade"); var request = __webpack_require__("91f250ebeb8d5987491c"); var gzip = __webpack_require__("61191ae0f0390d21295c"); var quanobj = { 'manjian': {}, 'zhe': {}, 'quanmanjian': {}, 'quanmeimanjian': {}, 'manzhe': {} }, promoobj = { 'manjian': {}, 'meimanjian': {}, 'manzhe': {}, 'manzhe2': {}, 'zhe': {} }; var disPrice = undefined, callbacks = undefined, disPrice2 = {}; var coudanObj = {}, xdljObj = {}, vipPromo = ""; var dingjinzhekou = { "suning": function suning() { var dj = Number($('#mainPrice dt:contains("定金") +dd .small-price').text().replace('¥', '')); var djdk = $('.deposit-info-small').text().match(/[0-9.]+/); if (djdk) djdk = Number(djdk[0]); if (dj && djdk) { return djdk - dj; } else { return 0; } }, "360buy": function buy() { var dj = $('#pingou .summary-price div.dt:contains("定")+.dd .price').text(); var djdk = $('#pingou .summary-price div.dt:contains("定")+.dd .yy-category').text().match(/[0-9.]+/); if (djdk) djdk = Number(djdk[0]); if (dj && djdk) { return djdk - dj; } else { return 0; } }, 'tmall': function tmall() { return false; } }; var sitePattern = { "360buy": function buy() { var quan = undefined, promo = []; // if ($('#pingou .summary-price>.dt').text().replace(/\s/g, '').indexOf("定金") > -1) { // return { // quan: quan, // promo: promo // } // } var quandom = $('#summary-quan:visible'); var promodom = $('#prom-one .J-prom:visible'); if (!promodom.length) { promodom = $('#summary-promotion .J-prom:visible'); } if (quandom.length > 0) { var arrs = quandom.find('span.' + 'quan-item span.text'); quan = Array.prototype.map.call(arrs, function (e) { return { text: $(e).text(), title: $(e).parents('.quan-item').attr('title') }; }).filter(function (x) { if (x.title) { var re = new RegExp('有效期([\\d\\-: ]*)至([\\d\\-: ]*)').exec(x.title); if (re && re[1]) { if (new Date(re[1].trim()) > new Date()) { console.warn('filter early coupon', x); return false; } } } return true; }).map(function (x) { return x.text; }); } if (promodom.length > 0) { var arrs = promodom.find('.prom-item'); var _process = function _process(e) { var strt = $(e).find('.hl_red_bg').text(); if (strt.indexOf('跨自营/店铺满减进行中') > -1 || strt.indexOf('活动预告') > -1) return '';else { var text = $(e).find('.hl_red').text(); if (!text) { text = $(e).find('.mj_red').text(); } if (!text) { return ''; } var prepend = ''; if (strt) { prepend = strt + '--'; } var url = $(e).find('a').attr('href'); if (url) { return url + ':' + prepend + text; } else { return prepend + text; } } }; promo = Array.prototype.map.call(arrs, _process).filter(function (x) { return x; }); // let promo2 = Array.prototype.map.call(arrs2, process) // promo = promo.concat(promo2) } var fanPrice = $('.p-price-fans .price').text(); if (fanPrice) { promo.push('粉丝价' + fanPrice); } return { quan: quan, promo: promo }; }, "suning": function suning() { var quan = undefined, promo = undefined; var quandom = $('#freeCouponTitle .more-juan .p-quan2'); var promodom = $('.promo-list li>label:contains("满 减")+i+p'); if (quandom.length > 0) { var arrs = quandom.find('span.p-quan-white'); quan = Array.prototype.map.call(arrs, function (e) { var txt = $(e).text(); if (txt.match(/每\d+用\d+/)) { txt = txt + '最多可减' + $(e).prev().prev().text(); } return txt; }); } if (promodom.length > 0) { var arrs = promodom; promo = Array.prototype.map.call(arrs, function (e) { var txt = $(e).text(); if ($(e).children().text()) { var txt2 = $(e)[0].childNodes[0].nodeValue; if (txt2) { txt = txt2; } } return txt; }); } return { quan: quan, promo: promo }; }, 'tmall': function tmall() { var promo = [], coupon = []; $('.tm-shopPromotion-title dd').each(function (idx, item) { promo.push(item.innerText); }); var tbNew = $('[class^=Promotion--caption]'); if (tbNew.length) { var z = tbNew.text().split(','); z.forEach(function (item) { if (item.indexOf('券') > -1) { coupon.push(item); } else { promo.push(item); } }); } return { promo: promo, quan: coupon }; }, 'taobao': function taobao() { var promo = [], coupon = []; if ($('.tb-other-discount').length) { promo.push($('.tb-other-discount').text().trim()); } return { promo: promo, coupon: coupon }; }, 'dangdang': function dangdang() { var coupons = $('#coupon-list li a').toArray().map(function (item) { return item.innerText.trim(); }); return { quan: coupons, promo: $('.rule .text').toArray().map(function (item) { return item.innerText.trim(); }) }; } }; var pingxingcelue = function pingxingcelue() { var arr = ["360buy"]; if (arr.indexOf(G.site) > -1) { return true; } return false; }; var getPromoInfoNum = function getPromoInfoNum(pagePrice, arr, type) { var infoObj = promoobj; var dishead = "促: "; if (type === 'quan') { infoObj = quanobj; dishead = "券: "; } if (!disPrice) disPrice = {}; for (var j = 0; j < arr.length; j++) { var item = arr[j]; var _reg0 = /且满[¥¥]?([.\d]{2,})元?(?:售价)?[^件]{0,3}?可?立?减[¥¥]?([.\d]+)/; if (_reg0.test(item)) { continue; } var reg00 = /每(\d+)用(\d+)最多可减.?([1-9]\d+)/; if (reg00.test(item) && type === 'quan') { var qmmjobj = infoObj['quanmeimanjian']; var match = item.match(reg00); if (match[3]) { qmmjobj[match[1] + '-' + match[2] + '-' + match[3]] = dishead + item; } else { qmmjobj[match[1] + '-' + match[2]] = dishead + item; } continue; } var reg0 = /每满([.\d]{2,})元?.{0,3}?可?减([.\d]+)元现金(?:(?:,|,)(?:最多可减|)([.\d]+))?/; if (reg0.test(item)) { var mmjobj = infoObj['meimanjian']; var match = item.match(reg0); if (match[3]) { mmjobj[match[1] + '-' + match[2] + '-' + match[3]] = dishead + item; } else { mmjobj[match[1] + '-' + match[2]] = dishead + item; } continue; } var reg = /(?:[^每]|^)满[¥¥]?([.\d]{1,})元?(?:售价)?[^件]{0,3}?可?立?减[¥¥]?([.\d]+%?)元?/; var _reg = /(?:[^每]|^)满[¥¥]?([.\d]{1,})元?(?:售价)?[^件]{0,3}?可?立?减[¥¥]?([.\d]+%?)元?/g; var mjobj = infoObj['manjian']; if (reg.test(item)) { var _match = item.match(_reg); if (_match.length > 1) { for (var i = 0; i < _match.length; i++) { var m = _match[i].match(reg); mjobj[m[1] + '-' + m[2]] = dishead + _match[i].trim().replace(/^[,,;;]/, ''); } } else { var match = item.match(reg); mjobj[match[1] + '-' + match[2]] = dishead + item; } continue; } var reg1 = /满([.\d]{2,})享([.\d]+)折/; var mzobj = infoObj['manzhe']; if (reg1.test(item)) { var match = item.match(reg1); mzobj[match[1] + '-' + match[2]] = dishead + item; continue; } var reg2 = /金额达到([.\d]{2,}).*?享受([.\d]+)/; if (reg2.test(item)) { var match = item.match(reg2); mjobj[match[1] + '-' + match[2]] = dishead + item; continue; } var reg3 = /([.\d]{2,})\-([.\d]+)/; if (reg3.test(item)) { var match = item.match(reg3); mjobj[match[1] + '-' + match[2]] = dishead + item; continue; } var zkobj = infoObj['zhe']; var reg4 = /满(\d+)件.{0,4}打([.\d]+)折/; var _reg4 = /满(\d+)件.{0,4}打([.\d]+)折/g; if (reg4.test(item)) { var _match = item.match(_reg4); if (_match.length > 1) { for (var i = 0; i < _match.length; i++) { var m = _match[i].match(reg4); zkobj[m[1] + '-' + m[2]] = dishead + _match[i]; } } else { var match = item.match(reg4); zkobj[match[1] + '-' + match[2]] = dishead + item; } continue; } var reg4_1 = /满(\d+)件([.\d]+)折/; var _reg4_1 = /满(\d+)件([.\d]+)折/g; if (reg4_1.test(item)) { var _match = item.match(_reg4_1); if (_match.length > 1) { for (var i = 0; i < _match.length; i++) { var m = _match[i].match(reg4_1); zkobj[m[1] + '-' + m[2]] = dishead + _match[i]; } } else { var match = item.match(reg4_1); zkobj[match[1] + '-' + match[2]] = dishead + item; } continue; } var quanmj = infoObj['quanmanjian']; var reg5 = /满?(\d+)(?:减|用|可用|可减)(\d+)/; if (reg5.test(item)) { var match = item.match(reg5); quanmj[match[1] + '-' + match[2]] = dishead + item; continue; } var mz2Obj = infoObj['manzhe2']; var reg6 = /满(\d)件.{1,4}减最低1件商品价格/; if (reg6.test(item)) { var match = item.match(reg6); mz2Obj[match[1]] = dishead + item; continue; } } for (var pattern in infoObj) { switch (pattern) { case "manjian": for (var mjitem in infoObj[pattern]) { var mjarr = mjitem.split('-'); // 如果计算的是优惠券且到手价里有促销活动的价格数据 会在到手价的基础上进行计算 if (type === "quan" && Object.keys(disPrice).length > 0) { for (var dis in disPrice) { // 京东使用平行式门槛 // jd 不凑单条件 var jdtj = pingxingcelue() && xdljObj[dis] && Number(mjarr[0]) <= pagePrice; // jd 凑单条件 var jdcdtj = pingxingcelue() && coudanObj[dis] && coudanObj[dis]["tt1"] > Number(mjarr[0]); // 到手价满足起减点 if (jdtj || Number(mjarr[0]) <= Number(dis) && xdljObj[dis]) { var pPrice = Number(dis) - Number(mjarr[1]); if (xdljObj[dis]) xdljObj[pPrice] = true; disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][mjitem]]); // 促销活动需要凑单 凑单计算优惠之后的价格大于起减点 或者平行策略 促销活动凑单之后大于优惠券起减点 } else if (coudanObj[dis] && coudanObj[dis]["tt1"] - coudanObj[dis]["tt2"] > Number(mjarr[0]) || jdcdtj) { var pPrice = undefined; if (coudanObj[dis]["type"] === "manzhe2") { // manzhe2 满多少件减一件商品价格 if (pingxingcelue()) { if (coudanObj[dis]["tt1"] >= Number(mjarr[0])) { pPrice = (coudanObj[dis]["tt1"] - Number(mjarr[1]) - pagePrice) / coudanObj[dis]["t2"]; } else { var p1 = coudanObj[dis]["tt1"] * (Number(mjarr[1]) / Number(mjarr[0])); pPrice = (coudanObj[dis]["tt1"] - pagePrice - p1) / coudanObj[dis]["t2"]; } } else { var price1 = coudanObj[dis]["t1"] > Number(mjarr[0]) ? coudanObj[dis]["t1"] : Number(mjarr[0]); pPrice = (price1 - Number(mjarr[1])) / coudanObj[dis]["t2"]; } } else if (coudanObj[dis]["type"] === "zhe") { // 满多少件打多少折 if (pingxingcelue()) { pPrice = (coudanObj[dis]["t1"] * coudanObj[dis]["t4"] - Number(mjarr[1])) / coudanObj[dis]["t3"]; } else { pPrice = (coudanObj[dis]["t1"] * coudanObj[dis]["t4"] - Number(mjarr[1])) / coudanObj[dis]["t3"]; } } else if (coudanObj[dis]["type"] === "manzhe") { // 满多少元打多少折 var price1 = coudanObj[dis]["t1"] - coudanObj[dis]["t2"]; pPrice = (price1 - Number(mjarr[1])) / (coudanObj[dis]["t1"] / pagePrice); } else { pPrice = (coudanObj[dis]["t1"] - coudanObj[dis]["t2"] - Number(mjarr[1])) / (coudanObj[dis]["t1"] / pagePrice); } pPrice = pPrice.toFixed(4); coudanObj[pPrice] = true; disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][mjitem]]); // 折扣力度大于20% 或者 到手价不低于起减点90% 不管促销活动是否凑单 到优惠券计算的时候都不满足条件 都需要凑单 } else if (Number(mjarr[1]) / Number(mjarr[0]) > 0.2 || dis / Number(mjarr[0]) > 0.9 || coudanObj[dis] && (coudanObj[dis]["tt1"] - coudanObj[dis]["tt2"]) / Number(mjarr[0]) > 0.9 || pingxingcelue() && coudanObj[dis] && coudanObj[dis]["tt1"] / Number(mjarr[0]) > 0.9 || pingxingcelue() && pagePrice / Number(mjarr[0]) > 0.9) { var pPrice = undefined; if (xdljObj[dis] && xdljObj[dis]["type"] === "meimanjian") { //每满减 if (pingxingcelue()) { pPrice = xdljObj[dis]["lastp"] - Number(mjarr[1]) * (pagePrice / Number(mjarr[0])); } else { pPrice = xdljObj[dis]["lastp"] - Number(mjarr[1]) * (xdljObj[dis]["lastp"] / Number(mjarr[0])); } } else if (xdljObj) { if (pingxingcelue()) { pPrice = dis - Number(mjarr[1]) * (pagePrice / Number(mjarr[0])); } else { pPrice = dis - Number(mjarr[1]) * (dis / Number(mjarr[0])); } } else if (coudanObj[dis]["type"] === "zhe") { if (pingxingcelue()) { pPrice = (coudanObj[dis]["t1"] * coudanObj[dis]["t4"] - Number(mjarr[1]) * (coudanObj[dis]["t1"] / Number(mjarr[1]))) / coudanObj[dis]["t3"]; } else { pPrice = (coudanObj[dis]["t1"] * coudanObj[dis]["t4"] - Number(mjarr[1]) * (coudanObj[dis]["t1"] * coudanObj[dis]["t4"] / Number(mjarr[1]))) / coudanObj[dis]["t3"]; } } else if (coudanObj[dis]["type"] === "manzhe") { // 满多少元打多少折 if (pingxingcelue()) { pPrice = coudanObj[dis]["t1"] * coudanObj[dis]["t3"] - Number(mjarr[1]) * (coudanObj[dis]["t1"] / Number(mjarr[0])); } else { pPrice = coudanObj[dis]["t1"] * coudanObj[dis]["t3"] - Number(mjarr[1]) * (coudanObj[dis]["t1"] * coudanObj[dis]["t3"] / Number(mjarr[0])); } } else { if (pingxingcelue()) { pPrice = coudanObj[dis]["t1"] - coudanObj[dis]["t2"] - Number(mjarr[1]) * (coudanObj[dis]["t1"] / Number(mjarr[0])); } else { pPrice = coudanObj[dis]["t1"] - coudanObj[dis]["t2"] - Number(mjarr[1]) * (coudanObj[dis]["t1"] - coudanObj[dis]["t2"] / Number(mjarr[0])); } } pPrice = pPrice.toFixed(4); coudanObj[pPrice] = true; disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][mjitem]]); } } // 没有促销活动只针对优惠券计算 } else if (type === "quan") { if (Number(mjarr[0]) <= pagePrice) { var pPrice = pagePrice - Number(mjarr[1]); xdljObj[pPrice] = true; disPrice2[pPrice] = [infoObj[pattern][mjitem]]; } else if (Number(mjarr[1]) / Number(mjarr[0]) > 0.2 || pagePrice / Number(mjarr[0]) > 0.9) { var salePrice = pagePrice - pagePrice * Number(mjarr[1]) / Number(mjarr[0]); var pPrice = salePrice.toFixed(4); coudanObj[pPrice] = true; disPrice2[pPrice] = [infoObj[pattern][mjitem]]; } // 促销活动计算 } else { if (Number(mjarr[0]) <= pagePrice) { if (mjarr[1].indexOf('%') > -1) { mjarr[1] = pagePrice * Number(mjarr[1].replace('%', '')) / 100; } var pPrice = pagePrice - Number(mjarr[1]); xdljObj[pPrice] = true; disPrice[pPrice] = [infoObj[pattern][mjitem]]; } else { var salePrice = pagePrice - pagePrice * Number(mjarr[1]) / Number(mjarr[0]); var pPrice = salePrice.toFixed(4); if (mjarr[1].indexOf('%') > -1) { pPrice = pagePrice - pagePrice * Number(mjarr[1].replace('%', '')) / 100; } if (coudanObj[pPrice] && typeof coudanObj[pPrice] === 'object' && coudanObj[pPrice].type === 'manjian') { if (Number(mjarr[0]) >= coudanObj[pPrice]["t1"]) { continue; } } coudanObj[pPrice] = { "type": "manjian", "tt1": Number(mjarr[0]), "tt2": Number(mjarr[1]), "t1": Number(mjarr[0]), "t2": Number(mjarr[1]) }; disPrice[pPrice] = [infoObj[pattern][mjitem]]; } } } break; case "meimanjian": for (var mmjitem in infoObj[pattern]) { var mmjarr = mmjitem.split('-'); if (Number(mmjarr[0]) <= pagePrice) { var num = parseInt(pagePrice / Number(mmjarr[0])); var disp = num * Number(mmjarr[1]); if (Number(mmjarr[2]) && Number(mmjarr[2]) < disp) disp = Number(mmjarr[2]); var pPrice = pagePrice - disp; xdljObj[pPrice] = { "type": "meimanjian", "tt1": pagePrice, "tt2": disp, "t1": Number(mmjarr[0]), "t2": Number(mmjarr[1]), "disp": disp, "lastp": pPrice }; disPrice[pPrice] = [infoObj[pattern][mmjitem]]; } else { var salePrice = pagePrice - pagePrice * Number(mmjarr[1]) / Number(mmjarr[0]); var pPrice = salePrice.toFixed(4); coudanObj[pPrice] = { "type": "meimanjian", "tt1": Number(mmjarr[0]), "tt2": Number(mmjarr[1]), "t1": Number(mmjarr[0]), "t2": Number(mmjarr[1]) }; disPrice[pPrice] = [infoObj[pattern][mmjitem]]; } } break; case "quanmeimanjian": for (var qmmjitem in infoObj[pattern]) { var qmmjarr = qmmjitem.split('-'); if (Object.keys(disPrice).length > 0) { for (var dis in disPrice) { if (coudanObj[dis]['type'] == 'zhe') { if (coudanObj[dis]['t1'] * coudanObj[dis]['t4'] >= Number(qmmjarr[0]) || pingxingcelue() && coudanObj[dis]['t1'] >= Number(qmmjarr[0])) { var nums = coudanObj[dis]['t3']; var pPrice = (coudanObj[dis]['t1'] * coudanObj[dis]['t4'] - Number(qmmjarr[0])) / nums; coudanObj[pPrice] = true; disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][qmmjitem]]); } } } } else { var pPrice = undefined; if (Number(qmmjarr[0]) > pagePrice) { if (Number(qmmjarr[1]) / Number(qmmjarr[0]) > 0.2) { pPrice = (Number(qmmjarr[0]) - Number(qmmjarr[1])) / (Number(qmmjarr[0]) / pagePrice); coudanObj[pPrice] = true; } } else { var nums1 = parseInt(pagePrice / Number(qmmjarr[0])); var nums2 = 99999; if (Number(qmmjarr[2])) { nums2 = parseInt(Number(qmmjarr[2]) / Number(qmmjarr[1])); } if (nums1 < nums2) { pPrice = pagePrice - nums1 * Number(qmmjarr[1]); } else { pPrice = pagePrice - nums2 * Number(qmmjarr[1]); } } if (pPrice) disPrice2[pPrice] = [infoObj[pattern][qmmjitem]]; } } break; case "zhe": for (var zheitem in infoObj[pattern]) { var zhearr = zheitem.split('-'); var point = Number(zhearr[1]) / 10; var pPrice = (pagePrice * point).toFixed(4); if (Number(zhearr[0]) > 1) { coudanObj[pPrice] = { "type": "zhe", "tt1": Number(zhearr[0]) * pagePrice, "tt2": Number(zhearr[0]), "t1": Number(zhearr[0]) * pagePrice, "t3": Number(zhearr[0]), "t4": Number(zhearr[1]) / 10, "t2": Number(zhearr[0]) * pagePrice * (1 - Number(zhearr[1]) / 10) }; } else { xdljObj[pPrice] = true; } disPrice[pPrice] = [infoObj[pattern][zheitem]]; } break; case "manzhe": for (var mzitem in infoObj[pattern]) { var mzarr = mzitem.split('-'); if (type === "quan" && Object.keys(disPrice).length > 0) { for (var dis in disPrice) { var jd1 = coudanObj[dis] && Number(mzarr[0]) <= coudanObj[dis]['tt1']; var jd2 = xdljObj[dis]; if (Number(mzarr[0]) <= Number(dis) || pingxingcelue() && (jd1 || jd2)) { var pPrice = undefined; if (pingxingcelue() && coudanObj[dis]) { var p2 = coudanObj[dis]['tt1'] - coudanObj[dis]['tt2'] - coudanObj[dis]['tt1'] * (1 - Number(mzarr[1]) / 10); pPrice = p2 / (coudanObj[dis]['tt1'] / pagePrice); } else if (pingxingcelue() && xdljObj[dis]) { pPrice = dis - pagePrice * (1 - Number(mzarr[1]) / 10); } else { pPrice = Number(dis) * (Number(mzarr[1]) / 10); } if (coudanObj[dis]) coudanObj[pPrice] = true; if (xdljObj[dis]) xdljObj[pPrice] = true; disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][mzitem]]); } else if (Number(mzarr[1]) <= 8 || dis / Number(mzarr[0]) > 0.9) { var pPrice = Number(dis) * (Number(mzarr[1]) / 10); disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][mzitem]]); coudanObj[pPrice] = true; } else if (coudanObj[dis] && Number(mzarr[0]) <= coudanObj[dis]) { var pPrice = Number(dis) * (Number(mzarr[1]) / 10); coudanObj[pPrice] = true; disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][mzitem]]); } } } else if (type === "quan") { if (Number(mzarr[0]) <= pagePrice) { var pPrice = pagePrice * (Number(mzarr[1]) / 10); xdljObj[pPrice] = true; disPrice2[pPrice] = [infoObj[pattern][mzitem]]; } else if (Number(mzarr[1]) < 9 || pagePrice / Number(mzarr[0]) > 0.9) { var pPrice = pagePrice * (Number(mzarr[1]) / 10); coudanObj[pPrice] = true; disPrice2[pPrice] = [infoObj[pattern][mzitem]]; } } else { if (Number(mzarr[0]) <= pagePrice) { var pPrice = pagePrice * (Number(mzarr[1]) / 10); xdljObj[pPrice] = true; disPrice[pPrice] = [infoObj[pattern][mzitem]]; } else { var pPrice = pagePrice * (Number(mzarr[1]) / 10); coudanObj[pPrice] = { "type": "manzhe", "tt1": Number(mzarr[0]), "tt2": Number(mzarr[0]) - pPrice, "t1": Number(mzarr[0]), "t2": Number(mzarr[0]) - pPrice, "t3": Number(mzarr[1]) / 10 }; disPrice[pPrice] = [infoObj[pattern][mzitem]]; } } } break; case "manzhe2": for (var mzitem in infoObj[pattern]) { var pPrice = pagePrice * (Number(mzitem) - 1) / Number(mzitem); coudanObj[pPrice] = { "type": "manzhe2", "tt1": pagePrice * Number(mzitem), "tt2": pagePrice, "t1": pagePrice * (Number(mzitem) - 1), "t2": Number(mzitem) }; disPrice[pPrice] = [infoObj[pattern][mzitem]]; } break; case "quanmanjian": for (var quanmjitem in infoObj[pattern]) { var quanmjarr = quanmjitem.split('-'); if (Object.keys(disPrice).length > 0) { for (var dis in disPrice) { if (Number(dis) >= Number(quanmjarr[0]) || pingxingcelue() && pagePrice >= Number(quanmjarr[0])) { var pPrice = Number(dis) - Number(quanmjarr[1]); xdljObj[pPrice] = true; disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][quanmjitem]]); } } } else { if (Number(quanmjarr[0]) <= pagePrice) { var pPrice = pagePrice - Number(quanmjarr[1]); xdljObj[pPrice] = true; disPrice2[pPrice] = [infoObj[pattern][quanmjitem]]; } else if (Number(quanmjarr[1]) / Number(quanmjarr[0]) > 0.2) { var pPrice = (Number(quanmjarr[0]) - Number(quanmjarr[1])) / (Number(quanmjarr[0]) / pagePrice); coudanObj[pPrice] = true; disPrice2[pPrice] = [infoObj[pattern][quanmjitem]]; } } } } } }; var vipPrice = function vipPrice(price) { var PLUSDom = $('.plus-price .price'); if (PLUSDom.length === 0) { PLUSDom = $('.p-price-plus .price'); } if (G.site === '360buy' && PLUSDom.length > 0) { var price1 = PLUSDom.text().replace(/[¥¥\s]+/g, ''); price1 = price1 && Number(price1); if (price1) { price = price1; vipPromo = "PLUS会员专享价" + price1; } } return price; }; module.exports.getPrice = function (callback) { if (disPrice) callback(disPrice, coudanObj, xdljObj);else callbacks = callback; }; module.exports.reload = function (cb) { disPrice = null; module.exports.init(); cb(); }; var domRequired = { '360buy': function buy() { return $('#summary-quan').length || $('#J-summary-topcjmj').length; }, 'tmall': function tmall() { return $('[class^=Price--root]').length || $('.tb-wrap').length; } }; var init2 = function init2() { var info, pagePrice, plusPrice, toSend, loginCoupon, coupon, k, promoText, globalCondition, dp_id, skuid; return regeneratorRuntime.async(function init2$(context$1$0) { var _this = this; while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!domRequired[G.site]) { context$1$0.next = 3; break; } context$1$0.next = 3; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(domRequired[G.site])); case 3: info = sitePattern[G.site](); pagePrice = __webpack_require__("4733a3dd803685ec596a").productPattern[G.site]().price; plusPrice = vipPrice(pagePrice); toSend = []; if (plusPrice !== pagePrice) { toSend.push('plus:' + plusPrice); } if (!info.promo) info.promo = []; if (!info.quan) info.quan = []; if (!(G.site === '360buy')) { context$1$0.next = 19; break; } context$1$0.next = 13; return regeneratorRuntime.awrap(__webpack_require__("4c7fa20dd9a026cd043e").init()); case 13: loginCoupon = context$1$0.sent; if (loginCoupon instanceof Array) { info.quan = loginCoupon; } context$1$0.next = 17; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('coupon')); case 17: coupon = context$1$0.sent; if (coupon && info.quan.indexOf(coupon) === -1) { info.quan.push(coupon); } case 19: // if (G.aliSite) { // let coupon = await require('common/globalCondition').met('coupon') // if (coupon) { // info.quan.push(coupon + '元券') // } // } info.promo = __webpack_require__("d54879e983a83d07f093").arrayUnique(info.promo); if (!(G.site === '360buy')) { context$1$0.next = 29; break; } context$1$0.prev = 21; context$1$0.next = 24; return regeneratorRuntime.awrap((function callee$1$0() { var linkData, count, batchName, toUpload, payload, promoLinkData, couponLinkData; return regeneratorRuntime.async(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: linkData = null, count = 0; case 1: if (linkData) { context$2$0.next = 17; break; } if (!(count > 10)) { context$2$0.next = 4; break; } return context$2$0.abrupt('break', 17); case 4: context$2$0.prev = 4; count++; console.log('trying get data', count); context$2$0.next = 9; return regeneratorRuntime.awrap(request.jdRequest(pageConfig.product.skuid)); case 9: linkData = context$2$0.sent; context$2$0.next = 15; break; case 12: context$2$0.prev = 12; context$2$0.t0 = context$2$0['catch'](4); console.log(context$2$0.t0); case 15: context$2$0.next = 1; break; case 17: batchName = 'jd_batch-' + pageConfig.product.skuid; toUpload = {}; toUpload[batchName] = { stockInfo: linkData.stockInfo, couponInfo: linkData.couponInfo, promotion: linkData.promotion, price: linkData.price }; payload = String.fromCharCode.apply(null, __webpack_require__("61191ae0f0390d21295c").gZip(toUpload)); __webpack_require__("91f250ebeb8d5987491c").post(G.server + '/extension/PluginHelper?op=jdPromoData&t=' + Date.now(), btoa(payload)); promoLinkData = linkData.promotion.activity; couponLinkData = linkData.couponInfo; info.promo = info.promo.map(function (item) { promoLinkData.forEach(function (promo) { if (item.indexOf(promo.value) > -1 && (item.indexOf('.jd.com') === -1 || item.indexOf('item.jd.com/') > -1)) { if (item.indexOf(':') > -1) { item = item.split(':')[1]; } if (promo.promoId) { item = 'https://search.jd.com/Search?activity_id=' + promo.promoId + '&sku=' + pageConfig.product.skuid + ':' + item; } } }); return item; }); info.quan = info.quan.map(function (item) { item = item.toString(); var theCoupon = null; couponLinkData.forEach(function (coupon) { if (item.indexOf(coupon.couponValue) > -1 && item.indexOf('.jd.com') === -1) { theCoupon = coupon; item = 'https://search.jd.com/Search?coupon_batch=' + coupon.batchId + '&sku=' + pageConfig.product.skuid + ':' + item; } if ((item.indexOf(coupon.quota + '元减') > -1 || item.indexOf(coupon.quota + '减') > -1) && item.indexOf('.jd.com') === -1) { theCoupon = coupon; item = 'https://search.jd.com/Search?coupon_batch=' + coupon.batchId + '&sku=' + pageConfig.product.skuid + ':' + item; } }); if (theCoupon && new Date(theCoupon.beginTime + ' ' + theCoupon.beginHour) > new Date()) { return; } return item; }).filter(function (x) { return !!x; }); case 26: case 'end': return context$2$0.stop(); } }, null, _this, [[4, 12]]); })()); case 24: context$1$0.next = 29; break; case 26: context$1$0.prev = 26; context$1$0.t0 = context$1$0['catch'](21); __webpack_require__("316f9c352c6202560d16").error(context$1$0.t0); case 29: toSend = toSend.concat(info.promo.map(function (x) { return '促: ' + x.replace('http://', '//').replace('https://', '//'); })).concat(info.quan.map(function (x) { return '券: ' + x.toString().replace('http://', '//').replace('https://', '//'); })); //if (true) { k = $('.J-prom > .prom-item > img').attr('src'); if (k && k.indexOf('6223615cd83592b5') > -1) { toSend.push('会员特权:9.5折'); } promoText = encodeURIComponent(toSend.join(';')); globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); context$1$0.next = 36; return regeneratorRuntime.awrap(globalCondition.met('GwdDpIdGot')); case 36: dp_id = context$1$0.sent; skuid = __webpack_require__("3e983ecbff4e1a29654c").getParameterByName('skuId'); request.get(G.server + '/extension/InTimePromotion?dp_id=' + dp_id + '&price=' + pagePrice + '&promo_text=' + promoText + (skuid ? '&sku_id=' + skuid : '')).then(function (res) { __webpack_require__("9c38beef5ff283e15bd2").setMet('promoGot', res.data); __webpack_require__("9c38beef5ff283e15bd2").setMet('localPromoGot', info); __webpack_require__("9c38beef5ff283e15bd2").setMet('remoteUrlMap', res._map); if (callbacks) { callbacks(res.data); } G.dp.promoPrice = res.data.current_price; }); //此处需要优先计算促销活动 再计算优惠券 // pagePrice = vipPrice(pagePrice) // if (info.promo) // getPromoInfoNum(pagePrice, info.promo, "promo") // if (info.quan) // getPromoInfoNum(pagePrice, info.quan, "quan") // for (let dis2 in disPrice2) { // disPrice[dis2] = disPrice2[dis2] // } // let dk = dingjinzhekou[G.site](); // if (dk || vipPromo) { // for (let disp in disPrice) { // let newdisp = disp - dk; // if (vipPromo) { // disPrice[disp].push(vipPromo) // } // if (Number(newdisp) !== Number(disp)) { // disPrice[newdisp] = disPrice[disp]; // } // } // } // if (callbacks) // callbacks(disPrice, coudanObj, xdljObj) case 39: case 'end': return context$1$0.stop(); } }, null, _this2, [[21, 26]]); }; module.exports.init = function callee$0$0() { var instanceId, perform; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!(['360buy', 'suning', 'tmall', 'dangdang', 'taobao'].indexOf(G.site) === -1)) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: instanceId = G.instanceId; perform = function perform() { var siteName = G.site; var siteId = detect.getSiteId(siteName); priceParser.init(siteId, function callee$2$0(price) { return regeneratorRuntime.async(function callee$2$0$(context$3$0) { while (1) switch (context$3$0.prev = context$3$0.next) { case 0: context$3$0.next = 2; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('productInfoReady')); case 2: if (G.dp) { context$3$0.next = 4; break; } return context$3$0.abrupt('return'); case 4: if (!(G.instanceId && instanceId !== G.instanceId)) { context$3$0.next = 6; break; } return context$3$0.abrupt('return'); case 6: if (price && price > 0) { G.dp.oldPrice = price; G.dp.price = price; } init2(); case 8: case 'end': return context$3$0.stop(); } }, null, this); }); }; if (!(G.site === '360buy')) { context$1$0.next = 10; break; } context$1$0.next = 7; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return $('.prom-item').length || $('.quan-item').length; })); case 7: perform(); context$1$0.next = 11; break; case 10: setTimeout(perform, 4000); case 11: case 'end': return context$1$0.stop(); } }, null, _this2); }; // 京东plus价格参加实际计算 // const linkData = await require('common/request').get( // `https://item-soa.jd.com/getWareBusiness?skuId=${pageConfig.product.skuid}&cat=${encodeURIComponent(pageConfig.product.cat.join(','))}&shopId=${pageConfig.product.shopId}&venderId=${pageConfig.product.venderId}¶mJson=${encodeURIComponent(pageConfig.product.paramJson)}&num=1` // ) // const getData = async () => { // const area = '1_72_55653_0', cat = pageConfig.product.cat.join(','), t = Date.now(), shopId = pageConfig.product.shopId, vendorId = pageConfig.product.venderId // const params = { // skuId: pageConfig.product.skuid, // cat: cat, // area: area, // shopId: shopId, // venderId: vendorId, // paramJson: pageConfig.product.paramJson, // num: pageConfig.product.countNum || '1' // } // const payload = { // appid: 'pc-item-soa', // functionId: 'pc_detailpage_wareBusiness', // client: 'pc', // clientVersion: '1.0.0', // t: t, // body: JSON.stringify(params) // } // const payloadCopy = Object.assign({}, payload) // payloadCopy.body = SHA256(JSON.stringify(params)).toString() // let sign = await window.PSign.sign(payloadCopy) // payload.h5st = encodeURI(sign.h5st) // payload['x-api-eid-token'] = jdtRiskContext.deviceInfo.jsToken // payload.loginType = '3' // payload.uuid = window.getCookie('__jda') // return request.requestXHR( `https://api.m.jd.com/?` + Object.keys(payload).map(key => `${key}=${encodeURIComponent(payload[key])}`).join('&')) // } /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "9a4b17164948a132f883": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("76afd03cbebfc0224290"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("4e066d2a", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./MiniFavor.vue?vue&type=style&index=0&id=ae71a91e&lang=less&scoped=true&", function() { var newContent = require("!!../../../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!./MiniFavor.vue?vue&type=style&index=0&id=ae71a91e&lang=less&scoped=true&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "9bf6d059e9a265559f0c": /***/ (function(module, exports, __webpack_require__) { "use strict"; var money = { 'us': ['$', '美元', 'USD'], 'Europe': ['€', '欧元', 'EUR'], 'Japan': ['JP¥', '日元', 'JPY'], 'Europe2': ['€', '欧元', 'EUR'], 'UK': ['£', '英镑', 'GBP'], 'Australlia': ['AU$', '澳元', 'AUD'], 'HK': ['HK$', '港元', 'HKD'], 'New-Zealand': ['NZ$', '新元', 'NZD'], 'Canada': ['CDN$', '加元', 'CAD'], 'zh-tw': ['NT$', '新台币', 'NT$'] }; var countrys = { 'wemakeprice': 'us', 'dod': 'Europe', 'apo': 'Europe', 'ansgo': 'Australlia', 'perfumesclub': 'Europe', 'net-a-porter': 'us', 'kidsroom': 'Europe', 'getthelabel': 'UK', 'babyhaven': 'us', 'danielwellington': 'us', 'dewaren': 'Europe', 'bose': 'us', 'takeya': 'Japan', 'bienmanger': 'Europe2', 'tlcpharmacy': 'UK', 'petit-bateau': 'us', 'esteelauder': 'us', '51taouk': 'UK', 'amcal': 'Australlia', 'joesnewbalanceoutlet': 'us', 'gnc': 'us', 'royyoungchemist': 'Australlia', 'kohls': 'us', 'bodybuilding': 'us', 'newbalance': 'us', 'newegg-us': 'us', 'pharmacy4less': 'Australlia', 'beautybay': 'us', 'katespade': 'UK', 'carters': 'us', 'discount-apotheke': 'Europe2', 'pharmacyonline': 'Australlia', 'skinstore': 'us', 'feelunique': 'UK', 'x0061': 'Australlia', 'bonjourhk': 'HK', 'ba': 'Europe2', 'chemistdirect': 'Australlia', 'target': 'us', 'ashford-zh': 'us', 'forever21': 'UK', 'holland-at-home': 'Europe2', 'kiehls': 'us', 'pharmacydirect': 'New-Zealand', 'shoes': 'us', 'shopbop': 'us', 'windeln': 'Europe2', 'bhphotovideo': 'us', 'lookfantastic': 'UK', 'hqhair': 'UK', 'amazon-com': 'us', 'amazon-jp': 'Japan', 'amazon-fr': 'Europe', 'amazon-de': 'Europe', 'amazon-it': 'Europe', 'amazon-uk': 'UK', 'amazon-ca': 'Canada', 'amazon-es': 'Europe', 'amazon-au': 'Australlia', // 'iherb': 'us', '6pm': 'us', 'aliexpress': 'us', '821': 'Europe', 'shopee': 'zh-tw', 'momoshop': 'zh-tw', 'rakuten': 'zh-tw', 'books': 'zh-tw', 'pchometw': 'zh-tw', 'twbuyyahoo': 'zh-tw' }; module.exports.getSymbol = function (name) { var v = Object.values(money); var tgt = v.filter(function (x) { return x[2] === name || x[1] === name; }); if (tgt.length) { return tgt[0]; } }; module.exports.getMoneyInfo = function (site) { if (countrys[site] && money[countrys[site]]) { return countrys[site] && money[countrys[site]]; } return ['¥', '元', 'CNY']; }; /***/ }), /***/ "9c38beef5ff283e15bd2": /***/ (function(module, exports, __webpack_require__) { "use strict"; // 有时需要等待条件满足再执行 var metConditions = []; var waitList = {}; var dataList = {}; module.exports = { met: function met(condition) { var timeout = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1]; var defaultValue = arguments.length <= 2 || arguments[2] === undefined ? null : arguments[2]; return new Promise(function (resolve) { if (metConditions.indexOf(condition) > -1) { resolve(dataList[condition]); } else { if (waitList[condition]) { waitList[condition].push(resolve); } else { waitList[condition] = [resolve]; } if (timeout) { setTimeout(function () { resolve(defaultValue); }, timeout); } } }); }, clearAll: function clearAll() { metConditions = []; waitList = {}; dataList = {}; }, clear: function clear(condition) { var idx = metConditions.indexOf(condition); if (idx > -1) { metConditions.splice(idx, 1); delete dataList[condition]; } }, setMet: function setMet(condition) { var data = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1]; if (metConditions.indexOf(condition) === -1) { metConditions.push(condition); dataList[condition] = data; } if (waitList[condition]) { waitList[condition].forEach(function (x) { return x(data); }); waitList[condition] = []; } } }; /***/ }), /***/ "9c9b99688069c7c98a03": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__QRLinkTaobaoLogin_vue_vue_type_template_id_6179ab9e_scoped_true___ = __webpack_require__("664f6df1f2ec50016f49"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QRLinkTaobaoLogin_vue_vue_type_script_lang_js___ = __webpack_require__("d7b8bdfd8cae885025eb"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__QRLinkTaobaoLogin_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__QRLinkTaobaoLogin_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__QRLinkTaobaoLogin_vue_vue_type_style_index_0_id_6179ab9e_scoped_true_lang_less___ = __webpack_require__("db518a3e544b1a3c4e0f"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__QRLinkTaobaoLogin_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__QRLinkTaobaoLogin_vue_vue_type_template_id_6179ab9e_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__QRLinkTaobaoLogin_vue_vue_type_template_id_6179ab9e_scoped_true___["b" /* staticRenderFns */], false, null, "6179ab9e", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('6179ab9e')) { api.createRecord('6179ab9e', component.options) } else { api.reload('6179ab9e', component.options) } module.hot.accept("./QRLinkTaobaoLogin.vue?vue&type=template&id=6179ab9e&scoped=true&", function () { api.rerender('6179ab9e', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/QRLinkTaobaoLogin.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "9da5f4760618b9fa7a9d": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__QRLinkContact_vue_vue_type_template_id_9a793014_scoped_true___ = __webpack_require__("03bec9e018c5e5127ba6"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QRLinkContact_vue_vue_type_script_lang_js___ = __webpack_require__("38c3da6a2366a559454c"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__QRLinkContact_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__QRLinkContact_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__QRLinkContact_vue_vue_type_style_index_0_id_9a793014_scoped_true_lang_less___ = __webpack_require__("246ceb42c05cc162aaa5"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__QRLinkContact_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__QRLinkContact_vue_vue_type_template_id_9a793014_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__QRLinkContact_vue_vue_type_template_id_9a793014_scoped_true___["b" /* staticRenderFns */], false, null, "9a793014", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('9a793014')) { api.createRecord('9a793014', component.options) } else { api.reload('9a793014', component.options) } module.hot.accept("./QRLinkContact.vue?vue&type=template&id=9a793014&scoped=true&", function () { api.rerender('9a793014', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/QRLinkContact.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "9dd6cec84ada5cb63221": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _qrcode = __webpack_require__("22c6d528618fc14b5d1c"); var _qrcode2 = _interopRequireDefault(_qrcode); var _commonCommonUtil = __webpack_require__("3e983ecbff4e1a29654c"); var _commonCommonUtil2 = _interopRequireDefault(_commonCommonUtil); exports['default'] = { //props: ['mode', 'dpId', 'tag'], props: { mode: { 'default': '', type: String }, dpId: String, tag: Number }, data: function data() { return { site: this.mode ? '360buy' : G.site, qr: '', loading: false, hasBuyButton: true }; }, mounted: function mounted() { var _this = this; setTimeout(function () { if ($('#J_ButtonWaitWrap').length) { _this.hasBuyButton = false; } }, 500); }, methods: { over: function over() { var _this2 = this; if (!this.qr && !this.loading) { this.loading = true; // if (this.mode && this.mode.includes && this.mode.includes('gift')) { // let link1 = util.getParameterByName('returnurl') // let link2 = util.getParameterByName('returnurl', link1) // console.log(link2) // QRCode.toDataURL(link2.replace('&isMainBack=1&loginback=1', ''), {}, (err, url) => { // if (err) { // //require('common/extConsole').error(err) // return // } // this.qr = url // }) // return // } __webpack_require__("91f250ebeb8d5987491c").rawGet(G.u_server + ('/helper/qrcode?union=' + G.union + '&event=appQrcode' + (this.mode || this.tag ? this.mode.includes('gift') ? '&rebate=1' : '&tag=' + (this.tag ? this.tag : 1) : '') + '&dp_id=') + (this.dpId ? this.dpId : G.dp.dpId)).then(function (res) { console.log(res); if (typeof res === 'string') { res = JSON.parse(res); } _this2.qr = res.data.qrImgStr; }); } } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "9e336bfd4f1d3314facb": /***/ (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( "a", { staticClass: "bjgou-subsidy-bar bjgou-component", attrs: { href: _vm.link, target: "_blank", title: "点击领取" } }, [ _c( "span", { staticClass: "bjg-coupon-white", staticStyle: { "font-family": "Arial", "font-size": "14px", "font-weight": "bold", "margin-left": "40px", "margin-top": "10px" } }, [_vm._v("¥")] ), _vm._v(" "), _c( "span", { staticClass: "bjg-coupon-white", staticStyle: { "font-size": "30px", "font-weight": "bold" } }, [_vm._v(_vm._s(_vm.coupon.discount))] ), _vm._v(" "), _c( "span", { staticClass: "bjg-coupon-white", staticStyle: { "font-size": "18px", "font-weight": "bold", "margin-left": "6px", "margin-top": "6px" } }, [ _vm._v( "\n " + _vm._s(_vm.getText("店铺券(满")) + _vm._s(_vm.coupon.limit) + _vm._s(_vm.getText("减")) + _vm._s(_vm.coupon.discount) + ")\n " ) ] ), _vm._v(" "), _c("div", { staticStyle: { flex: "1" } }), _vm._v(" "), _c( "span", { staticClass: "bjg-coupon-white", staticStyle: { "font-size": "18px", "font-weight": "bold", "margin-right": "22px" } }, [_vm._v(_vm._s(_vm.getText("立即领取")))] ), _vm._v(" "), false ? _c("div", { staticClass: "gwd-coupon-qr" }, [ _c( "span", { staticClass: "gwd-coupon-title", staticStyle: { "margin-top": "6px" } }, [ _vm._v( _vm._s(_vm.getText("领券满")) + _vm._s(_vm.coupon.limit) + _vm._s(_vm.getText("减")) + _vm._s(_vm.coupon.discount) ) ] ), _vm._v(" "), _c("img", { staticStyle: { "margin-top": "5px", width: "120px", height: "120px" }, attrs: { src: this.img, alt: "" } }), _vm._v(" "), _c( "div", { staticStyle: { "vertical-align": "bottom", "margin-top": "6px", "text-align": "center", height: "14px", "line-height": "14px" } }, [ _c( "span", { staticStyle: { "font-size": "14px", "font-weight": "bold", color: "#ff6132" } }, [_vm._v(_vm._s(_vm.getText("淘宝APP扫码")))] ), _vm._v(" "), _c( "span", { staticStyle: { "margin-left": "4px", "font-size": "12px", color: "#333333" } }, [_vm._v(_vm._s(_vm.getText("领店铺券")))] ) ] ) ]) : _vm._e() ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "9e5d2f9e726ca8bad750": /***/ (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_Subsidy_vue_vue_type_template_id_09046175_scoped_true___ = __webpack_require__("e5787b71040812935e9c"); /* 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_Subsidy_vue_vue_type_template_id_09046175_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_Subsidy_vue_vue_type_template_id_09046175_scoped_true___["b"]; }); /***/ }), /***/ "9ea3993fbe926fac1855": /***/ (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_MemberCouponMini_vue_vue_type_style_index_0_id_42d39176_scoped_true_lang_less___ = __webpack_require__("69d21005bc806483bd7c"); /* 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_MemberCouponMini_vue_vue_type_style_index_0_id_42d39176_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_MemberCouponMini_vue_vue_type_style_index_0_id_42d39176_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_MemberCouponMini_vue_vue_type_style_index_0_id_42d39176_scoped_true_lang_less____default.a); /***/ }), /***/ "9edc88f739fb33f2c091": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CouponArrow_vue_vue_type_template_id_4f0f1e98___ = __webpack_require__("6c4158d4a8844af2f16e"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__CouponArrow_vue_vue_type_script_lang_js___ = __webpack_require__("31565daf77a36862a767"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__CouponArrow_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__CouponArrow_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_2__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__CouponArrow_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__CouponArrow_vue_vue_type_template_id_4f0f1e98___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__CouponArrow_vue_vue_type_template_id_4f0f1e98___["b" /* staticRenderFns */], false, null, null, null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('4f0f1e98')) { api.createRecord('4f0f1e98', component.options) } else { api.reload('4f0f1e98', component.options) } module.hot.accept("./CouponArrow.vue?vue&type=template&id=4f0f1e98&", function () { api.rerender('4f0f1e98', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/CouponArrow.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "9f3c39067bb983909ffe": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__BjgBottomWindow_vue_vue_type_template_id_683c35f8_scoped_true___ = __webpack_require__("c5b76235290de2af4058"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__BjgBottomWindow_vue_vue_type_script_lang_js___ = __webpack_require__("ea2eb99b67c2d1cc2243"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__BjgBottomWindow_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__BjgBottomWindow_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__BjgBottomWindow_vue_vue_type_style_index_0_id_683c35f8_scoped_true_lang_less___ = __webpack_require__("edad80caeb3c830bf9cb"); /* 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__BjgBottomWindow_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__BjgBottomWindow_vue_vue_type_template_id_683c35f8_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__BjgBottomWindow_vue_vue_type_template_id_683c35f8_scoped_true___["b" /* staticRenderFns */], false, null, "683c35f8", 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('683c35f8')) { api.createRecord('683c35f8', component.options) } else { api.reload('683c35f8', component.options) } module.hot.accept("./BjgBottomWindow.vue?vue&type=template&id=683c35f8&scoped=true&", function () { api.rerender('683c35f8', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/bjgou/components/BjgBottomWindow.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "9f64364754bb77396ebf": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _vuex = __webpack_require__("436f6d560acb97f873d1"); exports['default'] = { props: ['name', 'alwaysShow'], data: function data() { return { from_device: G.from_device }; }, computed: _extends({ qrImg: function qrImg() { if (this.name === '降价') { return 'https://cdn.bijiago.com/images/extensions/bijiago/qr-wechat-hover-down@2x.png'; } return 'https://cdn.bijiago.com/images/extensions/bijiago/qr-wechat-hover@2x.png'; }, qrWidth: function qrWidth() { if (this.name === '降价') { return 125; } return 116; } }, (0, _vuex.mapState)({ userName: function userName(state) { return state.user.userName; }, user: function user(state) { return state.user.userLogin; }, hasWx: function hasWx(state) { return state.user.userHasWx; } })), mounted: function mounted() {}, methods: { imgClick: function imgClick(e) { if (e.offsetX >= 140 && e.offsetY <= 20) { store.commit('user/setState', { userHasWx: true }); } } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "a19875cc4830d51ea172": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, "\n#top_coupon_btn[data-v-1cab7080] {\n background: url(https://cdn.gwdang.com/images/extensions/bijiago/bottomCoupon@2x.png) 0 0 no-repeat;\n display: inline-flex;\n height: 28px;\n width: 161px;\n white-space: nowrap;\n position: relative;\n z-index: 999999999999;\n padding: 0 !important;\n margin: 3px 40px 4px 0!important;\n border: none !important;\n background-size: cover;\n align-items: center;\n text-decoration: none!important;\n}\n.coupon_detail[data-v-1cab7080] {\n position: absolute;\n right: 1px;\n height: 156px;\n width: 146px;\n z-index: 99999999999;\n background: #FFF6F4;\n border: 1px solid #FF6132;\n display: none;\n}\n#bjgext_mainbar .coupon_detail[data-v-1cab7080] {\n top: initial!important;\n}\n#top_coupon_btn:hover .coupon_detail[data-v-1cab7080] {\n display: block;\n}\n.coupon_detail img[data-v-1cab7080] {\n width: 118px;\n height: 118px;\n float: left;\n margin-left: 14px;\n margin-top: 8px;\n}\n.coupon_detail span[data-v-1cab7080] {\n font-size: 14px;\n color: #FF4335 !important;\n letter-spacing: 0.22px;\n font-weight: bold;\n float: left;\n height: 14px;\n line-height: 14px;\n width: 100%;\n margin-top: 6px;\n text-align: center;\n}\n.coupon-marleft[data-v-1cab7080] {\n height: 100%;\n width: 10px;\n float: left !important;\n border-left: 1px solid #edf1f2;\n}\n.link_hand[data-v-1cab7080] {\n display: inline-block;\n height: 30px;\n width: 38px;\n position: absolute;\n right: -38px;\n top: -2px;\n background: url(https://cdn.gwdang.com/images/extensions/newbar/hand.gif) 0px 0px no-repeat;\n}\n#top_coupon_btn *[data-v-1cab7080] {\n color: #fff;\n /*float: left;*/\n font-family: \"microsoft yahei\";\n}\n#top_coupon_btn .top-coupon-tle[data-v-1cab7080] {\n height: 16px;\n text-align: center;\n line-height: 16px;\n margin-left: 2px;\n font-size: 12px !important;\n font-weight: normal !important;\n}\n#top_coupon_btn .price-num[data-v-1cab7080] {\n font-size: 14px;\n color: #FFFFFF;\n font-weight: bold;\n width: 46px;\n height: 22px;\n text-align: center;\n margin-left: 3px;\n line-height: 22px !important;\n padding: 0px !important;\n vertical-align: middle;\n}\n#top_coupon_btn .price-num span[data-v-1cab7080] {\n display: inline;\n}\n#top_coupon_btn .price-sm[data-v-1cab7080] {\n font-size: 12px;\n transform: scale(0.8333);\n transform-origin: bottom right;\n}\n", ""]); // exports /***/ }), /***/ "a2212890cca82b6c8134": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var getCoupon = __webpack_require__("2eb8d6935e044e0d6d06"); var getCouponNew = __webpack_require__("6c0a23e5b52046830607"); var request = __webpack_require__("91f250ebeb8d5987491c"); var QRReloader = __webpack_require__("95b5a8392f3e95ca15b5"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var utils = __webpack_require__("d6aec8444c650eeab5f2"); var globalInfo = {}, hasReqId = []; var randomNum = undefined; var domPattern = { 'tmall1': { list: '#J_ItemList>div.product', dom: '.productImg-wrap', url: 'a.productImg' }, 'taobao1': { list: '#mainsrp-itemlist .items .item', dom: '.pic-box', listen: '#mainsrp-itemlist', lschild: '.m-itemlist', url: 'a.pic-link' }, 'taobao11': { list: '#listsrp-itemlist div.items .J_ItemListSKUItem', dom: '.pic-box', listen: '#listsrp-itemlist', lschild: '.m-itemlist', url: 'a.pic-link' }, 'taobao2': { list: 'ul li', dom: '.x', listen: '.m-itemlist', url: 'a' }, 'taobao3': { list: '.module-wrap.J_tb_lazyload .pro-list li', dom: '.x', listen: '.m-itemlist', url: 'a.item' }, 'taobao4': { list: '#list-itemList ul.items li.item', dom: '.J_ItemMainImgWraper', listen: '.m-itemlist', url: 'a.J_AtpLog' }, 'taobao5': { list: '.module-wrap.J_tb_lazyload ul.items li', dom: '.x', listen: '.m-itemlist', url: '.shopTitle+a.img_url' }, 'taobao6': { list: '.m-itemList ul.items li.item', dom: 'span.img-inner', listen: '#minilist-itemList-1', lschild: '.m-itemList', url: '.J_ItemLink' }, 'taobao7': { list: 'ul li', dom: '.x', listen: '', lschild: '', url: 'a' }, 'taobao8': { list: '[class^=Card--doubleCard--]', dom: '[class^=Card--mainPicAndDesc]' }, 'taobao9': { list: '[class^=Card--listCard--]', dom: '[class^=MainPic--listMod--]' } }; var getTypes = function getTypes() { var urlPattern = { 's\\.taobao\\.com/list': 'taobao11', 'list\\.tmall\\.com': 'tmall1', 's\\.taobao\\.com': 'taobao1', 'www\\.taobao\\.com/market/': 'taobao2', 'www\\.taobao\\.com/markets/promotion/': 'taobao3', 'www\\.taobao\\.com/markets/amusement/': 'taobao6', 'www\\.taobao\\.com/markets/': 'taobao7', 'list\\.taobao\\.com': 'taobao4' }; var url = location.href; for (var i in urlPattern) { if (url.match(new RegExp(i))) { return urlPattern[i]; } } }; var searchZoneId = { 'bjg923253': '10017', 'union_bijiago': '10014', 'union_bijiago_uos': '10014', 'union_bijiago_mogu': '10014', 'union_biyibi': '10014' }; var getQRcode = __webpack_require__("657bad1e7f3b602f7d70"); var callbacks = undefined, hasreq = undefined, urls = undefined; var getPageInfo = function getPageInfo(info, callback) { var infoObj = {}; if (hasreq) { callbacks = callback; urls = info.click_url; return; } var itemId = info.itemId; var obj = { itemNumId: itemId }; var url = 'https://acs.m.taobao.com/h5/mtop.taobao.detail.getdetail/6.0/?data=' + encodeURIComponent(JSON.stringify(obj)); // request.getPure(url).done(function(data) { // try { // let item = data.data.item // let seller = data.data.seller // let item2 = JSON.parse(data.data.apiStack[0].value) // infoObj.title = item.title; // infoObj.picUrl = item.images[0] // infoObj.shopName = seller.shopName // infoObj.shopLogo = seller.shopIcon; // infoObj.shopUrl = seller.shopUrl; // infoObj.biz30Day = item2.item.sellCount; // infoObj.discountPrice = (Number(item2.skuCore.sku2info['0'].price.priceMoney) / 100).toFixed(2); // } catch (e) { // require('common/extConsole').error(e) // } if (!infoObj.title) { infoObj.title = info.titleGot; } if (!infoObj.picUrl) { infoObj.picUrl = info.imgGot; } if (!infoObj.discountPrice) { infoObj.discountPrice = info.priceGot; } infoObj.id = itemId; infoObj.amount = info.coupon.coupon_money; infoObj.effectiveStartTime = info.coupon.start_time; infoObj.effectiveEndTime = info.coupon.end_time; infoObj.pid = info.pid; infoObj.tkl = info.tkl; infoObj.tmall = location.host.indexOf('tmall') > -1 ? true : false; callback(infoObj, info.click_url); if (callbacks) { callbacks(infoObj, urls); } // }) }; var addQRcode = function addQRcode(id, dom) { if (hasReqId.indexOf(id) > -1) return; hasReqId.push(id); if (!id) return; var data = globalInfo[id]; data.pid = searchZoneId[G.union]; data.itemId = id; data.priceGot = parseInt($(dom).parents('.item').find('.price').text().replace(/ /g, '').replace('¥', '')); data.titleGot = $(dom).parents('.item').find('.title').text().replace(/ /g, '').replace(/\n/g, ''); data.imgGot = $(dom).parents('.item').find('.pic img').attr('src'); getPageInfo(data, function (newData, url) { var id = 'gwd-coupon-' + parseInt(Math.random() * 1000); var view = '<div class="minicoupon_detail" id="' + id + '">\n <img src="xxx">\n <span>' + (G.lang === 'en' ? 'Scan with wechat' : G.lang === 'zh-tr' ? '手淘掃碼領券' : '手淘扫码领券') + '</span>\n </div>'; $(dom).append(view); QRReloader.init(newData, url, '#' + id + ' > img', function (newData2) {}, false, false); }); }; var renderCouponTip = function renderCouponTip(id, parentD, site) { //$(parentD).css('border', '5px solid red') getCoupon.init(id, searchZoneId[G.union], function (data) { // getCouponNew.initWithDp(id, pidConfig[G.union], 'search', function(data) { //$(parentD).css('border', '5px solid green') if (!data) return; if (!data.data) return; data = data.data; data.site = site; globalInfo[id] = data; var dom = '<a href="' + data.click_url2 + '" data-id="' + id + '" title="当前商品领券立减' + data.coupon.coupon_money + '元" class="search_coupon_tip" target="_blank">¥' + data.coupon.coupon_money + ' 优惠券<a>'; if (randomNum > -1) { dom = '<a href="' + G.tb_server + '/extension/qrpage?dp_id=' + id + '-83&tag=9_chrome&discount=' + data.coupon.coupon_money + '&union=' + G.union + '" title="当前商品领券立减' + data.coupon.coupon_money + '元" data-id="' + id + '" class="search_coupon_tip" style="cursor:pointer;" target="_blank">¥' + data.coupon.coupon_money + ' 优惠券<a>'; } if (G.lang === 'en') { dom = dom.replace('¥' + data.coupon.coupon_money + ' 优惠券', '¥' + data.coupon.coupon_money + ' Coupon'); dom = dom.replace('<a', '<a style="background: url(' + G.s_server + '/images/extensions/bijiago/coupon-en@2x.png); width: 100px; background-size: contain"'); } $(parentD).append($(dom)); }); }; var listenDom = function listenDom() { var lastCouponCount = 0; var timer = setInterval(function () { var couponCount = $('.search_coupon_tip').length; if (couponCount >= lastCouponCount) { lastCouponCount = couponCount; return; } clearInterval(timer); window.extNeedReload = true; }, 2000); }; var renderInit = function renderInit() { var type = getTypes(); if (!type) return; var obj = domPattern[type]; var list = $(obj['list']); if (type === 'taobao1' && list.length === 0) { obj = domPattern['taobao11']; list = $(obj['list']); } if (list.length === 0) { obj = domPattern['taobao8']; list = $(obj['list']); } if (list.length === 0) { obj = domPattern['taobao9']; list = $(obj['list']); } // 对于新版淘宝,给每个商品添加class $('[class^=Card--mainPicAndDesc]').addClass('gwd-item').css('position', 'relative'); $('[class^=MainPic--listMod--]').addClass('gwd-item').css('position', 'relative'); for (var i = 0; i < list.length; i++) { var dom = list.eq(i).find(obj['url']); var href = dom.attr('href'); var id = null; var site = 'taobao'; if (dom.length) { var _href = dom.attr('href'); if (!_href) continue; if (_href.indexOf('detail.tmall.com') > -1) site = 'tmall'; id = _href.match(/[?&]id=(\d+)/) && _href.match(/[?&]id=(\d+)/)[1]; if (!id) { id = dom.attr('data-nid'); } } else { id = list.eq(i).find('.ww-light.ww-small').attr('data-item'); __webpack_require__("316f9c352c6202560d16").log('find new type id', id); } if (!id) continue; var appendDom = list.eq(i).find(obj['dom']); if (appendDom.length === 0) appendDom = list.eq(i); renderCouponTip(id, appendDom, site); } if (type.indexOf('taobao') > -1) { $(obj['listen']).find(obj['lschild']).attr('c_coupon', '1'); } $('body').on('click', function (e) { if ($(e.target).hasClass('search_coupon_tip')) { cnzz.log('click:searchcoupon'); utils.tongjiLog('click:searchcoupon'); } }); $('body').on('mouseover', function (e) { if ($(e.target).hasClass('search_coupon_tip')) { var id = $(e.target).attr('data-id'); if ($(e.target).find('.qr_coupondetail').length === 0 && randomNum > -1) { cnzz.log('track:searchcoupon'); utils.tongjiLog('track:searchcoupon'); // addQRcode(id, e.target) } } }); }; module.exports.init = function () { if (G.forbidCoupon) return; randomNum = parseInt(Math.random() * 100); renderInit(); if ($('[class^=Card--doubleCard--]').length) { listenDom(); } $('body').append('<style>.search_coupon_tip { line-height: 23px; }</style>'); // setTimeout(function() { // listenDom() // }, 6000) }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "a2a69ddd37a8f8626893": /***/ (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 _QrErrorVue = __webpack_require__("e80a89d5b538bbfd4bc2"); var _QrErrorVue2 = _interopRequireDefault(_QrErrorVue); var getQRCode = __webpack_require__("657bad1e7f3b602f7d70"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); exports['default'] = { name: "Subsidy", props: ['value', 'url', 'qr'], components: { QrError: _QrErrorVue2['default'] }, data: function data() { return { qrcode: '', error: false, site: G.site }; }, methods: { click: function click() { if (!this.qr) window.open(this.url); }, over: function over() { var _this = this; if (!this.qr) return; if (this.qrcode) return; getQRCode({ id: G.dp.dpId, pid: 'bjgou-mini', amount: this.value, title: '', _type: 'rebate' }, '', function (res) { cnzz.log((G.site === '360buy' ? 'jd' : 'taobao') + 'GiftMoney:hover'); if (res[0].etag) { _this.error = true; return; } else { _this.error = false; } _this.qrcode = res[0].imgSrc; }); } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "a39cbf70bd2e92e85f98": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "svg", { attrs: { width: "48px", height: "24px", viewBox: "0 0 48 24", version: "1.1", xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink" } }, [ _c( "g", { attrs: { id: "Page-1", stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd" } }, [ _c( "g", { attrs: { id: "店铺券-点击", transform: "translate(-1135.000000, -340.000000)" } }, [ _c( "g", { attrs: { id: "箭头3", transform: "translate(1135.000000, 340.000000)" } }, [ _c( "g", { attrs: { id: "编组-2", opacity: "0.900000036", transform: "translate(24.000000, 0.000000)" } }, [ _c("g", { attrs: { id: "编组" } }, [ _c("rect", { attrs: { id: "矩形", "fill-opacity": "0.01", fill: "#FFFFFF", "fill-rule": "nonzero", x: "0", y: "0", width: "24", height: "24" } }), _vm._v(" "), _c("polyline", { attrs: { id: "路径", stroke: _vm.color, "stroke-linecap": "round", "stroke-linejoin": "round", points: "9.5 6 15.5 12 9.5 18" } }) ]) ] ), _vm._v(" "), _c( "g", { attrs: { id: "编组-2备份", opacity: "0.5", transform: "translate(12.000000, 0.000000)" } }, [ _c( "g", { attrs: { id: "编组", opacity: "0.900000036" } }, [ _c("rect", { attrs: { id: "矩形", "fill-opacity": "0.01", fill: "#FFFFFF", "fill-rule": "nonzero", x: "0", y: "0", width: "24", height: "24" } }), _vm._v(" "), _c("polyline", { attrs: { id: "路径", stroke: _vm.color, "stroke-linecap": "round", "stroke-linejoin": "round", points: "9.5 6 15.5 12 9.5 18" } }) ] ) ] ), _vm._v(" "), _c( "g", { attrs: { id: "编组-2备份-2", opacity: "0.200000003" } }, [ _c( "g", { attrs: { id: "编组", opacity: "0.900000036" } }, [ _c("rect", { attrs: { id: "矩形", "fill-opacity": "0.01", fill: "#FFFFFF", "fill-rule": "nonzero", x: "0", y: "0", width: "24", height: "24" } }), _vm._v(" "), _c("polyline", { attrs: { id: "路径", stroke: _vm.color, "stroke-linecap": "round", "stroke-linejoin": "round", points: "9.5 6 15.5 12 9.5 18" } }) ] ) ] ) ] ) ] ) ] ) ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "a433d565cf5af33ab29b": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjgou-login-btn[data-v-013bbf9d] {\n display: inline-block;\n width: 228px;\n height: 28px;\n line-height: 28px;\n background: linear-gradient(270deg, #ffcd47 0%, #ff9f22 100%);\n border-radius: 16px;\n cursor: pointer;\n /*margin-top: 112px;*/\n text-align: center;\n font-size: 12px;\n color: white;\n}\n.bjgou-bottom-favor[data-v-013bbf9d] {\n margin-top: 35px;\n width: 110px;\n height: 24px;\n line-height: 24px;\n text-align: center;\n border-radius: 14px;\n border: 1px solid #ffae45;\n display: block;\n color: #ffae45;\n font-size: 12px;\n cursor: pointer;\n}\n.bjgou-bottom-notchecked[data-v-013bbf9d] {\n background: #ffae45;\n color: white;\n}\n", ""]); // exports /***/ }), /***/ "a4a5a2685411df91fdf3": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $, Vue) { var request = __webpack_require__("91f250ebeb8d5987491c"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var newtrend = __webpack_require__("d7f07c6634e1fd006d57"); var taobaotrend = __webpack_require__("1f677ede70b4f8bcb282"); var parse_price = __webpack_require__("cb0906562effcf1b0e6c"); var option = __webpack_require__("97bc96d348c614d5d08b"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var oneHour = 3600000; var oneDay = 24 * oneHour; var util = __webpack_require__("d6aec8444c650eeab5f2"); var lang = __webpack_require__("cf094fe1ab460bb584a8"); var langCfg = __webpack_require__("336de8fce6caee2400ef"); // let supportSite = G.supportSite; var edit_nopuzzle_promo = function edit_nopuzzle_promo(data) { var time0 = data[0].time; var lowest = data[0].price, lowIndex = 0; var lastloop = undefined; for (var i = 0; i < data.length; i++) { var num = Math.abs(data[i].time - time0) / 86400; data[i].time2 = new Date(data[i].time * 1000); if (num < 10) { if (data[i].price < lowest) { lowest = data[i].price; lowIndex = i; } } else { lastloop = lowIndex; data[lowIndex].showCircle = true; lowIndex = i; lowest = data[i].price; time0 = data[i].time; } } if (lastloop + 1 < lowIndex) { data[lowIndex].showCircle = true; } }; var render = function render(data) { if (!data.store) { renderMini(null); } if (data.store[0].all_line.length === 0) { renderBar(null); renderMini(null); } else { if (G.site === 'steampowered') { // 如果当前页面是steam网站 就加载steam价格走势 __webpack_require__("0f62f0fb3b5cc89beb7a").init(data); return; } // 美亚和英亚不显示主工具条, 所以这个地方不能显示 if (!G.showMainbar && G.site !== 'amazon-uk' && G.site !== 'amazon-com' && G.site !== 'amazon-jp') { __webpack_require__("316f9c352c6202560d16").log('mainbar flex trend'); $('#bjgext_mainbar').css('display', 'flex'); G.showMainbar = true; util.tongji('mainbar', 'show'); } if (!G.showMinibar) { $('#bjgext_minibar').css('display', 'inline-block'); G.showMinibar = true; } if (data.nopuzzle_promo && data.nopuzzle_promo.length > 0) { edit_nopuzzle_promo(data.nopuzzle_promo); } newtrend.init(data, 'dpPage', false, { baidu: false }); renderBar(data); if (G.site !== '6pm') renderMini(data); } }; var isLowestPrice = function isLowestPrice(msg) { try { var cur_price = parseInt(msg.store[0]['current_price'].toString().replace(",", "")); var storeAll = msg.store[0].all_line; cur_price = storeAll[storeAll.length - 1]; //var least_price = parseInt(msg.store[0]['price_range'].split("-", 1)[0].replace(",", "")) var least_price = Math.min.apply(null, msg.store[0].all_line); if (cur_price == least_price) { return true; } else { return false; } } catch (e) { return false; } }; var renderyanzhengmaBtm = function renderyanzhengmaBtm(url) { var c_width = document.documentElement.clientWidth > 0 ? document.documentElement.clientWidth : document.body.clientWidth; var w1 = c_width - 321; var html = __webpack_require__("7421c06e78929496e5b0"); var btntxt = '<span class="blkcolor1">访问异常</span>'; $('.bjgext-trend').append($(btntxt)); $('.trend-box-dev').remove(); //$('#gwdang-pri-trend-chart').css('width', w1 + 'px') $('#bjgext_maintrend_detail').empty().append(template.compile(html)({ url: url })); $('.bjgext-trend').css("display", "block"); $('.bjgext-trend .bjgext-trend-icon').remove(); $('.bjgext-trend .bjgext-trend-tle').remove(); }; var renderyanzhengmaMini = function renderyanzhengmaMini(url) { // 中间部分访问异常情况 var html = __webpack_require__("613b1a45bb5eb6fb87df"); var btntxt = '<span class="blkcolor1">访问异常</span>'; $('.bjgext-mini-trend').empty().append($(btntxt)); $('.bjgext-mini-trend').append(template.compile(html)({ url: url })).show(); }; var renderBar = function renderBar(data) { if (data) { if (data.price_status === 1) { $('.bjgext-trend .bjgext-trend-icon').addClass('bjgext-trend-up'); $('.bjgext-trend .bjgext-trend-tle').text(lang.getString(langCfg, 'priceUp')); } else if (data.price_status === 0) { $('.bjgext-trend .bjgext-trend-icon').addClass('bjgext-trend-stable'); $('.bjgext-trend .bjgext-trend-tle').text(lang.getString(langCfg, 'priceStable')); } else if (data.price_status < 0) { var txt = lang.getString(langCfg, 'priceDecrease'); if (isLowestPrice(data) || data.store[0].islowest) txt = lang.getString(langCfg, 'priceLowest'); $('.bjgext-trend .bjgext-trend-icon').addClass('bjgext-trend-low'); $('.bjgext-trend .bjgext-trend-tle').text(txt); } $('.bjgext-trend').show(); if (G.lang === 'en') { $('.bjgext-trend').css('width', '160px'); } option.autoWidth(); } }; var renderMini = function renderMini(data) { if (data) { $('.bjgext-mini-trend em').addClass('bjgext-bg'); if (data.price_status === 1) { $('.bjgext-mini-trend em').addClass('bjgext-trend-up'); $('.bjgext-mini-trend>span').text(lang.getString(langCfg, 'priceUp')); } else if (data.price_status === 0) { $('.bjgext-mini-trend em').addClass('bjgext-trend-stable'); $('.bjgext-mini-trend>span').text(lang.getString(langCfg, 'priceStable')); } else if (data.price_status < 0) { var txt = lang.getString(langCfg, 'priceDecrease'); if (isLowestPrice(data) || data.store[0].islowest) txt = lang.getString(langCfg, 'priceLowest'); $('.bjgext-mini-trend em').addClass('bjgext-trend-low'); $('.bjgext-mini-trend>span').text(txt); } } else { $('.bjgext-mini-trend em').hide(); $('.bjgext-mini-trend').addClass('no_info').off(); $('.bjgext-mini-trend').css('background', '#f8f8f8'); $('.bjgext-mini-trend>span').css('color', '#a1a2a9'); $('.bjgext-mini-trend>span').text('暂无价格走势'); $('.bjgext-mini-trend').css('text-align', 'center'); } $('.bjgext-mini-trend').show(); }; var getTrendData = function getTrendData(dp_ids, dp_id, callback) { var price = (G.dp.price * 100).toFixed(2); var url = G.server + '/extension/price_towards?dp_ids=' + dp_ids + '&dp_id=' + dp_id + '&price=' + price + '&ver=1'; if (location.href.indexOf('detail.tmall.com') > -1 && location.href.indexOf('skuId') > -1) { var skuId = __webpack_require__("3e983ecbff4e1a29654c").getParameterByName('skuId', location.href); var dp = __webpack_require__("3e983ecbff4e1a29654c").getParameterByName('id', location.href); var link = 'https://sku-taobao.com/item.htm?id=' + dp + '-' + skuId; url = G.server + '/extension/price_towards?dp_ids=' + dp_ids + '&url=' + encodeURIComponent(link) + '&price=' + price + '&ver=1'; } if (G.site === 'taobao') { try { var sku = Hub.config.get('sku'); var skuId = sku.skuId; var dp = __webpack_require__("3e983ecbff4e1a29654c").getParameterByName('id', location.href); if (skuId && dp) { var link = 'https://sku-taobao.com/item.htm?id=' + dp + '-' + skuId; url = G.server + '/extension/price_towards?dp_ids=' + dp_ids + '&url=' + encodeURIComponent(link) + '&price=' + price + '&ver=1'; } } catch (e) { __webpack_require__("316f9c352c6202560d16").warn(e); } } request.get(url).done(function (data) { if (data.is_ban && data.action && data.action.method === 'redirect' && data.action.to) { // data.action = { // to: 'https://www.baidu.com' // } // if (true) { renderyanzhengmaBtm(data.action.to); renderyanzhengmaMini(data.action.to); return; } //data.store = data.store.slice(0, 1) if (data.store && data.store[1] && data.store[1].name === "到手价" && data.promo) { data.store[1].name = "凑单到手价"; } else if (data.store) { data.store.length = 1; } if ((!parseFloat(price) || !G.dp.price) && data.store) { G.dp.price = parseFloat(data.store[0].current_price); } // console.log('dp price trend', G.dp.price) callback(data); }); }; var renderDetail = function renderDetail() { renerMainBarDetail(); renderMiniDetail(); }; var renerMainBarDetail = function renerMainBarDetail() { var c_width = document.documentElement.clientWidth > 0 ? document.documentElement.clientWidth : document.body.clientWidth; var detail = '\n <div id="bjgext_maintrend_detail">\n <div id="bjg-pri-trend-chart" style="flex: 1; height:270px; position: relative; border-bottom: 1px solid #edf1f2" class="chart">\n <div id="big_tooltip_bjg_top" class="big_tooltip_bjg_box"></div>\n <div id="bar_trend_legend_btn_bjg" class="legend-btn-box" style="text-align: center">\n <span class="price-trend-sp pt-sp1 " data-id="days180">\n <em style="margin-left: 0; margin-top: 11px"></em>\n <span>到手价(单件)</span>\n </span>\n <span class="review-trend-sp" data-id="plotSpecial">\n <em style="margin-left: 0; margin-top: 11px"></em>\n <span>到手价(多件)</span>\n </span>\n </div>\n </div>\n <div style="width: 322px; border-left: 1px solid #edf1f2">\n <div id="bjgouBottomFavor"></div>\n </div>\n </div>'; if (navigator.userAgent.toLowerCase().indexOf('metasr') === -1) { detail = '\n <div id="bjgext_maintrend_detail">\n <div id="bjg-pri-trend-chart" style="flex: 1; height:270px; position: relative; border-bottom: 1px solid #edf1f2" class="chart">\n <div id="big_tooltip_bjg_top" class="big_tooltip_bjg_box"></div>\n <div id="bar_trend_legend_btn_bjg" class="legend-btn-box" style="text-align: center">\n <span class="price-trend-sp pt-sp1 " data-id="days180">\n <em style="margin-left: 0; margin-top: 11px"></em>\n <span>' + lang.getString(langCfg, 'onHandPrice') + '</span>\n </span>\n <span class="review-trend-sp" data-id="plotSpecial">\n <em style="margin-left: 0; margin-top: 11px"></em>\n <span>' + lang.getString(langCfg, 'combinePrice') + '</span>\n </span>\n </div>\n </div>\n <div style="width: 322px; border-left: 1px solid #edf1f2">\n <div id="bjgouBottomFavor"></div>\n </div>\n </div>'; } $('.bjgext-trend').append(template.compile(detail)()); $('.bjgext-trend').on('mouseleave', function () { $('#bjgext_maintrend_detail').hide(); }); if (G.disableLogin) { $('#bjgouBottomFavor').parent().remove(); setDetailLeft(); return; } var bottomFavor = __webpack_require__("f16ad1768527168a05a4")['default']; setTimeout(function () { new Vue({ el: '#bjgouBottomFavor', render: function render(h) { return h(bottomFavor); } }); }, 0); setDetailLeft(); }; var setDetailLeft = function setDetailLeft() { var dom = $('#bjgext_maintrend_detail'); if (dom.length === 0) return; var winW = $(window).width(); var trendW = 1101; var left = 0; if (winW < trendW + 106) { left = (winW - trendW) / 2; dom.css('left', left + 'px'); } if (winW < trendW) { dom.width(winW - 2); dom.css('left', '0px'); } if (winW < 1000) { dom.remove(); } }; var parsePrice = function parsePrice(price) { if (parseInt(price) > 999999) { return parseInt(price); } else { return price; } }; var renderMiniDetail = function renderMiniDetail() { var dpdata = userData.get('dp_query'); if (G.site == 'amazon' || G.site == '6pm') return; var showapp = false; var showList = false; if (!G.forbidCoupon) { showapp = true; } if (G.IE7 || G.IE8 || G.IE9 || G.IE10 || G.IE11) { showapp = false; } if (dpdata && dpdata.b2c && !(dpdata.b2c instanceof Array)) { showapp = false; showList = dpdata.b2c; } if (G.aliSite) { showapp = false; } var detail = __webpack_require__("1eb25bee9d4afd52e9f8"); if (dpdata.b2c && dpdata.b2c.store && dpdata.b2c.store.length) { var store = dpdata.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; 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); } if (G.ss_name === 'priceDog') { showapp = false; if (__webpack_require__("3dbec38a0e3472df70b7").isHaitao() && G.ss_name === 'priceDog') { showList = false; } } if (G.from_device === 'biyibi') { showapp = false; } $('.bjgext-mini-trend').append(template.compile(detail)({ showapp: showapp, showList: showList && newData.length ? newData : false, allLink: G.c_server + '/dp' + dpdata.dp_id, storeLen: store.length, onHandPrice: lang.getString(langCfg, 'onHandPrice'), single: lang.getString(langCfg, 'single'), combinePrice: lang.getString(langCfg, 'combinePrice'), cmp: G.lang === 'en' ? 'The Same Products' : '同款比价' })); if (showList && newData.length) { $('#mini_price_history_bjg_detail').css('width', '675px'); } } else { if (!G.forbidCoupon) { showapp = true; } if (G.aliSite) { showapp = false; } if (G.ss_name === 'priceDog' || G.from_device !== 'bijiago') { showapp = false; } $('.bjgext-mini-trend').append(template.compile(detail)({ showapp: showapp, showList: false, onHandPrice: lang.getString(langCfg, 'onHandPrice'), single: lang.getString(langCfg, 'single'), combinePrice: lang.getString(langCfg, 'combinePrice') })); } // let detail = `<div id="bjgext_minitrend_detail"> // <div id="bjgext_mini_trendbox"> // <div class="trend-max-min-price"> // <span class="t-max-pri"></span> // <span class="t-min-pri"></span> // </div> // </div> // </div>`; if (showapp) { $('.bjgext-mini-trend').addClass('showapp'); } $('.bjgext-mini-trend').on('mouseenter', function () { $('#bjgext_minibar').addClass('_mshover'); }); $('.bjgext-mini-trend').on('mouseleave', function () { $('#mini_price_history_bjg_detail').hide(); $('#bjgext_minibar').removeClass('_mshover'); }); renerQrcode(); }; var renerQrcode = function renerQrcode() { if (G.aliSite && G.forbidApp) return; var html = __webpack_require__("ff911476bd5219c80be0"); var src = 'https://cdn.bijiago.com/images/extensions/apptg181019/bjg-app.png'; var dom = template.compile(html)({ src: src, s_server: G.s_server }); $('#bjgext_minitrend_detail').addClass('addqrcode'); $('#bjgext_minitrend_detail').append(dom); $('.wxqrcode_close').on('click', function () { util.setPermanent('set_qrcode', 'qrcode', '0'); $('.wxqrcode').remove(); }); }; var getPriceStatus = function getPriceStatus(trenddata) { var price_status = 0; var price_num = trenddata.length; var priceArr = trenddata.map(function (i) { return i[1]; }); var lowest = Math.min.apply(undefined, priceArr); var price_last = trenddata[price_num - 1][1]; var islowest = false; var change_range = 20; var time_length = 0; for (var i = price_num - 1; i >= 0; i--) { var now_price = trenddata[i][1]; if (i > 0) { time_length += (trenddata[i][0] - trenddata[i - 1][0]) / 86400000; } if (now_price == 0) { continue; } if (price_last == now_price) { if (time_length > 180) { break; } continue; } else if (parseFloat(price_last) > parseFloat(now_price) && i >= price_num - change_range - 1) { price_status = 1; break; } else if (parseFloat(price_last) < parseFloat(now_price)) { price_status = -1; if (price_last === lowest) islowest = true; break; } } return { price_status: price_status, islowest: islowest, price_last: price_last }; }; module.exports.getPriceStatus = getPriceStatus; var amazonPriEdit = function amazonPriEdit(msg) { var currentCurrency = 'USD'; if (location.host == 'www.amazon.co.jp') { currentCurrency = 'JPY'; } if (['www.amazon.fr', 'www.amazon.de', 'www.amazon.es', 'www.amazon.nl', 'www.amazon.it'].indexOf(location.host) > -1) { currentCurrency = 'EUR'; } if (location.host == 'www.amazon.ca') { currentCurrency = 'CAD'; } if (location.host == 'www.amazon.co.uk') currentCurrency = 'GBP'; msg.store[0].currency = currentCurrency; }; var getSitePrice = function getSitePrice(site) { var price = ''; if (site == 'taobao') { price = $('#J_PromoPriceNum').text(); if (price == '' && $('#J_PromoPriceNum').length == 0) { price = $('#J_StrPrice .tb-rmb-num').text(); } } if (site == 'tmall') { if (price == "") { price = $('#J_DetailMeta #J_PromoPrice span.tm-price').text(); } if (price == "") { price = $('span.tm-price').text(); } if (location.host === 'detail.tmall.hk') { price = $('span.tm-price:eq(1)').text(); } if ($(".tb-wrTuan-num").text()) { price = $(".tb-wrTuan-num").text(); } } if (site == 'taobao-95095') { price = $('#J_PromoPrice .tm-price').text(); if (price == "") { price = $('#J_StrPriceModBox .tm-price').text(); } } if (site == 'ai-taobao') { if (!G.chrome_extension) { price = window.pageconfig.promoPrice; } else { var pageconfig = $('.aitaobao-edetail-header script').text(); price = /promoPrice":"([\d\.]+)"/.exec(pageconfig); if (price) price = price[1]; } if (price == '' || !price) { price = $('.price-wrap .price-single .price-promo strong').text(); } } if (price.indexOf('-') > -1) { price = price.split('-')[0]; } return parse_price(price); }; var dealWithEtaoData = function dealWithEtaoData(msg, callback) { if (!msg) return; if (!msg.list) return; var islowest = undefined, lowest = undefined, highest = undefined, currentTime = undefined, price_trend = undefined; var listSize = msg.list.length; var trenddata = []; currentTime = new Date(msg.curTime).getTime(); lowest = highest = msg.list[0].price; try { for (var i = 0; i < listSize; i++) { var item = msg.list[i]; trenddata.push([new Date(item.time).getTime(), item.price]); if (item.price > highest) highest = item.price; if (item.price < lowest) lowest = item.price; } /*补点*/ for (var i = listSize - 1; i > 0; i--) { if (trenddata[i][0] - trenddata[i - 1][0] > 86400000) { var itemTrend = [trenddata[i][0] - 86400000, trenddata[i - 1][1]]; trenddata.splice(i, 0, itemTrend); } } /*判断当前时间是否大于最后一个点,如果大于, 则补最后一个点*/ var lastData = trenddata[trenddata.length - 1]; if (lastData[0] < currentTime) { var lstprice = lastData[1]; var pagePrice = getSitePrice(G.site); if (currentTime - lastData[0] > 86400000) trenddata.push([currentTime - 86400000, lstprice]); if (pagePrice && lstprice != pagePrice) { if (pagePrice > highest) highest = pagePrice; if (pagePrice < lowest) lowest = pagePrice; trenddata.push([currentTime, pagePrice]); } } // setTimeout(function() { // 修正最后一个点的价格 var sitePrice = getSitePrice(G.site); if (sitePrice) { trenddata[trenddata.length - 1][1] = sitePrice; } //判断价格历史走势 var result = getPriceStatus(trenddata); var price_status = result.price_status; var price_last = result.price_last; islowest = result.islowest; var price_range = lowest + "-" + highest; var startD = new Date(msg.startTime).getDate(); var startM = new Date(msg.startTime).getMonth(); var startY = new Date(msg.startTime).getFullYear(); var allLine = []; var now_day = new Date(); var getDataFromTime = function getDataFromTime(time) { for (var i = 0; i < trenddata.length - 1; i++) { if (time >= trenddata[i][0] && time < trenddata[i + 1][0]) { return trenddata[i][1]; } } return trenddata[trenddata.length - 1][1]; }; var start = trenddata[0][0]; while (start <= now_day.getTime()) { var s = getDataFromTime(start); allLine.push(parseFloat(s.toFixed(2))); start += oneDay; } var year_line = null; if (allLine.length >= 365) { year_line = allLine.slice(allLine.length - 365); } var month_line = null; if (allLine.length >= 31) { month_line = allLine.slice(allLine.length - 31); } var short_day_line = null; if (allLine.length >= 6) { var dayline = allLine.slice(allLine.length - 6); short_day_line = []; for (var i = 0; i < dayline.length - 1; i++) { var newArr = []; for (var n = 0; n < 24; n++) { newArr.push(dayline[i]); } short_day_line = short_day_line.concat(newArr); } short_day_line.push(dayline[dayline.length - 1]); } var now_time = new Date(); price_trend = { "price_status": price_status, "startD": startD, "startM": startM, "startY": startY, "now_day": now_day.getTime(), "extra": 'start from another', "store": [{ "current_price": price_last, "all_line": allLine, "all_line_begin_time": trenddata[0][0] + 8 * oneHour, "year_line": year_line, "year_line_time": now_day.getTime() - 365 * oneDay, "month_line": month_line, "month_line_time": now_day.getTime() - 30 * oneDay, "short_day_line": short_day_line, "short_day_line_begin_time": now_time.getTime() + 8 * oneHour - 5 * oneDay, "min_stamp": "0", "islowest": islowest, "name": getSiteName(), "price_range": price_range, "promo": [], "all_equal_short": false }] }; callback(price_trend); // }, 1000); //return price_trend } catch (e) {} }; var controllers = function controllers(dp_ids, dp_id) { if (G.site === 'tmall' || G.site === 'taobao-95095' || G.site === 'ai-taobao' || G.site === 'taobao') { getTrendData(dp_ids, dp_id, function (d) { render(d); }); $('li').on('click', function (e) { try { setTimeout(function () { window.extNeedReload = true; }, 0); } catch (e) { __webpack_require__("316f9c352c6202560d16").warn(e); } }); } else { getTrendData(dp_ids, dp_id, function (data) { if (G.site === 'amazon-com' || G.site === 'amazon-uk' || G.site === 'amazon-jp') amazonPriEdit(data); render(data); }); } }; var getSiteName = function getSiteName() { var siteName = ""; var dict = { 'taobao': "淘宝", 'tmall': '天猫', '360buy': '京东商城', '51buy': '易迅网', 'suning': '苏宁易购', 'yihaodian': '一号店', 'dangdang': '当当网', 'gome': '国美在线', 'lefeng': '乐蜂网', 'xiu': '走秀网', 'philips': '飞利浦', 'tcl': 'TCL商城', 'e-changhong': '长虹商城', 'konka': '康佳商城', 'hisense': '海信商城', 'ineigo': '爱内购', 'skg': 'SKG商城', 'k-touch': '天语手机官网', 'gionee': '金立', 'oppo': 'OPPO', 'gfive': '基伍官方商城', 'vivo': 'vivo', 'meilishuo': '美丽说', 'mogujie': '蘑菇街', 'xiaomi': '小米官网', 'lemall': '乐视商城', 'grainger': '固安捷官网', 'piao': '网易电影票', '163': '网易商城', 'dianping': '点评团', 'nuomi': '百度糯米', 'meituan': '美团', 'bookuu': '博库文具', 'bookschina': '中国图书网', '1688': '阿里巴巴', 'zol': '中关村商城', 'amazon': '亚马逊', 'tiantian': '天天网', 'womai': '我买网', 'yougou': '优购网', 'vmall': '华为商城', 'paixie': '拍鞋网', 'newegg': '新蛋商城', 'vancl': '凡客诚品' }; try { var site = G.site, sites = ['360buy', 'gome', 'suning', 'taobao', 'yihaodian', 'womai', 'bookschina', 'paixie', 'bookuu', 'tiantian']; for (var i = 0; i < sites.length; i++) { if (site.indexOf(sites[i]) > -1) { site = sites[i]; break; } } siteName = dict[site]; } catch (e) { if (G.debug) { throw e; } } if (typeof siteName == "undefined") { siteName = ""; } if (siteName == "淘宝") { if (window.location.host.toString().indexOf("tmall") > -1) { siteName = "天猫"; } } return siteName; }; module.exports.init = function (dp_ids, dp_id) { __webpack_require__("48c7bf720f8190dd7cc2"); if (!dp_id) return; if (dp_id.match(/^0-[0-9]+/)) { return; } // if (dp_ids) { // let dparr = dp_ids.split('|'); // if (dp_id && dparr.indexOf(dp_id) === -1) { // dparr.push(dp_id) // } // let newArr = []; // // 不支持的网站价格走势不显示 // for (let i = 0; i < dparr.length; i++) { // let site_id = dparr[i].match(/\d+-(\d+)/)[1]; // if (supportSite.indexOf(site_id) > -1) { // newArr.push(dparr[i]) // } // } // dp_ids = newArr.join(','); // } renderDetail(); controllers(dp_ids, dp_id); }; module.exports.init2 = function (trend) { renderDetail(); trend.list = trend.monthtrend; trend.curTime = trend.lastday; trend.startTime = new Date(new Date(trend.monthtrend[0].time) - 1000 * 3600 * 24 * 30); dealWithEtaoData(trend, function (data) { if (data) render(data); }); }; module.exports.resizeSetLeft = function () { setDetailLeft(); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "a4cd7cabd020eff246a4": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("8fd11442b2cc4f90850c"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("e010dd36", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QrError.vue?vue&type=style&index=0&id=8590af9e&scoped=true&lang=less&", function() { var newContent = require("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QrError.vue?vue&type=style&index=0&id=8590af9e&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "a53850c80a1cfefa4efa": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) {var __WEBPACK_AMD_DEFINE_RESULT__;/* * 库存实时反馈模块 * 监控当前网站库存情况,并提取单品页商品库存数据 * @version:0.0.1 * @author:OuyJun(oyjh2011@gmail.com) * @since:2014-02-17 * */ !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { 'use strict'; var $ = __webpack_require__("e081b2491b5c9b12b9da"); return { //部分主流站点的库存(普通单品页)模板 //lefeng jiuxian 暂时没有处理 inventoryPatterns: { '360buy': { '#stocktext strong': '无货', '#store-prompt strong': '无货', //无货 '#store-prompt': '无货', '#stock-state': '无货', '#product-intro .itemover-title h3 strong': '商品已下柜' //商品已下柜 }, '51buy': { '#sea_buy_wrap': '到货通知', //到货通知 '#buyQty .godds_info_data span[style]': '无货' //'a.xbtn_notsale' : '\u6682\u4E0D\u9500\u552E'//暂不销售 }, 'amazon': { '.a-color-price': '缺货登记', '.ddm-sbr-avail-title': '缺货登记', //缺货登记 '#dynamicDeliveryMessage,#ddmAvailabilityMessage': '目前无货', '#dynamicDeliveryMessage span': '缺货登记' }, 'yihaodian': { '#arrivalNotice span': '到货通知', //到货通知 '#notSaleBtn .cartbox a span': '已售完', //已售完 '#detail_addToCart span.steal_btn': '抢光了', //抢光了 '.buy_btn3:visible': '已售完', '#detailStockInfo': '无货', '#addCart': '已售完' //如果不加入这个,总是返回-2 }, 'suning': { '#c_kucun span': '无货', //无货 '#recomTitle': '商品已下架', '#c_kucun': '无货' }, 'dangdang': { '#stock_writing_status': '缺货', //缺货 '.show_info_right strong.qh': '暂时缺货|罄', //暂时缺货 '#geo-info': '无货' }, 'gome': { '#stockTxt': '无货|下架|无货|暂不可送' //无货|下架|暂不可送 }, 'yougou': { '.buy': '已售罄', '.soldoutsty .fb': '此颜色商品已售罄' }, 'vmall': { '.button-notice-arrival span': '到货通知' //到货通知 }, 'vancl': { '.danpin_SouqingTitle h3': '该商品暂不能购买', '.NowHasGoods': '无货' }, 'jumei': { '.soldout_text': '已抢光', '.add_cart a.subscribe': '订阅到货通知' //订阅到货通知 }, 'newegg': { '#inventory .inventoryText': '暂无|接受预定', //暂无|接受预定 '#getQueueNumber': '立即预订', '.godds_info_data span:contains("库存")': '接受预定' }, 'moonbasa': { '#spanCountk': '无货' }, 'winxuan': { '.status': '无货' }, 'happigo': { '#goodskucun .f_red': '无货' }, 'xijie': { '.detail_pro_c_con': '很抱歉,该商品已售空' }, 'lingshi': { '#currentLocation': '无货' }, 'yesmywine': { '#delivery-tip': '无货' }, 'bookuu': { '.stock span': '无货' }, 'homevv': { '#stock+.hom': '缺货' }, 'lenovo': { '#idstockstatus': '暂无库存' }, 'secoo': { '#location-t+i': '无货' }, 'yummy77': { '#stockdesc': '无货' }, 'fruitday': { '.have': '无货' }, 'kaola': { '#js_dometxt': '无货' }, 'kjt': { '.black': '无货' }, 'jiumei': { '#kucuninfo .font14': '无货' }, 'womai': { '.nobuy_top_tit': '商品已售完,暂时无货', //商品已售完,暂时无货 '.unsellable_recommend_description': '商品已售完' //商品已售完 }, /* 'vjia':{}, 'okbuy':{}, 'yintai':{}, */ 'sfbest': { '#arrival_notice': '到货通知', '#stock font': '缺货', //缺货 '#cart-add-btn-sf': '到货|缺货' }, 'lefeng': { '.disexp span.stime': '无货' //无货 }, 'leyou': { '#stockStatus': '无货' }, 'jiuxian': { '#respNubs': '无货' } }, init: function init(siteName) { siteName = siteName || G.pageInfo.siteName; return this.getCheckInventory(siteName); }, //获取当前页面商品库存 //1是正常,0是无货,-2是下架 getOnlineInventory: function getOnlineInventory(siteName) { var inventoryText = { 'online': null, 'pattern': null }; var stringToUnicode = function stringToUnicode(str) { return str.replace(/[^\u0000-\u00FF]/g, function ($0) { return escape($0).replace(/(%u)(\w{4})/gi, '\\u$2'); }); }; try { if (typeof this.inventoryPatterns[siteName] != 'undefined') { var patterns = this.inventoryPatterns[siteName]; for (var selection in patterns) { try { if ($(selection).is(':visible')) { inventoryText['online'] = $(selection).html(); if (inventoryText['online'] !== null) { inventoryText['online'] = stringToUnicode(inventoryText['online']); inventoryText['pattern'] = stringToUnicode(patterns[selection]); return inventoryText; } } } catch (e) { /*eslint-disable */ if (G.debug) { console.log(e); } /*eslint-enable */ } } } } catch (e) { /*eslint-disable */ if (G.debug) { console.log(e); } /*eslint-enable */ } return inventoryText; }, //校验库存 getCheckInventory: function getCheckInventory(siteName) { var inventory = 1; var inventoryTextArray = this.getOnlineInventory(siteName); var onlineUnicodeText = inventoryTextArray['online'], patternUnicodeText = inventoryTextArray['pattern']; try { if (onlineUnicodeText !== null && onlineUnicodeText != '' && patternUnicodeText !== null) { if (patternUnicodeText.indexOf('|') >= 0) { var patternUnicodeTextArray = patternUnicodeText.split('|'); for (var i in patternUnicodeTextArray) { if (onlineUnicodeText.indexOf(patternUnicodeTextArray[i]) >= 0) { inventory = 0; } } } else if (onlineUnicodeText.indexOf(patternUnicodeText) >= 0) { inventory = 0; } } else { inventory = -2; } } catch (e) { /*eslint-disable */ if (G.debug) { console.log(e); } /*eslint-enable */ } return inventory; } }; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "a5477ba18d2730fb42d0": /***/ (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_JdItemList_vue_vue_type_template_id_9f63765e_scoped_true___ = __webpack_require__("f95f9fc59c2bef5c60ec"); /* 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_JdItemList_vue_vue_type_template_id_9f63765e_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_JdItemList_vue_vue_type_template_id_9f63765e_scoped_true___["b"]; }); /***/ }), /***/ "a625e5859805ff83d305": /***/ (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_TransPort_vue_vue_type_script_lang_js___ = __webpack_require__("db7e0bf34d01555f6525"); /* 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_TransPort_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_TransPort_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_TransPort_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_TransPort_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_TransPort_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "a67ae8abc77de2e0df06": /***/ (function(module, exports, __webpack_require__) { var $imports = __webpack_require__("9f47c636f849c23a0c20"); module.exports = function ($data) { 'use strict'; $data = $data || {}; var $$out = '', $escape = $imports.$escape, extClass = $data.extClass, img = $data.img, qr = $data.qr; $$out += '<div style="display: inline-flex; position: relative; vertical-align: middle; margin-left: 5px; width: auto" class="gwd-bottom-tmall '; $$out += $escape(extClass); $$out += '">\n <img src="'; $$out += $escape(img); $$out += '" alt="" style="height: 44px">\n <div class="gwd-qr-act-bottom" style="margin-left: -74px;">\n <img class="gwd-act-qr-img" loading="lazy" src="'; $$out += $escape(qr); $$out += '" alt="" style="width: 130px; height: 130px; margin-top: 7px">\n <span style="margin-top: 5px; vertical-align: middle; font-size: 0; height: 14px; line-height: 14px;">\n <span style="font-size: 14px; color: #ff1a78; font-weight: bold">微信扫码</span>\n <span style="margin-left: 3px; color: #070707; font-size: 12px; transform-origin: center center; transform: scale(0.9166)">领红包</span>\n </span>\n </div>\n</div>\n<style>\n .gwd-bottom-tmall {\n height: 100%;\n align-items: center;\n }\n\n .gwd-qr-act-bottom {\n display: none;\n flex-direction: column;\n position: absolute;\n width: 144px;\n height: 167px;\n box-sizing: border-box;\n border: 1px solid #ff471a;\n background: #fff9f6;\n bottom: 62px;\n left: 50%;\n align-items: center;\n margin-left: -72px;\n }\n\n .gwd-qr-act-bottom span {\n width: initial;\n margin: 0;\n }\n\n .gwd-bottom-tmall:hover .gwd-qr-act-bottom {\n display: flex;\n }\n</style>'; return $$out; }; /***/ }), /***/ "a67cb0e15fc3b78f18a6": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G, regeneratorRuntime) { var _this = this; var product = __webpack_require__("1cd251b60b93291ea3a2"); var request = __webpack_require__("91f250ebeb8d5987491c"); var util = __webpack_require__("d6aec8444c650eeab5f2"); // const loadCss = require('standard/module/loadCss') var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var extConsole = __webpack_require__("316f9c352c6202560d16"); var bgClient = __webpack_require__("660610db8f6e89357da9"); var markPage = function markPage() { $('html').addClass('bd_' + G.site); $('html').addClass(G.from_type); G.instanceId = parseInt(Math.random() * 10000); __webpack_require__("316f9c352c6202560d16").log('set instance id', G.instanceId); $('html').attr('data-bjg-id', G.instanceId); }; var loadCss = function loadCss() { // if (G.from_device === 'biyibi') { // return // } var chrom = undefined; try { chrom = chrome; } catch (e) { chrom = null; } var url = ''; if (chrom && chrom.extension && chrom.extension.getURL) { url = chrom.extension.getURL('css/' + G.cssname); } else { url = G.s_server + '/css/brwext/' + G.cssname; } $('head').append('<link type="text/css" href="' + url + '?v=' + G.version + '" rel="stylesheet" />'); setTimeout(function () { var hasGwd = $('html').hasClass('gwd_bottom') || window.disable_gwd_privacy; if (!hasGwd) { // $(`head`).append(`<link type="text/css" href="https://cdn.bijiago.com/css/brwext/gwdang-notifier-new6.css?v=${G.version}" rel="stylesheet" />`); } }, 300); // $(`head`).append(`<link type="text/css" href="https://cdn.bijiago.com/css/brwext/gwdang-notifier-new6.css?v=${G.version}" rel="stylesheet" />`); }; var getConfigInfo = function getConfigInfo(callback) { var runned = false; setTimeout(function () { if (!runned) { G.show_minibar = '1'; G.show_inner_low = '0'; G.show_promo = '1'; G.show_leftguess = '1'; G.guess_fold = '0'; G.main_fold = '1'; G.lang = 'zh'; console.log('bjgext start'); callback(); } }, 1000); communicate.on(function (data) { if (typeof data === 'string') { data = JSON.parse(data); } if (data.type === 'get_permanent' && (G.from_device === 'bijiago' || G.from_device === 'biyibi')) { if (data.value) { data = JSON.parse(data.value); G.show_minibar = data.show_minibar || '1'; G.show_inner_low = data.show_inner_low || '0'; G.show_promo = data.show_promo || '1'; G.show_leftguess = data.show_leftguess || '1'; G.guess_fold = data.guess_fold || '0'; G.guid = data.guid || ''; G.main_fold = data.main_fold || '1'; G.lang = data.lang || 'zh'; if (G.from_device === 'biyibi') { G.lang = 'zh'; } } else { G.show_minibar = '1'; G.show_inner_low = '0'; G.show_promo = '1'; G.show_leftguess = '1'; G.guess_fold = '0'; G.main_fold = '1'; G.lang = 'zh'; } runned = true; callback(); } else if (data.type === 'get_local_img') { G.localImg = data.value; if (G.aliSite) { G.loadImg = data.value + '120.gif'; G.noImg = data.value + 'default_load_image.png'; } } else if (data.type === 'user_extension_id') { G.userid = data.value; } else if (data.type === 'getUnion' && data.value) { G.union = data.value; } }); communicate.trigger({ 'type': 'user_extension_id' }); communicate.trigger({ 'type': 'get_permanent' }); communicate.trigger({ 'type': 'get_local_img' }); communicate.trigger({ 'type': 'getUnion', 'value': 'bajbgcodue_fugnhijoknl' }); }; var urltimes = 0; var listenUrlChange = function listenUrlChange() { if (urltimes > 99999) return; urltimes++; var url = location.href; if (!window.bjgGlobalStart) { window.bjgGlobalStart = Date.now(); } var k = setInterval(function () { if (url !== location.href || window.extNeedReload) { window.extNeedReload = false; __webpack_require__("316f9c352c6202560d16").log('ext reload start'); if (!$('#bjgext_mainbar').length && G.pageInfo.type === 2) { url = location.href; extConsole.warn('reload exit', G.pageInfo); return; } if (Date.now() - window.bjgGlobalStart < 2000) { extConsole.warn('reload exit'); url = location.href; return; } clearInterval(k); extConsole.log('begin reload ', { before: url, after: location.href }); __webpack_require__("d46abc7ed6163dbbd043").init(); } else { // require('common/extConsole').log('match') } }, 200); }; module.exports.init = function callee$0$0() { var event, installSource; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: event = __webpack_require__("74ff18b26ae830696f53"); event(G); if (G.site === 'amazon') G.site = G.logsite; if (G.site === 'shopee' || G.site === 'taobao' || G.site === '6pm' || G.site.indexOf('amazon') > -1 || G.site.indexOf('tmall') > -1 || G.site.indexOf('lining') > -1) { listenUrlChange(); } if (!(G.site === 'shopee')) { context$1$0.next = 7; break; } context$1$0.next = 7; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return $('.product-briefing .flex span').text(); })); case 7: if (!G.allowBackgroundRequest) { context$1$0.next = 12; break; } context$1$0.next = 10; return regeneratorRuntime.awrap(bgClient.get('/getStorage', { key: 'install_source' })); case 10: installSource = context$1$0.sent; if (installSource) { G.union = 'union_bijiago_' + installSource; } case 12: getConfigInfo(function () { util.tongjiLog('page_view'); util.getPermanent(function () { // require('./quanlogo').init() util.tongjiLog('union_log:' + G.union); __webpack_require__("407815218a61650063ce").init(); if (G.pageInfo.type === 2) { util.tongjiLog('product_page_visit'); if (G.aliSite) { __webpack_require__("1f677ede70b4f8bcb282").init2(); __webpack_require__("4e193c8dd6289ce0fdf9").init(); } product.init(); __webpack_require__("0e8895b83d8201a0ff47").init(); // if (G.ss_name !== 'priceDog') { __webpack_require__("238322f76284ba9e93e3").init(); // } markPage(); loadCss(); __webpack_require__("c4adb5832af3824ff1c6").init(); __webpack_require__("99967238159b55ea4e52").init(); } else if (G.pageInfo.type === 1) { markPage(); __webpack_require__("316f9c352c6202560d16").log('instanceId', G.instanceId); if (G.from_device === 'biyibi') { __webpack_require__("0fcac644ebc6e8959ae6"); } // if (G.ss_name !== 'priceDog') { __webpack_require__("6eb6300b1093d4b652fb").init(); __webpack_require__("ccd952a0cd9003e1d392").init(); // } util.getDicts(function () { // 比价狗暂时去掉跳转 // require('common/setForceInfo')() }); var hosts = location.host; if (hosts.indexOf('taobao') > -1 || hosts.indexOf('tmall') > -1) { __webpack_require__("a2212890cca82b6c8134").init(); } __webpack_require__("7b5af9900b7455f21ca0").init(); loadCss(); } }); }); window.bjgou_G = G; case 14: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "a8e056b741bca588f8d3": /***/ (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_PriceProtectJdLogin_vue_vue_type_template_id_e995141a_scoped_true___ = __webpack_require__("bbe645b542c0854a94d8"); /* 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_PriceProtectJdLogin_vue_vue_type_template_id_e995141a_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_PriceProtectJdLogin_vue_vue_type_template_id_e995141a_scoped_true___["b"]; }); /***/ }), /***/ "a961a3b75385dff22b7e": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { Object.defineProperty(exports, '__esModule', { value: true }); var getCouponInfo = __webpack_require__("047b30291b8b83e043ed"); var getQRCode = __webpack_require__("657bad1e7f3b602f7d70"); exports['default'] = { computed: { link: function link() { return __webpack_require__("4733a3dd803685ec596a").appendTbInfoForUrl(G.tb_server + '/extension/qrpage?union=' + G.union + '&dp_id=' + (this.dpId ? this.dpId : G.dp.dpId) + '&tag=' + this.tag); } }, methods: { getText: function getText(text) { var map = { '当前商品可领券': '當前商品可領券', '店铺券(满': '店鋪券(滿', '减': '減', '立即领取': '立即領取', '领券满': '領券滿', '淘宝APP扫码': '淘寶APP掃碼', '领店铺券': '領店鋪券' }; if (G.ss_name === 'priceDog') { return map[text]; } return text; }, over: function over(e) { var _this = this; if (this.img) return; if (this.loading) return; this.loading = true; __webpack_require__("83271c7588396d2d5e59").log('店铺券中间二维码', '悬浮'); if (this.useTb) { __webpack_require__("91f250ebeb8d5987491c").rawGet(G.u_server + ('/helper/qrcode?event=appQrcode' + (this.tag ? '&tag=' + this.tag : '') + '&dp_id=') + (this.dpId ? this.dpId : G.dp.dpId)).then(function (res) { console.log(res); if (typeof res === 'string') { res = JSON.parse(res); } _this.img = res.data.qrImgStr; }); } else { getCouponInfo({ pid: 'gwd-middle', coupon: { coupon_money: this.coupon.discount } }, function (data) { data._type = 'item'; data.tip = _this.coupon.limit + '-' + _this.coupon.discount; getQRCode(data, '', function (res) { _this.img = res[0].imgSrc; }); }); } } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "aa51cc982b2c1333cb43": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("b01e5dfe9f7aa1861635"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("4dd64b1e", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QRLink.vue?vue&type=style&index=1&id=673c66fa&scoped=true&lang=less&", function() { var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QRLink.vue?vue&type=style&index=1&id=673c66fa&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "aac0839f8078e3c8248c": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var request = __webpack_require__("91f250ebeb8d5987491c"); var detect = __webpack_require__("60624e018be49fb2d959"); var priceParser = __webpack_require__("e29ce4c2a4af273fcade"); var nowpage = 0; var globalPage = undefined; var time = 0; var globalDom = undefined; module.exports.init = function (data, dom) { if (G.forbidCoupon) return; if (G.aliSite) return; globalDom = dom; var tbData = userData.get('tbData'); time++; if (tbData.ss === time) { if (data.tmall.length === 0 && data.taobao.length === 0) { getHymInfo(render2); } else { var siteName = G.site; var siteId = detect.getSiteId(siteName); priceParser.init(siteId, function (price) { if (price && price > 0) { G.dp.oldPrice = price; G.dp.price = price; } render(data, tbData); }); } } }; var getHymInfo = function getHymInfo(callback) { if (true) return; var info = userData.get('other_info'); var url = G.server + '/extension/getCouponTao?keyword=' + encodeURIComponent(info.now.coreword) + '&class_id=' + info['code-server'].class_id + '&brand=' + encodeURIComponent(info.exact_arr.sbrand) + '&sige_id=' + info.now.site_id; request.get(url).done(function (data) { if (data && data.data && data.data.length > 0) { callback(data.data); } }); }; var render2 = function render2(data) { for (var i = 0; i < data.length; i++) { data[i].click_url = data[i].url; data[i].promoPri = data[i].currentPrice; data[i].price = data[i].originPrice; data[i].coupon_money = data[i].couponInfo; } renderBar(data); }; var render = function render(data, tbData) { var comarr = []; if (tbData.tmm && data.tmall.length > 0) { for (var i = 0; i < tbData.tmall.product.length; i++) { var itemi = tbData.tmall.product[i]; for (var j = 0; j < data.tmall.length; j++) { var itemj = data.tmall[j]; if (itemi.num_iid === itemj.reqid) { itemi.click_url = itemj.click_url; itemi.click_url2 = itemj.click_url2; itemi.coupon_money = itemj.coupon.coupon_money; itemi.sicon = "https://cdn.gwdang.com/images/favicon/83.ico"; itemi.promoPri = (Number(itemi.price) - itemj.coupon.coupon_money).toFixed(2); if (Number(itemi.promoPri) > G.dp.price) continue; comarr.push(itemi); } } } } if (tbData.tbb && data.taobao.length > 0) { for (var i = 0; i < tbData.taobao.product.length; i++) { var itemi = tbData.taobao.product[i]; for (var j = 0; j < data.taobao.length; j++) { var itemj = data.taobao[j]; if (itemi.num_iid === itemj.reqid) { itemi.click_url = itemj.click_url; itemi.click_url2 = itemj.click_url2; itemi.coupon_money = itemj.coupon.coupon_money; itemi.sicon = "https://cdn.gwdang.com/images/favicon/123.ico"; itemi.promoPri = (Number(itemi.price) - itemj.coupon.coupon_money).toFixed(2); if (Number(itemi.promoPri) > G.dp.price) continue; comarr.push(itemi); } } } } renderBar(comarr); }; var lunbo = function lunbo() { try { var dom = $('#miniCouponCom ul'); var _top = Number(dom.css('top').replace('px', '')); _top = _top - 62; nowpage++; if (nowpage === globalPage) { dom.css('top', '0px'); nowpage = 0; return; } dom.animate({ 'top': _top + 'px' }, 600); } catch (e) {} }; var renderBar = function renderBar(data) { data = data.sort(function (v1, v2) { if (Number(v1.promoPri) > Number(v2.promoPri)) return 1;else if (Number(v1.promoPri) === Number(v2.promoPri)) return 0;else return -1; }); globalPage = data.length; if (globalPage === 0) return; var html = __webpack_require__("7ee227137ec487360685"); if (location.host.indexOf('detail.ju.taobao') > -1 && G.ss_name === 'priceDog') { $('.pricedog-bar').before(template.compile(html)({ data: data, fmdv: G.from_device, lang: G.lang })); $('.botbar').css('margin-top', '150px'); } else { $(globalDom).append(template.compile(html)({ data: data, fmdv: G.from_device, lang: G.lang })); } setInterval(lunbo, 5000); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "ab5b31c736c8c944fb5a": /***/ (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_SectionTitle_vue_vue_type_style_index_0_id_0e0fcbce_scoped_true_lang_less___ = __webpack_require__("012a7f6370ba6b7ccbde"); /* 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_SectionTitle_vue_vue_type_style_index_0_id_0e0fcbce_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_SectionTitle_vue_vue_type_style_index_0_id_0e0fcbce_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_SectionTitle_vue_vue_type_style_index_0_id_0e0fcbce_scoped_true_lang_less____default.a); /***/ }), /***/ "abb2c55465e8bd1d8753": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var getPromoInfo = __webpack_require__("99967238159b55ea4e52"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var request = __webpack_require__("91f250ebeb8d5987491c"); var now_dp_id = undefined; var posPattern = { '360buy': ['#notice-downp', '.J-notify-sale', '.summary-price .dd .p-price+em', '#summary-wrap .dd .p-price', '.summary-price .dd>:last-child'], 'suning': ['#mainPrice dd #PriceNotice1', '#mainPrice dd .btn-price-notice', '#mainPrice dd .btn-price-business', '#mainPrice dd .mainprice'], 'taobao': [], 'tmall': [], 'dangdang': [] }; var getJdPromotion = function getJdPromotion(info, callback) { if (G.site !== '360buy') return; var dp = G.dp; var skuId = dp.itemId.replace('-3', ''); if (!dp.cat_id) return; var catarr = dp.cat_id.split('-'); catarr = catarr.slice(0, 3); var cat = encodeURIComponent(catarr.join(',')); var price = dp.price.toFixed(2); var area = $('.ui-area-text').attr('data-id').replace(/-/g, '_') + '_0'; var timeStr = new Date().getTime(); var url = 'https://cd.jd.com/promotion/v2?skuId=' + skuId + '&area=' + area + '&shopId=' + dp.shopId + '&venderId=' + dp.venderId + '&cat=' + cat + '&isCanUseDQ=isCanUseDQ-1&isCanUseJQ=isCanUseJQ-1&platform=0&orgType=2&jdPrice=' + price + '&appid=1&_=' + timeStr; request.get(url).done(function (data) { callback(info, data); }); }; var getProMidPage = function getProMidPage(id, callback) { var url = 'https://browser.gwdang.com/extension?ac=promoUrl&promo_id=' + id; request.get(url).done(function (data) { callback(data); }); }; var renderLink = function renderLink(info, data) { var info2 = info[1]; var couponId = undefined, promoId = undefined; var coupon = data.skuCoupon; var promo = data.prom.pickOneTag; var midPageId = undefined; if (!info2) { return; } for (var i = 0; i < info2.length; i++) { if (info2[i].indexOf('券:') > -1) { var nums = info2[i].match(/\d+/g); for (var j = 0; j < coupon.length; j++) { if (Number(nums[0]) === coupon[j].quota && Number(nums[1]) === coupon[j].discount) { couponId = coupon[j].batchId; } } } else if (info2[i].indexOf('促:') > -1) { var promstr = info2[i].replace('促:', ''); promstr = promstr.trim(); for (var j = 0; j < promo.length; j++) { if (promo[j].content.indexOf(promstr) > -1) { promoId = promo[j].pid; break; } } } } if (promoId && promoId.indexOf('_') > -1) { promoId = promoId.split('_')[0]; } if (couponId && promoId) { midPageId = promoId + ',' + couponId; } else if (couponId || promoId) { midPageId = couponId || promoId; } getProMidPage(midPageId, function (urlInfo) { if (urlInfo && urlInfo.link) { $('.dsj-promo-link').addClass('islink').attr('href', urlInfo.link).attr('target', '_blank'); cnzz.log('track:dsprice'); log('track:dsprice'); $('.dsj-promo-link').on('click', function () { cnzz.log('click:dsprice'); log('click:dsprice'); }); } }); }; var renderServerOnHandPriceResult = function renderServerOnHandPriceResult(resp) { var html = __webpack_require__("e71ad8f0190e9bc74221"); var dom = $('#coupon_box'); if (G.from_device.indexOf('bijiago') > -1 || G.from_device.indexOf('biyibi') > -1) { dom = $('#coupon_box_bjg'); html = __webpack_require__("ce62aaa755a52cbee0ff"); } else { $('.gwd-minibar-bg > .dsj-content').remove(); } if (dom.length === 0) { if (G.from_device.indexOf('bijiago') > -1 || G.from_device.indexOf('biyibi') > -1) { dom = $('.promo-box'); html = __webpack_require__("ce62aaa755a52cbee0ff"); } else { dom = $('#gwd_minibar'); } } if (G.from_device.indexOf('bijiago') > -1 || G.from_device.indexOf('biyibi') > -1) { $('#bjg-dsj-placeholder').replaceWith(template.compile(html)({ tle: '', desc: resp.promo_list.map(function (item) { if (item.id) { var trueUrl = item.id.indexOf('http') === 0 ? item.id : 'https:' + item.id; trueUrl = encodeURIComponent(trueUrl); var url = item.url_format.replace('$URL', trueUrl); return '<a href="' + url.replace('ext_promo_calc', 'promo_calc') + '" target="_blank" style="text-decoration: underline">' + item.text + '</a>'; } return item.text; }).join(';'), pri: parseFloat(resp.current_price).toFixed(2), lang: G.lang })); if ($('.promo-box').css('display') !== 'none') { setTimeout(function () { $('.promo-box').prev().css('border-bottom', '1px solid #e6e9eb'); $('.promo-box').prev().css('width', '100%'); }, 0); } } else if (resp && resp.promo_list) { var promo2 = { tle: '', desc: resp.promo_list.map(function (item) { if (item.id) { var trueUrl = item.id.indexOf('http') === 0 ? item.id : 'https:' + item.id; trueUrl = encodeURIComponent(trueUrl); var url = item.url_format.replace('$URL', trueUrl); // // if (item.tag === 'promo') { // globalPromoLink.push({ // text: item.text, // url: url.replace('ext_promo_calc', 'promo_calc') // }) // } // if (item.tag === 'coupon') { // globalCouponLink.push({ // text: item.text, // url: url.replace('ext_promo_calc', 'promo_calc') // }) // } return '<a href="' + url.replace('ext_promo_calc', 'promo_calc') + '" target="_blank" style="text-decoration: underline">' + item.text + '</a>'; } return item.text; }).join(';'), pri: parseFloat(resp.current_price).toFixed(2) }; $('#gwd-dsj-placeholder').replaceWith(template.compile(html)(promo2)); // if (globalPromoLink) { // $('#summary-promotion .p-promotions #prom .J-prom .prom-item:eq(0)').append(`<a href=${globalPromoLink.replace('ext_promo_calc', 'promo_calc_all')} target="_blank" style="color: #ee2f36; margin-left: 5px; font-size: 12px; white-space: nowrap">查看此活动全部商品<img src="https://cdn.gwdang.com/images/extensions/redArrow.svg" style="width: 10px; height: 10px;"></a>`) // } // if (globalCouponLink) { // $('#summary-quan .lh').append(`<a href=${globalCouponLink.replace('ext_promo_calc', 'promo_calc_all')} target="_blank" style="color: #ee2f36; margin-left: 5px; font-size: 12px; position: relative; top: 5px">查看此活动全部商品<img src="https://cdn.gwdang.com/images/extensions/redArrow.svg" style="width: 10px; height: 10px;"></a>`) // $('#summary-quan .lh').css('line-height', 0) // } // if (globalPromoLink.length) { // console.log(globalPromoLink) // const oriPromoList = $('#summary-promotion .p-promotions #prom .J-prom .prom-item') // console.log(oriPromoList) // debugger // } } __webpack_require__("62316f417955bec94cf4").init(); if (G.from_device.includes('bijiago') || G.from_device.indexOf('biyibi') > -1) { if (!window.gwd_G) { __webpack_require__("cceeed893387dc9fce45").init(); } } else { __webpack_require__("cceeed893387dc9fce45").init(); } var img = new Image(); var promotle = encodeURIComponent(resp.promo_text); img.src = G.tj_server + '/visit/?action=dspricelog&pagePri=' + G.dp.price + '&dsprice=' + resp.current_price + '&dp_id=' + now_dp_id + '&promo=' + promotle; cnzz.log('track:dspriceAll'); log('track:dspriceAll'); // 获取促销活动对应的网站页面 getJdPromotion(resp, renderLink); calwidth(); }; var calwidth = function calwidth() { // let logoW = $('.dsj-content>em').outerWidth() + 22; // let priW = $('.dsj-pri-info').outerWidth() + 10; // let remindW = $('.dsj-remind-icon').outerWidth() + 12; // let freeW = 460 - (logoW + priW + remindW) - 10; // $('.dsj-promo-link').width(freeW); }; module.exports.init = function (dp_id) { now_dp_id = dp_id; if (!posPattern[G.site]) return; getPromoInfo.getPrice(renderServerOnHandPriceResult); // getPromoInfo.getPrice(render) }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "ac002b164c5cca29df55": /***/ (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: "bjg-price-protect-auth gwd-column gwd-align", style: _vm.center ? "height: 163px;" : _vm.login ? "height: 126px" : "" }, [ !_vm.login || _vm.center ? _c("img", { style: "width: 340px; " + (_vm.center ? "" : "margin-top: 20px;"), attrs: { src: "https://cdn.bijiago.com/images/extensions/bijiago/price-protect@2x.png", alt: "" }, on: { click: function($event) { return _vm.goIntro() } } }) : _vm._e(), _vm._v(" "), _vm.center || !_vm.login ? _c( "div", { staticClass: "gwd-row gwd-align", staticStyle: { "margin-top": "15px" } }, [ _c("img", { staticStyle: { width: "14px", height: "14px" }, attrs: { src: _vm.img, alt: "" }, on: { click: function($event) { _vm.checked = !_vm.checked } } }), _vm._v(" "), _c( "span", { staticStyle: { "margin-left": "5px", "font-size": "12px", color: "#64615d" } }, [_vm._v("授权比价狗同步我的京东订单,便于申请价格保护")] ) ] ) : _vm._e(), _vm._v(" "), _vm.login && !_vm.center ? _c("div", { staticStyle: { height: "10px" } }) : _vm._e(), _vm._v(" "), _c( "button", { staticClass: "gwd-button", style: _vm.checked ? "background: linear-gradient(270deg, #FFCD47 0%, #FF9F22 100%);" : "background: #d6d6d6", on: { click: _vm.submit } }, [ _vm._v( "\n " + _vm._s( _vm.login ? "开启" + (_vm.center ? "授权" : "价格保护") : "登录开启价保" ) + "\n " ) ] ), _vm._v(" "), _vm.login && !_vm.center ? _c( "div", { staticClass: "gwd-row gwd-align", staticStyle: { "margin-top": "15px" } }, [ _c("img", { staticStyle: { width: "14px", height: "14px" }, attrs: { src: _vm.img, alt: "" }, on: { click: function($event) { _vm.checked = !_vm.checked } } }), _vm._v(" "), _c( "span", { staticStyle: { "margin-left": "5px", "font-size": "12px", color: "#64615d" } }, [_vm._v("授权比价狗同步我的京东订单,便于申请价格保护")] ) ] ) : _vm._e() ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "ad3ab4b4cd0a839309d6": /***/ (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_MemberCouponMiniBjg_vue_vue_type_style_index_0_id_c1c2cbdc_scoped_true_lang_less___ = __webpack_require__("eaa0b9c74f60eb2bb295"); /* 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_MemberCouponMiniBjg_vue_vue_type_style_index_0_id_c1c2cbdc_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_MemberCouponMiniBjg_vue_vue_type_style_index_0_id_c1c2cbdc_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_MemberCouponMiniBjg_vue_vue_type_style_index_0_id_c1c2cbdc_scoped_true_lang_less____default.a); /***/ }), /***/ "aecc11990691663bf0f8": /***/ (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_PriceDogMiniBar_vue_vue_type_style_index_0_id_72651e53_scoped_true_lang_less___ = __webpack_require__("1ace697eee9e6014c222"); /* 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_PriceDogMiniBar_vue_vue_type_style_index_0_id_72651e53_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_PriceDogMiniBar_vue_vue_type_style_index_0_id_72651e53_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_PriceDogMiniBar_vue_vue_type_style_index_0_id_72651e53_scoped_true_lang_less____default.a); /***/ }), /***/ "b01e5dfe9f7aa1861635": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-qr-bottom-line[data-v-673c66fa] {\n transform: scale(0.5);\n transform-origin: top center;\n white-space: nowrap;\n}\n.gwd-qr-bottom-line span.bold[data-v-673c66fa] {\n font-size: 22px;\n font-weight: bold;\n color: #EF6701;\n}\n.gwd-qr-bottom-line span.normal[data-v-673c66fa] {\n font-size: 16px;\n color: #070707;\n}\n.gwd-qr-logo[data-v-673c66fa] {\n position: absolute;\n left: 50%;\n top: 50%;\n width: 20px;\n height: 20px;\n margin-left: -10px;\n margin-top: -10px;\n}\n.gwd-app-button[data-v-673c66fa] {\n width: 123px;\n height: 26px;\n background: #FFF3ED;\n border-radius: 2px;\n border: 1px solid #FF9851;\n line-height: 26px;\n text-align: center;\n font-size: 0;\n justify-content: center;\n position: relative;\n cursor: pointer;\n}\n.gwd-app-button span[data-v-673c66fa] {\n font-size: 12px;\n color: #ee6701;\n margin-left: 4px;\n white-space: nowrap;\n}\n.gwd-app-button .gwd-app-qr-content[data-v-673c66fa] {\n position: absolute;\n width: 123px;\n height: 137px;\n background: #FFF3ED;\n border-radius: 0px 0px 2px 2px;\n border: 1px solid #FF9851;\n top: 24px;\n left: -1px;\n visibility: hidden;\n z-index: 999;\n}\n.gwd-app-button:hover .gwd-app-qr-content[data-v-673c66fa] {\n visibility: visible;\n}\n.gwd-app-button.gwd-mode-login[data-v-673c66fa] {\n position: absolute;\n left: 50%;\n margin-left: -93px;\n bottom: 310px;\n background: none!important;\n border: none!important;\n width: 186px;\n}\n.gwd-app-button.gwd-mode-login .gwd-app-qr-content[data-v-673c66fa] {\n width: 186px;\n height: 212px;\n background: none!important;\n border: none!important;\n top: 35px;\n visibility: visible;\n}\n.gwd-app-button.gwd-mode-login .gwd-app-qr-content .gwd-qr-img[data-v-673c66fa] {\n margin: 0;\n padding: 7px;\n border: 1px solid #d4d4d4;\n}\n.site-tmall .gwd-qr-img[data-v-673c66fa] {\n margin-bottom: 4px;\n}\n.site-tmall .gwd-app-button[data-v-673c66fa] {\n margin-left: 40px;\n}\n.site-taobao .gwd-qr-img[data-v-673c66fa] {\n margin-bottom: 4px;\n}\n.site-360buy[data-v-673c66fa] {\n margin-top: 15px;\n}\n.site-360buy .gwd-qr-img[data-v-673c66fa] {\n margin-bottom: 4px;\n}\n.site-360buy .gwd-app-button[data-v-673c66fa] {\n background: #FFEDED;\n border: 1px solid #FF3220;\n}\n.site-360buy .gwd-app-button span[data-v-673c66fa] {\n color: #ff3220;\n}\n.site-360buy .gwd-app-button .gwd-app-qr-content[data-v-673c66fa] {\n background: #FFEDED;\n border: 1px solid #FF3220;\n}\n.site-360buy .gwd-app-button .gwd-app-qr-content .gwd-qr-bottom-line .bold[data-v-673c66fa] {\n color: #ff3220;\n}\n.site-360buy .gwd-app-button .gwd-app-qr-content .gwd-qr-bottom-line .normal[data-v-673c66fa] {\n color: #070707;\n}\n.gwd-qr-hint[data-v-673c66fa] {\n font-size: 12px;\n color: #7d7e80;\n margin-left: 11px;\n font-family: 'microsoft yahei';\n}\n", ""]); // exports /***/ }), /***/ "b0c35ce530f329f4b886": /***/ (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_ShopCouponTop_vue_vue_type_script_lang_js___ = __webpack_require__("634a5c7438fad1031724"); /* 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_ShopCouponTop_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_ShopCouponTop_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_ShopCouponTop_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_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_ShopCouponTop_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_ShopCouponTop_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "b110ddf767e87a112ae3": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-member-qr[data-v-498face2] {\n width: 148px;\n height: 156px;\n background: #FFF7F7;\n border: 1px solid #FF3D5D;\n}\n.gwd-member-qr span[data-v-498face2] {\n display: inline-block;\n}\n.gwd-member-qr img[data-v-498face2] {\n margin-top: 7px;\n width: 120px;\n height: 120px;\n}\n.gwd-member-qr .gwd-bigger[data-v-498face2] {\n color: #FF3D5D;\n font-size: 13px;\n}\n.gwd-member-qr .gwd-font11[data-v-498face2] {\n font-size: 12px;\n transform: scale(0.8333);\n transform-origin: bottom center;\n}\n.gwd-member-qr .gwd-bottom-desc[data-v-498face2] {\n line-height: 12px;\n font-size: 12px;\n transform: scale(0.833);\n transform-origin: top center;\n color: #999999;\n}\n", ""]); // exports /***/ }), /***/ "b12786f17e483addefd7": /***/ (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_CommonCouponBarMini_vue_vue_type_script_lang_js___ = __webpack_require__("426d7c3d6bd989255c92"); /* 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_CommonCouponBarMini_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_CommonCouponBarMini_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_CommonCouponBarMini_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_CommonCouponBarMini_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_CommonCouponBarMini_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "b15828ee7e842b4ea2fb": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function (isbn) { /*isbn 十位转 13位 odd jishu even 偶数*/ var odd = 0, even = 0, newNum; isbn = isbn.toString(); if (isbn.length > 10) return isbn; var str = isbn.slice(0, 9); str = '978' + str; for (var i = 0; i < str.length; i++) { /*因为从零开始的 所以奇偶交换*/ if (i % 2 === 0) { odd += Number(str[i]); } else { even += Number(str[i]); } newNum = 10 - (odd + even * 3) % 10; } str += newNum.toString(); return str; }; /***/ }), /***/ "b1a1dff154ace0dec0e9": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjg-qr-error[data-v-29b33b2e] {\n width: 118px;\n height: 118px;\n background: white;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.bjg-qr-error img[data-v-29b33b2e] {\n margin-top: 22px;\n width: 32px;\n height: 32px;\n}\n.bjg-qr-error .grayText[data-v-29b33b2e] {\n color: #999999;\n display: inline-block;\n font-size: 20px;\n width: 125px;\n text-align: center;\n line-height: 32px;\n transform: scale(0.5);\n transform-origin: top center;\n}\n.bjg-qr-error .grayText .red[data-v-29b33b2e] {\n color: #ff2d53;\n text-decoration: underline;\n cursor: pointer;\n}\n", ""]); // exports /***/ }), /***/ "b2f995ebb085aa2e8773": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var request = __webpack_require__("91f250ebeb8d5987491c"); var sendFeedback = function sendFeedback(i, m) { var contact = m; var feedbackTxt = i; contact += 'bijiago'; if (G.ss_name === 'priceDog') { contact += '-priceDog'; } if (G.from_device === 'biyibi') { contact = m + '-biyibi插件用户'; } var agent = navigator.userAgent.toLowerCase(); var refer = encodeURIComponent(location.href); var url = G.server + '/brwext/feedback?nick=' + contact + '&content=' + feedbackTxt + '&agent=' + agent + '&refer=' + refer + '&from_device=' + G.from_device + '&format=json'; request.get(url).then(function (msg) { if (msg && (msg.code == 1 || msg.status === 1)) { $('#feedback_detail textarea').val(''); $('#feedback_detail input').val(''); $('#feedback_detail').hide(); } }); }; var renderDetail = function renderDetail() { var lang = __webpack_require__("cf094fe1ab460bb584a8"); var config = __webpack_require__("782aa4484d980c52f14b"); var html = __webpack_require__("04b4f636c0589e42aee5"); $('.bjgext-feedback').append(template.compile(html)({ content: lang.getString(config, 'content'), contact: lang.getString(config, 'contact'), mail: lang.getString(config, 'mail'), submit: lang.getString(config, 'submit'), showQQ: G.ss_name !== 'priceDog' && G.from_device !== 'biyibi' })); $('.bjgext-feedback').on('mouseenter', function () { if ($(window).width() - $('#bjgext_mainbar').outerWidth() < 150) { $('#feedback_detail').css('right', '0px'); } $('#feedback_detail').show(); }); $('.bjgext-feedback').on('mouseleave', function () { $('#feedback_detail').hide(); }); $('#feedback_btn').on('click', function () { var info = $('#feedback_detail textarea').val(); var mail = $('#feedback_detail input').val(); if (!info) return; sendFeedback(info, mail); }); $('.bjgext-feedback').on('DOMNodeRemoved', function (e) { console.warn(e.target, ' was removed'); }); }; module.exports.init = function () { renderDetail(); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "b4d911890dce1a5a38f7": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjg-mini-products[data-v-5637898a] {\n width: 462px;\n /*height:243px;*/\n padding-bottom: 28px;\n background: #ffffff;\n /*box-shadow:0px 2px 4px 0px rgba(226,226,226,1);*/\n /*border-radius:0px 0px 4px 4px;*/\n border: 1px solid #e6e9eb;\n display: flex;\n line-height: initial;\n flex-direction: row;\n}\n.bjg-mini-products img[data-v-5637898a] {\n display: inline-block;\n vertical-align: middle;\n}\n.bjg-mini-products .turnImg[data-v-5637898a] {\n margin-top: 94px;\n width: 14px;\n height: 24px;\n cursor: pointer;\n}\n.bjg-mini-products .left-turn[data-v-5637898a] {\n margin-left: 20px;\n margin-right: 6px;\n}\n.bjg-mini-products .right-turn[data-v-5637898a] {\n margin-left: 6px;\n margin-right: 20px;\n transform: rotate(180deg);\n}\n.bjg-mini-products .bjg-cmp-product[data-v-5637898a]:hover {\n text-decoration: none;\n}\n.bjg-mini-products .bjg-cmp-product[data-v-5637898a] {\n display: flex;\n flex-direction: column;\n cursor: pointer;\n width: 177px;\n align-items: center;\n}\n.bjg-mini-products .bjg-cmp-product img[data-v-5637898a] {\n width: 100px;\n height: 100px;\n margin-top: 16px;\n}\n.bjg-mini-products .bjg-cmp-product .redPrice[data-v-5637898a] {\n margin-top: 14px;\n color: #ff6132;\n font-size: 14px;\n}\n.bjg-mini-products .bjg-cmp-product .iconText[data-v-5637898a] {\n vertical-align: middle;\n color: #6b6761;\n font-size: 12px;\n margin-top: 10px;\n font-weight: bold;\n}\n.bjg-mini-products .bjg-cmp-product .iconText img[data-v-5637898a] {\n width: 16px;\n height: 16px;\n margin-right: 6px;\n margin-top: 0;\n}\n.bjg-mini-products .bjg-cmp-product .productTitle[data-v-5637898a] {\n display: -webkit-box;\n color: #6b6761;\n font-size: 12px;\n margin-top: 9px;\n height: 40px;\n line-height: 20px;\n text-overflow: ellipsis;\n -webkit-box-orient: vertical;\n overflow: hidden;\n -webkit-line-clamp: 2;\n}\n", ""]); // exports /***/ }), /***/ "b641ddb65424a2fff18e": /***/ (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_GwdA_vue_vue_type_template_id_15561ebb___ = __webpack_require__("6c494a72f1fce85e389d"); /* 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_GwdA_vue_vue_type_template_id_15561ebb___["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_GwdA_vue_vue_type_template_id_15561ebb___["b"]; }); /***/ }), /***/ "b753c5719ef15e48dbee": /***/ (function(module, exports, __webpack_require__) { "use strict"; var pidmid1 = [{ "token": "f9d03911-a442-43bd-af1a-ed5683cc12fe", "pid": ["mm_426650165_525500037_108931700165", "mm_426650165_525500037_108930000270", "mm_426650165_525500037_108932000092", "mm_426650165_525500037_108930250277", "mm_426650165_525500037_108931900125", "mm_426650165_525500037_108931350207", "mm_426650165_525500037_108929850311", "mm_426650165_525500037_108930250279", "mm_426650165_525500037_108931800131", "mm_426650165_525500037_108931300207", "mm_426650165_525250037_108931150245", "mm_426650165_525250037_108930500276", "mm_426650165_525250037_108930750263", "mm_426650165_525250037_108932100083", "mm_426650165_525250037_108931950119", "mm_426650165_525250037_108930950262", "mm_426650165_525250037_108930350261", "mm_426650165_525250037_108930250283", "mm_426650165_525250037_108930200282", "mm_426650165_525250037_108931250201", "mm_426650165_523350136_108931850127", "mm_426650165_523350136_108930650280", "mm_426650165_523350136_108930350264", "mm_426650165_523350136_108930950268", "mm_426650165_523350136_108930100317", "mm_426650165_523350136_108931850128", "mm_426650165_523350136_108929950293", "mm_426650165_523350136_108930200286", "mm_426650165_523350136_108930650283", "mm_426650165_523350136_108930500281", "mm_426650165_525850029_108930200296", "mm_426650165_525850029_108931500221", "mm_426650165_525850029_108930800276", "mm_426650165_525850029_108930100327", "mm_426650165_525850029_108930950280", "mm_426650165_525850029_108929900309", "mm_426650165_525850029_108929750355", "mm_426650165_525850029_108930800277", "mm_426650165_525850029_108931050272", "mm_426650165_525850029_108931100254", "mm_426650165_524650046_108931050276", "mm_426650165_524650046_108931300221", "mm_426650165_524650046_108930150290", "mm_426650165_524650046_108931700195", "mm_426650165_524650046_108930750296", "mm_426650165_524650046_108931200274", "mm_426650165_524650046_108931250221", "mm_426650165_524650046_108930200304", "mm_426650165_524650046_108930700319", "mm_426650165_524650046_108931050278"] }, { "token": "7a538f42-b7d5-40fc-ab9f-d57fd8c64b36", "pid": ["mm_426760139_523800144_108930850330", "mm_426760139_523800144_108930000320", "mm_426760139_523800144_108932100150", "mm_426760139_523800144_108930850334", "mm_426760139_523800144_108930650350", "mm_426760139_523800144_108929800387", "mm_426760139_523800144_108930650351", "mm_426760139_523800144_108932000150", "mm_426760139_523800144_108931450292", "mm_426760139_523800144_108930300340", "mm_426760139_525850033_108931450296", "mm_426760139_525850033_108931150315", "mm_426760139_525850033_108931150316", "mm_426760139_525850033_108931900190", "mm_426760139_525850033_108930950330", "mm_426760139_525850033_108931450297", "mm_426760139_525850033_108931650225", "mm_426760139_525850033_108930900342", "mm_426760139_525850033_108931000359", "mm_426760139_525850033_108930000332", "mm_426760139_524350044_108930950334", "mm_426760139_524350044_108929800394", "mm_426760139_524350044_108930100388", "mm_426760139_524350044_108931250285", "mm_426760139_524350044_108930550360", "mm_426760139_524350044_108930500350", "mm_426760139_524350044_108930350341", "mm_426760139_524350044_108931350291", "mm_426760139_524350044_108931900199", "mm_426760139_524350044_108931150325", "mm_426760139_526050036_108929950378", "mm_426760139_526050036_108931350297", "mm_426760139_526050036_108931950197", "mm_426760139_526050036_108930250377", "mm_426760139_526050036_108929900387", "mm_426760139_526050036_108929800400", "mm_426760139_526050036_108930200364", "mm_426760139_526050036_108931900204", "mm_426760139_526050036_108930150355", "mm_426760139_526050036_108930500355", "mm_426760139_524750051_108930450351", "mm_426760139_524750051_108931050335", "mm_426760139_524750051_108930350352", "mm_426760139_524750051_108929850398", "mm_426760139_524750051_108930750363", "mm_426760139_524750051_108931550267", "mm_426760139_524750051_108931550269", "mm_426760139_524750051_108931450321", "mm_426760139_524750051_108930450353", "mm_426760139_524750051_108931000377"] }]; var pidTop1 = [{ "token": "7fe96ce2-ebbf-40f6-907e-40134566f3f6", "pid": ["mm_133413248_524550053_108930250422", "mm_133413248_524550053_108930650424", "mm_133413248_524550053_108930450404", "mm_133413248_524550053_108930050434", "mm_133413248_524550053_108930550425", "mm_133413248_524550053_108931900263", "mm_133413248_524550053_108930050436", "mm_133413248_524550053_108929900448", "mm_133413248_524550053_108931850274", "mm_133413248_524550053_108931200388", "mm_133413248_525150043_108930900405", "mm_133413248_525150043_108930750414", "mm_133413248_525150043_108931400338", "mm_133413248_525150043_108930200432", "mm_133413248_525150043_108932100233", "mm_133413248_525150043_108929750461", "mm_133413248_525150043_108931500336", "mm_133413248_525150043_108930100453", "mm_133413248_525150043_108931850277", "mm_133413248_525150043_108929750465", "mm_133413248_525350045_108932100242", "mm_133413248_525350045_108930550432", "mm_133413248_525350045_108931100386", "mm_133413248_525350045_108930500412", "mm_133413248_525350045_108930400403", "mm_133413248_525350045_108930350414", "mm_133413248_525350045_108930400404", "mm_133413248_525350045_108930750421", "mm_133413248_525350045_108931650312", "mm_133413248_525350045_108931950258"] }]; var pidBtm1 = [{ "token": "7fe96ce2-ebbf-40f6-907e-40134566f3f6", "pid": ["mm_133413248_526050048_108929950446", "mm_133413248_526050048_108929900455", "mm_133413248_526050048_108930850407", "mm_133413248_526050048_108931200400", "mm_133413248_526050048_108930500415", "mm_133413248_526050048_108930700435", "mm_133413248_526050048_108931250349", "mm_133413248_526050048_108930100461", "mm_133413248_526050048_108931800304", "mm_133413248_526050048_108931450393", "mm_133413248_524950051_108931200402", "mm_133413248_524950051_108930350419", "mm_133413248_524950051_108931950262", "mm_133413248_524950051_108930150419", "mm_133413248_524950051_108931200403", "mm_133413248_524950051_108930250435", "mm_133413248_524950051_108929850463", "mm_133413248_524950051_108930900414", "mm_133413248_524950051_108930700436", "mm_133413248_524950051_108931500348", "mm_133413248_524950051_108929950449"] }]; var pidmid2 = [{ "token": "93a5dde6-d424-4f2c-9041-f1b38a3929f4", "pid": ["mm_132165438_523450142_108931900339", "mm_132165438_523450142_108931450464", "mm_132165438_523450142_108932500014", "mm_132165438_523450142_108932700006", "mm_132165438_523450142_108930950466", "mm_132165438_523450142_108932250042", "mm_132165438_523450142_108930900479", "mm_132165438_523450142_108931900341", "mm_132165438_523450142_108931950352", "mm_132165438_523450142_108931600361"] }]; var pidBtm2 = [{ "token": "93a5dde6-d424-4f2c-9041-f1b38a3929f4", "pid": ["mm_132165438_525550053_108932050318", "mm_132165438_525550053_108930900480", "mm_132165438_525550053_108931900343", "mm_132165438_525550053_108931350424", "mm_132165438_525550053_108932800003"] }]; var pidmid3 = [{ "token": "93a5dde6-d424-4f2c-9041-f1b38a3929f4", "pid": ["mm_132165438_525550053_108931750377", "mm_132165438_525550053_108932500018", "mm_132165438_525550053_108930400476", "mm_132165438_525550053_108930900484", "mm_132165438_525550053_108931200474"] }]; var pidBtm3 = [{ "token": "93a5dde6-d424-4f2c-9041-f1b38a3929f4", "pid": ["mm_132165438_525550053_108930500500", "mm_132165438_525550053_108932300028", "mm_132165438_525550053_108931950357", "mm_132165438_525550053_108930400480", "mm_132165438_525550053_108932850003"] }]; var pidmid4 = [{ "token": "93a5dde6-d424-4f2c-9041-f1b38a3929f4", "pid": ["mm_132165438_525200048_108930300464", "mm_132165438_525200048_108930450468", "mm_132165438_525200048_108931150438", "mm_132165438_525200048_108930400439", "mm_132165438_525200048_108931850324", "mm_132165438_525200048_108931650353", "mm_132165438_525200048_108931850325", "mm_132165438_525200048_108932150015", "mm_132165438_525200048_108930300466", "mm_132165438_525200048_108930850465"] }]; var pidmid5 = [{ "token": "93a5dde6-d424-4f2c-9041-f1b38a3929f4", "pid": ["mm_132165438_523350143_108930500465", "mm_132165438_523350143_108931350393", "mm_132165438_523350143_108932000281", "mm_132165438_523350143_108931350393", "mm_132165438_523350143_108930900458", "mm_132165438_523350143_108929900491", "mm_132165438_523350143_108930250479", "mm_132165438_523350143_108931600334", "mm_132165438_523350143_108930250481", "mm_132165438_523350143_108932150018", "mm_132165438_523350143_108931350397", "mm_132165438_523350143_108930550484"] }]; var pidmid6 = [{ "token": "93a5dde6-d424-4f2c-9041-f1b38a3929f4", "pid": ["mm_132165438_524800058_108931150444", "mm_132165438_524800058_108930000457", "mm_132165438_524800058_108931800348", "mm_132165438_524800058_108930400446", "mm_132165438_524800058_108930400448", "mm_132165438_524800058_108931900316", "mm_132165438_524800058_108931550374", "mm_132165438_524800058_108929900495", "mm_132165438_524800058_108931200451", "mm_132165438_524800058_108930250485"] }]; // pid-1 gwd pid-2 bjg pid-3 bjg-923253 pid-4 kuaik pid-5 east pid-6 universal var pidPattern = { "pid-1": { "mini": pidmid1, "top": pidTop1, "bottom": pidBtm1 }, "pid-2": { "mini": pidmid2, "bottom": pidBtm2 }, "pid-3": { "mini": pidmid3, "bottom": pidBtm3 }, "pid-4": { "mini": pidmid4, "bottom": pidmid4 }, "pid-5": { "mini": pidmid5, "bottom": pidmid5 }, "pid-6": { "mini": pidmid6, "bottom": pidmid6 }, "pid-ChenHong": { "mini": [{ "token": "198d49fd-cdf1-414b-9ed3-bfd52052b07f", "pid": ["mm_556360192_1116550153_109805450078"] }] }, "pid-firefox": { "top": [{ "token": "873b666f-a598-4860-95ef-1844a9450574", "pid": ["mm_556360192_1246500082_109939250379", "mm_556360192_1246500082_109940900274", "mm_556360192_1246500082_109948350097", "mm_556360192_1246500082_109945700200", "mm_556360192_1246500082_109941150299"] }], "mini": [{ "token": "873b666f-a598-4860-95ef-1844a9450574", "pid": ["mm_556360192_1246500082_109941750278", "mm_556360192_1246500082_109946850177", "mm_556360192_1246500082_110011050405", "mm_556360192_1246500082_109940200335", "mm_556360192_1246500082_109941100285"] }] }, "pid-bjg-923253": { "mini": [{ "token": "f1c0d7fb-0724-4956-8e70-e8347d0cf895", "pid": ["mm_890050030_1305700395_110035950035", "mm_890050030_1305700395_110035100074", "mm_890050030_1305700395_110033050148", "mm_890050030_1305700395_110030550187", "mm_890050030_1305700395_110028400296"] }], "bottom": [{ "token": "f1c0d7fb-0724-4956-8e70-e8347d0cf895", "pid": ["mm_890050030_1305700395_110026800374", "mm_890050030_1305700395_110026900375", "mm_890050030_1305700395_110030600222", "mm_890050030_1305700395_110030350240", "mm_890050030_1305700395_110031350190"] }], "search": [{ "token": "f1c0d7fb-0724-4956-8e70-e8347d0cf895", "pid": ["mm_890050030_1305700395_110036400016", "mm_890050030_1305700395_110027400349", "mm_890050030_1305700395_110027150373", "mm_890050030_1305700395_110035800045", "mm_890050030_1305700395_110032600159"] }], "compare": [{ "token": "f1c0d7fb-0724-4956-8e70-e8347d0cf895", "pid": ["mm_890050030_1305700395_110036350026", "mm_890050030_1305700395_110035250074", "mm_890050030_1305700395_110031550184", "mm_890050030_1305700395_110031550183", "mm_890050030_1305700395_110027850312"] }] }, "pid-bjg-union": { "mini": [{ "token": "f1c0d7fb-0724-4956-8e70-e8347d0cf895", "pid": ["mm_890050030_1305700395_110033000160", "mm_890050030_1305700395_110033100166", "mm_890050030_1305700395_110034350087", "mm_890050030_1305700395_110034500107", "mm_890050030_1305700395_110034650096"] }], "bottom": [{ "token": "f1c0d7fb-0724-4956-8e70-e8347d0cf895", "pid": ["mm_890050030_1305700395_110034700080", "mm_890050030_1305700395_110031850193", "mm_890050030_1305700395_110030450207", "mm_890050030_1305700395_110029050242", "mm_890050030_1305700395_110028800257"] }], "search": [{ "token": "f1c0d7fb-0724-4956-8e70-e8347d0cf895", "pid": ["mm_890050030_1305700395_110027500316", "mm_890050030_1305700395_110026700416", "mm_890050030_1305700395_110025850493", "mm_890050030_1305700395_110029450239", "mm_890050030_1305700395_110034600075"] }], "compare": [{ "token": "f1c0d7fb-0724-4956-8e70-e8347d0cf895", "pid": ["mm_890050030_1305700395_110035750063", "mm_890050030_1305700395_110033250122", "mm_890050030_1305700395_110032550136", "mm_890050030_1305700395_110027200337", "mm_890050030_1305700395_110026000397"] }] }, "pid-bjg-union-uos": { "mini": [{ "token": "f1c0d7fb-0724-4956-8e70-e8347d0cf895", "pid": ["mm_890050030_1305700395_110033000160", "mm_890050030_1305700395_110033100166", "mm_890050030_1305700395_110034350087", "mm_890050030_1305700395_110034500107", "mm_890050030_1305700395_110034650096"] }], "bottom": [{ "token": "f1c0d7fb-0724-4956-8e70-e8347d0cf895", "pid": ["mm_890050030_1305700395_110034700080", "mm_890050030_1305700395_110031850193", "mm_890050030_1305700395_110030450207", "mm_890050030_1305700395_110029050242", "mm_890050030_1305700395_110028800257"] }], "search": [{ "token": "f1c0d7fb-0724-4956-8e70-e8347d0cf895", "pid": ["mm_890050030_1305700395_110027500316", "mm_890050030_1305700395_110026700416", "mm_890050030_1305700395_110025850493", "mm_890050030_1305700395_110029450239", "mm_890050030_1305700395_110034600075"] }], "compare": [{ "token": "f1c0d7fb-0724-4956-8e70-e8347d0cf895", "pid": ["mm_890050030_1305700395_110035750063", "mm_890050030_1305700395_110033250122", "mm_890050030_1305700395_110032550136", "mm_890050030_1305700395_110027200337", "mm_890050030_1305700395_110026000397"] }] }, "pid-kuaik": { "default": [{ "token": "f18dd54e-ad55-4726-8e7c-5d662cb7f59a", "pid": ["mm_890410049_1303100468_110036350166", "mm_890410049_1303100468_110034400195", "mm_890410049_1303100468_110031800316", "mm_890410049_1303100468_110031000338", "mm_890410049_1303100468_110029600371"] }] }, 'pid-east': { mini: [{ token: "f18dd54e-ad55-4726-8e7c-5d662cb7f59a", pid: ["mm_890410049_1303100468_110036150169", "mm_890410049_1303100468_110031250275", "mm_890410049_1303100468_110031150310", "mm_890410049_1303100468_110027200475", "mm_890410049_1303100468_110027200474"] }], compare: [{ token: "f18dd54e-ad55-4726-8e7c-5d662cb7f59a", pid: ["mm_890410049_1303100468_110035500181", "mm_890410049_1303100468_110033450257", "mm_890410049_1303100468_110031850331", "mm_890410049_1303100468_110030300359", "mm_890410049_1303100468_110029800314"] }] }, 'pid-universal': { mini: [{ token: "f18dd54e-ad55-4726-8e7c-5d662cb7f59a", pid: ["mm_890410049_1303100468_110035150208", "mm_890410049_1303100468_110033150297", "mm_890410049_1303100468_110030900315", "mm_890410049_1303100468_110030200333", "mm_890410049_1303100468_110029600368"] }], compare: [{ token: "f18dd54e-ad55-4726-8e7c-5d662cb7f59a", pid: ["mm_890410049_1303100468_110033650243", "mm_890410049_1303100468_110033100283", "mm_890410049_1303100468_110032900269", "mm_890410049_1303100468_110032600287", "mm_890410049_1303100468_110028700393"] }] }, 'pid-cchrome': { mini: [{ token: "f18dd54e-ad55-4726-8e7c-5d662cb7f59a", pid: ["mm_890410049_1303100468_110036700108", "mm_890410049_1303100468_110034500228", "mm_890410049_1303100468_110031400306", "mm_890410049_1303100468_110029350360", "mm_890410049_1303100468_110028500408"] }], search: [{ token: "f18dd54e-ad55-4726-8e7c-5d662cb7f59a", pid: ["mm_890410049_1303100468_110035750202", "mm_890410049_1303100468_110034300231", "mm_890410049_1303100468_110032950285", "mm_890410049_1303100468_110031750311", "mm_890410049_1303100468_110027300479"] }] } }; module.exports.init = function (id, style) { style = style || "mini"; if (!id) return; var pidItemObj = pidPattern[id]; var pidItem = pidItemObj[style]; if (pidItem.length === 1) { pidItem = pidItem[0]; } else { pidItem = pidItem[parseInt(Math.random() * 2)]; } var pids = pidItem.pid; var size = pids.length; var pid1 = pids[parseInt(Math.random() * size)]; var pitem = { token: pidItem.token, pid: pid1 }; return pitem; }; /***/ }), /***/ "b7625ccf65439ca48f6a": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__QRLinkLeft_vue_vue_type_template_id_b671e2be_scoped_true___ = __webpack_require__("12353e6c503e80823ba4"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QRLinkLeft_vue_vue_type_script_lang_js___ = __webpack_require__("5718695c1fa25d021f07"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__QRLinkLeft_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__QRLinkLeft_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__QRLinkLeft_vue_vue_type_style_index_0_id_b671e2be_scoped_true_lang_less___ = __webpack_require__("87038ee9f896d5ddf0a2"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__QRLinkLeft_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__QRLinkLeft_vue_vue_type_template_id_b671e2be_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__QRLinkLeft_vue_vue_type_template_id_b671e2be_scoped_true___["b" /* staticRenderFns */], false, null, "b671e2be", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('b671e2be')) { api.createRecord('b671e2be', component.options) } else { api.reload('b671e2be', component.options) } module.hot.accept("./QRLinkLeft.vue?vue&type=template&id=b671e2be&scoped=true&", function () { api.rerender('b671e2be', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/QRLinkLeft.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "b7b3e4b08d38d55b3c1e": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("085b641392b4a9d141ac"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("afb9a5ee", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./TransPort.vue?vue&type=style&index=0&id=666fed93&scoped=true&lang=less&", function() { var newContent = require("!!../../../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!./TransPort.vue?vue&type=style&index=0&id=666fed93&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "b80e0015559d9b54ff50": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($) { var pagerParser = { timeout: 1000, tleEdit: function tleEdit(tle) { tle = tle || ''; tle = tle.replace('[广告]', ''); return tle; }, priceFormatter: function priceFormatter(price, radixPoint, split, site_id) { radixPoint = radixPoint || '.'; split = split || ','; price = '' + price; var temp = price.replace(split, '').replace(radixPoint, '.'); temp = temp.match(/[0-9.]+/); if (temp) { try { return parseFloat(temp); } catch (e) { return -1; } } }, template: function template(items_sel, href_sel, price_sel, tle_sel) { var items = document.querySelectorAll(items_sel); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector(href_sel).href; var pridom = items[i].querySelector(price_sel); if (!pridom) continue; var price = pridom.textContent.trim(); if (!price) continue; if (tle_sel) { var tledom = items[i].querySelector(tle_sel); if (!tledom) continue; var tle = tledom.textContent.trim(); } r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'tle': tle || '', 'crc32': '' }); } catch (e) { continue; } } return r; } }; //amazon pagerParser[1] = function (document) { var r = []; var items = document.querySelectorAll('.s-result-item'); for (var i = 0; i < items.length; ++i) { try { var img = items[i].querySelector('.s-access-image'); while (!img.parentNode.href && img.parentNode != document.body) { img = img.parentNode; } if (img.parentNode == document.body) { continue; } var href = img.parentNode.href; var price = items[i].querySelector('div>.a-spacing-mini>.a-spacing-none>a>span.a-color-price'); var tle = items[i].querySelector('div>.a-spacing-mini>.a-spacing-none>a.s-color-twister-title-link h2'); if (!price) { price = items[i].querySelector('span.a-color-price'); } tle = pagerParser.tleEdit(tle.textContent); r.push({ 'url': href, 'price': pagerParser.priceFormatter(price.textContent), 'tle': tle, 'crc32': '' }); } catch (e) { continue; } } return r; }; //dangdang pagerParser[2] = function (document) { var items = document.querySelectorAll('#search_nature_rg li'); if (!items.length) { items = document.querySelectorAll('#content .shop_box'); } if (!items.length) { items = document.querySelectorAll('.shoplist>ul>li'); } var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a.pic').href; var price = items[i].querySelector('.price>span').textContent; var tle = items[i].querySelector('p.name>a').textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'tle': tle, 'crc32': '' }); } catch (e) { continue; } } return r; }; //jd pagerParser[3] = function (document) { return pagerParser.template('.m-list .gl-warp>li', '.p-img>a', '.p-price em+i', '.p-name>a>em'); }; //ouku pagerParser[6] = function (document) { return pagerParser.template('.item-block', 'a.ctr-track', 'a.price'); }; //newegg pagerParser[7] = function (document) { return pagerParser.template('.main .prolist>li', 'a', 'span.price'); }; //m18 pagerParser[10] = function (document) { return pagerParser.template('.item', 'a.thmb', '.prc>strong'); }; //sephora pagerParser[12] = function (document) { return pagerParser.template('#searchResultListDiv li', '.proPic>a', '.proPrice'); }; //lefeng pagerParser[13] = function (document) { return pagerParser.template('#productDivGroup>.pruwrap', 'a', 'span.price'); }; //s.cn pagerParser[14] = function (document) { return pagerParser.template('.product_list>dl', 'dt>a', 'i.price'); }; //menglu pagerParser[16] = function (document) { return pagerParser.template('.smList>ul>li', '.pro155 a', 'span.off'); }; //moonbase pagerParser[17] = function (document) { return pagerParser.template('.chapList dl', 'a', 'span>font'); }; //keede pagerParser[18] = function (document) { return pagerParser.template('#goodsPanel li[class]', 'a', '.classify_price>span'); }; //vancl pagerParser[19] = function (document) { return pagerParser.template('#vanclproducts>ul>li', '.pic a', '.Sprice'); }; //okbuy pagerParser[21] = function (document) { return pagerParser.template('.gl-item', '.gl-img>a', '.okprice'); }; //letao pagerParser[22] = function (document) { return pagerParser.template('.pro_list ul li', '.pro_img>a', '.pro_price'); }; //taoxie pagerParser[24] = function (document) { return pagerParser.template('#list>ul>li', '.pic>a', '.real-price>em'); }; //suning pagerParser[25] = function (document) { setTimeout(function () { document._links = pagerParser.template('.product-list li', 'a.sellPoint', '.price-box .def-price', '.title-selling-point'); }, 2000); return { wait: true }; }; //lusen pagerParser[27] = function (document) { return pagerParser.template('.shows', 'a', '.new'); }; //gome pagerParser[28] = function (document) { return pagerParser.template('#product-box>li', 'a.item-link', '.price'); }; //yhd pagerParser[31] = function (document) { return pagerParser.template('#itemSearchList .mod_search_pro', '.proImg a', '.proPrice .num'); }; //leyou pagerParser[33] = function (document) { return pagerParser.template('.propicList .products', '.pic>a', '.disPrice'); }; //shopin pagerParser[34] = function (document) { return pagerParser.template('.content ul li', 'a', 'strong.price'); }; //xiu pagerParser[35] = function (document) { return pagerParser.template('.item', '.pic>a', 'span.showprice'); }; //mbaobao pagerParser[36] = function (document) { return pagerParser.template('#js-goods-list>ul>li', 'a', 'strong.red'); }; //qinqinbaby pagerParser[39] = function (document) { return pagerParser.template('#proactive>li', '.pro-img a', '.price b.fontYHei'); }; //chunshuitang pagerParser[40] = function (document) { return pagerParser.template('.L_boxlist', 'dt>a', '.L_rmb_xuj'); }; //x pagerParser[41] = function (document) { return pagerParser.template('.s_pro_list li', '.pic>a', '.price'); }; //guopi pagerParser[42] = function (document) { var tr = document.querySelectorAll('#main_table>tbody>tr.img,#main_table>tbody>tr.price'); var r = []; for (var i = 0; i < tr.length; i += 2) { try { var imgs = tr[i].querySelectorAll('td'); var prices = tr[i + 1].querySelectorAll('td'); for (var j = 0; j < imgs.length; ++j) { var href = imgs[j].querySelector('a').href; var price = prices[j].querySelector('span.price').textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } } catch (e) { continue; } } return r; }; //no5 pagerParser[43] = function (document) { return pagerParser.template('.cplist>dl', 'dt a', '.pro-price>span>span'); }; //sasa pagerParser[45] = function (document) { return pagerParser.template('#gallery_show>ul>li', '.arrivals-pic a', 'span.price'); }; //m6go pagerParser[51] = function (document) { return pagerParser.template('.result>ul>li', 'a.pica', '.price-info strong'); }; //likeface pagerParser[52] = function (document) { return pagerParser.template('ul.tLst2 li', 'a.tImg', 'span.tPrc'); }; //morefood pagerParser[54] = function (document) { return pagerParser.template('.goods_list', '.img>a', 'span[datatype="price"]'); }; //99read pagerParser[59] = function (document) { return pagerParser.template('.list_r_list', 'h1 a', '.f-Price:last-child'); }; //chinapub pagerParser[60] = function (document) { return pagerParser.template('.search_result table', '.result_name a', '.book_dis b'); }; //bookschina pagerParser[61] = function (document) { return pagerParser.template('.bookContent', '.titlein', 'span.red12'); }; //winxuan pagerParser[62] = function (document) { return pagerParser.template('#list>li', '.img a', '.price-n'); }; //efeihu pagerParser[63] = function (document) { return pagerParser.template('#Jlist>li', '.ui_pimg>a', '.ui_pprice_e>em'); }; //yintai pagerParser[66] = function (document) { return pagerParser.template('.p-listInfo', '.p-listImgBig a', '.p-listPrice strong'); }; //hapigo pagerParser[72] = function (document) { return pagerParser.template('.sl_list_ul>li', '.goods-pic>a', '.sl_price1>span'); }; //gap pagerParser[73] = function (document) { return pagerParser.template('.categoryProductItem', '.product-image>a', '.special-price .price>.price'); }; //5lux pagerParser[75] = function (document) { var items = document.querySelectorAll('.stblock_body>dl>dd'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a').href; var price = items[i].querySelector('.coc2a67d').childNodes[0].textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; // tmall pagerParser[83] = function (document) { var items = document.querySelectorAll('#J_ItemList div.product'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a.productImg').href; var price = items[i].querySelector('.productPrice em').textContent; var tle = items[i].querySelector('.productTitle a').textContent.trim(); r.push({ 'url': href, 'tle': tle, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //tiantian pagerParser[84] = function (document) { return pagerParser.template('.rg_sl_list>ul>li', '.list1', '.list3>span'); }; //xijie pagerParser[85] = function (document) { return pagerParser.template('.goods_one', '.com_link', '.xj_list_pro_text2>.xj_list_pro_text2'); }; //jumei pagerParser[86] = function (document) { return pagerParser.template('.products_wrap>ul>li', '.s_l_pic>a', '.search_list_price>span'); }; //yougou pagerParser[93] = function (document) { return pagerParser.template('#proList>li', 'a', '.price_sc>em>i'); }; //111 pagerParser[94] = function (document) { setTimeout(function () { document._links = pagerParser.template('#itemSearchList>li', ':not(.none) a', ':not(.none) .price>span:first-child'); }, pagerParser.timeout); return { wait: true }; }; //jianke pagerParser[97] = function (document) { return pagerParser.template('.pro-con>li', 'a.pro-check', '.pro-botxt span'); }; //muyingzhijia pagerParser[98] = function (document) { setTimeout(function () { document._links = pagerParser.template('.goods_list>li', 'a', 'span[data-type="price"]'); }, pagerParser.timeout); return { wait: true }; }; //lingshi pagerParser[99] = function (document) { var items = document.querySelectorAll('.snack_wrap>ul>li'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a').href; var price = items[i].querySelector('.price').childNodes[0].textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //banggo pagerParser[100] = function (document) { return pagerParser.template('.mbshop_listPdCon', 'a', '.mbshop_listPdText>b'); }; //yesmywine pagerParser[101] = function (document) { return pagerParser.template('.piclist>li', 'a', '.price strong'); }; //jiumei pagerParser[102] = function (document) { return pagerParser.template('.gn_m_list_a', 'a', '.gn_m_list_price .b>span'); }; //jiuxian pagerParser[103] = function (document) { return pagerParser.template('.proListSearch>ul>li', 'a', '.price'); }; //gjw pagerParser[108] = function (document) { return pagerParser.template('.main_wrap>.min_in', '.productImg-wrap a', '.productPrice>em>strong'); }; //okhqb pagerParser[109] = function (document) { return pagerParser.template('.result_list_container>ul>li', '.thumb_picture a', '.price_i>em'); }; //bookuu pagerParser[110] = function (document) { return pagerParser.template('.books-list', 'a', '.ll>b'); }; //d1 pagerParser[115] = function (document) { return pagerParser.template('#r_list .libox', '.g_simg>a', '.g_mprice font'); }; //rayi pagerParser[120] = function (document) { return pagerParser.template('.GoodsSearchWrap>table>tbody>tr>td', '.goodpic>a', '.price1'); }; //paixie pagerParser[122] = function (document) { return pagerParser.template('.prolist>li', '.probox>a', '.info>b'); }; //taobao pagerParser[123] = function (document) { var items = document.querySelectorAll('#mainsrp-itemlist div.items>.item'); var r = []; for (var i = 0; i < items.length; ++i) { try { var id = items[i].querySelector('.pic-box a.pic-link').getAttribute('data-nid'); var href = 'https://item.taobao.com/item.htm?id=' + id; var price = items[i].querySelector('.ctx-box .price').textContent; var tle = items[i].querySelector('.ctx-box .title .J_ClickStat').textContent.trim(); var uniqPid = $(items[i]).find('.similars a[href]:contains(同款)').attr('href'); if (uniqPid) uniqPid = uniqPid.match(/&uniqpid=([0-9-]+)/)[1]; r.push({ 'nid': id, 'uniqpid': uniqPid || '', 'url': href, 'tle': tle, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //homevv pagerParser[124] = function (document) { return pagerParser.template('.list_pic>.item', '.goods-pic a', '.sale-price'); }; //jxdyf pagerParser[125] = function (document) { return pagerParser.template('#searchPList>ul>li', '.pImg a', '.price'); }; //sfbest pagerParser[126] = function (document) { return pagerParser.template('.list-all>li', '.pic a', '.price strong'); }; //benlai pagerParser[127] = function (document) { return pagerParser.template('#Content>dl', '.pic a', 'p.price'); }; //tuotuo pagerParser[128] = function (document) { return pagerParser.template('#list_goodslist>li', '.pro_img>a', '.pro_price>b'); }; //vip pagerParser[129] = function (document) { return pagerParser.template('#J_searchCatList>.goods-list-item', '.goods-image>a', '.price'); }; //vmall pagerParser[134] = function (document) { return pagerParser.template('.pro-list>ul>li', 'a', '.p-price>b'); }; //lenovo pagerParser[135] = function (document) { return pagerParser.template('#productList>li', '.search_pro_img', '.search_pro_price'); }; //zm7 pagerParser[138] = function (document) { return pagerParser.template('.goods_table_list>ul>li', '.g_t_list_m>a', '.goods_table_list .fl'); }; //zhiwo pagerParser[140] = function (document) { return pagerParser.template('#bfd_show_fu>li', '.goods_img a', '.price_day'); }; //j1 pagerParser[141] = function (document) { return pagerParser.template('.listsearch-one', '.listsearch-ztimg a', '.listsearch-price>span'); }; //wangjiu pagerParser[142] = function (document) { return pagerParser.template('.shop_list_item>ul>li', '.p_i a', '.p_m'); }; //lamiu pagerParser[146] = function (document) { return pagerParser.template('#gallery_show ul>li', '.goods-pic a', 'ins.price'); }; //aimer pagerParser[147] = function (document) { return pagerParser.template('.infoShop>li', 'div>a', 'span.track'); }; //wbiao pagerParser[153] = function (document) { return pagerParser.template('#search_goods_list>ul>li', 'dd:not([class])>a', 'dt .s_price'); }; //handu pagerParser[154] = function (document) { return pagerParser.template('#tile li', '.boxCont>a', '.price'); }; //ehaier pagerParser[155] = function (document) { return pagerParser.template('.prolist-box>ul>li', 'a', '.strong-price'); }; //secoo pagerParser[156] = function (document) { return pagerParser.template('.commodity-list>dl', 'a', '.dl_price>span'); }; //camel pagerParser[157] = function (document) { return pagerParser.template('.pro_list_ul>li', 'a', '.salePrice'); }; //masamaso pagerParser[158] = function (document) { return pagerParser.template('.in_masa:not([id]) ul>li', '.in_masa_up a', '.in_price>em>span:nth-of-type(2)'); }; //xifuquan pagerParser[164] = function (document) { return pagerParser.template('.ullistcont>li', 'a', 'strong'); }; //mi pagerParser[167] = function (document) { var items = document.querySelectorAll('.goods-list>div'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a').href; var price = items[i].querySelector('.price').childNodes[0].textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //lemall pagerParser[168] = function (document) { var items = document.querySelectorAll('.result_list>li'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('.pro_img a').getAttribute('data-url'); var price = items[i].querySelector('.pro_price>span.red').textContent.trim(); r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } }; // //meituan // pagerParser[172] = function (document) { // return pagerParser.template('.item', 'a', '.price>strong') // } //yiguo pagerParser[174] = function (document) { setTimeout(function () { document._links = pagerParser.template('.product_item', '.p_img a', '.price>strong'); }, pagerParser.timeout); return { wait: true }; }; //fruitday pagerParser[178] = function (document) { return pagerParser.template('.f-list .leftpart>ul>li', 'a', '.s-info>.s-unit'); }; //feiniu pagerParser[180] = function (document) { return pagerParser.template('.u-m-goods>ul>li', '.p-img.J_p_img a', '.J_now_price'); }; //zuipin pagerParser[182] = function (document) { return pagerParser.template('.tea_products .products_box', '.pro_img>span>a', '.zp_price>span'); }; //yohobuy pagerParser[184] = function (document) { return pagerParser.template('.goods-container>div.good-info', 'a[href*="item"]', '.price>span:last-child'); }; //bestkeep pagerParser[188] = function (document) { return pagerParser.template('.listTable>li', 'a', '.goods-price'); }; //mf910 pagerParser[194] = function (document) { return pagerParser.template('#J_goodsList>ul>li', 'a', '.p-price>strong>i'); }; //miyabaobei pagerParser[195] = function (document) { return pagerParser.template('.Lcon.content>div.block', 'a', 'span[id^="sale_price"]'); }; //ule pagerParser[196] = function (document) { setTimeout(function () { document._links = pagerParser.template('.goodsListBlock>ul>li', '.img>a', '.ulePrice>strong'); }, pagerParser.timeout); return { wait: true }; }; //minshengec pagerParser[197] = function (document) { return pagerParser.template('.itemList>div.product', 'a', 'em[name="price"]'); }; //wangfujing // pagerParser[198] = function (document) { // return pagerParser.template('.itemList>li', 'a[id^="catalogEntry_img"]', 'dl .nprice') // } //meilele pagerParser[201] = function (document) { return pagerParser.template('.list-goods:first-child>li', 'a', '.JS_async_price'); }; //supuy pagerParser[210] = function (document) { return pagerParser.template('#ul_content>li', '.list_good_img>a', '.list_good_price_new'); }; //lining pagerParser[213] = function (document) { return pagerParser.template('.cate_search_content .selItem', 'a', '.hprice.price'); }; //rrs pagerParser[217] = function (document) { return pagerParser.template('.product_list>li', 'a', 'div>b'); }; //coocaa pagerParser[218] = function (document) { var items = document.querySelectorAll('#tv_list>ul>li'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a').href.replace('get', 'goodsDetailBuy'); var price = items[i].querySelector('.product_show_right_price').textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //lifevc pagerParser[220] = function (document) { return pagerParser.template('.productPic', 'a.proPic', '.productPrice'); }; //kzj365 pagerParser[222] = function (document) { var items = document.querySelectorAll('.goodsItem>li'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a').href; var price = items[i].querySelector('.price').childNodes[0].textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //kaola pagerParser[223] = function (document) { return pagerParser.template('#result>li', 'a', '.cur'); }; //ymatou pagerParser[224] = function (document) { return pagerParser.template('#product-list >li', 'a.product-img', '.price'); }; //metao pagerParser[225] = function (document) { if (document.querySelectorAll('.special-ul').length) { return pagerParser.template('.special-ul>li', 'a', '.s-product-sale-price'); } var items = document.querySelectorAll('.prod-list.prod-cols3-list:first-child>li'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a').href; var price = items[i].querySelector('.price').childNodes[0].textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //kjt pagerParser[226] = function (document) { return pagerParser.template('.prolist.listhover>li', '.img a', '.price.price16'); }; //logitech pagerParser[227] = function (document) { return pagerParser.template('.productList-list-ul>li', '.p-img a', '.price>strong'); }; //amazon_us pagerParser[228] = pagerParser[1]; //amazon_jp pagerParser[229] = pagerParser[1]; //xiji pagerParser[232] = function (document) { return pagerParser.template('.gallery-grid ul>li', 'a', '.goods-price ins.price'); }; //nike pagerParser[233] = function (document) { return pagerParser.template('.grid-item', '.grid-item-image a', '.prices>.local'); }; //360kad pagerParser[234] = function (document) { return pagerParser.template('.Productlist>li', '.pic>a', '.pri'); }; //lbxcn pagerParser[235] = function (document) { return pagerParser.template('.search_cholist>ul>li', '.ucol_p_img>a', '.ucol_p_wod span:nth-child(1)'); }; //meici pagerParser[236] = function (document) { return pagerParser.template('#product-list>ul>li', 'a', '.product_p .c_purple, .product_p .product_active'); }; //beibei pagerParser[237] = function (document) { var items = document.querySelectorAll('.view-ItemListItem'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a').href; var price = [items[i].querySelector('.price-int').textContent.trim(), items[i].querySelector('.price-decimal').textContent.trim()].join(''); r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //6pm pagerParser[238] = function (document) { // return pagerParser.template('#searchResults>a','','.price-6pm') var items = document.querySelectorAll('#searchResults>a'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].href; var price = items[i].querySelector('.price-6pm').textContent.trim(); r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //shopbop pagerParser[241] = function (document) { return pagerParser.template('.product-list>ul>li', 'a.photo', '.retail-price'); }; //amazon_de pagerParser[246] = function (document) { var r = []; var items = document.querySelectorAll('.s-result-item'); for (var i = 0; i < items.length; ++i) { try { var img = items[i].querySelector('.s-access-image'); while (!img.parentNode.href && img.parentNode != document.body) { img = img.parentNode; } if (img.parentNode == document.body) { continue; } var href = img.parentNode.href; var price = items[i].querySelector('div>.a-spacing-mini>.a-spacing-none>a>span'); if (!price) { price = items[i].querySelector('span.a-color-price'); } r.push({ 'url': href, 'price': pagerParser.priceFormatter(price.textContent, ',', '.', 246), 'crc32': '' }); } catch (e) { continue; } } return r; }; //ashford pagerParser[247] = function (document) { return pagerParser.template('.automaticScrollProductsList>div', 'a', '.product-price'); }; //lookfantastic pagerParser[248] = function (document) { return pagerParser.template('#divSearchResults>div>div', '.product-image>a:first-child', '.item_price'); }; //vsigo pagerParser[252] = function (document) { return pagerParser.template('.search_lst>ul>li', '.Npro_img>a', '.sigoprice'); }; //100yue pagerParser[256] = function (document) { return pagerParser.template('.cont-gd>li', 'a', '.new-price>span:first-child'); }; //amazon_uk pagerParser[266] = function (document) { return pagerParser.template('#resultsCol ul.s-result-list>li', 'a.a-link-normal', '.a-color-price'); }; //daling pagerParser[267] = function (document) { return pagerParser.template('.searchlist>ul>li', 'a', '.now-price'); }; //fengqu pagerParser[268] = function (document) { return pagerParser.template('.product-1-list>li', 'a', 'strong'); }; //mei pagerParser[269] = function (document) { return pagerParser.template('#contentDiv>div.listproduct', 'a', 'span.red'); }; //showjoy pagerParser[270] = function (document) { return pagerParser.template('.widget-brick-item', '.brick-pic', '.price'); }; //ocj pagerParser[271] = function (document) { if (document.querySelectorAll('.pv_shop_list_content.normal_list').length) { return pagerParser.template('.pv_shop_list_content>div.item1', 'a', '.price>em'); } return pagerParser.template('.item1', '.image a', '.price>em'); }; //sundan pagerParser[272] = function (document) { return pagerParser.template('#gallery_show ul>li', '.goods-pic>a', '.price'); }; //easeeyes pagerParser[273] = function (document) { return pagerParser.template('.itemSearchResult.box-items-result>ul>li', '.images a', '.price>strong'); }; //yunhou pagerParser[274] = function (document) { return pagerParser.template('.goods-lists>div', 'a.goods-img', '.p-normal'); }; //haituncun pagerParser[275] = function (document) { return pagerParser.template('.products-grid>li', 'a.product-image', '.regular-price'); }; //walmart pagerParser[276] = function (document) { return pagerParser.template('#tile-container>div', '.js-product-title', '.price-display'); }; //vmei pagerParser[277] = function (document) { return pagerParser.template('.product_list.product_list_v2>ul>li', '.pic', '.price>strong'); }; //51din pagerParser[279] = function (document) { return pagerParser.template('#result>ul', 'a.img_figure', '.boutique_price'); }; //aidai pagerParser[280] = function (document) { var items = document.querySelectorAll('#proNum>li'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a[href^="/Pro"]').href; var price = items[i].querySelector('.proprice'); price = price.childNodes[price.childNodes.length - 1].textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //boqii pagerParser[281] = function (document) { return pagerParser.template('.product_list>li', 'a', 'strong[id^="priceat"]'); }; //spider pagerParser[284] = function (document) { if (document.querySelectorAll('.rsltAll').length) { return pagerParser.template('.rsltAll>ul>li', 'a', '.red2'); } if (document.querySelectorAll('.produclb_cp1').length) { return pagerParser.template('.produclb_cp>.produclb_cp1', 'a', '.font14_red'); } //http://www.spider.com.cn/461970-323-100120.html return pagerParser.template('.prstgdlist>li', 'a', '.f18'); }; //jiae pagerParser[286] = function (document) { return pagerParser.template('.j-item-list-li', '.a-pic', '.item-price'); }; //zazhipu pagerParser[287] = function (document) { return pagerParser.template('#itemList>li', 'a', '.mod_price:first-child'); }; //xgdq pagerParser[288] = function (document) { return pagerParser.template('#gallery_show ul>li', 'a', '.goods-price ins'); }; //xtep pagerParser[289] = function (document) { var doc = document.querySelector('iframe#m').contentWindow.document; var items = doc.querySelectorAll('.pro_list>li'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('.pro_img').href; var price = items[i].querySelector('.pro_price>span>b').textContent.trim(); r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //midea pagerParser[290] = function (document) { return pagerParser.template('.hproduct', 'a', '.price>em'); }; //staples pagerParser[291] = function (document) { return pagerParser.template('.cg_mainContent>div.cg_pro', 'a', '.pro_price>strong'); }; //efotile pagerParser[292] = function (document) { return pagerParser.template('.result>ul>li', 'a', '.item-price'); }; //lovo pagerParser[294] = function (document) { return pagerParser.template('.prolistitems', '.ad-image-wrapper a', 'big.jiacu'); }; //hua pagerParser[295] = function (document) { return pagerParser.template('.grid-item', '.img-box a', '.price-num'); }; //tuhu pagerParser[299] = function (document) { return pagerParser.template('.List tr', 'a.DisplayName', '.price>strong'); }; //taqu pagerParser[313] = function (document) { return pagerParser.template('.p-list>li.p-item', '.p-pic a', '.p-price-current'); }; //bl pagerParser[347] = function (document) { return pagerParser.template('.pro-class>li', '.pro-img>a', '.money-fl'); }; //bestinfoods pagerParser[348] = function (document) { return pagerParser.template('.items-gallery', 'a', '.price1'); }; //163 pagerParser[349] = function (document) { return pagerParser.template('#j-searchList>li', '.hd>a', '.price>span'); }; //guojimami pagerParser[351] = function (document) { return pagerParser.template('.gmg', 'a', '.shop_prices'); }; //baiyangwang pagerParser[352] = function (document) { return pagerParser.template('.g-d-ul>li', '.pic', 'span[id^="JgoodsPrice"]'); }; //tao3c /* pagerParser[111] = function(document) { return pagerParser.merge( pagerParser.slice.call(document.querySelectorAll('#plist a>img')) .map(function(v){ return v.parentNode.href }) , pagerParser.slice.call(document.querySelectorAll('#plist .pd4>span')) .map(function(v) {return v.textContent }) ) } */ //feifei pagerParser[181] = function (document) { var items = document.querySelectorAll('.sku-ul>li'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a').href; var price = items[i].querySelector('.wsl-price.j-wsl-price').childNodes[0].textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //purcotton pagerParser[364] = function (document) { var items = document.querySelectorAll('#productResultList>li'); var r = []; var MallPath = 'http://www.purcotton.com'; for (var i = 0; i < items.length; ++i) { try { var a = items[i].querySelector('a[onclick^="toDetail"]'); var prodNo = a.getAttribute('onclick').match(/[\d-]+/)[0]; var number = prodNo.substr(prodNo.length - 3); var href = MallPath + "/detail/" + number + "/" + prodNo + ".html"; var price = items[i].querySelector('.aprice').textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //amazon_fr pagerParser[365] = function (document) { var items = document.querySelectorAll('#s-results-list-atf>li'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('.a-link-normal').href; var price = items[i].querySelector('.a-color-price').textContent.trim(); r.push({ 'url': href, 'price': pagerParser.priceFormatter(price, ',', '.'), 'crc32': '' }); } catch (e) { continue; } } return r; }; //amazon_ca pagerParser[366] = pagerParser[1]; //wstx pagerParser[367] = function (document) { return pagerParser.template('.goods-item', '.figure-img>a', '.price>b'); }; //hisense pagerParser[368] = function (document) { return pagerParser.template('.product-list>ul>li', 'a', '.price>.red'); }; //zhongjiu pagerParser[369] = function (document) { return pagerParser.template('.list-h>li', '.p-img>a', '.p-price>strong'); }; //kaluli pagerParser[370] = function (document) { return pagerParser.template('.p-l-grid>ul>li', 'a', '.price .red'); }; //to8to pagerParser[371] = function (document) { return pagerParser.template('#goodsList:first-child>li', 'a', '.cur_pric .pri_msg .f_arial'); }; //opposhop pagerParser[372] = function (document) { return pagerParser.template('.grid-special>.box', 'a', '.box-price strong'); }; //baobeigezi pagerParser[373] = function (document) { return pagerParser.template('#main_list > .pro_item', '.pro_infor_img', '.pro_price'); }; //yao123 pagerParser[374] = function (document) { return pagerParser.template('.product-list>ul>li', '.items>a:nth-child(1)', '.opr'); }; //gionee pagerParser[376] = function (document) { return pagerParser.template('ul#JmobileList>li', 'a.ui_pimg', '.ui_pprice'); }; //suanjuzi pagerParser[377] = function (document) { return pagerParser.template('#gallery_show ul>li', '.goods-pic>a', 'ins.price'); }; //aomygod pagerParser[378] = function (document) { return pagerParser.template('.goods-lists>div', 'a.goods-img', '.goods-price>.p-normal'); }; //luolai pagerParser[379] = function (document) { return pagerParser.template('.gallery-grid>ul>li', '.goods-pic>a', 'ins.price'); }; //vivo pagerParser[380] = function (document) { return pagerParser.template('.prod-list>li', 'a', 'p'); }; //dixintong pagerParser[381] = function (document) { return pagerParser.template('.GoodsList>li', 'a', '.goodsprice>span'); }; //coolpad pagerParser[382] = function (document) { return pagerParser.template('.goods-ul-box li', 'a', '.price'); }; //skg pagerParser[383] = function (document) { return pagerParser.template('.goods_list.clearfix>li', 'a.gimg', 'p.gprice'); }; //aolaigo pagerParser[385] = function (document) { return pagerParser.template('.pro>ul>li', 'dl>dd:nth-child(1)>a', '.valc-n>span:nth-child(2)'); }; module.exports = pagerParser; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "b9180f33a4c9c859bc09": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($) { module.exports.init = function () { if (location.href.indexOf('.vip.com') > -1) { if (new Date() < new Date('2021-10-31T20:00')) { var b = document.createElement('a'); b.href = "https://tb.jiuxinban.com/7cqpZJ"; b.target = "_blank"; b.style = 'border-left: 1px solid #f1f1f1; height: 100%'; b.innerHTML = '<img src="https://cdn.gwdang.com/images/extensions/activity/vip1111bottom@2x.png" alt="" style="width: 163px; margin-top: 3px">'; $('.bjgext-closeBtn').before(b); } } if (location.href.indexOf('.kaola.com') > -1) { if (new Date() < new Date('2021-11-11T23:59')) { var b = document.createElement('a'); b.href = "https://tb.jiuxinban.com/7cqq1K"; b.target = "_blank"; b.style = 'border-left: 1px solid #f1f1f1; height: 100%'; b.innerHTML = '<img src="https://cdn.gwdang.com/images/extensions/activity/kola1111bottom@2x.png" alt="" style="width: 163px; margin-top: 3px">'; $('.bjgext-closeBtn').before(b); } } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "b9b6f6804467a73ba8b7": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjg-product-item[data-v-6af99812] {\n height: 140px;\n border-bottom: 1px solid #f1f1f1;\n}\n.bjg-product-item .bjg-item-title[data-v-6af99812] {\n height: 40px;\n font-size: 13px;\n color: #333333;\n line-height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n}\n.bjg-product-item .bjg-reduct[data-v-6af99812] {\n font-size: 12px;\n color: #31c38a;\n}\n.bjg-product-item.bjg-last[data-v-6af99812] {\n border-bottom: none;\n}\n", ""]); // exports /***/ }), /***/ "ba004501820aed46ea98": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("e1295245ec2ddb5b21e1"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("6fd7c3bb", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../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&", function() { var newContent = require("!!../../../../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&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "ba7bf86980f076d34e6c": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) {var __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var originPrice = 0; var originPricePattern = { '360buy': '#page_maprice', 'suning': ['del.small-price', 'del', '#itemPrice>del'], 'amazon': ['.digital-list-price>td>.a-text-strike', '.a-span12.a-color-secondary.a-size-base', '.a-text-strike'], 'yougou': 'del:eq(0)', 'dangdang': ['.price_m:eq(0)', '.d15_price_info .price_pc .price_m'], 'vipshop': '.J-mPrice', 'keede': '.message_price_kd', 'feiniu': 'del.fn-rmb-num:eq(0)', 'kaola': '#js_marketPrice', '111': 'del', 'jiuxian': 'del', 'yintai': '.mk-num', 'beibei': '.strike[op-value="originPrice"]', 'bookschina': 'td:eq(19)', 'tmall': ['.tb-rmb-num', '.tm-tagPrice-panel .tm-price', '.tm-price-panel .tm-price'], 'taobao': '#J_StrPrice>em.tb-rmb-num', 'taobao-95095': '.tm-price-panel .tm-price:eq(0)', 'lefeng': '.marketPrice-s' }; //let all_equal_short = false; var patternUsed = ''; if (originPricePattern[G.site] != undefined) { var pattern = originPricePattern[G.site]; if (pattern instanceof Array) { pattern.forEach(function (i) { var element = $(i); var len = $(i).toArray().length; if (len > 1) { element = $(i + (':eq(' + (len - 1) + ')')); } if (originPrice) return; if (!element || !element.text()) return; var priceText = element.text(); if (priceText.trim) { priceText = priceText.trim(); } var price = parseFloat(priceText.replace(',', '').replace('¥', '').replace('¥', '').replace('$', '').replace(',', '')); originPrice = price; patternUsed = i; }); } else { var element = $(pattern); if (element && element.text().length > 0) { var priceText = element.text(); if (priceText.trim) { priceText = priceText.trim(); } var price = parseFloat(priceText.replace(',', '').replace('¥', '').replace('¥', '').replace(',', '')); // originPrice = price; patternUsed = pattern; } } } // tmall.hk if (location.host === 'detail.tmall.hk') { originPrice = $('span.tm-price:eq(0)').text(); var unitText = $('em.tm-yen:eq(0)').text(); var t = $('span.tm-price:eq(0)').css('text-decoration'); if (unitText === '₩' || unitText === 'NT$' || t && t.indexOf('line-through') === -1) { originPrice = null; } var try2 = $('.wrtoriginprice .tm-price').text(); if (try2) { originPrice = try2; } } // 淘宝需特殊处理 var jstrprice = $('#J_StrPrice').text() && $('#J_StrPrice').css('text-decoration').toString().indexOf('line-through') === -1; if ((G.site === 'taobao' || G.site === 'tmall' || G.site === 'taobao-95095') && (jstrprice || G.site === 'tmall' && $('#J_StrPriceModBox').css('display') === 'none')) { if (patternUsed === '.tm-price-panel .tm-price' || patternUsed === '#J_StrPrice>em.tb-rmb-num') { originPrice = null; } } if (G.site === 'taobao' || G.site === 'tmall' || G.site === 'taobao-95095') { var e = $(patternUsed); if (e.css('text-decoration') && e.css('text-decoration').toString().indexOf('line-through') === -1) { if (G.site === 'taobao') { if (e.parent().css('text-decoration').toString().indexOf('line-through') === -1) { originPrice = null; } } else { originPrice = null; } } } if (G.site === 'bookschina') { var s = $('td').toArray().map(function (i) { return i.innerText; }); var pos = s.indexOf('定 价:'); originPrice = s[pos + 1]; } var type = null; if (location.host === 'www.amazon.co.jp') { type = 'JPY'; } originPrice = __webpack_require__("cb0906562effcf1b0e6c")(originPrice, type); originPrice = parseFloat(originPrice); return originPrice; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "babca2a4632382485f5f": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("b1a1dff154ace0dec0e9"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("367a3a40", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QrError.vue?vue&type=style&index=0&id=29b33b2e&scoped=true&lang=less&", function() { var newContent = require("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QrError.vue?vue&type=style&index=0&id=29b33b2e&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "bad3c2aac28049568c92": /***/ (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", { ref: "btn", staticClass: "bjg-bar-button", class: _vm.hide ? "bjg-hide" : "", style: _vm.hintShow ? "width: 144px" : _vm.notifyCount > 0 || (_vm.user && _vm.userAgreed && _vm.enabled && !_vm.isJdLogin) ? "width: 128px;" : "", on: { click: function($event) { return _vm.ppClick() } } }, [ _c("img", { staticStyle: { width: "19px", height: "22px", "margin-left": "15px" }, attrs: { src: __webpack_require__("7d46eac2a2bab39368f5"), alt: "" } }), _vm._v(" "), _c( "span", { staticStyle: { "margin-left": "10px", "font-size": "14px", color: "#64615d" } }, [_vm._v("价格保护")] ), _vm._v(" "), _vm.hintShow ? _c("img", { staticStyle: { width: "32px", height: "16px", position: "absolute", top: "10px", right: "10px" }, attrs: { src: __webpack_require__("bb53e2a42f6e627ff764"), alt: "" } }) : _vm._e(), _vm._v(" "), _vm.notifyCount > 0 ? _c( "div", { staticClass: "bjg-notify", staticStyle: { width: "16px", height: "16px", position: "absolute", top: "10px", right: "14px" } }, [_vm._v("\n " + _vm._s(_vm.notifyCount) + "\n ")] ) : _vm._e(), _vm._v(" "), _vm.user && _vm.userAgreed && _vm.enabled && !_vm.isJdLogin ? _c("div", { staticClass: "bjg-notify bjg-alert", staticStyle: { width: "16px", height: "16px", position: "absolute", top: "10px", right: "14px" } }) : _vm._e(), _vm._v(" "), _vm.user && _vm.isJdLogin ? _c( "BjgBottomWindow", { style: _vm.positionStyle + "px;" + (_vm.forceOpen ? "display: block" : ""), attrs: { name: "价保" }, on: { mouseover: _vm.mouseOver } }, [ !_vm.userAgreed ? _c("PriceProtectAuthLoginRequest", { attrs: { login: _vm.user }, on: { userAgreed: function($event) { return _vm.setEnable() } } }) : _vm._e(), _vm._v(" "), _vm.user && _vm.userAgreed && _vm.enabled && !_vm.isJdLogin ? _c("PriceProtectJdLogin") : _vm._e(), _vm._v(" "), _c("JdItemList", { directives: [ { name: "show", rawName: "v-show", value: _vm.user && _vm.userAgreed && _vm.isJdLogin && _vm.enabled, expression: "user && userAgreed && isJdLogin && enabled" } ], ref: "jdItemList", on: { needLogin: function($event) { _vm.isJdLogin = false } } }), _vm._v(" "), _vm.user && _vm.userAgreed && !_vm.enabled ? _c( "div", { staticClass: "gwd-column gwd-align bjg-pp-disabled", staticStyle: { height: "201px", background: "white" } }, [ _c("img", { staticStyle: { "margin-top": "30px", width: "30px", height: "30px" }, attrs: { src: __webpack_require__("dd90869d9d1b15018a75"), alt: "" } }), _vm._v(" "), _c("span", { staticStyle: { "margin-top": "14px" } }, [ _vm._v("价格保护功能关闭") ]), _vm._v(" "), _c("span", [_vm._v("无法获取最新价保信息")]), _vm._v(" "), _c( "button", { staticClass: "gwd-button", staticStyle: { "margin-top": "30px" }, on: { click: function($event) { return _vm.enable() } } }, [_vm._v("重新开启")] ) ] ) : _vm._e(), _vm._v(" "), _vm.user ? _c( "div", { staticClass: "bjg-window-bottom gwd-row gwd-align" }, [ _c( "GwdA", { staticStyle: { "margin-left": "14px" }, attrs: { href: "https://www.bijiago.com/priceProtectIntro/", target: "_blank" } }, [_vm._v("价格保护使用帮助")] ), _vm._v(" "), _c( "GwdA", { staticStyle: { "margin-left": "32px" }, attrs: { href: "https://pcsitepp-fm.jd.com/", target: "_blank" } }, [_vm._v("京东价格保护中心")] ), _vm._v(" "), _c("div", { staticStyle: { flex: "1" } }), _vm._v(" "), _vm.user && _vm.isJdLogin && _vm.enabled ? _c("img", { staticStyle: { width: "16px", height: "15px", "margin-right": "14px" }, attrs: { src: __webpack_require__("b140e277f49b30b0be0a"), alt: "" }, on: { click: function($event) { _vm.settingOpen = !_vm.settingOpen } } }) : _vm._e() ], 1 ) : _vm._e(), _vm._v(" "), _c( "div", { directives: [ { name: "show", rawName: "v-show", value: _vm.enabled && _vm.settingOpen, expression: "enabled && settingOpen" } ], staticClass: "gwd-column gwd-align bjg-setting" }, [ _c( "span", { staticStyle: { "margin-top": "6px", "font-size": "12px", color: "#333333" } }, [_vm._v("是否开启价保")] ), _vm._v(" "), _c("img", { staticStyle: { width: "33px", height: "18px", "margin-top": "6px" }, attrs: { src: __webpack_require__("14fbbab22f41f59f10cb"), alt: "" }, on: { click: _vm.disable } }) ] ) ], 1 ) : _vm._e() ], 1 ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "bbe645b542c0854a94d8": /***/ (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: "bjg-price-protect-jd-login gwd-column gwd-align" }, [ _c("img", { staticStyle: { width: "112px", height: "55px", "margin-top": "41px" }, attrs: { src: "https://cdn.bijiago.com/images/extensions/bijiago/hi@2x.png", alt: "" } }), _vm._v(" "), _vm._m(0), _vm._v(" "), _c( "button", { staticClass: "gwd-button", on: { click: function($event) { return _vm.doJdLogin() } } }, [_vm._v("登录京东")] ) ] ) } var staticRenderFns = [ function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "bjg-hint", staticStyle: { "margin-top": "30px" } }, [ _vm._v("\n 请您先登录京东网站"), _c("br"), _vm._v("\n 价格保护才能正常工作\n ") ] ) } ] render._withStripped = true /***/ }), /***/ "bc6fff8102ba1c74596f": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("17706afea47931af2180"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("5da45b78", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./FakeBtn.vue?vue&type=style&index=0&id=255024c9&scoped=true&lang=less&", function() { var newContent = require("!!../../../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!./FakeBtn.vue?vue&type=style&index=0&id=255024c9&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "bce67c15ce3dddb6c1d7": /***/ (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_CollectionList_vue_vue_type_script_lang_js___ = __webpack_require__("bd18681609c03afae509"); /* 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_CollectionList_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_CollectionList_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_CollectionList_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_CollectionList_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_CollectionList_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "bd18681609c03afae509": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _CollectionItem = __webpack_require__("3410b73aaf9fdcb95700"); var _CollectionItem2 = _interopRequireDefault(_CollectionItem); var user = __webpack_require__("d098bd5eb9f0b2883cf6"); var bgClient = __webpack_require__("660610db8f6e89357da9"); exports['default'] = { data: function data() { return { list: [], loading: false, ended: false, pg: 1 }; }, props: ['tab'], components: { CollectionItem: _CollectionItem2['default'] }, methods: { scroll: function scroll(e) { if (e.target.scrollTop + e.target.offsetHeight - e.target.scrollHeight > -100) { this.load(); } }, deleteItem: function deleteItem(id) { var _this = this; user.del(id).then(function (res) { console.log(res); if (res.code === 1) { _this.list = _this.list.filter(function (x) { return x.id !== id; }); } }); }, load: function load() { var _this2 = this; if (this.loading || this.ended) return; this.loading = true; user.getList(this.pg, this.tab).then(function (res) { console.log(res); _this2.pg += 1; _this2.loading = false; bgClient.get('/collection/reset'); _this2.list = _this2.list.concat(res.data); if (res.data.length === 0) { _this2.ended = true; } }); }, reload: function reload() { this.list = []; this.pg = 1; this.ended = false; this.load(); }, init: function init() { if (!this.list.length) { this.load(); } } } }; module.exports = exports['default']; /***/ }), /***/ "be16646238708e27785d": /***/ (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_OrangeButton_vue_vue_type_script_lang_js___ = __webpack_require__("080f700b342429ce1646"); /* 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_OrangeButton_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_OrangeButton_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_OrangeButton_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_OrangeButton_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_OrangeButton_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "be59bd26f0b006167527": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { methods: { click: function click() { this.$emit('refresh'); } } }; module.exports = exports['default']; /***/ }), /***/ "beda0098e9fb30cb11a4": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "bjgou-trend-qr-right", staticStyle: { width: "100%", display: "flex", "align-items": "center", height: "100%", "flex-direction": "column" } }, [ _c("div", { staticStyle: { flex: "1" } }), _vm._v(" "), _vm.login ? _c( "span", { class: "bjgou-bottom-favor " + (_vm.productChecked ? "" : "bjgou-bottom-notchecked"), on: { click: _vm.favorClick } }, [ _vm._v( _vm._s(_vm.productChecked ? "取消降价提醒" : "设置降价提醒") ) ] ) : _vm._e(), _vm._v(" "), _vm.login ? _c("img", { staticStyle: { width: "111px", height: "111px", "box-sizing": "border-box", "margin-top": "14px", "image-rendering": "crisp-edges" }, attrs: { src: "https://cdn.bijiago.com/images/extensions/bijiago/bjgou-qr-wechat.png", alt: "" } }) : _vm._e(), _vm._v(" "), _vm.login ? _c( "span", { staticStyle: { "margin-top": "15px", "font-size": "16px", color: "#ffae45", "font-weight": "bold" } }, [_vm._v("微信扫码关注")] ) : _vm._e(), _vm._v(" "), _vm.login ? _c( "span", { staticStyle: { "margin-top": "8px", "font-size": "14px", color: "#6b6761" } }, [_vm._v("商品降价实时提醒")] ) : _vm._e(), _vm._v(" "), !_vm.login ? _c( "span", { staticClass: "bjgou-login-btn", on: { click: function($event) { return _vm.goLogin() } } }, [_vm._v("登录")] ) : _vm._e(), _vm._v(" "), !_vm.login ? _c( "span", { staticStyle: { "margin-top": "6px", "font-size": "12px", color: "#8c847b", display: "inline-block" } }, [_vm._v("商品降价实时提醒")] ) : _vm._e(), _vm._v(" "), _c("div", { staticStyle: { flex: "1" } }) ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "beec10bfe871446903ae": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var dict = { '360buy': [[/^(?:http|https):\/\/www\.jd\.com\/pinpai\/.*\.html/, '#J_goodsList', '#plist .list-h'], [/^(?:http|https):\/\/search\.jd\.com\/Search\?keyword/i, '#J_goodsList li', '#plist .list-h'], [/^(?:http|https):\/\/list\.jd\.com/, '#J_main li'], [/^(?:http|https):\/\/sale\.jd\.com/, 'div.layoutcontainer .layoutarea .layout .layout_one']], // 'vipshop':[ // [/^(?:http|https):\/\/list\.vip\.com/, '.pro_list'], // [/^(?:http|https):\/\/act\.vip\.com/, '.floor li', '.act li', '.lh_list'], // [/^(?:http|https):\/\/category\.vip\.com/, '#bulidFloor', '.m-cat-list'] // ], '51buy': [[/http:\/\/searchex\.yixun\.com/, "#container .goods"], [/http:\/\/event\.yixun\.com/, "ul.item_list_3", 'div.bd'], [/http:\/\/sale\.yixun\.com/, "#J_floorHoliday .bd"], [/http:\/\/event\.yixun\.com\/event\/.*\.html/, '.page_event']], 'tmall': [[/(?:https:|http:)\/\/list\.tmall\.com\/search_product.htm/, '#J_ProductList > .product'], [/(?:https:|http:)\/\/list\.tmall\.hk\/search_product.htm/, '#J_ItemList > .product']], 'amazon': [[/http:\/\/www\.amazon\.cn\/[a-z]\//, 'body']], 'suning': [ // [/http:\/\/sale\.suning\.com/,'div.part'], [/(?:https:|http:)\/\/cuxiao\.suning\.com/, '.head-img-wrapper', '.floor'], [/(?:https:|http:)\/\/list\.suning\.com/, '.grid', '#filter-results li'], [/(?:https:|http:)\/\/search\.suning\.com/, '#filter-results li'], [/(?:https:|http:)\/\/www\.suning\.com/, '#filter-results li']], 'dangdang': [[/http:\/\/www\.dangdang\.com\/brands\//, '.search_list'], [/http:\/\/search\.dangdang\.com/, '.bigimg', '.cloth_good_sort'], [/http:\/\/book\.dangdang\.com/, '#bd_auto ul'], // [/http:\/\/category\.dangdang\.com/,'#bd .shoplist', '#bd .content_list'], [/http:\/\/list\.dangdang\.com/, '#bd .resultlist'], [/http:\/\/promo\.dangdang\.com/, '.promotionslist_wrapper .pro_list', '.promo_activity_wrap'], [/http:\/\/v\.dangdang\.com/, '#bd .v_shop_box'], [/http:\/\/t\.dangdang\.com/, '#bd ul']], 'gome': [[/http:\/\/brand\.gome\.com\.cn/, '.result-wrap'], [/http:\/\/list\.gome\.com\.cn/, '.nSearchWarp-main'], [/http:\/\/prom\.gome\.com\.cn/, '.tpage .paget', '.shangpin_fx'], [/http:\/\/search\.gome\.com\.cn/, '.result-wrap', 'li.product-item']], 'yihaodian': [[/http:\/\/list\.yhd\.com/, '.mod_product_list .mod_search_pro'], [/http:\/\/cms\.yhd\.com/, '#cmsBgPath '], [/http:\/\/search\.yhd\.com/, '.mod_product_list .mod_search_pro']], 'jumei': [[/^(?:http|https):\/\/search\.jumei\.com/, '.products_wrap'], [/^(?:http|https):\/\/hd\.jumei\.com/, '.act_product_list']], 'jumeiglobal': [[/^(?:http|https):\/\/hd\.jumeiglobal\.com/, '.act_product_list', '.model_parent ul']], 'vmall': [[/^(?:http|https):\/\/www\.vmall\.com\/.+/, '.layout'], [/^(?:http|https):\/\/sale\.vmall\.com/, '.guide-bd', '#activity_main'], [/^(?:http|https):\/\/mm\.vmall\.com/, '.new-reserve-top-wrp']], 'feiniu': [[/^(?:http|https):\/\/www\.feiniu\.com\/.+/, '.editDomain', '.productshow', '.exhibition', '#tracker_category'], [/^(?:http|https):\/\/sale\.feiniu\.com/, '.title_bg.cms_pool ul'], [/^(?:http|https):\/\/search\.feiniu\.com/, '#cata_choose_product']], 'yougou': [[/^(?:http|https):\/\/www\.yougou\.com\/.+/, '.yui3-g'], [/^(?:http|https):\/\/seoul\.yougou\.com/, 'div.main_goods', '.yui3-g']], // 'womai':[ // [/^(?:http|https):\/\/www\.womai\.com/, '.wrap ul'], // [/^(?:http|https):\/\/gz\.womai\.com/, '.floors .f_m_cont', '.pglist_main .product_list'], // [/^(?:http|https):\/\/sh\.womai\.com/, '.J-floor', '.wrap ul', '.pglist_main .product_list'] // ], 'kaola': [[/^(?:http|https):\/\/www\.kaola\.com\/.+/, 'li.goods', '.wrap ul']], // 'yintai':[ // [/^(?:http|https):\/\/www\.yintai\.com/, '.yt-wrap', '.p-listInfo'], // [/^(?:http|https):\/\/temai\.yintai\.com/, '.offer-list-product', '#bd'], // [/^(?:http|https):\/\/promotion\.yintai\.com/, '.mp_product'] // ], 'jiuxian': [[/^(?:http|https):\/\/www\.jiuxian\.com\/.+/, '.mainBox', '.sequence_list'], // [/^(?:http|https):\/\/list\.jiuxian\.com/, '.proListSearch'], [/^(?:http|https):\/\/special\.jiuxian\.com/, '.fourbox'] // [/^(?:http|https):\/\/sale\.jiuxian\.com/, '.modeltwo'] ], // 'secoo':[ // [/^(?:http|https):\/\/www\.secoo\.com/, '.floor'], // [/^(?:http|https):\/\/list\.secoo\.com/, '.commodity-list'], // [/^(?:http|https):\/\/search\.secoo\.com/, '.commodity-list'], // [/^(?:http|https):\/\/sale\.secoo\.com/, '.contentSpList'] // ], // 'wbiao':[ // [/^(?:http|https):\/\/www\.wbiao\.cn/, '.act-f', '.watchShow', '#search_goods_list', '.wrap'], // [/^(?:http|https):\/\/search\.wbiao\.cn/, '#search_goods_list'] // ], 'sfbest': [[/^(?:http|https):\/\/www\.sfbest\.com\/.+/, '.sfRight', '.p-list']], 'vancl': [[/^(?:http|https):\/\/s\.vancl\.com/, 'li.productwrapper'] // [/^(?:http|https):\/\/catalog\.vancl\.com/, '#new_tb td'] ], // 'miyabaobei':[ // [/^(?:http|https):\/\/www\.mia\.com/, '.HolidayBackgroundBottom', 'body'] // ], 'fengqu': [[/^(?:http|https):\/\/www\.fengqu\.com\/.+/, '.module']], 'lefeng': [[/^(?:http|https):\/\/search\.lefeng\.com/, '#productDivGroup'], [/^(?:http|https):\/\/brand\.lefeng\.com/, '.makeup']], 'ehaier': [[/^(?:http|https):\/\/search\.ehaier\.com/, 'ul.ul-prolist'], [/^(?:http|https):\/\/www\.ehaier\.com\/.+/, 'ul.ul-excel', '.tab-cont', '.kinds-main']], 'yunhou': [[/^(?:http|https):\/\/search\.yunhou\.com/, '#jGoodsCnt .goods-lists div.cols'], [/^(?:http|https):\/\/list\.yunhou\.com\/.+/, '#jGoodsCnt .goods-lists div.cols']], 'ule': [[/^(?:http|https):\/\/(?!item|www).+\.ule\.com\/.+/, '.goodsList .goodsListBlock li.noPre']], 'banggo': [[/^(?:http|https):\/\/search\.banggo\.com/, '.mbshop_pdList li.mbshop_listPdCon']], 'baobeigezi': [[/^(?:http|https):\/\/search\.baobeigezi\.com/, '#main_list .pro_item'], [/^(?:http|https):\/\/list\.baobeigezi\.com/, '#main_list .pro_item'], [/^(?:http|https):\/\/item\.baobeigezi\.com\/[a-z]+_[0-9]+\//, '#main_list .pro_item']], 'zhongjiu': [[/^(?:http|https):\/\/www\.zhongjiu\.cn\/list\//, '#plist li.clearfix'], [/^(?:http|https):\/\/www\.zhongjiu\.cn\/search\./, '#plist li.clearfix'], [/^(?:http|https):\/\/s\.zhongjiu\.cn\/search\/index/, '.rg_sl_list ul li']] }; var cache = undefined; module.exports.check = function (site) { if (cache) return cache; site = G.site || site; if (!dict[site]) return false; for (var i = dict[site].length - 1; i >= 0; i--) { var p = dict[site][i]; if (p[0].test(location.href)) { cache = p.slice(1); return cache; } }; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "beeed89f0363d0d58668": /***/ (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_MemberCouponBottomBjg_vue_vue_type_style_index_0_id_44c0e93e_scoped_true_lang_less___ = __webpack_require__("dd7bf03a25fb46a8e88e"); /* 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_MemberCouponBottomBjg_vue_vue_type_style_index_0_id_44c0e93e_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_MemberCouponBottomBjg_vue_vue_type_style_index_0_id_44c0e93e_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_MemberCouponBottomBjg_vue_vue_type_style_index_0_id_44c0e93e_scoped_true_lang_less____default.a); /***/ }), /***/ "bf2de32fc8729bd38731": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ProductItem_vue_vue_type_template_id_6894d428_scoped_true___ = __webpack_require__("d6dbb8ec1cc9070a1bbc"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ProductItem_vue_vue_type_script_lang_js___ = __webpack_require__("d26d8d95430431abe698"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__ProductItem_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__ProductItem_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ProductItem_vue_vue_type_style_index_0_id_6894d428_scoped_true_lang_less___ = __webpack_require__("dd5275f7ee706fb5f91b"); /* 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__ProductItem_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__ProductItem_vue_vue_type_template_id_6894d428_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__ProductItem_vue_vue_type_template_id_6894d428_scoped_true___["b" /* staticRenderFns */], false, null, "6894d428", 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('6894d428')) { api.createRecord('6894d428', component.options) } else { api.reload('6894d428', component.options) } module.hot.accept("./ProductItem.vue?vue&type=template&id=6894d428&scoped=true&", function () { api.rerender('6894d428', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/bjgou/components/ProductItem.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "bf749102803a6e48eddc": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CommonCouponBarMini_vue_vue_type_template_id_3fdd510a_scoped_true___ = __webpack_require__("ede8645cc887bf4d66ec"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__CommonCouponBarMini_vue_vue_type_script_lang_js___ = __webpack_require__("b12786f17e483addefd7"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__CommonCouponBarMini_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__CommonCouponBarMini_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__CommonCouponBarMini_vue_vue_type_style_index_0_id_3fdd510a_scoped_true_lang_less___ = __webpack_require__("c285b98bebfd87c77a38"); /* 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__CommonCouponBarMini_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__CommonCouponBarMini_vue_vue_type_template_id_3fdd510a_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__CommonCouponBarMini_vue_vue_type_template_id_3fdd510a_scoped_true___["b" /* staticRenderFns */], false, null, "3fdd510a", 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('3fdd510a')) { api.createRecord('3fdd510a', component.options) } else { api.reload('3fdd510a', component.options) } module.hot.accept("./CommonCouponBarMini.vue?vue&type=template&id=3fdd510a&scoped=true&", function () { api.rerender('3fdd510a', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/CommonCouponBarMini.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "c05bbcb58c86deadc879": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-coupon-bar[data-v-3fdd510a] {\n font-family: \"PingFang SC-Medium\", \"Microsoft YaHei\", \"Arial\", \"SimSun\", serif;\n font-size: 12px;\n background: white;\n position: relative;\n border: 1px solid #e8e8e8;\n border-top: none;\n width: 462px;\n box-sizing: border-box;\n height: 38px;\n}\n.gwd-coupon-bar .gwd-round-click[data-v-3fdd510a] {\n margin-left: 24px;\n margin-right: 12px;\n display: block;\n width: 68px;\n height: 20px;\n text-align: center;\n border-radius: 12px;\n color: white;\n font-weight: bold;\n}\n.gwd-coupon-bar .gwd-take[data-v-3fdd510a] {\n margin-right: 12px;\n width: 74px;\n height: 20px;\n font-size: 12px;\n}\n.gwd-coupon-bar .gwd-take span[data-v-3fdd510a] {\n flex: 1;\n text-align: center;\n}\n.gwd-coupon-bar .gwd-qr-hover-window[data-v-3fdd510a] {\n width: 136px;\n height: 160px;\n background: #fff9f6;\n position: absolute;\n box-sizing: border-box;\n border-width: 1px;\n border-style: solid;\n top: 37px;\n left: 345px;\n display: none;\n z-index: 99;\n}\n.gwd-coupon-bar[data-v-3fdd510a]:hover {\n text-decoration: none;\n}\n.gwd-coupon-bar:hover .gwd-qr-hover-window[data-v-3fdd510a] {\n display: flex;\n}\n", ""]); // exports /***/ }), /***/ "c07fb2b6cebe8e8b123e": /***/ (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_PriceProtectBar_vue_vue_type_style_index_0_id_074e6fb7_scoped_true_lang_less___ = __webpack_require__("c0de6cff06a04fcfeadc"); /* 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_PriceProtectBar_vue_vue_type_style_index_0_id_074e6fb7_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_PriceProtectBar_vue_vue_type_style_index_0_id_074e6fb7_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_PriceProtectBar_vue_vue_type_style_index_0_id_074e6fb7_scoped_true_lang_less____default.a); /***/ }), /***/ "c0de6cff06a04fcfeadc": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("098b134186cfa32dfbae"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("68b5221d", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./PriceProtectBar.vue?vue&type=style&index=0&id=074e6fb7&scoped=true&lang=less&", function() { var newContent = require("!!../../../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!./PriceProtectBar.vue?vue&type=style&index=0&id=074e6fb7&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "c18197bed82d1d15ff88": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("11d87f21be52f7e7e1be"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("980bf49a", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./ProductItem.vue?vue&type=style&index=0&id=6894d428&scoped=true&lang=less&", function() { var newContent = require("!!../../../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!./ProductItem.vue?vue&type=style&index=0&id=6894d428&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "c19dcdaa9e39f34d9e04": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("b110ddf767e87a112ae3"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("78cca8d4", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./MemberCouponQr.vue?vue&type=style&index=0&id=498face2&scoped=true&lang=less&", function() { var newContent = require("!!../../../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!./MemberCouponQr.vue?vue&type=style&index=0&id=498face2&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "c285b98bebfd87c77a38": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_style_index_0_id_3fdd510a_scoped_true_lang_less___ = __webpack_require__("62fe80c9218a9dbf937f"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_style_index_0_id_3fdd510a_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_style_index_0_id_3fdd510a_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_style_index_0_id_3fdd510a_scoped_true_lang_less____default.a); /***/ }), /***/ "c2aabcbe25e54d335bf3": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, "#top_coupon_btn[data-v-05b8b243] {\n background: url(https://cdn.gwdang.com/images/extensions/bijiago/bottomCoupon@2x.png) 0 0 no-repeat;\n display: inline-flex;\n height: 28px;\n width: 161px;\n white-space: nowrap;\n position: relative;\n z-index: 999999999999;\n padding: 0 !important;\n margin: 3px 40px 4px 0!important;\n border: none !important;\n background-size: cover;\n align-items: center;\n text-decoration: none!important;\n}\n.coupon_detail[data-v-05b8b243] {\n position: absolute;\n right: 1px;\n height: 156px;\n width: 146px;\n z-index: 99999999999;\n background: #FFF6F4;\n border: 1px solid #FF6132;\n display: none;\n}\n#bjgext_mainbar .coupon_detail[data-v-05b8b243] {\n top: initial!important;\n}\n#top_coupon_btn:hover .coupon_detail[data-v-05b8b243] {\n display: block;\n}\n.coupon_detail img[data-v-05b8b243] {\n width: 118px;\n height: 118px;\n float: left;\n margin-left: 14px;\n margin-top: 8px;\n}\n.coupon_detail span[data-v-05b8b243] {\n font-size: 14px;\n color: #FF4335 !important;\n letter-spacing: 0.22px;\n font-weight: bold;\n float: left;\n height: 14px;\n line-height: 14px;\n width: 100%;\n margin-top: 6px;\n text-align: center;\n}\n.coupon-marleft[data-v-05b8b243] {\n height: 100%;\n width: 10px;\n float: left !important;\n border-left: 1px solid #edf1f2;\n}\n.link_hand[data-v-05b8b243] {\n display: inline-block;\n height: 30px;\n width: 38px;\n position: absolute;\n right: -38px;\n top: -2px;\n background: url(https://cdn.gwdang.com/images/extensions/newbar/hand.gif) 0px 0px no-repeat;\n}\n#top_coupon_btn *[data-v-05b8b243] {\n color: #fff;\n /*float: left;*/\n font-family: \"microsoft yahei\";\n}\n#top_coupon_btn .top-coupon-tle[data-v-05b8b243] {\n height: 16px;\n text-align: center;\n line-height: 16px;\n margin-left: 8px;\n font-size: 12px !important;\n font-weight: normal !important;\n}\n#top_coupon_btn .price-num[data-v-05b8b243] {\n font-size: 14px;\n color: #FFFFFF;\n font-weight: bold;\n width: 46px;\n height: 22px;\n text-align: center;\n margin-left: 3px;\n line-height: 22px !important;\n padding: 0px !important;\n vertical-align: middle;\n}\n#top_coupon_btn .price-num span[data-v-05b8b243] {\n display: inline;\n}\n#top_coupon_btn .price-sm[data-v-05b8b243] {\n font-size: 12px;\n transform: scale(0.8333);\n transform-origin: bottom right;\n}\n", ""]); // exports /***/ }), /***/ "c43aa2dd8b6edea6c41a": /***/ (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_PriceProtectJdLogin_vue_vue_type_style_index_0_id_e995141a_scoped_true_lang_less___ = __webpack_require__("df8cf8aedb212481092a"); /* 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_PriceProtectJdLogin_vue_vue_type_style_index_0_id_e995141a_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_PriceProtectJdLogin_vue_vue_type_style_index_0_id_e995141a_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_PriceProtectJdLogin_vue_vue_type_style_index_0_id_e995141a_scoped_true_lang_less____default.a); /***/ }), /***/ "c46f7dae3143963b076f": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { data: function data() { return { positionStyle: 'left: 0' }; }, mounted: function mounted() { var _this = this; this.$el.parentElement.addEventListener('DOMSubtreeModified', function () { if (window.innerWidth - _this.$el.offsetLeft <= 564) { _this.positionStyle = 'right: -1'; } }); } }; module.exports = exports['default']; /***/ }), /***/ "c4adb5832af3824ff1c6": /***/ (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 JdRankList = __webpack_require__("1a0cda2f74042332262b")['default']; var util = __webpack_require__("3e983ecbff4e1a29654c"); var jdOriginRank = null; var addLink = function addLink() { var a, id, now_url; return regeneratorRuntime.async(function addLink$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: a = document.createElement('A'); a.innerHTML = '\n <img style="width: 24px; height: 24px; margin-right: 5px;" src="https://cdn.gwdang.com/images/extensions/hand-white@2x.png">\n <img src="https://cdn.gwdang.com/images/extensions/switchToPc.svg">\n '; a.id = 'gwd-link'; a.style.position = 'fixed'; a.style.width = '258px'; a.style.height = '43px'; a.style.background = '#e03024'; a.style.borderRadius = '4px'; a.style.top = '50%'; a.style.left = '75%'; a.style.zIndex = 9; a.classList.add('gwd-row'); a.classList.add('gwd-align'); a.style.justifyContent = 'center'; a.id = 'gwd-link-m'; id = location.href.split('product/')[1]; if (id) { context$1$0.next = 21; break; } context$1$0.next = 19; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('GwdDpIdGot')); case 19: id = context$1$0.sent; id = id.replace('-3', '.html'); case 21: now_url = 'https://item.jd.com/' + id; a.href = G.u_server + '/union/go?site_id=3&target_url=' + encodeURI(now_url) + '&union=' + G.union + '&column=h5_to_pc'; document.body.appendChild(a); case 24: case 'end': return context$1$0.stop(); } }, null, _this); }; var dpAddRanking = function dpAddRanking(dpId) { var aList, cat, last, lastUrl, res, e, r, catId, link, a, widthLeft, widthRight, total, length, e2; return regeneratorRuntime.async(function dpAddRanking$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: aList = $('.crumb-wrap .crumb.fl .item > a').toArray(); cat = ''; if (aList.length) { last = aList[aList.length - 1]; lastUrl = last.href; cat = util.getParameterByName('cat', lastUrl); } context$1$0.next = 5; return regeneratorRuntime.awrap(request.get(G.server + '/extension/RelatedRank?dp_id=' + dpId + (cat ? '&jcid=' + cat : ''))); case 5: res = context$1$0.sent; e = document.createElement('DIV'); $('.preview-wrap').append(e); r = []; if (res.data) { if (res.data.rank_p) { r = r.concat(res.data.rank_p); } if (res.data.rank_c) { r = r.concat(res.data.rank_c); } } if (r.length) { context$1$0.next = 16; break; } catId = G.dp.cat_id.split('-').join(','); context$1$0.next = 14; return regeneratorRuntime.awrap(request.get(G.server + '/extension/RelatedRank?jcid=' + catId)); case 14: r = context$1$0.sent; r = r.data.rank_c; case 16: if (!r.length && jdOriginRank) { link = 'https://ranking.m.jd.com/comLandingPage/comLandingPage?contentId=' + jdOriginRank.rankId + '&rankType=' + jdOriginRank.rankTypeInt + '&from=gwdang'; link = encodeURIComponent(link); r = [{ rname: jdOriginRank.name.split('·')[0], site_id: '3', s: 1, rurl: G.u_server + '/union/go/?site_id=3&target_url=' + link + '&union=union_gwdang&column=rank&crc64=1' }]; } a = document.createElement('A'); a.innerHTML = '查看榜单全部商品'; a.classList.add('gwd-font11'); a.classList.add('gwd-red-after-visit'); a.href = r[0].rurl; a.target = '_blank'; a.style.color = '#7d7e80'; a.style.textDecoration = 'underline'; a.style.position = 'relative'; a.style.top = '-3px'; a.style.display = 'inline-block'; a.style.marginLeft = '15px'; // a.addEventListener('click', e => { // e.preventDefault() // window.gwdRank.rankClick(r[0]) // }) $('.preview-wrap').append(a); new Vue({ el: e, render: function render(h) { return h(JdRankList, { props: { data: r.map(function (item) { return item; }), top: 15, additionalClass: 'gwd-w210' } }); } }); context$1$0.next = 33; return regeneratorRuntime.awrap(__webpack_require__("3e983ecbff4e1a29654c").sleep(2000)); case 33: widthLeft = $('.crumb.fl').css('width'), widthRight = $('.contact.fr').css('width'), total = $('#crumb-wrap .w').css('width'); length = parseInt(total) - parseInt(widthLeft) - parseInt(widthRight); if (!(length < 235)) { context$1$0.next = 37; break; } return context$1$0.abrupt('return'); case 37: e2 = document.createElement('DIV'); $('.crumb.fl').append(e2); new Vue({ el: e2, render: function render(h) { return h(JdRankList, { props: { data: r.map(function (item) { return item; }), top: -3, additionalClass: 'gwd-w235' } }); } }); // const a2 = document.createElement('A') // a2.innerHTML = '查看' // a2.classList.add('gwd-font11') // a2.classList.add('gwd-red-after-visit') // a2.href = r[0].rurl // a2.target = '_blank' // a2.style.color = '#7d7e80' // a2.style.textDecoration = 'underline' // a2.style.position = 'relative' // a2.style.top = '-3px' // a2.style.display = 'inline-block' // a2.style.marginLeft = '15px' // $('.crumb.fl').append(a2) // setTimeout(() => { // let h = $('#crumb-wrap').height() // debugger // if (h > 50) { // a2.remove() // } // }, 300) case 40: case 'end': return context$1$0.stop(); } }, null, _this); }; var listPageAddRanking = function listPageAddRanking(res) { if (!res || !res.data) { return; } setInterval(function () { console.log('check...'); if (!$('.gwd-jd-rank').length) { var e = document.createElement('DIV'); $('#J_selectorPrice').after(e); new Vue({ el: e, render: function render(h) { return h(JdRankList, { props: { data: res.data.rank_c, top: -1, additionalClass: 'gwd-w217' } }); } }); } }, 2000); }; var searchAddRanking = function searchAddRanking() { var word, res; return regeneratorRuntime.async(function searchAddRanking$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: word = util.getParameterByName('keyword'); context$1$0.next = 3; return regeneratorRuntime.awrap(request.get(G.server + '/extension/RelatedRank?w=' + word)); case 3: res = context$1$0.sent; listPageAddRanking(res); case 5: case 'end': return context$1$0.stop(); } }, null, _this); }; var listAddRanking = function listAddRanking() { var word, res; return regeneratorRuntime.async(function listAddRanking$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: word = util.getParameterByName('cat'); context$1$0.next = 3; return regeneratorRuntime.awrap(request.get(G.server + '/extension/RelatedRank?jcid=' + word)); case 3: res = context$1$0.sent; console.log(res); listPageAddRanking(res); case 6: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports = { init: function init() { var s, dpId; return regeneratorRuntime.async(function init$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!(G.site !== '360buy')) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: if (!(G.from_device === 'bijiago' || G.from_device === 'biyibi')) { context$1$0.next = 5; break; } if (!window.gwd_G) { context$1$0.next = 5; break; } return context$1$0.abrupt('return'); case 5: s = document.createElement('STYLE'); s.innerHTML = ' .gwd_unfold .fixed { top: initial } '; document.body.appendChild(s); if (location.href.includes('item.m.jd.com/') || location.href.includes('mitem.jd.hk/product') || location.href.includes('.m.jd.com/product')) { addLink(); } if (!(G.pageInfo.type === 2)) { context$1$0.next = 21; break; } context$1$0.next = 12; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return pageConfig.eventTarget; }, 0)); case 12: window.pageConfig.eventTarget.addListener('onStockReady', function (e) { __webpack_require__("316f9c352c6202560d16").log('tg', e.stock.data.rankUnited.revertItem); jdOriginRank = e.stock.data.rankUnited.revertItem; }); context$1$0.next = 15; return regeneratorRuntime.awrap(globalCondition.met('GwdDpIdGot')); case 15: dpId = context$1$0.sent; context$1$0.next = 18; return regeneratorRuntime.awrap(globalCondition.met('QRLinkReady')); case 18: dpAddRanking(dpId); context$1$0.next = 22; break; case 21: if (location.href.toLowerCase().includes('search.jd.com/search?keyword')) { searchAddRanking(); } else if (location.href.includes('https://list.jd.com/list.html')) { listAddRanking(); } case 22: case 'end': return context$1$0.stop(); } }, null, this); } }; //console.log('add dpId', dpId) /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "c50d77118f6990a4f9d7": /***/ (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_MiniFavor_vue_vue_type_script_lang_js___ = __webpack_require__("eab0e5af93d0fd8b0ae9"); /* 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_MiniFavor_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_MiniFavor_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_MiniFavor_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_MiniFavor_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_MiniFavor_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "c5b76235290de2af4058": /***/ (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_BjgBottomWindow_vue_vue_type_template_id_683c35f8_scoped_true___ = __webpack_require__("04bfff5a5fea5456f49d"); /* 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_BjgBottomWindow_vue_vue_type_template_id_683c35f8_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_BjgBottomWindow_vue_vue_type_template_id_683c35f8_scoped_true___["b"]; }); /***/ }), /***/ "c62f444e95d32876714d": /***/ (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_QRLinkContactTmall_vue_vue_type_script_lang_js___ = __webpack_require__("dc8abfd81085af16105f"); /* 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_QRLinkContactTmall_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_QRLinkContactTmall_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_QRLinkContactTmall_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_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_QRLinkContactTmall_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_QRLinkContactTmall_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "c6c5de8f1270ad9ace63": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $, regeneratorRuntime) { var _this = this; var getCoupon = __webpack_require__("2eb8d6935e044e0d6d06"); var getCouponNew = __webpack_require__("6c0a23e5b52046830607"); var adzoneIdObj = { 'bjg923253': { 'adzone_id1': '10021', 'adzone_id2': '10021' }, 'union_bijiago': { 'adzone_id1': '10019', 'adzone_id2': '10019' }, 'union_bijiago_mogu': { 'adzone_id1': '10019', 'adzone_id2': '10019' }, 'union_bijiago_uos': { 'adzone_id1': '10015', 'adzone_id2': '10013' } }; var pidConfig = __webpack_require__("0cfce96dbc80f0b4a6d0"); var globalData = { tmall: [], taobao: [] }; var sizeObj = {}, totalObj = {}; var minPriceObj = {}; var minPriceStatus = {}; var cnt = 0; var renderCoupon = function renderCoupon(data, type, isBottom) { cnt++; if (cnt > 29) { //debugger } sizeObj[type]++; if (data && data.data) globalData[type].push(data.data); if (sizeObj[type] === totalObj[type]) { if (isBottom) { renderProdutBt(type, isBottom); } else { renderProdut(type); } if (G.aliSite) { if (G.runminiCoup === '1') { __webpack_require__("aac0839f8078e3c8248c").init(globalData, "#bjgext_mb_bg"); __webpack_require__("1e86314e538fab53771a").init(globalData); } else if (!G.runminiCoup) { G.runminiCoupon2 = true; $(document).on('runminiCoupon2', function () { __webpack_require__("aac0839f8078e3c8248c").init(globalData, "#bjgext_mb_bg"); __webpack_require__("1e86314e538fab53771a").init(globalData); }); } } } }; var renderProdutBt = function renderProdutBt(type, bdata) { var arr = globalData[type]; for (var i = 0; i < bdata.length; i++) { for (var j = 0; j < arr.length; j++) { if (bdata[i] && arr[j] && bdata[i].num_iid == arr[j].reqid) { var lastP = (Number(bdata[i].price) - parseFloat(arr[j].coupon.coupon_money)).toFixed(2); if (bdata[i].priceCut) { lastP = Number(bdata[i].price); } if (Number(lastP) < minPriceObj[type]) { minPriceObj[type] = lastP; minPriceStatus[type] = true; } var coupon_money = arr[j].coupon.coupon_money; bdata[i].url = arr[j].click_url2; if (lastP < 0) {} var ori = bdata[i].price; if (bdata[i].priceCut) { ori += parseFloat(arr[j].coupon.coupon_money); } ori = parseFloat(ori); lastP = parseFloat(lastP).toFixed(2); bdata[i].tspan = '<span class="coupon_span">领' + coupon_money + '元券</span>'; bdata[i].ta = '<div class="coupon_price">\n <span class="cou-pri-sp1">券后价:</span>\n <span class="cou-pri-sp2">¥' + lastP + '</span>\n <span class="cou-pri-sp3">¥' + ori.toFixed(2) + '</span>\n </div>'; if (G.lang === 'en') { bdata[i].tspan = '<span class="coupon_span">' + coupon_money + ' Coupon</span>'; bdata[i].ta = '<div class="coupon_price">\n <span class="cou-pri-sp1">Price after coupon:</span>\n <span class="cou-pri-sp2">¥' + lastP + '</span>\n <span class="cou-pri-sp3">¥' + ori.toFixed(2) + '</span>\n </div>'; } break; } } } if (minPriceStatus[type]) { $('.bjgext-item-tb[data-id="' + type + '"] .item-pri').text('¥' + parseFloat(minPriceObj[type]).toFixed(2)); } }; var renderProdut = function renderProdut(type) { var ul = $('#' + type + '-item-list li'); var len = ul.length; var arr = globalData[type]; for (var i = 0; i < len; i++) { var id = ul.eq(i).attr('data-id'); for (var j = 0; j < arr.length; j++) { if (arr[j] && arr[j].reqid == id) { ul.eq(i).find('.small-img').append($('<span class="coupon_span">领' + arr[j].coupon.coupon_money + '元券</span>')); var price = ul.eq(i).find('span.gwd-price').text(); var lastP = (Number(price.replace(/[¥¥]/g, '')) - arr[j].coupon.coupon_money).toFixed(2); ul.eq(i).find('.gwd-price').after($('<a href="' + arr[j].click_url2 + '" target="_blank" class="coupon_price">\n <span class="cou-pri-sp1">' + (G.lang === 'en' ? 'Price after coupon' : '券后价') + ':</span>\n <span class="cou-pri-sp2">¥' + lastP + '</span>\n <span class="cou-pri-sp3">' + price + '</span>\n </a>')).remove(); ul.eq(i).find('a').attr('href', arr[j].click_url2); } } } }; module.exports.init = function (data, type, isBottom, minpri) { if (G.forbidCoupon) { __webpack_require__("9c38beef5ff283e15bd2").setMet('AliProduct' + type, data); return; } if (!data) return; if (!data.length) return; minPriceObj[type] = minpri; totalObj[type] = data.length; sizeObj[type] = 0; if (isBottom) isBottom = data; var f2 = function f2(newData) { renderCoupon(newData, type, isBottom); }; if (!adzoneIdObj[G.union]) { adzoneIdObj[G.union] = { adzone_id1: 'default', adzone_id2: 'default' }; } var adzone_id = adzoneIdObj[G.union]['adzone_id2']; if (G.aliSite) { adzone_id = adzoneIdObj[G.union]['adzone_id1']; for (var i = 0; i < data.length; i++) { getCoupon.init(data[i].num_iid, adzone_id, f2); } return; } Promise.all(data.map(function (product) { return new Promise(function callee$2$0(resolve) { var coupon; return regeneratorRuntime.async(function callee$2$0$(context$3$0) { while (1) switch (context$3$0.prev = context$3$0.next) { case 0: context$3$0.next = 2; return regeneratorRuntime.awrap(getCoupon.byIdAndAdzone(product.num_iid, adzone_id)); case 2: coupon = context$3$0.sent; if (coupon) { renderCoupon(coupon, type, isBottom); product.price = product.price - coupon.data.coupon.coupon_money; product.priceCut = true; product.tspan = '<span class="coupon_span">领' + coupon.data.coupon.coupon_money + '元券</span>'; product.ta = '<div class="coupon_price">\n <span class="coupon_price_span">\n <span class="cou-pri-sp1">券后价:</span>\n <span class="cou-pri-sp2 prifontf">¥' + product.price.toFixed(2) + '</span>\n <span class="cou-pri-sp3 prifontf">¥' + (parseFloat(product.price) + parseFloat(coupon.data.coupon.coupon_money)).toFixed(2) + '</span>\n </span>\n </div>'; if (G.lang === 'en') { product.tspan = '<span class="coupon_span">' + coupon.data.coupon.coupon_money + ' Coupon</span>'; product.ta = '<div class="coupon_price">\n <span class="coupon_price_span">\n <span class="cou-pri-sp1">Price after coupon:</span>\n <span class="cou-pri-sp2 prifontf">¥' + product.price.toFixed(2) + '</span>\n <span class="cou-pri-sp3 prifontf">¥' + (parseFloat(product.price) + parseFloat(coupon.data.coupon.coupon_money)).toFixed(2) + '</span>\n </span>\n </div>'; } product.url = coupon.data.click_url2; } resolve(); case 5: case 'end': return context$3$0.stop(); } }, null, _this); }); })).then(function () { __webpack_require__("9c38beef5ff283e15bd2").setMet('AliProduct' + type, data); if (isBottom) { renderProdutBt(type, isBottom); } else { renderProdut(type); } }); }; // let coupon = await getCouponNew.initWithDpAsync(product.num_iid, pidConfig[G.union], 'compare'); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "c6e201ee578544e5da38": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("8fb031a388a8723c750a"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("4dfae76a", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./ShopCouponTop.vue?vue&type=style&index=1&id=05b8b243&scoped=true&lang=less&", function() { var newContent = require("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./ShopCouponTop.vue?vue&type=style&index=1&id=05b8b243&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "c8a5b6d6a4f6c49bbced": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-promo-plan[data-v-24d41b24] {\n z-index: 999;\n display: none;\n background: white;\n position: absolute;\n left: 0;\n right: 0;\n box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.2);\n top: 35px;\n box-sizing: border-box;\n padding: 10px;\n}\n.gwd-promo-plan *[data-v-24d41b24] {\n float: initial;\n}\n.gwd-promo-plan table[data-v-24d41b24] {\n border-collapse: collapse;\n width: 100%;\n white-space: initial;\n}\n.gwd-promo-plan table .red[data-v-24d41b24] {\n color: #e4393c;\n}\n.gwd-promo-plan table th[data-v-24d41b24] {\n padding-left: 10px;\n text-align: left;\n height: 30px;\n background: #f1f9fc;\n font-weight: normal;\n}\n.gwd-promo-plan table th span[data-v-24d41b24] {\n display: inline-block;\n font-size: 12px;\n transform: scale(0.833);\n transform-origin: left center;\n color: #969899;\n white-space: nowrap;\n}\n.gwd-promo-plan table th[data-v-24d41b24],\n.gwd-promo-plan table td[data-v-24d41b24] {\n border: 1px solid #edf1f2;\n box-sizing: border-box;\n vertical-align: middle;\n line-height: 17px;\n}\n.gwd-promo-plan table td[data-v-24d41b24] {\n min-height: 35px;\n}\n.gwd-promo-plan table td a[data-v-24d41b24] {\n text-decoration: underline;\n}\n.gwd-promo-plan table td a[data-v-24d41b24]:hover {\n color: #e4393c !important;\n}\n.gwd-promo-plan .gwd-p-qrcode[data-v-24d41b24] {\n box-sizing: border-box;\n position: absolute;\n bottom: -1px;\n top: -36px;\n z-index: 999;\n width: 130px;\n background: white;\n border: 1px solid #e6e9eb;\n box-shadow: 2px 1px 3px 0 rgba(0, 0, 0, 0.2);\n right: -130px;\n font-size: 0;\n}\n.gwd-promo-plan .gwd-p-qrcode span[data-v-24d41b24] {\n display: inline-block;\n}\n", ""]); // exports /***/ }), /***/ "c93ec1baf074bff55639": /***/ (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-qr-login gwd-column gwd-align" }, [ _vm._m(0), _vm._v(" "), _c("div", { staticClass: "gwd-column gwd-qr-box gwd-align" }, [ _c( "div", { staticStyle: { width: "174px", height: "174px", padding: "7px", background: "white", "margin-top": "8px" } }, [ _c("img", { staticStyle: { width: "100%" }, attrs: { src: _vm.qr, alt: "" } }) ] ), _vm._v(" "), _vm._m(1) ]) ]) } var staticRenderFns = [ function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "gwd-row gwd-align" }, [ _c("img", { staticStyle: { width: "24px", height: "24px" }, attrs: { src: __webpack_require__("23cbb64b6c383b077299"), alt: "" } }), _vm._v(" "), _c( "span", { staticStyle: { "margin-left": "10px", color: "#ff471a", "font-size": "20px" } }, [_vm._v("淘宝APP扫码领券")] ) ]) }, function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "gwd-row gwd-align", staticStyle: { "margin-top": "6px" } }, [ _c("span", { staticStyle: { color: "#ff471a", "font-size": "16px" } }, [ _vm._v("淘宝APP") ]), _vm._v(" "), _c( "span", { staticStyle: { color: "#333333", "font-size": "14px", "margin-left": "17px" } }, [_vm._v("扫码直接领券")] ) ] ) } ] render._withStripped = true /***/ }), /***/ "c9509a72cff3f5d9d6af": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("05e28a0377759f2204f7"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("6a4e2570", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./HistoryBar.vue?vue&type=style&index=0&id=5d29fc05&scoped=true&lang=less&", function() { var newContent = require("!!../../../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!./HistoryBar.vue?vue&type=style&index=0&id=5d29fc05&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "c9ec13fb747b6ace4abd": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjgou-subsidy-bar-bottom .qrcode[data-v-1cab7080] {\n display: none;\n position: absolute;\n bottom: 45px;\n right: 5px;\n width: 148px;\n height: 156px;\n background: #FFF6F4;\n border: 1px solid #FF6132;\n z-index: 9;\n}\n.bjgou-subsidy-bar-bottom:hover .qrcode[data-v-1cab7080] {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n", ""]); // exports /***/ }), /***/ "ca7be28a871c3228a696": /***/ (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_MiniList_vue_vue_type_template_id_5637898a_scoped_true___ = __webpack_require__("3120ab72735731c31213"); /* 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_MiniList_vue_vue_type_template_id_5637898a_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_MiniList_vue_vue_type_template_id_5637898a_scoped_true___["b"]; }); /***/ }), /***/ "ca857091745b3a6ed71e": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* MIT License Copyright (c) 2020 Egor Nepomnyaschih Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /* // This constant can also be computed with the following algorithm: const base64abc = [], A = "A".charCodeAt(0), a = "a".charCodeAt(0), n = "0".charCodeAt(0); for (let i = 0; i < 26; ++i) { base64abc.push(String.fromCharCode(A + i)); } for (let i = 0; i < 26; ++i) { base64abc.push(String.fromCharCode(a + i)); } for (let i = 0; i < 10; ++i) { base64abc.push(String.fromCharCode(n + i)); } base64abc.push("+"); base64abc.push("/"); */ Object.defineProperty(exports, "__esModule", { value: true }); exports.bytesToBase64 = bytesToBase64; exports.base64ToBytes = base64ToBytes; exports.base64encode = base64encode; exports.base64decode = base64decode; var base64abc = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/"]; /* // This constant can also be computed with the following algorithm: const l = 256, base64codes = new Uint8Array(l); for (let i = 0; i < l; ++i) { base64codes[i] = 255; // invalid character } base64abc.forEach((char, index) => { base64codes[char.charCodeAt(0)] = index; }); base64codes["=".charCodeAt(0)] = 0; // ignored anyway, so we just need to prevent an error */ var base64codes = [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 62, 255, 255, 255, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 255, 255, 255, 0, 255, 255, 255, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 255, 255, 255, 255, 255, 255, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51]; function getBase64Code(charCode) { if (charCode >= base64codes.length) { throw new Error("Unable to parse base64 string."); } var code = base64codes[charCode]; if (code === 255) { throw new Error("Unable to parse base64 string."); } return code; } function bytesToBase64(bytes) { var result = '', i = undefined, l = bytes.length; for (i = 2; i < l; i += 3) { result += base64abc[bytes[i - 2] >> 2]; result += base64abc[(bytes[i - 2] & 0x03) << 4 | bytes[i - 1] >> 4]; result += base64abc[(bytes[i - 1] & 0x0F) << 2 | bytes[i] >> 6]; result += base64abc[bytes[i] & 0x3F]; } if (i === l + 1) { // 1 octet yet to write result += base64abc[bytes[i - 2] >> 2]; result += base64abc[(bytes[i - 2] & 0x03) << 4]; result += "=="; } if (i === l) { // 2 octets yet to write result += base64abc[bytes[i - 2] >> 2]; result += base64abc[(bytes[i - 2] & 0x03) << 4 | bytes[i - 1] >> 4]; result += base64abc[(bytes[i - 1] & 0x0F) << 2]; result += "="; } return result; } function base64ToBytes(str) { if (str.length % 4 !== 0) { throw new Error("Unable to parse base64 string."); } var index = str.indexOf("="); if (index !== -1 && index < str.length - 2) { throw new Error("Unable to parse base64 string."); } var missingOctets = str.endsWith("==") ? 2 : str.endsWith("=") ? 1 : 0, n = str.length, result = new Uint8Array(3 * (n / 4)), buffer = undefined; for (var i = 0, j = 0; i < n; i += 4, j += 3) { buffer = getBase64Code(str.charCodeAt(i)) << 18 | getBase64Code(str.charCodeAt(i + 1)) << 12 | getBase64Code(str.charCodeAt(i + 2)) << 6 | getBase64Code(str.charCodeAt(i + 3)); result[j] = buffer >> 16; result[j + 1] = buffer >> 8 & 0xFF; result[j + 2] = buffer & 0xFF; } return result.subarray(0, result.length - missingOctets); } function base64encode(str) { var encoder = arguments.length <= 1 || arguments[1] === undefined ? new TextEncoder() : arguments[1]; return bytesToBase64(encoder.encode(str)); } function base64decode(str) { var decoder = arguments.length <= 1 || arguments[1] === undefined ? new TextDecoder() : arguments[1]; return decoder.decode(base64ToBytes(str)); } /***/ }), /***/ "cb0906562effcf1b0e6c": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var request = __webpack_require__("91f250ebeb8d5987491c"); var countryConfig = __webpack_require__("9bf6d059e9a265559f0c"); var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var globalCurrency = {}; var unitConfig = [{ unitName: '千', times: 1000 }, { unitName: '万', times: 10000 }]; var unit = 1; var getPriceBeforeExchangeRate = function getPriceBeforeExchangeRate(price, type) { if (!price) return; price = price.toString(); unit = 1; if (Array.prototype.forEach) { unitConfig.forEach(function (i) { if (price.indexOf(i.unitName) > -1) { unit = i.times; } }); } price = price.replace(/^[^\d]+/ig, ''); price = price.replace(/[¥\$]/ig, ''); price = price.match(/[0-9.,]+/) && price.match(/[0-9.,]+/)[0]; if (!price) return price; price = priceFormat(price, type); price = price.replace(/,/ig, ''); price = $.trim(price); var range_left = price.indexOf('-'); if (range_left > 0) { price = price.substr(0, range_left); } //修正价格提取出现的小数部分不准确问题(如一号店) price = price.replace(/^(\d+\.)\<.+\>(\d{0,2})\<\/.+\>/ig, "$1$2"); return price; }; module.exports = function (price, type) { price = getPriceBeforeExchangeRate(price, type); //fix end price = exchangeRate(price, type); if (parseFloat(price) > 0) { price = parseFloat(price); if (unit) price = price * unit; return price; } else return 0; }; module.exports.getPriceBeforeExchangeRate = getPriceBeforeExchangeRate; var exchangeRate = function exchangeRate(price, type) { var exRate = undefined; if (type) { exRate = globalCurrency[type] || 1; } else { exRate = userData.get('currency') || G.currency || 1; } return parseFloat((Number(price) * exRate).toFixed(2)); }; var priceFormat = function priceFormat(price, type) { if (type) return price; if (G.pageInfo.type == 1) return price; var host = location.host; var euroAmazonConfig = { 'www.amazon.de': 'prime', 'www.amazon.fr': 'premium' }; if (euroAmazonConfig[host] && $('#nav-logo .nav-logo-tagline').text().replace(/\s/g, '').trim().toLowerCase().indexOf(euroAmazonConfig[host]) > -1) price = price.replace('.', '').replace(',', '.'); return price; }; var storeRate = function storeRate(currency) { communicate.trigger({ type: 'setStoreRate', info: JSON.stringify(currency) }); }; var getStoreRate = function getStoreRate() { communicate.on(function (info) { if (info && info.type == 'getStoreRate') { try { var currency = info.value.currency; var newInfo = JSON.parse(currency); globalCurrency = newInfo.elsecurr; G.currency = newInfo.currency; } catch (e) {} } }); communicate.trigger({ type: 'getStoreRate' }); }; var readyGet = function readyGet() { if (location.host === 'www.amazon.cn') return; if (location.host.indexOf('amazon') > -1 || location.host.indexOf('6pm') > -1) { getStoreRate(); } }; readyGet(); module.exports.getExRate = function (type) { return parseFloat(globalCurrency[type] | 1); }; module.exports.getRate = function (callback) { var site = G.logsite; var moneyInfo = countryConfig.getMoneyInfo(site); if (moneyInfo) { var url = G.server + '/extension?ac=currency&url=' + encodeURIComponent(location.href); request.get(url).then(function (data) { if (data && data.currency) { userData.set('currency', data.currency); globalCurrency = data.elsecurr; G.currency = data.currency; storeRate(data); } callback(); })['catch'](function () { //callback() }); } else { callback(); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "cbdd14bb7d8022e75be0": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, "\n.bjgext-item-dp {\n display: none;\n}\n", ""]); // exports /***/ }), /***/ "cc45d932d8dbdb86f2f3": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { module.exports = function (obj) { if (G.from_device === '360' || G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) { if (G.from_device === 'bijiago' && G.ss_name !== 'priceDog' || G.cooperation) { obj.sitename = 'taobao'; } else { if (obj.source) { var url = obj.pureUrl || obj.url; url = url + (url.indexOf('?') > -1 ? '&' : '?') + 'source=' + obj.source; // if (!G.forbidCoupon) { // url = `${G.server}/extension/RedirectInTb?id=${obj.id}&format=&site=taobao` // } return url; } } } var source = ''; var site = obj.sitename || ''; if (obj.source) source = obj.source; // if (G.ss_name === 'priceDog' && G.aliSite) { // debugger // return `https://tb.pricedog.com/extension/qrpage?dp_id=${obj.id}&tag=9_chrome&discount=${data.coupon.coupon_money}` // } if (true) return G.u_server + '/redirect/tao?id=' + obj.id + '&site=' + site + '&source=' + source + '&from_device=' + G.from_device + '&union=' + G.union; }; module.exports.buildCommon = function (data) { // 针对淘宝客接口tbres 返回的数据 没有优惠券的部分做链接转换。 if (!(data.tmall instanceof Array)) { for (var i = 0; i < data.tmall.product.length; i++) { var item = data.tmall.product[i]; var obj = { 'source': 'common', 'img_url': item.pic_url, 'title': item.title, 'price': item.price, 'shop_name': item.nick, 'sales': item.volume || '0', 'id': item.num_iid, 'url': item.url, 'discuss': item.comment_count || '0', 'istaobao': '0', 'pureUrl': "https://detail.tmall.com/item.htm?id=" + item.num_iid, 'dp_id': G.now_dp_id, 'site_id': G.site_id }; if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) { if ((G.from_device === 'bijiago' || G.cooperation) && !G.forbidCoupon) { item.url = module.exports(obj); } else if (!G.forbidCoupon) { // item.url = `https://hb.fan-yong.com/tb/convert/?p=108607450089&u=${item.num_iid}&t=0` // item.url = `${G.server}/extension/RedirectInTb?id=${item.num_iid}&format=&site=taobao`; item.url = obj.pureUrl + '&source=common'; } else { item.url = obj.pureUrl + '&source=common'; } } else { item.url = module.exports(obj); } } } if (!(data.taobao instanceof Array)) { for (var i = 0; i < data.taobao.product.length; i++) { var item = data.taobao.product[i]; var obj = { 'source': 'common', 'img_url': item.pic_url, 'title': item.title, 'price': item.price, 'shop_name': '', 'sales': item.volume || '0', 'id': item.num_iid, 'url': item.url, 'discuss': item.comment_count || '0', 'istaobao': '1', 'pureUrl': "https://item.taobao.com/item.htm?id=" + item.num_iid, 'dp_id': G.now_dp_id, 'site_id': G.site_id }; if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) { if ((G.from_device === 'bijiago' || G.cooperation) && !G.forbidCoupon) { item.url = module.exports(obj); } else if (!G.forbidCoupon) { // item.url = `https://hb.fan-yong.com/tb/convert/?p=108607450089&u=${item.num_iid}&t=0` // item.url = `${G.server}/extension/RedirectInTb?id=${item.num_iid}&format=&site=taobao`; item.url = obj.pureUrl + '&source=common'; } else { item.url = obj.pureUrl + '&source=common'; } } else { item.url = module.exports(obj); } } } return data; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "cc869e1f4fd78e0a5473": /***/ (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_MemberCouponMini_vue_vue_type_script_lang_js___ = __webpack_require__("3d1e2b0181974f8586a2"); /* 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_MemberCouponMini_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_MemberCouponMini_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_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_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_MemberCouponMini_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_MemberCouponMini_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "ccd952a0cd9003e1d392": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, $, G) { var _this = this; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var request = __webpack_require__("91f250ebeb8d5987491c"); var siteInfo = __webpack_require__("5e05e6f5fe79ccf5d009"); var cachedRes = {}; var t = 0; var process = function process(list) { var result; return regeneratorRuntime.async(function process$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: $('i[data-tips=京东自营,品质保障]').parents('li').addClass('gwd-self'); context$1$0.next = 3; return regeneratorRuntime.awrap(request.post(G.server + '/extension/CouponMulti?union=' + G.union, { ids: list.join(','), site_id: 3 }, true, false)); case 3: result = context$1$0.sent; render(result); cachedRes = _extends({}, result, cachedRes); case 6: case 'end': return context$1$0.stop(); } }, null, _this); }; var mode = 'searchPage'; var render = function render(result) { if (!result) return; Object.keys(result).map(function (key) { if (result[key]) { var d = result[key]; if ($('li[data-sku=' + key + '] .p-img .search_coupon_tip').length) { return; } if ($('a[data-sku=' + key + '] .search_coupon_tip').length) { return; } $('li[data-sku=' + key + ']').addClass('gwd-has-coupon'); var txt1 = '当前商品点击领券立减' + d.coupon + '元', txt2 = '¥' + d.coupon + ' 优惠券'; if (G.ss_name === 'priceDog') { txt1 = '當前商品點擊領券立減' + d.coupon + '元'; txt2 = '¥' + d.coupon + ' 優惠券'; } if (mode === 'promoPage') { $('a[data-sku=' + key + ']:eq(0)').append('\n <a href="' + d.click_url + '" class="search_coupon_tip" title="' + txt1 + '" style="position: absolute; cursor:pointer; line-height: 23px; top: 0; right: 0; width: unset; min-width: 92px" target="_blank">' + txt2 + '</a>\n '); } else { $('li[data-sku=' + key + '] .p-img').append('\n <a href="' + d.click_url + '" class="search_coupon_tip" title="' + txt1 + '" style="position: absolute; cursor:pointer; line-height: 23px; top: 0; right: 0" target="_blank">' + txt2 + '</a>\n '); } } }); }; module.exports.init = function callee$0$0() { var excludeHosts, list, url, dom, modding, check; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: excludeHosts = ['order.jd.com', 'club.jd.com']; if (!excludeHosts.includes(location.hostname)) { context$1$0.next = 3; break; } return context$1$0.abrupt('return'); case 3: list = []; url = location.href; dom = $('#J_main')[0]; if (!dom) { dom = $('.babel-app')[0]; mode = 'promoPage'; $('body').on('click', '.search_coupon_tip', function (e) { e.preventDefault(); e.stopPropagation(); window.open(e.target.href); }); } if (!dom) dom = document.body; modding = false; check = function check(e) { if (modding) return; modding = true; var newList = $('ul.gl-warp li.gl-item').toArray().map(function (item) { return item.dataset.sku; }); if (!newList.length) { newList = $('.pd_common').toArray().filter(function (x) { return !x.dataset.sku; }).map(function (item) { if (item.attributes.jsonparams) { var p = JSON.parse(item.attributes.jsonparams.value); $(item).attr('data-sku', p.sku); return p.sku; } return false; }).filter(function (x) { return x; }); } if (!newList.length) { newList = $('a img').toArray().map(function (x) { var a = $(x).parents('a'); return { el: a, href: a.attr('href') }; }).filter(function (x) { if (x.el.attr('data-sku')) return false; if (siteInfo.isProductPage('https:' + x.href)) { var sku = x.href.replace(/[^\d]*/g, ''); x.el.attr('data-sku', sku); x.sku = sku; return true; } return false; }).map(function (x) { return x.sku; }); } modding = false; newList = newList.filter(function (x) { return list.indexOf(x) === -1; }); if (newList.length > 0) { console.log(newList); process(newList); list = list.concat(newList); } else if (location.href !== url) { setTimeout(function () { render(cachedRes); }, 1000); } url = location.href; }; check(); dom.addEventListener('DOMSubtreeModified', __webpack_require__("3e983ecbff4e1a29654c").debounce(check), false); case 12: case 'end': return context$1$0.stop(); } }, null, _this); }; // let list = $('ul.gl-warp li.gl-item').toArray().map(item => item.dataset.sku) // if (list.length) { // process(list) // } /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "cceeed893387dc9fce45": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, $) { var _this = this; var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })(); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); module.exports.init = function callee$0$0() { var localPromo, promoUrlMap, promos, coupons, couponLinks; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!(G.site !== '360buy')) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: context$1$0.next = 4; return regeneratorRuntime.awrap(globalCondition.met('localPromoGot')); case 4: localPromo = context$1$0.sent; context$1$0.next = 7; return regeneratorRuntime.awrap(globalCondition.met('remoteUrlMap')); case 7: promoUrlMap = context$1$0.sent; promos = localPromo.promo.map(function (item) { item = item.replace('http://', '//').replace('https://', '//'); if (item.indexOf(':') > -1) { var _item$split = item.split(':'); var _item$split2 = _slicedToArray(_item$split, 2); var url = _item$split2[0]; var text = _item$split2[1]; return { text: text, url: url }; } }); __webpack_require__("316f9c352c6202560d16").log('localPromo', localPromo); $('#prom .prom-item').toArray().forEach(function (item) { var textNode = $(item).find('.hl_red'); if (!textNode.length) { textNode = $(item).find('.mj_red'); } var typeNode = $(item).find('.hl_red_bg'); var urlNode = $(item).find('a'); if (!textNode.length || !typeNode.length) { return; } var text = textNode[0].innerText; if (text.includes('距结束还剩')) { text = text.split('距结束还剩')[0]; } var type = typeNode[0].innerText; if (type === '换购') { return; } var thePromo = promos.filter(function (promoItem) { if (!promoItem) { return false; } var url = false; // if (urlNode && urlNode.attr('href')) { // url = urlNode.attr('href') // } if (url && promoItem.url) { return url.indexOf(promoItem.url) > -1; } else { if (!(promoItem && promoItem.text)) { return false; } var toCompare = promoItem.text; if (toCompare.indexOf('--') > -1) { toCompare = toCompare.split('--')[1]; } if (toCompare.includes('距结束还剩')) { toCompare = toCompare.split('距结束还剩')[0]; } __webpack_require__("316f9c352c6202560d16").log(toCompare, text); return toCompare === text; } }); if (thePromo.length && G.ss_name !== 'priceDog') { var url = thePromo[0].url; var link = promoUrlMap[' ' + url]; $(item).append('<a href=' + link + ' target="_blank" style="color: #ee2f36; text-decoration: underline; margin-left: 5px; font-size: 12px; white-space: nowrap">查看此活动全部商品<img src="https://cdn.gwdang.com/images/extensions/redArrow.svg" style="width: 10px; height: 10px;"></a>'); } }); coupons = localPromo.quan.map(function (item) { item = item.toString().replace('http://', '//').replace('https://', '//'); if (item.indexOf(':') > -1) { var _item$split3 = item.split(':'); var _item$split32 = _slicedToArray(_item$split3, 2); var url = _item$split32[0]; var text = _item$split32[1]; return { text: text, url: url }; } }); coupons = coupons.filter(function (item) { return item && item.url; }); coupons = __webpack_require__("3e983ecbff4e1a29654c").arrayUnique(coupons, function (x) { return x.url; }); couponLinks = coupons.map(function (item, idx) { var link = promoUrlMap[' ' + item.url]; return '<a href=' + link + ' target="_blank"">查看' + item.text.split(',')[0] + '商品' + (idx === 0 ? '<img src="https://cdn.gwdang.com/images/extensions/redArrow.svg" style="width: 10px; height: 10px;">' : '') + '</a>'; }).join(''); if (coupons.length > 1) { $('#summary-quan .lh').append('\n <div class="gwd-jd-promo-coupons-wrapper ' + (coupons.length === 1 ? 'gwd-single-coupon' : '') + '">\n <div class="gwd-jd-promo-coupons">\n ' + couponLinks + '\n </div>\n </div>\n '); } else { $('#summary-quan .lh').append('\n <div class="gwd-single-coupon">\n ' + couponLinks + '\n </div>\n '); } $('#summary-quan .lh').css('line-height', 0); __webpack_require__("077190fa6c9d23369f6d"); case 18: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "ce1f5d69ec1c53770f90": /***/ (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_SectionTitle_vue_vue_type_script_lang_js___ = __webpack_require__("12825ef292bea7171cc1"); /* 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_SectionTitle_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_SectionTitle_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_SectionTitle_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_SectionTitle_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_SectionTitle_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "ce5673fceec6522bf6f5": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var parseprice = __webpack_require__("cb0906562effcf1b0e6c"); module.exports = function (data) { var newdata = []; var dp_price = G.dp.price || 0; if (G.site === '189') { for (var i = 0; i < data.length; i++) { if (parseprice(data[i].price) >= dp_price) newdata.push(data[i]); } return newdata; } else { return data; } }; module.exports.tb = function (data) { if (data instanceof Array) return data; var newdata = []; var product = data.product; var dp_price = G.dp.price || 0; for (var i = 0; i < product.length; i++) { if (product[i].img_url && !product[i].img_url.match(/_\d+x\d+/)) { product[i].img_url = product[i].img_url + '_100x100'; } if (product[i].pic_url && !product[i].pic_url.match(/_\d+x\d+/)) { product[i].pic_url = product[i].pic_url + '_100x100'; } } if (G.site === '189') { for (var i = 0; i < product.length; i++) { if (parseprice(product[i].price) >= dp_price) newdata.push(product[i]); } data.min_price = newdata[0] && newdata[0].price; data.product = newdata; } return data; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "ce801a3482787d15ee56": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "bjgou-mini-favor" }, [ _c("img", { style: _vm.productChecked ? "margin-top: -3px;" : "", attrs: { src: _vm.productChecked ? _vm.checked : _vm.clock, alt: "" } }), _vm._v(" "), _c( "span", { staticClass: "bjg-down", style: _vm.productChecked ? "margin-left: 9px;" : "margin-left: 3px;" }, [_vm._v(_vm._s(_vm.productChecked ? "降价提醒" : "降价提醒"))] ), _vm._v(" "), _vm.login ? _c("div", { staticClass: "bjgou-qr" }, [ _c( "span", { class: "bjgou-set " + (_vm.productChecked ? "" : "bjgou-unset"), on: { click: _vm.favorClick } }, [_vm._v(_vm._s(_vm.productChecked ? "取消提醒" : "设置提醒"))] ), _vm._v(" "), _c("img", { staticStyle: { width: "96px", height: "96px", "margin-top": "18px", "image-rendering": "crisp-edges" }, attrs: { src: "https://cdn.bijiago.com/images/extensions/bijiago/bjgou-qr-wechat-small.png", alt: "" } }), _vm._v(" "), _c( "span", { staticStyle: { "margin-top": "6px", color: "#ffae45", "font-size": "14px", "line-height": "22px", "font-weight": "bold" } }, [_vm._v("关注公众号")] ), _vm._v(" "), _c( "span", { staticStyle: { "margin-top": "2px", color: "#6b6761", "font-size": "12px", "line-height": "17px" } }, [_vm._v("商品降价实时提醒")] ) ]) : _vm._e(), _vm._v(" "), !_vm.login ? _c("div", { staticClass: "bjgou-login" }, [ _c( "button", { on: { click: function($event) { return _vm.goLogin() } } }, [_vm._v("登录")] ), _vm._v(" "), _c("span", [_vm._v("商品降价实时提醒")]) ]) : _vm._e() ]) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "cf094fe1ab460bb584a8": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { module.exports = { getString: function getString(config, key) { var u = 'zh'; if (G.lang) { u = G.lang; } if (G.ss_name === 'pricedog') { u = 'zh-tr'; } return config[key][u]; } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "cf29f8542c435ae4b9b6": /***/ (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_MemberCouponTop_vue_vue_type_script_lang_js___ = __webpack_require__("5b06e86d4e174cdfac92"); /* 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_MemberCouponTop_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_MemberCouponTop_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_MemberCouponTop_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_MemberCouponTop_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_MemberCouponTop_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "d098bd5eb9f0b2883cf6": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G) { var _this3 = this; var request = __webpack_require__("91f250ebeb8d5987491c"); var host = 'https://i.bijiago.com'; var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var util = __webpack_require__("d6aec8444c650eeab5f2"); var store = __webpack_require__("454ab82d0874a7273edd"); var client = __webpack_require__("660610db8f6e89357da9"); var loginCache = undefined; var dpCache = undefined; module.exports = { hasUserToken: function hasUserToken() { var _this = this; return new Promise(function callee$1$0(resolve) { var resolved, dpId; return regeneratorRuntime.async(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: resolved = false; communicate.trigger({ type: 'checkUserTokenBjg' }); communicate.on(function (data) { if (typeof data === 'string') { data = JSON.parse(data); } if (data.type === 'checkUserTokenBjg') { resolved = true; resolve(data.value); } }); if (!(navigator.userAgent.toLowerCase().indexOf('metasr') > -1 || !G.allowBackgroundRequest)) { context$2$0.next = 11; break; } if (!(loginCache !== undefined)) { context$2$0.next = 7; break; } resolve(loginCache); return context$2$0.abrupt('return'); case 7: context$2$0.next = 9; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('GwdDpIdGot')); case 9: dpId = context$2$0.sent; request.requestXHR(host + '/UserCollection/Check?dp_id=' + dpId + '&app_platform=ext').then(function (res) { if (res.code !== -3) { loginCache = true; resolve(true); dpCache = res; } else { loginCache = false; resolve(false); } }); case 11: case 'end': return context$2$0.stop(); } }, null, _this); }); }, goLogin: function goLogin() { var forceOpen = arguments.length <= 0 || arguments[0] === undefined ? false : arguments[0]; if (G.bgVer > 1) { location.href = 'https://www.bijiago.com/login?to=' + encodeURIComponent(location.href + (forceOpen ? '#forceOpen' : '')); } else { location.href = 'https://i.bijiago.com/UserUnion/Authorize?utype=2&app_platform=ext&_referer=' + encodeURIComponent(location.href + (forceOpen ? '#forceOpen' : '')); } }, del: function del(dp_id) { return request.requestXHRPost(host + '/UserCollection/Delete?app_platform=ext', { collection_id: dp_id }); }, getList: function getList(pg) { var tab = arguments.length <= 1 || arguments[1] === undefined ? 'default' : arguments[1]; return request.requestXHR(host + '/UserCollection/List?tab=' + tab + '&pg=' + pg + '&app_platform=ext&union=' + G.union); }, collect: function collect(dp_id) { var payload = { dp_id: dp_id, //price: G.dp.price * 100, url: location.href, title: G.dp.name ? G.dp.name : document.title, img: G.dp.img ? G.dp.img : G.dp.pic ? G.dp.pic : '' }; console.log('dp price collect', G.dp.price); if (G.dp.price) { payload.price = G.dp.price * 100; } else { payload.price = 0; } if (__webpack_require__("3dbec38a0e3472df70b7").isHaitao()) { payload.price = G.dp.oldPrice * 100; } return request.requestXHRPost(host + '/UserCollection/Add?app_platform=ext', payload); }, sendCartLog: function sendCartLog(payload) { return request.requestXHRPost(host + '/UserExtend/WorthOrderUpload?app_platform=ext', payload, false); }, hasWx: function hasWx() { return new Promise(function (resolve) { var t = util.getStorage('userHasWx'); if (t) { resolve(true); } else { request.requestXHR(host + '/UserUnion/hasWx').then(function (res) { if (res.data.hasWx) { util.setStorage('userHasWx', true); resolve(true); } }); } }); }, checked: function checked(dp_id) { if (G.productChecked) { return new Promise(function (resolve) { return resolve(G.productChecked); }); } else { return new Promise(function (resolve) { if (dpCache) { resolve(dpCache); } request.requestXHR(host + '/UserCollection/Check?dp_id=' + dp_id + '&app_platform=ext').then(function (res) { resolve(res); }); }); } } }; var inited = false; module.exports.init = function callee$0$0() { var user; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { var _this2 = this; while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!inited) { context$1$0.next = 2; break; } return context$1$0.abrupt('return', true); case 2: context$1$0.next = 4; return regeneratorRuntime.awrap(module.exports.hasUserToken()); case 4: user = context$1$0.sent; store.commit('user/setState', { userLogin: user }); if (user) { context$1$0.next = 9; break; } context$1$0.next = 9; return regeneratorRuntime.awrap(client.get('/clearUserName', {})); case 9: if (G.allowBackgroundRequest) { client.get('/getUserName', {}, function callee$1$0(data) { return regeneratorRuntime.async(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: store.commit('user/setState', { userName: data }); context$2$0.next = 3; return regeneratorRuntime.awrap(module.exports.hasWx()); case 3: if (!context$2$0.sent) { context$2$0.next = 5; break; } store.commit('user/setState', { userHasWx: true }); case 5: case 'end': return context$2$0.stop(); } }, null, _this2); }); } inited = true; return context$1$0.abrupt('return', true); case 12: case 'end': return context$1$0.stop(); } }, null, _this3); }; //if (true) { /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "d0be176400e0cbc97f82": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var sitearr = ['360buy', 'suning', 'gome', 'yihaodian', 'dangdang', 'kaola', 'tmall']; var inventoryCheck = __webpack_require__("a53850c80a1cfefa4efa"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); // const request = require('common/request') var promosPattern = { 'tmall': function tmall() { var promo = $('.tm-shopPromo-panel').text().trim(); if (!promo) { promo = $('[class^=Promotion--caption]').text().trim(); } return { promo: promo }; }, '360buy': function buy() { var tle1 = $('.J-more-prom-ins').text(); var tle2 = $('.J-prom em.hl_red_bg').text(); var price = $('.J-summary-price .p-price').text().replace(/[¥¥\s]+/g, ''); var arr = []; if (tle1.indexOf('满减') > -1 || tle2.indexOf('满减') > -1) { arr.push('满减:' + $('.J-prom em.hl_red_bg:contains("满减") + em.hl_red').text()); } if (tle1.indexOf('多买优惠') > -1 || tle2.indexOf('多买优惠') > -1) { arr.push('多买优惠:' + $('.J-prom em.hl_red_bg:contains("多买优惠") + em.hl_red').text()); } if (tle1.indexOf('满折') > -1 || tle2.indexOf('折') > -1) { arr.push('满折:' + $('.J-prom em.hl_red_bg:contains("满折") + em.hl_red').text()); } if ($('#summary-quan .quan-item').text().length > 0) { var text = Array.prototype.map.call($('#summary-quan .quan-item'), function (v) { return $(v).text().replace(/\s/g, ''); }).join(','); arr.push('领券:' + text); } return { price: price, promo: arr.join(';') }; }, 'suning': function suning() { var dom = $('#voucherTitle'); var labels = dom.find('label').text().replace(/\s/g, ''); var text = ''; var arr = []; if (labels.indexOf('满减') > -1 && dom.is(':visible')) { text = $('#voucherBox').text(); var smtxt = $('#voucherBox a').text(); text = '满减:' + text.replace(smtxt, ''); arr.push(text); } if ($('#getCoupon').length > 0 && $('#getCoupon').is(':visible')) { var text2 = Array.prototype.map.call(document.querySelectorAll('#freeCouponBox .p-quan2 .p-quan-white'), function (e) { return $(e).text(); }).join(","); if (text2) { text2 = "领券:" + text2; arr.push(text2); } } return { promo: arr.join(";") }; }, 'gome': function gome() { var dom = $('.prd-promotions-red'); var labels = dom.find('label').text(); var texts = []; if (dom.is(':visible') && labels.indexOf('满减') > -1) { texts.push('满减:' + $('.prd-promotions-red label:contains("满减")+span').text().replace(/\s/g, '')); } if (dom.is(':visible') && labels.indexOf('领劵') > -1) { texts.push('领券:' + $('.prd-promotions-red label:contains("领劵")+b').text().replace(/(?:左边|右边)/g, '').replace(/劵/g, '券')); } if ($('.prd-price-left').is(':visible') && $('.prd-price-left').text().indexOf('劵') > -1) { var arr = $('#lanjuan b').text().match(/满\d+减\d+/g); if (arr.length > 0) { texts.push('领券:' + arr.join(',')); } } return { promo: texts.join(';') }; }, 'yihaodian': function yihaodian() { var dom = $('#promotion_title'); var arr = []; var labels = dom.find('.list .fl span.sub').text(); if (labels.indexOf('满减') > -1 && dom.find('.list .fl span.sub').is(':visible')) { var text = "满减" + $('#promotion_title .list .fl span.sub:contains("满减")+ span.tit').text(); arr.push(text); } if (labels.indexOf('折扣') > -1 && dom.find('.list .fl span.sub').is(':visible')) { var text = "折扣" + $('#promotion_title .list .fl span.sub:contains("折扣")+ span.tit').text(); arr.push(text); } return { promo: arr.join(';') }; }, 'dangdang': function dangdang() { var dom = $('#promo-list'); var arr = []; if (dom.find('div.clearfix b:contains("满额减")').is(':visible')) { var txt = '满额减:' + $('#promo-list div.clearfix b:contains("满额减")+div.rule span').text(); arr.push(txt); } if (dom.find('div.clearfix b:contains("店铺促销")').is(':visible')) { var txt = '店铺促销:' + $('#promo-list div.clearfix b:contains("店铺促销")+div.rule span').text(); arr.push(txt); } return { promo: arr.join(';') }; }, 'kaola': function kaola() { var arr = []; if ($('.promotionwrap .m-zd-prt .m-dp-prt-title:contains("满额减")').is(':visible')) { var text = '满额减:' + $('.promotionwrap .m-zd-prt .m-dp-prt-title:contains("满额减")+span a').text(); arr.push(text); } if ($('.couponwrap').is(':visible')) { var text2 = '领券:' + Array.prototype.map.call(document.querySelectorAll('.couponwrap .li.ellipsis'), function (e) { return $(e).text(); }).join(","); arr.push(text2); } return { promo: arr.join(';') }; } }; var getJdPromoInfo = function getJdPromoInfo() { var promos = []; var dom = $('#prom-one .J-prom .prom-item'); var dom2 = $('#prom-quan .J-prom-quan'); if (dom.length > 0) { for (var i = 0; i < dom.length; i++) { if (dom.eq(i).find('a').text().indexOf('详情') > -1) { var tle = dom.eq(i).find('.hl_red').text(); var url = dom.eq(i).find('a').attr('href'); promos.push(encodeURIComponent(tle) + ',' + encodeURIComponent(url)); } } } if (dom2.length > 0) { for (var i = 0; i < dom2.length; i++) { if (dom2.eq(i).find('a').text().indexOf('详情') > -1) { var tle = dom2.eq(i).find('.hl_red').text(); var url = dom2.eq(i).find('a').attr('href'); promos.push(encodeURIComponent(tle) + ',' + encodeURIComponent(url)); } } } return promos.join(';'); }; var getPromoInfo = function getPromoInfo(inventory) { var dp = G.dp; var other_info = userData.get('other_info'); var promoinfo = promosPattern[G.site](); var price = other_info['code-server'].price || dp.price; if (!price) price = promoinfo.price; var info = { dp_id: other_info.now.dp_id, name: dp.name, price: price, promo: promoinfo.promo, stock: inventory }; return info; }; var getJdPromo = function getJdPromo(inventory, callback) { var dp = G.dp; var other_info = userData.get('other_info'); var price = other_info['code-server'].price || dp.price; var promoinfo = promosPattern[G.site](); if (!price) price = $('.J-summary-price .p-price').text().replace(/[¥¥\s]+/g, ''); var promo_info = getJdPromoInfo(); var zytxt = $('.name.goodshop.EDropdown').text(); var isZy = '0'; if (zytxt.indexOf('自营') > -1) { isZy = '1'; } if (!dp.fans_price) dp.fans_price = $('.fans-price .p-price-fans span').text().replace(/[¥¥]+/, ''); var info = { dp_id: other_info.now.dp_id, name: dp.name.trim(), price: price, promo: promoinfo.promo, promo_info: promo_info, plus_price: dp.plus_price, fans_price: dp.fans_price, isZy: isZy, stock: inventory // cat: cat, // venderId: vendorId, // noquan: noquan }; info = JSON.stringify(info); callback(info); }; var specialFilter = function specialFilter() { if (G.site === 'suning') { if ($('#timePanel span').text().indexOf('定金团') > -1 && $('#mainPrice .price-promo span').text().indexOf('定金') > -1) { return true; } } if (G.site === '360buy') { if ($('#pingou .summary-price').text().indexOf('定金') > -1) { return true; } } return false; }; var sendPromo = function sendPromo(info) { if (window.XMLHttpRequest) { try { var xml = new XMLHttpRequest(); xml.open('POST', G.server + '/extension?ac=sendPromos&site_id=' + G.site_id + '&jfrom=int'); xml.send(info); log('sendPromo_success'); } catch (e) {} } }; module.exports.init = function () { if (G.new_extension || G.btype == 'luyou') return; if (G.dp.activePrice) return; if (specialFilter()) return; try { var inventory = inventoryCheck.init(G.site); if (sitearr.indexOf(G.site) > -1) { if (G.site == '360buy') { getJdPromo(inventory, sendPromo); } else { var info = getPromoInfo(inventory); info = JSON.stringify(info); sendPromo(info); } } } catch (e) {} }; module.exports.specialFilter = specialFilter; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "d0f06a8e989da469d39e": /***/ (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_Subsidy_vue_vue_type_script_lang_js___ = __webpack_require__("a2a69ddd37a8f8626893"); /* 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_Subsidy_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_Subsidy_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_Subsidy_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_Subsidy_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_Subsidy_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "d108a71572015ac55478": /***/ (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( "button", { staticClass: "bjg-orange-button", class: _vm.selected ? "bjg-selected" : "", on: { click: function($event) { return _vm.$emit("click", $event) } } }, [_vm._t("default")], 2 ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "d2157f2d9c4578abf953": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("49215a0e216baca2e154"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("34dd36e6", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./CollectionList.vue?vue&type=style&index=0&id=56eea7fc&scoped=true&lang=less&", function() { var newContent = require("!!../../../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!./CollectionList.vue?vue&type=style&index=0&id=56eea7fc&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "d21bfd2bfa0193df4d3d": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("82114830c114803b44f5"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("85568368", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./SpinLoading.vue?vue&type=style&index=0&id=23093fe4&scoped=true&lang=less&", function() { var newContent = require("!!../../../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!./SpinLoading.vue?vue&type=style&index=0&id=23093fe4&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "d26d8d95430431abe698": /***/ (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_ProductItem_vue_vue_type_script_lang_js___ = __webpack_require__("72e2b7a61c5c0074a032"); /* 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_ProductItem_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_ProductItem_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_ProductItem_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_ProductItem_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_ProductItem_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "d2e85c08ee690c0b4bb5": /***/ (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_FakeBtn_vue_vue_type_template_id_255024c9_scoped_true___ = __webpack_require__("7f54b9e6b1eddb2a3a91"); /* 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_FakeBtn_vue_vue_type_template_id_255024c9_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_FakeBtn_vue_vue_type_template_id_255024c9_scoped_true___["b"]; }); /***/ }), /***/ "d46abc7ed6163dbbd043": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, $, G) { var _this = this; var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); 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: __webpack_require__("316f9c352c6202560d16").warn('reload begin'); if (!(!$('#bjgext_mainbar').length && location.hostname !== 's.taobao.com')) { context$1$0.next = 4; break; } __webpack_require__("316f9c352c6202560d16").warn('reload interrupted because no bar detected'); return context$1$0.abrupt('return'); case 4: globalCondition.clearAll(); G.showMinibar = false; G.showMainbar = false; G.instanceId = null; window.bjgActivity = false; window.bjgTrendInit = false; $('.is_tm_site').remove(); $('#cptklbox').remove(); $('#tttgbgbs').remove(); __webpack_require__("d6aec8444c650eeab5f2").clearRun(); $('#bjgext_mainbar').remove(); $('.pricedog-tax-bar').remove(); $('.pricedog-bar').remove(); $('#biggraph_bijiago').remove(); $('#biggraph_biyibi').remove(); $('#bjgext_mb_bg').remove(); __webpack_require__("edb006a6bdc87dceab2d").common(function (data) { if (data && data.result instanceof Array) { G.set_force = false; G.forbidCoupon = true; } else if (data && data.result) { var result = data.result.address; if (result.indexOf('北京') > -1 || result.indexOf('上海') > -1 || result.indexOf('广州') > -1 || result.indexOf('深圳') > -1 || result.indexOf('杭州') > -1) { G.set_force = false; G.forbidAd = true; } else if (result.indexOf('南京') > -1) { G.set_force = false; } if (result.indexOf('北京') > -1 || result.indexOf('上海') > -1) { G.forbidTkl = true; } if (result.indexOf('北京') > -1 || result.indexOf('杭州') > -1) { G.forbidCoupon = true; G.forbidApp = true; } } __webpack_require__("cb0906562effcf1b0e6c").getRate(function () { __webpack_require__("a67cb0e15fc3b78f18a6").init(); }); }); case 21: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "d4ed2f9825838d5c7c30": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _vuex = __webpack_require__("436f6d560acb97f873d1"); var _BjgBottomWindowVue = __webpack_require__("9f3c39067bb983909ffe"); var _BjgBottomWindowVue2 = _interopRequireDefault(_BjgBottomWindowVue); var _OrangeButton = __webpack_require__("dc11d029293ea4fb6662"); var _OrangeButton2 = _interopRequireDefault(_OrangeButton); var _CollectionList = __webpack_require__("fbe55d563c028a86aeb3"); var _CollectionList2 = _interopRequireDefault(_CollectionList); var _mixinsBottomWindowMixin = __webpack_require__("c46f7dae3143963b076f"); var _mixinsBottomWindowMixin2 = _interopRequireDefault(_mixinsBottomWindowMixin); var bgClient = __webpack_require__("660610db8f6e89357da9"); exports['default'] = { components: { BjgBottomWindow: _BjgBottomWindowVue2['default'], OrangeButton: _OrangeButton2['default'], CollectionList: _CollectionList2['default'] }, mixins: [_mixinsBottomWindowMixin2['default']], data: function data() { return { selected: 'all', tip: 0 }; }, methods: { startLoad: function startLoad() { if (this.tip > 0) { this.selected = 'reduction'; } this.tip = 0; if (this.user) { this.$refs['default'].init(); this.$refs.reduction.init(); } }, select: function select(item) { this.selected = item; if (item === 'all') { this.$refs['default'].reload(); } else { this.$refs.reduction.reload(); } }, doLogin: function doLogin() { __webpack_require__("d098bd5eb9f0b2883cf6").goLogin(); } }, computed: _extends({}, (0, _vuex.mapState)({ userName: function userName(state) { return state.user.userName; }, user: function user(state) { return state.user.userLogin; }, hasWx: function hasWx(state) { return state.user.userHasWx; } })), mounted: function mounted() { var _this = this; bgClient.get('/collection/tip', {}, function (res) { _this.tip = parseInt(res); }); } }; module.exports = exports['default']; /***/ }), /***/ "d54879e983a83d07f093": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var deviceEncode = __webpack_require__("57981fc895e0110a4346"); module.exports.retry = function (wait, cb, times, time) { //@param function wait 等待的条件 //@param function cb 条件满足后做的操作 //@param number times 尝试的次数 //@param number time 每次等待的时间 var _times = 0; function _try() { if (_times >= times) return; if (wait()) cb();else { _times++; setTimeout(_try, time); } } _try(); }; module.exports.settings = function (op, key, value) { var request = __webpack_require__("91f250ebeb8d5987491c"); request.get(G.server + '/brwext/permanent_id?' + ('version=2&op=' + op + '&' + key + '=' + value)).done(function (msg) { G[key] = value; }); }; module.exports.setLocal = function (key, value) { communicate.trigger({ 'type': 'setStorage', 'key': key, 'value': value }); }; module.exports.openTab = function () { if (!G.allowBackgroundRequest) { window.open(G.server + '/brwext/setting?from=' + deviceEncode(G.from_device) + '&btype=' + (G.btype ? G.btype : '')); } communicate.trigger({ 'type': 'opentab' }); }; // module.exports.addFavorCheck = () => { // communicate.trigger({ // 'type': 'addFavorCheck' // }) // } module.exports.getTimeNumber = function (time, type) { // 1: xxxx-xx-xx 2.xx-xx 3.xx.xx 4. xxxx.xx.xx var dateObj = new Date(time); var y = dateObj.getFullYear(); var m = dateObj.getMonth() + 1; var d = dateObj.getDate(); if (m < 10) m = '0' + m; if (d < 10) d = '0' + d; var str = ''; switch (type) { case "1": str = y + '-' + m + '-' + d; break; case "2": str = m + '-' + d; break; case "3": str = m + '.' + d; break; case "4": str = y + '.' + m + '.' + d; break; case "5": str = y + '/' + m + '/' + d; break; default: str = '(' + y + '.' + m + '.' + d + ')'; } return str; }; /** * 数组去重 * @param array */ module.exports.arrayUnique = function (array) { var newArray = []; array.forEach(function (item) { if (newArray.indexOf(item) === -1) { newArray.push(item); } }); return newArray; }; module.exports.setSimplePagePos = function (dom, detail, detailW) { var mainW = $(window).width(); var left = dom.offset().left; var domw = dom.outerWidth(); var dleft = left + domw - detailW - 2; if (dleft < 0) dleft = 0; if (dleft + detailW > mainW) dleft = mainW - detailW - 2; detail.css('left', dleft + 'px'); }; module.exports.deepCopy = function (obj) { return $.extend(true, {}, obj); }; module.exports.waitForConditionFn = function (conditionFn) { var checkInterval = arguments.length <= 1 || arguments[1] === undefined ? 300 : arguments[1]; var maxTryTimes = arguments.length <= 2 || arguments[2] === undefined ? 0 : arguments[2]; return new Promise(function (resolve) { if (conditionFn()) { resolve(true); return; } var tryTimes = 0; var t = setInterval(function () { if (conditionFn()) { resolve(true); clearInterval(t); } tryTimes++; if (maxTryTimes && tryTimes > maxTryTimes) { clearInterval(t); } }, checkInterval); }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "d54b9cd8eb0379417eab": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__PriceDogMiniBar_vue_vue_type_template_id_72651e53_scoped_true___ = __webpack_require__("fb868c63d79bc6c6fcc7"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__PriceDogMiniBar_vue_vue_type_script_lang_js___ = __webpack_require__("156464601520a7cd23c7"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__PriceDogMiniBar_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__PriceDogMiniBar_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__PriceDogMiniBar_vue_vue_type_style_index_0_id_72651e53_scoped_true_lang_less___ = __webpack_require__("aecc11990691663bf0f8"); /* 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__PriceDogMiniBar_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__PriceDogMiniBar_vue_vue_type_template_id_72651e53_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__PriceDogMiniBar_vue_vue_type_template_id_72651e53_scoped_true___["b" /* staticRenderFns */], false, null, "72651e53", 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('72651e53')) { api.createRecord('72651e53', component.options) } else { api.reload('72651e53', component.options) } module.hot.accept("./PriceDogMiniBar.vue?vue&type=template&id=72651e53&scoped=true&", function () { api.rerender('72651e53', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/bjgou/components/PriceDogMiniBar.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "d57cd728628c618acba9": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__QrError_vue_vue_type_template_id_29b33b2e_scoped_true___ = __webpack_require__("823821d84de8e4f8adfd"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QrError_vue_vue_type_script_lang_js___ = __webpack_require__("5bf35efcba140cc610bb"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__QrError_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__QrError_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__QrError_vue_vue_type_style_index_0_id_29b33b2e_scoped_true_lang_less___ = __webpack_require__("48ec1ca75857b9f279ea"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__QrError_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__QrError_vue_vue_type_template_id_29b33b2e_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__QrError_vue_vue_type_template_id_29b33b2e_scoped_true___["b" /* staticRenderFns */], false, null, "29b33b2e", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('29b33b2e')) { api.createRecord('29b33b2e', component.options) } else { api.reload('29b33b2e', component.options) } module.hot.accept("./QrError.vue?vue&type=template&id=29b33b2e&scoped=true&", function () { api.rerender('29b33b2e', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/QrError.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "d6aec8444c650eeab5f2": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var request = __webpack_require__("91f250ebeb8d5987491c"); var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var sendtj = function sendtj(src) { var img = new Image(); img.src = src; }; function deepCopy(obj) { return $.extend(true, {}, obj); } module.exports.deepCopy = deepCopy; module.exports.settings = function (key, value) { communicate.trigger({ 'type': 'setStorage', 'key': key, 'value': value }); }; module.exports.setStorage = function (key, value) { communicate.trigger({ 'type': 'setStorageChrome', 'key': key, 'value': value }); }; module.exports.getStorage = function (key) { return new Promise(function (resolve) { var id = Date.now(); communicate.trigger({ 'type': 'getStorage', 'key': key, 'id': id }); communicate.on(function (info) { if (info.type === 'getStorage' + id) { resolve(info.value ? info.value[key] : null); } }); }); }; module.exports.getParameterByName = function (name, url) { if (!url) { url = window.location.href; } name = name.replace(/[\[\]]/g, "\\$&"); var regex = new RegExp("[?#&]" + name + "(=([^&#]*)|&|#|$)"), results = regex.exec(url); if (!results) return null; if (!results[2]) return ''; return decodeURIComponent(results[2].replace(/\+/g, " ")); }; module.exports.getDicts = function (callback) { var url = G.server + '/brwext/permanent_id'; request.get(url).done(function (data) { if (data && data.force) G.force = data.force; callback(); }); }; var run = undefined; module.exports.getPermanent = function (callback) { var url = G.server + '/extension?ac=bdextPermanent'; __webpack_require__("316f9c352c6202560d16").log('before'); request.get(url).done(function (data) { __webpack_require__("316f9c352c6202560d16").log('after'); for (var pattern in data) { G[pattern] = data[pattern]; } if (!run) { callback(); run = true; } }); }; module.exports.clearRun = function () { run = false; }; module.exports.setPermanent = function (op, key, value) { var request = __webpack_require__("91f250ebeb8d5987491c"); request.get(G.server + '/extension?ac=bdextPermanent&op=' + op + '&' + key + '=' + value).done(function (msg) { G[key] = value; }); }; module.exports.tongjiLog = function (k) { var userid = G.userid; if (G.from_type === 'bjg_360') return; if (G.from_type === 'bjg_chm') return; if (G.site && (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1)) return; G.site = G.site || ''; var url = G.server + '/visit/?userid=' + userid + '&from_device=' + G.from_device + '&action=' + k + '&refer=' + encodeURIComponent(document.referrer) + '&site=' + G.site; sendtj(url); }; module.exports.formatPrice = function (price) { if (!price) return ''; price = price.toString(); price = price.replace(/[¥¥,]+/, ''); price = Number(price); if (price < 50000) { price = price.toFixed(2); } return price; }; module.exports.tongji = function (mod, k, url) { var l2411 = '0', l2412 = '0'; var tts = ''; url = url || ''; var pageurl = location.href; var title = document.title; var obj = { '2401': pageurl, '2402': mod, '2403': title }; if (url) { obj['url'] = url; } if (k === 'show') { obj['2411'] = '1'; } else if (k === 'click') { obj['2412'] = '1'; } communicate.trigger({ 'type': 'tongji', 'value': JSON.stringify(obj) }); }; module.exports.getTimeNumber = function (time, type) { // 1: xxxx-xx-xx 2.xx-xx 3.xx.xx 4. xxxx.xx.xx var dateObj = new Date(time); var y = dateObj.getFullYear(); var m = dateObj.getMonth() + 1; var d = dateObj.getDate(); var f = function f(x) { return x < 10 ? '0' + x : x; }; var h = f(dateObj.getHours()); var min = f(dateObj.getMinutes()); var s = f(dateObj.getSeconds()); if (m < 10) m = '0' + m; if (d < 10) d = '0' + d; var str = ''; switch (type) { case "1": str = y + '-' + m + '-' + d; break; case "2": str = m + '-' + d; break; case "3": str = m + '.' + d; break; case "4": str = y + '.' + m + '.' + d; break; case "5": str = y + '/' + m + '/' + d; break; case "6": str = y + '-' + m + '-' + d + ' ' + h + ':' + min + ':' + s; break; default: str = '(' + y + '.' + m + '.' + d + ')'; } return str; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "d6dbb8ec1cc9070a1bbc": /***/ (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_ProductItem_vue_vue_type_template_id_6894d428_scoped_true___ = __webpack_require__("7466bdc18c8921db5e2b"); /* 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_ProductItem_vue_vue_type_template_id_6894d428_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_ProductItem_vue_vue_type_template_id_6894d428_scoped_true___["b"]; }); /***/ }), /***/ "d7127d175f691a0cb42c": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _ShopCouponMixin = __webpack_require__("a961a3b75385dff22b7e"); var _ShopCouponMixin2 = _interopRequireDefault(_ShopCouponMixin); var getQRCode = __webpack_require__("657bad1e7f3b602f7d70"); var getCouponInfo = __webpack_require__("047b30291b8b83e043ed"); exports['default'] = { props: ['coupon', 'useTb'], mixins: [_ShopCouponMixin2['default']], data: function data() { return { img: '', error: false, loading: false, tag: 5 }; }, mounted: function mounted() { __webpack_require__("83271c7588396d2d5e59").log('店铺券中间二维码', '曝光'); } }; module.exports = exports['default']; /***/ }), /***/ "d760a97dd0942814e94d": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("290eecfeffc9b0430848"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("7104b9a4", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./OrangeButton.vue?vue&type=style&index=0&id=64323026&lang=less&scoped=true&", function() { var newContent = require("!!../../../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!./OrangeButton.vue?vue&type=style&index=0&id=64323026&lang=less&scoped=true&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "d7b8bdfd8cae885025eb": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_script_lang_js___ = __webpack_require__("379c1f0148813ff54069"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "d7f07c6634e1fd006d57": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, Highcharts, $, regeneratorRuntime) {var __WEBPACK_AMD_DEFINE_RESULT__; var _this2 = this; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var today = new Date(); var chart = undefined; var viewTest = __webpack_require__("e53e836406c4f3f3375f"); var parsePrice = __webpack_require__("cb0906562effcf1b0e6c"); var getMidDay = __webpack_require__("f86fbf95570d4916afe7"); var $ = __webpack_require__("e081b2491b5c9b12b9da"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var util = __webpack_require__("d6aec8444c650eeab5f2"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var countryConfig = __webpack_require__("9bf6d059e9a265559f0c"); var lang = __webpack_require__("cf094fe1ab460bb584a8"); var config = __webpack_require__("336de8fce6caee2400ef"); var chartBox = '#biggraph_' + G.from_device; var oneDay = 3600 * 24 * 1000; var needFold = false; var foldValue = undefined; // 折叠后的原价线Y轴坐标 var foldChange = undefined; // Y轴坐标与实际原价之差 var coudanSeries = undefined; var toolTipDom = undefined, moneyInfo = undefined; var discountInfo = {}, discountInfo2 = {}; var nopuzzlePpromo = undefined, lowHighInfoObj = {}, hideCoudanManage = {}; var noTbTrend = undefined; // highcharts的tooltip并没有消失时的onHide选项,给它加上 Highcharts.wrap(Highcharts.Tooltip.prototype, 'hide', function (proceed) { proceed && proceed.apply && proceed.apply(this); this.chart.tooltip.options.onHide && this.chart.tooltip.options.onHide.apply && this.chart.tooltip.options.onHide.apply(this); }); var currentSymbol = { folded: 'smallRect', extended: 'rect' }; if (G.IE7 || G.IE8) { currentSymbol.folded = 'circle'; currentSymbol.extended = 'circle'; } var currentShowing = 'plotAll'; var showingCenter = false; // 控制商城的显示 var showingManager = (function () { var showList = []; var o = { inList: function inList(name) { return showList.indexOf(name) > -1; }, add: function add(name) { if (showList.indexOf(name) > -1) { return; } else { showList.push(name); } }, remove: function remove(name) { var pos = showList.indexOf(name); if (pos > -1) { showList.splice(pos, 1); } } }; return o; })(); // 用于为商城分配颜色 var generateColorForStore = (function () { var colorList = {}; colorList['评论数'] = '#ca60a6'; var availableColors = ['#5ACFFB', '#eb46eb', '#ffad06', '#21c1db', '#b88ae6', '#b37036', '#b9db0f', '#ffd91c']; var i = 0; return function (storeName) { if (colorList[storeName]) { return colorList[storeName]; } else { if (i < availableColors.length) { colorList[storeName] = availableColors[i++]; return colorList[storeName]; } else { colorList[storeName] = '#' + parseInt(Math.random() * 256 * 256 * 256).toString(16); return colorList[storeName]; } } }; })(); // qrcode log var doLog = (function () { var hasLogged = false; return function () { if (!hasLogged) { hasLogged = true; cnzz.log('trend-qrcode-show'); log('trend-qrcode-show'); } }; })(); var copy = function copy(origin) { return JSON.parse(JSON.stringify(origin)); }; var originPrice = 0; var showHour = false; var store = undefined; var currentTime = undefined; var originData = undefined; var currentLineShowing = undefined; var plotWidth = undefined; originPrice = __webpack_require__("ba7bf86980f076d34e6c"); // 原始的价格数据大多是一天一个数据的,但是如果数据点过少,鼠标滑动时就会有卡顿感,因此绘制走势图时需要增大数据点的数目 // 填充好数据后,由于走势图上的点是连续的,和原始数据并不一致 // 例如3天的价格分别为1、2、3,走势图上第一天和第二天之间的数据为1.5,但是实际上并不存在这个价格,鼠标移到该位置时在tooltip中应该显示为1 // 此函数用于从实际走势图中的位置找到对应的原始价格 var getNearestPriceFromOriginData = function getNearestPriceFromOriginData(name, price, position, time) { var store = originData.store.filter(function (i) { return i.name === name; })[0]; if (store == undefined) { return price; } var arr = store[currentLineShowing]; if (!arr) { return price; } if (!store.all_equal_short && currentLineShowing !== 'short_day_line' && time) { var firstDay = undefined, days = undefined; switch (currentLineShowing) { case 'all_line': firstDay = store.all_line_begin_time; break; case 'half_year_line': firstDay = store.half_year_line_time; break; case 'month_line': firstDay = store.month_line_time; break; } firstDay = new Date(firstDay - 8 * 3600000); firstDay = new Date(firstDay.getYear() + 1900, firstDay.getMonth(), firstDay.getDate()); days = time - firstDay.getTime(); return arr[parseInt(days / oneDay)]; } //return arr[diff.indexOf(minVal)]; var intPos = parseInt(arr.length * position - 1); if (intPos < 0) { intPos += 1; } var toSelect = undefined; if (intPos >= 1) { toSelect = [arr[intPos - 1], arr[intPos], arr[intPos + 1]]; } else { toSelect = [arr[intPos], arr[intPos + 1]]; } toSelect = toSelect.filter(function (x) { return x !== undefined; }); var diff = toSelect.map(function (i) { return Math.abs(i - price); }); var p = diff.indexOf(Math.min.apply(null, diff)); return toSelect[p]; }; var mousePosition = { x: 0, y: 0 }; Highcharts.setOptions({ global: { timezoneOffset: 8 } }); // Highcharts选项 var obj = { chart: { renderTo: 'plotArea_' + G.from_device, type: 'line', animation: false, marginRight: 290, marginLeft: 70, events: { load: function load() { var firstSeries = this.series[0]; var pointStart = this.xAxis[0].max - oneDay * 5; if (firstSeries.options.pointStart > pointStart) { pointStart = firstSeries.options.pointStart; } console.log('showingCenter', showingCenter); var waterMarkSrc = showingCenter ? 'https://cdn.bijiago.com/images/extensions/bijiago/bjg-logo@2x.png' : 'https://cdn.bijiago.com/images/extensions/bijiago/bjg-logo-big@2x.png'; if (G.ss_name === 'priceDog') { waterMarkSrc = 'https://cdn.bijiago.com/images/extensions/bijiago/pricedog-logo@2x.png'; } if (G.from_device === 'biyibi') { waterMarkSrc = 'https://cdn.bijiago.com/images/extensions/biyibi/watermark@2x.png'; } var img = G.from_device === 'biyibi' ? this.renderer.image(waterMarkSrc, showingCenter ? '50%' : '50%', this.xAxis[0].top + 30, 412 * (showingCenter ? 0.7 : 1), 140 * (showingCenter ? 0.7 : 1)) : this.renderer.image(waterMarkSrc, '50%', this.xAxis[0].top + 35, showingCenter ? 241 : 375, showingCenter ? 110 : 159); img.add(); if (showingCenter) { img.attr({ transform: 'translate(-120, 0)' }); } else { img.attr({ transform: 'translate(-187.5, -25)' }); } var series = this.series; // 让一个外部变量可访问,方便控制显示隐藏 if (series && series[1] && series[1].name === '凑单到手价') { coudanSeries = series[1]; } plotWidth = this.plotWidth; var theData = series[0].data; // theData.forEach((i) => { // if (i.y !== originPrice) { // originSeriesShouldShow = true; // } // }); var days = 0; switch (currentShowing) { case 'plotYear': days = 180; break; case 'plotMonth': days = 30; break; case 'plot5Day': days = 5; break; } if (currentShowing !== 'plotAll' && !showingCenter) { this.xAxis[0].update({ min: currentTime - days * oneDay, max: currentTime }); } var currentShowingSeries = series.filter(function (item) { return item.visible && item.name !== 'max' && item.name !== 'min'; }); if (currentShowingSeries.length === 0) { return; } var arr = currentShowingSeries.map(function (i) { return i.options.pointStart; }).filter(function (i) { return i; }); var minStart = Math.min.apply(null, arr); if (currentShowing !== 'plotAll' && !showingCenter) { minStart = currentTime - days * oneDay; } for (var i = 0; i < series.length; i++) { if (series[i].data.length) { theData = series[i].data; break; } } var lastPoint = theData[theData.length - 1]; this.xAxis[0].update({ min: minStart, max: lastPoint ? lastPoint.x : today.getTime() }); var lmin = undefined, lmax = undefined; lmin = Math.floor(this.yAxis[0].dataMin); lmax = Math.ceil(this.yAxis[0].dataMax); var interv2 = Math.pow(10, lmin.toString().length - 2); var tkinterv = undefined; if (this.yAxis[0].dataMax < 1) { lmin = this.yAxis[0].dataMin; lmax = this.yAxis[0].dataMax; tkinterv = (lmax - lmin) / 2; } else if (this.yAxis[0].dataMin === this.yAxis[0].dataMax) { lmin = Math.floor(lmin / interv2) * interv2; lmax = lmin * 2; lmin = 0; tkinterv = parseInt((lmax - lmin) / 2); } else { lmin = Math.floor(lmin / interv2) * interv2; lmax = Math.ceil(lmax / interv2) * interv2; tkinterv = parseInt((lmax - lmin) / 5); } // 调整最大最小值 使曲线看起来分布均匀 var tkinterv2 = Math.pow(10, parseInt(tkinterv).toString().length - 1); if (tkinterv < 1) { tkinterv2 = tkinterv; } tkinterv = Math.ceil(tkinterv / tkinterv2) * tkinterv2; this.yAxis[0].update({ min: lmin, max: lmax, tickInterval: tkinterv || 1 }); // if (this.yAxis.length > 1) { // if (this.yAxis[0].dataMin == this.yAxis[0].dataMax) { // let interv = parseInt(this.yAxis[0].dataMin * 0.2); // if (interv > 100) { // interv = Math.round(interv / 100) * 100 // } // this.yAxis[0].update({ // min: parseInt(this.yAxis[0].dataMin * 0.5), // max: parseInt(this.yAxis[0].dataMin * 1.5), // tickInterval: interv // }); // } // this.yAxis[1].update({ // min: this.yAxis[1].dataMin, // max: this.yAxis[1].dataMax, // tickInterval: parseInt(this.yAxis[1].dataMax / 5) || 1 // }); // this.xAxis[0].update({ // min: this.series[1].data[0].category // }); // } } } }, credits: { enabled: false }, title: { text: null, style: { fontWeight: 'bold', fontFamily: 'Microsoft YaHei', fontSize: 16 } }, xAxis: { offset: 0, type: 'datetime', dateTimeLabelFormats: { minute: '%m/%d', hour: '%m/%d', day: '%m/%d', week: '%m/%d', month: '%y/%m' }, crosshair: { dashStyle: 'ShortDash', snap: false, zIndex: 999, color: '#444' }, minorGridLineColor: '#dfdfdf', labels: { rotation: 0, y: 30, style: { fontSize: '12px', fontFamily: 'Helvetica', color: '#969899' }, align: 'center' }, gridLineColor: '#e6e9eb', lineColor: '#e6e9eb', gridLineWidth: 1, tickLength: 0, minTickInterval: oneDay, startOnTick: false, tickPositioner: function tickPositioner() { var positions = []; var min = this.min; var max = this.max; var minDate = new Date(min); var tick = 0; var mode = undefined; var months = 1; if (max - min > 300 * oneDay) { var s = new Date(1900 + minDate.getYear(), minDate.getMonth() + 1, 2); tick = s.getTime(); var widthPerMonth = plotWidth / ((max - min) / (30 * oneDay)); while (months * widthPerMonth < 100) { months++; } mode = 'nmonth'; } else if (max - min > 64 * oneDay) { var s = new Date(1900 + minDate.getYear(), minDate.getMonth() + 1, 2); tick = s.getTime(); mode = 'month'; } else if (max - min > 10 * oneDay) { tick = min; mode = 'day'; } else { var s = new Date(1900 + minDate.getYear(), minDate.getMonth(), minDate.getDate() + 1); tick = s.getTime(); mode = 'hour'; } while (tick - 3600000 * 15 <= max) { positions.push(tick - 3600000 * 15); switch (mode) { case 'month': var s = new Date(tick); var s1 = new Date(1900 + s.getYear(), s.getMonth() + 1, 2); tick = s1.getTime(); break; case 'day': tick += 5 * oneDay; break; case 'hour': tick += oneDay; break; case 'nmonth': s = new Date(tick); s1 = new Date(1900 + s.getYear(), s.getMonth() + months, 2); tick = s1.getTime(); break; } } if (showingCenter) { var i = 0; while (positions[i] < this.min) i++; positions = [positions[i], positions[positions.length - 1]]; } switch (mode) { case 'month': case 'nmonth': positions.info = { unitName: 'month', higherRanks: {} }; break; default: positions.info = { unitName: 'day', higherRanks: {} }; } // positions.forEach((i) => { // // }); return positions; } }, yAxis: { offset: 0, labels: { align: 'right', style: { fontSize: '12px', fontFamily: 'Helvetica', color: '#969899' }, formatter: function formatter() { var valStr = undefined; if (!needFold || this.value < foldValue) { valStr = Highcharts.numberFormat(this.value, 2); } else { valStr = Highcharts.numberFormat(this.value + foldChange, 2); } // if (valStr[valStr.length - 1] === '.') { // valStr += '00'; // } valStr = valStr.replace(',', ''); if (Number(valStr) > 9999) { valStr = Number(valStr); } else if (Number(valStr) > 10) { valStr = parseInt(valStr); } var min = this.axis.tickPositions[0]; if (this.axis.tickInterval === parseInt(this.axis.tickInterval) && min === parseInt(min)) { valStr = valStr.toString().replace('.00', ''); } // let valNum = Number(valStr.replace(/,/g, '')) // if (valNum/100000 > 1) { // valStr = valNum/10000 + '万' // } return valStr; } }, align: 'high', gridLineColor: '#e6e9eb', minorGridLineWidth: 0, title: { text: null, rotation: 0, y: -20, x: -13, align: 'high', offset: 0, style: { fontFamily: 'Microsoft YaHei', fontSize: 12, color: '#969899' } } }, legend: { enabled: false }, plotOptions: { series: { turboThreshold: 0, states: { hover: { enabled: true, halo: { size: 0 } } }, marker: { enabled: false }, dataGrouping: { enabled: false }, animation: false }, line: { states: { hover: { enabled: true, lineWidth: 1 } } } }, tooltip: { shadow: false, shared: true, valueSuffix: '元', hideDelay: 0, shape: 'square', followPointer: false, dateTimeLabelFormats: { day: '%Y/%m/%e', minute: '%Y/%m/%e', second: '%Y/%m/%e', hour: '%Y/%m/%e %H:%M' }, useHTML: true, positioner: function positioner(boxWidth, boxHeight, point) { if (point.plotX + boxWidth > this.chart.plotWidth + 12) { return { x: point.plotX - boxWidth + this.chart.plotLeft, y: this.chart.plotHeight / 2 - boxHeight / 2 + 45 }; } return { x: point.plotX + this.chart.plotLeft, y: this.chart.plotHeight / 2 - boxHeight / 2 + 45 }; }, onHide: function onHide() { renderTooltip('hide'); }, formatter: function formatter() { var tipObj = {}; tipObj.x = this.x; var x = new Date(this.x - 3600000 * 8); var year = x.getFullYear(); var month = x.getMonth() + 1; var day = x.getDate(); var hour = x.getHours(); var hasdiscount = undefined; if (month < 10) month = '0' + month; if (day < 10) day = '0' + day; //showHour = true; var timeStr = year + '/' + month + '/' + day + (showHour ? ' ' + hour + ':00' : ''); tipObj.time = timeStr.replace(/\//g, '.'); var result1 = ""; var filtered = this.points.sort(function (a, b) { var s = getNearestPriceFromOriginData(b.series.name, b.y, (b.point.index + 1) / b.series.data.length, b.x - 8 * 3600000) - getNearestPriceFromOriginData(a.series.name, a.y, (a.point.index + 1) / a.series.data.length, b.x - 8 * 3600000); return s; }).filter(function (item) { if (item.series.name === 'max' || item.series.name === 'min') { return false; } return true; }); if (filtered.length === 0) { return false; } filtered.forEach(function (i, index) { var showName = i.point.series.name; var showPrice = getNearestPriceFromOriginData(showName, i.point.y, (i.point.index + 1) / i.point.series.data.length, i.point.x - 8 * 3600000); showPrice = Highcharts.numberFormat(showPrice, 2); if (showPrice[showPrice.length - 1] === '.') { showPrice += '00'; } if (showName == '页面价') { tipObj.pagePrice = showPrice.replace(/,/g, ''); } else if (showName == '凑单到手价') { tipObj.addpro = showPrice.replace(/,/g, ''); } if (showName === "凑单到手价" && i.y === filtered[0].y && i.y === Number(tipObj.pagePrice)) { result1 += ""; } else { if (showName === "凑单到手价") hasdiscount = true; } }); if (hasdiscount) { var promoObj = discountInfo[(this.points[0].x - 3600000 * 19).toString()]; var promotion = promoObj && promoObj["promotion"] || ""; var quan = promoObj && promoObj["coupon"] && promoObj["coupon"].replace("领券:", ""); var promoStr = ""; if (quan) { if (quan.match(/\d+-\d+/)) { var quanarr = quan.split('-'); promoStr += '券: 满' + quanarr[0] + '减' + quanarr[1] + ' '; } else { promoStr += '券: ' + quan + ' '; } } if (promotion) { promoStr += '促: ' + promotion; } tipObj.promo1 = promoStr; } if (noTbTrend) { var time = util.getTimeNumber(new Date().getTime(), '5'); // 不用highchart默认的tooltip 使用自定义的 if (timeStr === time) { renderTooltip(null, tipObj); } else { renderTooltip('hide'); } } else { renderTooltip(null, tipObj); } return; }, backgroundColor: 'rgba(255,255,255,0.94)', borderColor: '#d5d5d5', borderWidth: 1, style: { padding: 0 } }, series: [] }; if (G.IE7 || G.IE8) { obj.tooltip.style = { width: '400px' }; } var getEarlistDay = function getEarlistDay(store) { if (!store.length) { return false; } if (store.length === 1) { return store[0].all_line_begin_time; } return store.reduce(function (prev, next) { if (typeof prev == 'number') { return Math.min(prev, next.all_line_begin_time); } else { return Math.min(prev.all_line_begin_time, next.all_line_begin_time); } }); }; var seriesList = { plotAll: [], plotYear: [], plotMonth: [], plot5Day: [], plotSpecial: [], days180: [] }; var setXAxisMinInterval = function setXAxisMinInterval(x) { obj.xAxis.minTickInterval = x; }; var qrlogged = false; var showSeries = function showSeries(series, isCenter, obj, minibar) { if (isCenter === undefined) isCenter = false; $('#gwd-topText').hide(); $('.gwd-blurLayer').removeClass('gwd-blurLayer'); var series2 = series; showingCenter = isCenter; if (hideCoudanManage && hideCoudanManage[series]) { $('#mini_price_history_bjg_detail_btn').addClass('no-review'); $('.discount-price-re').hide(); $('#bar_trend_legend_btn_bjg').addClass('no-review'); } else if (hideCoudanManage) { $('#mini_price_history_bjg_detail_btn').removeClass('no-review'); $('.discount-price-re').show(); $('#bar_trend_legend_btn_bjg').removeClass('no-review'); } if (series === 'center') { series = 'plotAll'; } if (series !== 'days180') { // 加载概况 最高最低等信息 renderBarTrendInfo(series); } obj.series = seriesList[series]; if (series === 'days180') series = 'plotAll'; $('.floatButtons-bjg>a').removeClass('activePlot'); $('.floatButtons-bjg>#' + series).addClass('activePlot'); //new Highcharts.Chart(obj); var theSeries = seriesList[series2]; if (series === 'plot5Day') { setXAxisMinInterval(oneDay); showHour = true; currentLineShowing = 'short_day_line'; } else { showHour = false; } if (series === 'plotMonth') { setXAxisMinInterval(5 * oneDay); currentLineShowing = 'month_line'; } $('.gwd-not-login').removeClass('gwd-not-login'); if (series === 'plotAll') { if (minibar) { obj.chart.marginBottom = 23; } var dayLength = Math.max.apply(null, theSeries.map(function (i) { return i.data.length; })); if (!G.email) { // $('.max-min-priinfo').addClass('gwd-not-login') // $('.barTrendInfoBox').addClass('gwd-not-login') } else { $('.gwd-not-login').removeClass('gwd-not-login'); } if (dayLength > 30) { setXAxisMinInterval(30 * oneDay); } else if (dayLength > 5) { setXAxisMinInterval(5 * oneDay); } else { setXAxisMinInterval(oneDay); } currentLineShowing = 'all_line'; if (store[0].all_equal_short || store[0].all_line.length < 5 && store.length == 1) { currentLineShowing = 'short_day_line'; showHour = true; if (store[0].all_line.length < 5 && store.length == 1) { obj.series[0].pointStart = today.getTime() + 8 * 3600000 - (store[0].all_line.length - 1) * oneDay; } } } if (series === 'plotYear') { setXAxisMinInterval(30 * oneDay); currentLineShowing = 'half_year_line'; } if (isCenter) { //currentShowing = 'center'; } else { currentShowing = series; } chart = new Highcharts.Chart(obj); }; var enablePlot = function enablePlot(plotName) { $('.floatButtons-bjg>' + plotName).removeClass('bjd-hidden'); }; var doBind = function doBind() { $('.floatButtons-bjg').on('click', 'a', function (e) { showSeries(e.target.id, false, util.deepCopy(obj)); }); }; var doMainBind = function doMainBind() { var hidecoudanBar = undefined; $('#bar_trend_legend_btn_bjg').on('click', function (e) { var id = $(e.target).attr('data-id'); if (!id) id = $(e.target).parent().attr('data-id'); if (id === 'plotSpecial') { if (!hidecoudanBar) { hidecoudanBar = true; coudanSeries.hide(); $('#bar_trend_legend_btn_bjg').addClass('hideserires'); } else { coudanSeries.show(); hidecoudanBar = false; $('#bar_trend_legend_btn_bjg').removeClass('hideserires'); } } }); }; var doMiniBind = function doMiniBind() { var hidecoudan = undefined; $('#mini_price_history_bjg_detail_btn').on('click', function (e) { var id = $(e.target).attr('data-id'); if (!id) id = $(e.target).parent().attr('data-id'); if (id === 'plotSpecial') { if (!hidecoudan) { hidecoudan = true; coudanSeries.hide(); $('#mini_price_history_bjg_detail_btn').addClass('hideserires'); } else { coudanSeries.show(); hidecoudan = false; $('#mini_price_history_bjg_detail_btn').removeClass('hideserires'); } } }); }; var resetData = function resetData(i) { return { y: i, marker: { enabled: false } }; }; // 加载价格走势最高最低信息 var renderBarTrendInfo = function renderBarTrendInfo(series) { var showcoudan = undefined; var obj1 = lowHighInfoObj[series + '0']; if (!obj1) { obj1 = lowHighInfoObj['plotAll' + '0']; } if (typeof obj1.lowestDate === 'number') obj1.lowestDate = util.getTimeNumber(obj1.lowestDate); var obj2 = lowHighInfoObj[series + '1']; if (obj2) { if (obj2.Plowest < obj1.Plowest) showcoudan = true; if (typeof obj2.lowestDate === 'number') obj2.lowestDate = util.getTimeNumber(obj2.lowestDate); if (moneyInfo) { obj2.display_nowprice = obj2.nowprice ? moneyInfo[0] + obj2.nowprice : obj2.nowprice; obj2.display_Phighest = obj2.Phighest ? moneyInfo[0] + obj2.Phighest : obj2.Phighest; obj2.display_Plowest = obj2.Plowest ? moneyInfo[0] + obj2.Plowest : obj2.Plowest; } else { obj2.display_nowprice = '¥' + obj2.nowprice; obj2.display_Phighest = '¥' + obj2.Phighest; obj2.display_Plowest = '¥' + obj2.Plowest; } } if (moneyInfo) { obj1.display_nowprice = obj1.nowprice ? moneyInfo[0] + obj1.nowprice : obj1.nowprice; obj1.display_Phighest = obj1.Phighest ? moneyInfo[0] + obj1.Phighest : obj1.Phighest; obj1.display_Plowest = obj1.Plowest ? moneyInfo[0] + obj1.Plowest : obj1.Plowest; } else { obj1.display_nowprice = '¥' + obj1.nowprice; obj1.display_Phighest = '¥' + obj1.Phighest; obj1.display_Plowest = '¥' + obj1.Plowest; } var html = __webpack_require__("a26d051dffbe4025b0f7"); $('.barTrendInfoBox').remove(); var lowtle = lang.getString(config, 'lowestSingleWithSpace'); if (G.aliSite) { lowtle = lang.getString(config, 'lowest'); } else if (!hideCoudanManage || !obj2) { lowtle = lang.getString(config, 'lowestSingle'); } var oinfo = userData.get('other_info'); var dp_id = oinfo && oinfo.now && oinfo.now.dp_id; var promoUrl = undefined; if (dp_id) { promoUrl = 'https://www.gwdang.com/trend/' + dp_id + '.html?static=true'; } if (obj1 && obj2 && obj1.Plowest === obj2.Plowest && obj1.lowestDate === obj2.lowestDate) { obj2 = null; } if (!G.h_nopuzzle_promo) { promoUrl = null; } $('#bjg-pri-trend-chart').append(template.compile(html)({ d1: obj1, d2: obj2, aliSite: G.aliSite, promoUrl: promoUrl, lowtle: lowtle, showcoudan: showcoudan, textCurrent: lang.getString(config, 'textCurrent'), textHigh: lang.getString(config, 'textHigh'), textLow: lang.getString(config, 'textLow'), Combine: lang.getString(config, 'combine') })); setTimeout(function () { // 为了上下对齐, 需要手动计算一次上面的距离给下面 var ppiW = $('#bjgext_maintrend_detail .opi-sp1').outerWidth() + $('#bjgext_maintrend_detail .opi-sp2').outerWidth(); $('#bjgext_maintrend_detail .ppi-sp1').width(Math.ceil(ppiW) + 2); }, 100); }; var getLowestDate2 = function getLowestDate2(ki, data) { var store = data.store[ki]; if (ki === 1) { var origin_st = data.store[0].all_line; if (store.all_line.join("") === origin_st.join("")) { return; } } getLowestDate('plotAll', ki, store.all_line, store.all_equal_short, store.all_line_begin_time, data.promo); if (store.half_year_line && store.half_year_line.length > 0) { if (ki === 1) { var origin_st = data.store[0].half_year_line; if (store.half_year_line.join("") === origin_st.join("")) { return; } } getLowestDate('plotYear', ki, store.half_year_line, store.all_equal_short, store.half_year_line_time, data.promo); } var newStsize = store.all_line.length; if (newStsize > 180) { newStsize = store.all_line.length; var newSt = store.all_line.slice(newStsize - 180); if (ki === 1) { var origin_st = data.store[0].all_line.slice(newStsize - 180); if (newSt.join("") === origin_st.join("")) { return; } } var pointStart = store.all_line_begin_time + 86400000 * (newStsize - 180); getLowestDate('days180', ki, newSt, store.all_equal_short, pointStart, data.promo); } else { if (ki === 1) { var origin_st = data.store[0].all_line; if (store.all_line.join("") === origin_st.join("")) { return; } } getLowestDate('days180', ki, store.all_line, store.all_equal_short, store.all_line_begin_time, data.promo); } if (store.month_line && store.month_line.length > 0) { if (ki === 1) { var origin_st = data.store[0].month_line; if (store.month_line.join("") === origin_st.join("")) { return; } } getLowestDate('plotMonth', ki, store.month_line, store.all_equal_short, store.month_line_time, data.promo); } }; var getLowestDate = function getLowestDate(id, ki, newSt, all_equal_short, pointStart, promo) { // 计算最低最高点 以及最低点对应的时间 id = id + ki.toString(); lowHighInfoObj[id] = {}; var Plowest = undefined, Phighest = undefined; var lowestDate = undefined; var lowestPromo = undefined, lowestPromoPprice = undefined, lowestCoupon = undefined; Plowest = Math.min.apply(Math, newSt); Phighest = Math.max.apply(Math, newSt); var low_index = newSt.lastIndexOf(Plowest); var low_index2 = low_index; var point_interval = 86400000; if (all_equal_short) point_interval = 3600000; lowestDate = pointStart + point_interval * low_index; if (ki == 1) { for (var k = low_index2; k > 0; k--) { if (newSt[k] === newSt[low_index2]) { var str = (pointStart + point_interval * k - 3600000 * 8).toString(); if (Number(discountInfo2[str] && discountInfo2[str].price) == Plowest) { lowestDate = Number(str) + 3600000 * 8; break; } } } for (var i = 0; i < promo.length; i++) { // 获取最低点对应的促销活动 if (promo[i].time * 1000 === lowestDate - 3600000 * 8) { lowestPromo = promo[i].msg.promotion; lowestCoupon = promo[i].msg.coupon && promo[i].msg.coupon.replace("领券:", ""); lowestPromoPprice = (promo[i].ori_price / 100).toFixed(2); } } } lowHighInfoObj[id].lowestDate = lowestDate; lowHighInfoObj[id].Plowest = Number(Plowest).toFixed(2); lowHighInfoObj[id].Phighest = Number(Phighest).toFixed(2); if (lowHighInfoObj[id].Phighest === lowHighInfoObj[id].Plowest) { lowHighInfoObj[id].nowprice = lowHighInfoObj[id].Plowest; } if (lowestPromo || lowestCoupon) { var str = ''; str += '页面价' + lowestPromoPprice + ' '; if (lowestCoupon) { if (lowestCoupon.match(/\d+-\d+/)) { var quanarr = lowestCoupon.split('-'); str += '券: 满' + quanarr[0] + '减' + quanarr[1] + ' '; } else { str += '券: ' + lowestCoupon + ' '; } } if (lowestPromo) str = str + '促: ' + lowestPromo.replace(/,/g, ','); lowHighInfoObj[id].lowestPromo = str; lowHighInfoObj[id].lowestPromoPprice = lowestPromoPprice; } }; var pageLow = {}; // 在走势图上加label标签 var addSeriesDataLabels = function addSeriesDataLabels(data, nopuzzle_promo, key) { var addpromo = undefined; if (data.name === '页面价' && nopuzzle_promo) { addpromo = true; } var obj = { enabled: true, borderColor: '#f2f2f2', borderWidth: 1, padding: 3, backgroundColor: 'rgba(255, 255, 255, 0.7)', shadow: false, borderRadius: 2, style: { fontWeight: 'normal', fontFamily: 'Helvetica', fontSize: '13px' }, y: -3, formatter: function formatter() { return '¥' + this.y.toString().replace(',', ''); } }; var list = data.data; var lowestIndex = 0; var highestIndex = 0; var low = list[0].y || 9999999; var high = list[0].y || 0; var allNull = true; for (var i = 0; i < list.length; i++) { if (i != 0 && i != list.length - 1 && list[i].y) { allNull = false; } if (addpromo) { for (var j = 0; j < nopuzzle_promo.length; j++) { if (data.pointStart + data.pointInterval * i - 3600000 * 19 === nopuzzle_promo[j].time * 1000) { if (nopuzzle_promo[j].showCircle) { list[i].marker = { enabled: true, fillColor: '#fff', lineColor: '#5ACFFB', radius: 2.5, lineWidth: 1, symbol: "circle" }; } } } } if (list[i].y && list[i].y >= high) { high = list[i].y; highestIndex = i; } if (list[i].y && list[i].y <= low) { low = list[i].y; lowestIndex = i; } } if (data.name === '页面价') { pageLow[key] = list[lowestIndex].y; } if (allNull && data.name === '凑单到手价' && hideCoudanManage) { hideCoudanManage[key] = true; return; } if ((!list[lowestIndex - 1] || list[lowestIndex - 1].y === null) && (!list[lowestIndex + 1] || list[lowestIndex + 1].y === null)) { return; } if (data.name === '凑单到手价' && pageLow[key] === list[lowestIndex].y) { return; } if (highestIndex === lowestIndex) { obj.color = '#3FC0F0'; // list[highestIndex].dataLabels = obj; } else { obj.color = '#E4393C'; if (data.name === '页面价') { // list[highestIndex].dataLabels = obj; list[highestIndex].marker = { enabled: true, fillColor: 'rgba(228,57,60,1)', lineColor: 'rgba(228,57,60,0.3233)', radius: 2.5, lineWidth: 4, symbol: "circle" }; } var obj2 = JSON.parse(JSON.stringify(obj)); obj2.color = '#35BD68'; var fillColor = 'rgba(53,189,104,1)'; var lineColor = 'rgba(53,189,104,0.3233)'; if (data.name === '凑单到手价') { obj2.color = '#FFC06D'; fillColor = 'rgba(255,166,0,1)'; lineColor = 'rgba(255,166,0,0.3233)'; } // list[lowestIndex].dataLabels = obj2; list[lowestIndex].marker = { enabled: true, fillColor: fillColor, lineColor: lineColor, radius: 2.5, lineWidth: 4, symbol: "circle" }; } if (noTbTrend) { list[list.length - 1].marker = { enabled: true, fillColor: '#5ACFFB', radius: 2.5, lineWidth: 0, symbol: "circle" }; } }; var renderTooltip = function renderTooltip(ishide, data) { if (ishide) { $(toolTipDom).hide(); return; } $(toolTipDom).show(); if (data.addpro === data.pagePrice) data.addpro = null; if (nopuzzlePpromo) { for (var i = 0; i < nopuzzlePpromo.length; i++) { if (data.x - 3600000 * 19 === nopuzzlePpromo[i].time * 1000) { var str = ''; if (nopuzzlePpromo[i].msg.coupon) { var coupon = nopuzzlePpromo[i].msg.coupon; if (coupon.match(/\d+-\d+/)) { var quanarr = coupon.split('-'); str += '券: 满' + quanarr[0] + '减' + quanarr[1] + ' '; } else { str += '券: ' + coupon + ' '; } } if (nopuzzlePpromo[i].msg.promotion) { str = str + '促: ' + nopuzzlePpromo[i].msg.promotion + ' '; } data.directpro = (nopuzzlePpromo[i].price / 100).toFixed(2); data.promo2 = str; data.pagePrice = (nopuzzlePpromo[i].ori_price / 100).toFixed(2); } } } var html = __webpack_require__("ef57338300b2a4613435"); if (toolTipDom !== '#big_tooltip_bjg') { html = __webpack_require__("e5c278c3324ff9361a3e"); } var domclass = ''; if (data.directpro) domclass += 'directpro '; if (data.addpro) domclass += 'addpro '; if (data.addpro || data.directpro) { $(toolTipDom).addClass('bigheight'); } else { $(toolTipDom).removeClass('bigheight'); } if (moneyInfo) { var np = parsePrice(data.pagePrice, moneyInfo[2]); if (G.ss_name !== 'priceDog') { data.pagePrice = moneyInfo[0] + data.pagePrice + ('(¥' + np + ')'); } else { data.pagePrice = moneyInfo[0] + data.pagePrice; } } else { data.pagePrice = '¥' + data.pagePrice; } var compiledHtml = template.compile(html)({ data: data, domclass: domclass, aliSite: G.aliSite, combinePrice: lang.getString(config, 'combinePrice'), pagePrice: lang.getString(config, 'pagePrice'), onHandPrice: lang.getString(config, 'onHandPrice'), lang: G.lang }); var len = compiledHtml.match(/class="tip-item /g).length; if (len === 1 && G.lang === 'en') { compiledHtml = compiledHtml.replace(/class="tip-item-sp1/g, 'style="width: 30px!important;" class="tip-item-sp1').replace(/class="tip-item-sp4/g, 'style="width: 322px;!important" class="tip-item-sp4'); } $(toolTipDom).empty().append(compiledHtml); // if (G.lang === 'en') { // setTimeout(() => { // $('.big_tooltip_bjg_box .tip-item-sp4').css('width', '232px') // $('.tip-item-sp1').css('width', '120px;') // }, 0) // } }; // 两条线相同点部分去掉 避免重叠造成颜色污染 var sliceData = function sliceData(data) { for (var pattern in data) { if (data[pattern].length && data[pattern].length > 1 && data[pattern][1].name === "凑单到手价") { var size = data[pattern][0].data.length; for (var i = 2; i < size; i++) { var a1 = data[pattern][0].data; var a2 = data[pattern][1].data; if (a1[i].y === a2[i].y && a1[i - 1].y === a2[i - 1].y && (a1[i - 2].y === a2[i - 2].y || a2[i - 2].y === null)) { a2[i - 1].y = null; } } } } }; exports = { init: function init(data) { var currentPage = arguments.length <= 1 || arguments[1] === undefined ? 'dpPage' : arguments[1]; var target = arguments.length <= 2 || arguments[2] === undefined ? false : arguments[2]; var plotLinesHideStatus = arguments.length <= 3 || arguments[3] === undefined ? false : arguments[3]; var renderMiniTrendInfo, img, temp, biggraphState, renderMiniTrend, imgCmp, cmpLogged, renderChartEvent; return regeneratorRuntime.async(function init$(context$2$0) { var _this = this; while (1) switch (context$2$0.prev = context$2$0.next) { case 0: // 评论走势 //renderReviewData(data) currentShowing = 'plotAll'; if (window.bjgTrendInit) { debugger; } if (!window.bjgTrendInit) { window.bjgTrendInit = true; } seriesList = { plotAll: [], plotYear: [], plotMonth: [], plot5Day: [], plotSpecial: [], days180: [] }; if (G.site.indexOf('amazon') > -1) { $('#bjgext_mb_bg').css('width', '390px').css('border-right', 'none'); $('#bjgext_minibar').css('width', '393px'); $('.bjgext-toptabs').css('width', '391px'); $('#mini_price_history_bjg_detail').css('width', '451px').css('overflow', 'hidden'); $('.app-tuiguang-bjgou').remove(); } if (G.ss_name === 'priceDog') { $('#bjgouRemind').remove(); if (G.site.indexOf('amazon') > -1) { $('.bjgext-mini-compare').remove(); } } originPrice = 0; renderMiniTrendInfo = undefined; // 加载货币配置 获取当前网站货币符号 moneyInfo = countryConfig.getMoneyInfo(G.logsite); if (data.taobaoNoTrend) noTbTrend = true; if (!(data.store && data.store[0] && data.store[0].all_line.length === 0)) { context$2$0.next = 12; break; } return context$2$0.abrupt('return'); case 12: $('body').append('<div id="biggraph_' + G.from_device + '" style="position: absolute;left: -1000000px; top: -100000px;background: white;overflow: hidden"></div>'); // let dpId = await require('common/globalCondition').met('GwdDpIdGot') img = ''; temp = viewTest; if (G.lang === 'en') { temp = viewTest.replace(/天/g, 'days').replace(/日线/g, 'days'); } __webpack_require__("316f9c352c6202560d16").log('trend render', 'init'); $(chartBox).append(template.compile(temp)({ extBrand: G.extBrand, from_device: G.from_device, s_server: G.s_server, qrCodeImg: img.imgSrc })); biggraphState = ''; doBind(); if (target) { $(target).append($(chartBox)); } // 顶部 $('#' + G.extName + '-trend').hover(function callee$2$0() { var num, chartArea; return regeneratorRuntime.async(function callee$2$0$(context$3$0) { while (1) switch (context$3$0.prev = context$3$0.next) { case 0: // if (!img) { // img = await require('common/request').get(`${G.server}/extension/QrCode?tag=PriceHistory&dp_id=${dpId}`) // } // $('#qrcode-trend').attr('src', img.imgSrc) toolTipDom = '#big_tooltip_bjg_top'; obj.chart.marginRight = 30; obj.chart.marginBottom = 23; obj.chart.marginTop = 4; obj.xAxis.labels.y = 22; if (moneyInfo) { obj.yAxis.title.text = moneyInfo[1]; obj.yAxis.title.y = 176; } num = parseInt(lowHighInfoObj['plotAll0'].Phighest).toString().length; obj.chart.marginLeft = 29 + 19 + parseInt(num * 6.8); obj.yAxis.labels.x = -9; obj.yAxis.title.x = -(9 + parseInt(num * 6.8) - 24); $(chartBox).css({ left: 0, top: 0, bottom: 0, right: 0 }); if (!(biggraphState === 'trend')) { context$3$0.next = 13; break; } return context$3$0.abrupt('return'); case 13: chartArea = $('#' + G.extName + '-pri-trend-chart'); chartArea.append($(chartBox)); biggraphState = 'trend'; $('.floatButtons-bjg').show(); $('#bjd-qrcode-trend').show(); if ($('#bjd-qrcode-trend').length) { doLog(); } $(chartBox).css({ visibility: 'hidden' }); window.setTimeout(function () { var width1 = $('.floatButtons-bjg').width(); $('#bar_trend_legend_btn_bjg').css('right', width1 + 50 + 'px'); showSeries(currentShowing, false, util.deepCopy(obj)); var width = $('#' + G.extName + '-pri-trend-chart').width(); chart.setSize(width, 182); plotWidth = chart.plotWidth; chart.axes[0].update(obj.xAxis); $(chartBox).css({ visibility: 'visible' }); doMainBind(); }, 0); case 21: case 'end': return context$3$0.stop(); } }, null, _this); }); renderMiniTrend = function renderMiniTrend(detail) { toolTipDom = '#big_tooltip_bjg'; var lowest_obj = lowHighInfoObj['days1800']; var lowest_obj2 = undefined, lowestDate = undefined, lowestDate2 = undefined; if (data.store[1] && data.store[1].name === '凑单到手价') { lowest_obj2 = lowHighInfoObj['days1801']; lowestDate2 = lowest_obj2 && lowest_obj2.lowestDate; lowestDate2 = lowestDate2 && util.getTimeNumber(lowestDate2); } lowestDate = lowest_obj.lowestDate; if (G.aliSite && data.lowestTime) lowestDate = new Date(data.lowestTime).getTime(); lowestDate = lowestDate - 3600000 * 8; lowestDate = util.getTimeNumber(lowestDate); if (!renderMiniTrendInfo) { var oinfo = userData.get('other_info'); var dp_id = oinfo && oinfo.now && oinfo.now.dp_id; var promoUrl = undefined; if (dp_id) { promoUrl = 'https://www.gwdang.com/trend/' + dp_id + '.html?static=true'; } var infohtml = __webpack_require__("6189ccc712cd8962eb8f"); var lowtle = lang.getString(config, 'lowestSingleWithSpace'); if (G.aliSite) { lowtle = lang.getString(config, 'lowest'); } else if (!hideCoudanManage || !lowest_obj2) { lowtle = lang.getString(config, 'lowestSingle'); } if (lowest_obj && lowest_obj2 && lowest_obj.Plowest === lowest_obj2.Plowest && lowest_obj.lowestDate === lowest_obj2.lowestDate) { lowest_obj2 = null; } if (!G.h_nopuzzle_promo) { promoUrl = null; } $('.bjgext-mini-trend .max-min-priinfo-bjg').append(template.compile(infohtml)({ lowtle: lowtle, aliSite: G.aliSite, lowest_obj: lowest_obj, lowestDate: lowestDate, lowestDate2: lowestDate2, promoUrl: promoUrl, lowest_obj2: lowest_obj2, currency: moneyInfo ? moneyInfo[0] : '¥', textCurrent: lang.getString(config, 'textCurrent'), textHigh: lang.getString(config, 'textHigh'), textLow: lang.getString(config, 'textLow'), Combine: lang.getString(config, 'combine') })); // 分享商品 // require('shareProduct').init(data.price_status) if (!lowest_obj2) { $('#mini_price_history_bjg').removeClass('coudanpri'); } // setTimeout(function() { // let ppiW = $('.opi-sp1').outerWidth() + $('.opi-sp2').outerWidth() // $('.promo-pri-info .ppi-sp1').width(Math.ceil(ppiW) + 2) // }, 100) renderMiniTrendInfo = true; } if (moneyInfo) { $('#mini_price_history_bjg .ht-mm-max').text(moneyInfo[0] + lowest_obj.Phighest); $('#mini_price_history_bjg .ht-mm-min').text(moneyInfo[0] + lowest_obj.Plowest); $('#big_tooltip_bjg').addClass('ht_tip'); } obj.title.x = 0; obj.chart.marginRight = 16; obj.chart.marginTop = 5; obj.yAxis.title.text = null; obj.xAxis.labels.y = 20; obj.yAxis.title.y = -26; if (moneyInfo) { obj.chart.marginTop = 4; var num = parseInt(lowest_obj.Phighest).toString().length; obj.chart.marginRight = 10; obj.chart.marginLeft = 16 + 14 + parseInt(num * 6.8); obj.chart.marginBottom = 24; //obj.yAxis.labels.x = -Math.ceil(num * 6.8 + 11); obj.yAxis.labels.x = -14; obj.yAxis.title.x = -(Math.ceil(num * 6.8 + 11) - 24); //25 title长度 obj.yAxis.title.text = moneyInfo[1]; //obj.yAxis.title.y = 162; obj.yAxis.title.y = -12; } else { var num = parseInt(lowest_obj.Phighest).toString().length; obj.chart.marginLeft = 16 + 14 + parseInt(num * 6.8); obj.yAxis.labels.x = -14; } if (lowest_obj.Phighest < 1) { obj.chart.marginLeft = 16 + 14 + parseInt(4 * 6.8); } $('.floatButtons-bjg').hide(); $('#bjd-qrcode-trend').hide(); // yhd.com $('#detailPromotion').css({ zIndex: 0 }); $(chartBox).css({ left: 0, top: 0, bottom: 0, right: 0 }); if (biggraphState === 'btn') return; $(detail).append($(chartBox)); doMiniBind(); biggraphState = 'btn'; $(chartBox).css({ visibility: 'hidden' }); window.setTimeout(function () { originPrice = 0; // if (data.store[0].all_line.length > 31 && !data.store[0].all_equal_short) { // showSeries('plotMonth', true); // } else { // showSeries('plotAll', true); // } showSeries('days180', true, util.deepCopy(obj), true); var width1 = $('#bdext_mini_trendbox').width(); var height1 = 182; if (!width1) { width1 = 460; } if (G.site == 'amazon' || G.site == '6pm') { width1 = 402; height1 = 172; } if (G.site.indexOf('amazon') > -1) { width1 = 450; } if (width1 && width1 > 0) { chart.setSize(width1, height1, false); } $(chartBox).css({ visibility: 'visible' }); }, 25); }; imgCmp = ''; cmpLogged = false; $('#mini_price_history_bjg').hover(function callee$2$0() { var doms; return regeneratorRuntime.async(function callee$2$0$(context$3$0) { while (1) switch (context$3$0.prev = context$3$0.next) { case 0: doms = '#mini_price_history_bjg_detail_chart'; if (G.site == 'amazon' || G.site == '6pm') { doms = '#mini_ht_detail_chart'; } // if (!imgCmp) { // imgCmp = await require('common/request').get(`${G.server}/extension/QrCode?tag=PromoDetail&dp_id=${dpId}`) // } // $('#qrcode-compare').attr('src', imgCmp.imgSrc) // if ($('#qrcode-compare')[0] && !cmpLogged) { // cmpLogged = true; //cnzz.log('二维码', '展示', '中间促销'); // } renderMiniTrend(doms); case 3: case 'end': return context$3$0.stop(); } }, null, _this); }); // yhd.com $('#mini_price_history_bjg_detail').mouseleave(function () { $('#detailPromotion').css({ zIndex: 15 }); }); renderChartEvent = function renderChartEvent(str) { //baidu bottom $('.' + str + '-trend').on('mouseenter', function () { // hideLine = plotLinesHideStatus.baidu; if (biggraphState === 'bdtrend') { $('#' + str + '_maintrend_detail').show(); return; } toolTipDom = '#big_tooltip_bjg_top'; obj.legend.enabled = false; obj.chart.marginRight = 180; obj.chart.marginRight = 60; obj.chart.marginBottom = 23; obj.chart.marginTop = 4; obj.xAxis.labels.y = 22; $(chartBox).css({ left: 0, top: 0, bottom: 0, right: 0 }); $('#' + str + '_maintrend_detail #bjg-pri-trend-chart').append($(chartBox)); biggraphState = 'bdtrend'; $(chartBox).css({ visibility: 'hidden' }); window.setTimeout(function () { showSeries(currentShowing, false, util.deepCopy(obj)); var width = $('#' + str + '_maintrend_detail').width(); if (width && width > 0) // chart.setSize(width, 254, false); chart.reflow(); $(chartBox).css({ visibility: 'visible' }); doMainBind(); }, 25); $('#' + str + '_maintrend_detail').css('display', 'flex'); $('.floatButtons-bjg').show(); }); //baidu mini $('.' + str + '-mini-trend').on('mouseenter', function () { renderMiniTrend('#mini_price_history_bjg_detail_chart'); $('#mini_price_history_bjg_detail').show(); }); }; if (G.from_device === 'bijiago' || G.from_device === 'biyibi') { renderChartEvent('bjgext'); } else { renderChartEvent('bdext'); } // 底部 $('#gwd-trend').hover(function callee$2$0() { return regeneratorRuntime.async(function callee$2$0$(context$3$0) { while (1) switch (context$3$0.prev = context$3$0.next) { case 0: if (!(biggraphState === 'gwd')) { context$3$0.next = 2; break; } return context$3$0.abrupt('return'); case 2: obj.chart.marginRight = 60; obj.chart.marginBottom = 23; obj.chart.marginTop = 4; obj.xAxis.labels.y = 22; $(chartBox).css({ left: 0, top: 0, bottom: 0, right: 0 }); $('#gwd-trend-chart').append($(chartBox)); biggraphState = 'gwd'; $(chartBox).css({ visibility: 'hidden' }); window.setTimeout(function () { showSeries(currentShowing, false, util.deepCopy(obj)); chart.reflow(); $(chartBox).css({ visibility: 'visible' }); $('#gwd-trend-chart').show(); doMainBind(); }, 0); $('.floatButtons-bjg').show(); $('#bjd-qrcode-trend').show(); if ($('#bjd-qrcode-trend').length) { doLog(); } $('#bjd-qrcode-trend').css('bottom', '9px'); case 15: case 'end': return context$3$0.stop(); } }, null, _this); }); $('#plotArea_' + G.from_device).css({ maxWidth: document.body.clientWidth - 280 + 'px' }); $('#plotArea_' + G.from_device).mousemove(function (e) { mousePosition.x = e.pageX; mousePosition.y = e.pageY; }); $('#plotArea_' + G.from_device).click(function () { return false; }); if (data) { (function () { store = data.store; getLowestDate2(0, data); if (data.store[1] && data.store[1].name === "凑单到手价" && data.promo) { // 如果有凑单到手价同时有对应的促销活动 把促销活动信息给一个全局变量方便取用 for (var i = 0; i < data.promo.length; i++) { // if (discountInfo[(data.promo[i].time * 1000).toString()]) { // continue // } discountInfo[(data.promo[i].time * 1000).toString()] = data.promo[i].msg; discountInfo2[(data.promo[i].time * 1000).toString()] = { price: data.promo[i].price, info: data.promo[i].msg.promotion }; } // 计算最低最高价和时间 getLowestDate2(1, data); $(".discount-price-re").show(); $('#mini_price_history_bjg').addClass('coudanpri'); } else { hideCoudanManage = null; $('#bar_trend_legend_btn_bjg').addClass('no-review'); $('#mini_price_history_bjg_detail_btn').addClass('no-review'); } if (data.nopuzzle_promo) { G.h_nopuzzle_promo = true; } if (G.aliSite) { $('#bar_trend_legend_btn_bjg').remove(); $('#mini_price_history_bjg_detail_btn').addClass('aliSite'); } originData = data; var earlistDay = Math.min(data.store[0] && data.store[0].all_line_begin_time, getEarlistDay(store)); var currentDay = data.now_day; currentTime = data.now_day; var seriesConfig = [{ plot: 'plotAll', start: 'all_line_begin_time', minDay: 0.1, data: 'all_line' }, { plot: 'plotMonth', start: 'month_line_time', minDay: 30, data: 'month_line' }, { plot: 'plotYear', start: 'half_year_line_time', minDay: 0.1, data: 'half_year_line' }, { plot: 'days180', start: 'all_line_begin_time', minDay: 0.1, data: 'all_line' }]; enablePlot('#plotAll'); // if (store[0].name.indexOf('(当前)') === -1) { // store[0].name += '(当前)'; // } store[0].name = "页面价"; var storeLimit = 18; if (currentPage === 'zhidemai') { storeLimit = 1; } if (currentPage === 'priceHistory') { storeLimit = 20; } var allDays = parseInt((currentDay - earlistDay) / oneDay); for (var i = 0; i < Math.min(store.length, storeLimit); i++) { if (store[i].all_line.length === 0) continue; // if (store[i].promo && store[i].promo.length > 0) { // promotionData[store[i].name] = store[i].promo[0].desc; // } if (store[i].all_equal_short && store.length !== 1) { store[i].all_line = []; for (var j = 0; j < store[i].short_day_line.length; j += 24) { store[i].all_line.push(store[i].short_day_line[j]); } store[i].all_line_begin_time = data.now_day - 5 * oneDay; store[i].all_equal_short = false; } for (var k = 0; k < seriesConfig.length; k++) { var j = seriesConfig[k]; if (getMidDay(currentDay) - getMidDay(earlistDay) >= j.minDay * oneDay) { if (!store[i][j.data]) { continue; } if (j.start !== 'short_day_line_begin_time') { store[i][j.start] = getMidDay(store[i][j.start]); } if (store[i].all_equal_short && j.start === 'all_line_begin_time') { store[i][j.start] = store[i].short_day_line_begin_time; } enablePlot('#' + j.plot); var newSeries = { color: generateColorForStore(store[i].name), name: store[i].name, pointStart: store[i][j.start], pointInterval: oneDay, legendIndex: 1, connectNulls: false, lineWidth: 1, zIndex: 500 - i * 500 - 1, marker: { //symbol: 'rect', symbol: currentSymbol.extended, states: { hover: { enabled: false } } }, states: { hover: { enabled: false, halo: { size: 0 } } }, data: store[i][j.data] }; if (store[i].name === '凑单到手价') { newSeries.color = "#FFC06D"; } if (noTbTrend) { newSeries.dashStyle = "Dash"; } if (j.plot === 'plot5Day') { //newSeries.pointStart -= 5*oneDay; newSeries.pointInterval = 3600000; if (newSeries.pointInterval * newSeries.data.length + newSeries.pointStart > currentTime) { currentTime = newSeries.pointInterval * newSeries.data.length + newSeries.pointStart; } } if (j.plot === 'plotAll' && newSeries.data.length < 30) { newSeries.pointInterval = oneDay; setXAxisMinInterval(oneDay); } if ((j.plot === 'plotAll' || j.plot === 'days180') && store[i].all_equal_short) { if (i === 0) { newSeries.pointInterval = 3600000; //all_equal_short = true; } else { var s = new Date(newSeries.pointStart); var s2 = new Date(s.getYear() + 1900, s.getMonth(), s.getDate(), 8); newSeries.pointStart = s2.getTime(); newSeries.pointInterval = oneDay; var tmpData = []; for (var _i = 0; _i < newSeries.data.length; _i += 24) { tmpData.push(newSeries.data[_i]); } newSeries.data = tmpData; } } // 增大点的密度,使移动平滑 newSeries.addPointTimes = 1; while (newSeries.data && newSeries.data.length < 100) { if (j.plot === 'plotAll') { break; } var newData = []; for (var _k = 0; _k < newSeries.data.length; _k++) { newData.push(newSeries.data[_k]); if (_k + 1 === newSeries.data.length) break; newData.push(newSeries.data[_k]); } newSeries.data = newData; newSeries.pointInterval = newSeries.pointInterval / 2; newSeries.addPointTimes = newSeries.addPointTimes * 2; } newSeries.data = newSeries.data ? newSeries.data.map(resetData) : null; if (newSeries.data != null) { seriesList[j.plot].push(newSeries); } } } } if (seriesList['plotAll'].length === 1) { var series = seriesList['plotAll'][0]; series.data = series.data.map(function (i) { return i.y; }); while (series.data.length < 100) { var newData = []; for (var k = 0; k < series.data.length; k++) { newData.push(series.data[k]); if (k + 1 === series.data.length) break; newData.push(series.data[k]); } series.data = newData; series.pointInterval = series.pointInterval / 2; } series.data = series.data.map(function (i) { return { y: i, marker: { enabled: false } }; }); } // 和原始数据重合的点 去掉 sliceData(seriesList); if (!store[0].all_equal_short) { $('#plotAll').html(lang.getString(config, 'all') + ('(' + store[0].all_line.length + ')')); if (store[0].all_line.length > 180) { if (seriesList['plotYear'].length) { currentShowing = 'plotYear'; } } } else { allDays++; $('#plotAll').html(lang.getString(config, 'all') + ('(' + allDays + ')') + lang.getString(config, 'day')); } // 默认显示原始价格和当前商品 if (originPrice && currentPage !== 'zhidemai') { showingManager.add('当前商城原始价格'); } showingManager.add(store[0].name); // data copy start var mergeSeries = function mergeSeries(a, b) { var bList = b.map(function (item) { return item.name; }); return a.map(function (item) { if (bList.indexOf(item.name) === -1) { return item; } else { var toMerge = b.filter(function (j) { return j.name === item.name; })[0]; var tmp = copy(item); tmp.data = toMerge.data; tmp.pointStart = toMerge.pointStart; tmp.pointInterval = toMerge.pointInterval; return tmp; } }); }; var fillSeries = function fillSeries(seriesList) { var pointIntervalList = seriesList.map(function (i) { return i.pointInterval; }); var minInterval = Math.min.apply(null, pointIntervalList); seriesList.forEach(function (series) { while (series.pointInterval > minInterval) { var newData = []; for (var i = 0; i < series.data.length; i++) { newData.push(series.data[i]); if (i + 1 === series.data.length) break; var newPoint = { marker: series.data[i].marker, y: (series.data[i + 1].y + series.data[i].y) / 2 }; newData.push(newPoint); } series.pointInterval = series.pointInterval / 2; series.data = newData; } }); }; ['plotMonth', 'plotYear'].forEach(function (i) { if (!$('#' + i).hasClass('bjd-hidden')) { var allSeries = seriesList['plotAll']; var thisSeries = seriesList[i]; var toAdd = mergeSeries(allSeries, thisSeries); seriesList[i] = toAdd; fillSeries(seriesList[i]); } }); fillSeries(seriesList['plotAll']); var days180_size = seriesList['days180'][0] && seriesList['days180'][0].data.length; if (days180_size && days180_size > 180) { for (var k = 0; k < seriesList['days180'].length; k++) { seriesList['days180'][k].data.splice(0, days180_size - 180); seriesList['days180'][k]['pointStart'] = seriesList['days180'][k]['pointStart'] + seriesList['days180'][k]['pointInterval'] * (days180_size - 180); } } for (var spattern in seriesList) { if (seriesList[spattern].length) { for (var di = 0; di < seriesList[spattern].length; di++) { addSeriesDataLabels(seriesList[spattern][di], data.nopuzzle_promo, spattern); nopuzzlePpromo = data.nopuzzle_promo; } } } // showSeries('plotAll', false, util.deepCopy(obj)); //chart.reflow(); })(); }; case 35: case 'end': return context$2$0.stop(); } }, null, _this2); } }; return exports; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); // 中间 // obj.yAxis.title.text = foreignTitle // if (!img) { // img = await require('common/request').get(`${G.server}/extension/QrCode?tag=PriceHistory&dp_id=${dpId}`) // } // $('#qrcode-trend').attr('src', img.imgSrc) /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("ff50e367dd130fa205e3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "d82c9248d08dbd7e46d4": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var browsertype = __webpack_require__("1b62f754a85a57168a27"); var minibrowser = browsertype.getBrowser(); var globalObj = {}; var haslog = undefined; var renderInfo = function renderInfo(info) { if (!info) return; if (!G.site) return; if (haslog) return; if (info.type === 'user_extension_id') { haslog = true; __webpack_require__("03dd60018ce5ed1344a1")('browser_user:' + G.logsite + ':extType:' + getExtType()); } }; var getExtType = function getExtType() { var type = ''; if (G.from_device === 'default') type = minibrowser.utype;else type = G.from_device; return type; }; module.exports.init = function () { if (G.userid) { renderInfo({ type: 'user_extension_id' }); return; } communicate.trigger({ type: 'user_extension_id' }); communicate.on(function (info) { try { if (info && info.type === 'browser_setinfo') { if (info.value && info.value instanceof Object) { for (var p in info.value) { globalObj[p] = info.value[p]; } } } else if (info.type) { globalObj[info.type] = info.value; renderInfo(info); } } catch (e) {} }); }; module.exports.getInfo = function (type) { return globalObj[type]; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "d8908ac290737d05feb2": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("28b862d2cdcc846b8764"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("6ff1731f", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./JdItemList.vue?vue&type=style&index=0&id=9f63765e&scoped=true&lang=less&", function() { var newContent = require("!!../../../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!./JdItemList.vue?vue&type=style&index=0&id=9f63765e&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "d94e140c19cb4f593342": /***/ (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_8590af9e_scoped_true___ = __webpack_require__("803178e09e55b1c59d2c"); /* 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_8590af9e_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_8590af9e_scoped_true___["b"]; }); /***/ }), /***/ "d98e58cfc5180294bd6a": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("89d1adbe1b58d82e839d"); if(typeof content === 'string') content = [[module.i, content, '']]; // add the styles to the DOM var update = __webpack_require__("ed1f825ff922d4e45a2e")(content, {}); if(content.locals) module.exports = content.locals; // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QRLink.vue?vue&type=style&index=0&lang=css&", function() { var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QRLink.vue?vue&type=style&index=0&lang=css&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "da0eb56990f314192623": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("f80fc58b9800f1267989"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("6c30f522", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./ShopCouponMini.vue?vue&type=style&index=0&id=c6f6054e&scoped=true&lang=less&", function() { var newContent = require("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./ShopCouponMini.vue?vue&type=style&index=0&id=c6f6054e&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "dabcede8faf47cb438a9": /***/ (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_HistoryBar_vue_vue_type_script_lang_js___ = __webpack_require__("7742551da8abed297279"); /* 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_HistoryBar_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_HistoryBar_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_HistoryBar_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_HistoryBar_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_HistoryBar_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "db518a3e544b1a3c4e0f": /***/ (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_QRLinkTaobaoLogin_vue_vue_type_style_index_0_id_6179ab9e_scoped_true_lang_less___ = __webpack_require__("dcb5c5605d4bae233d99"); /* 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_QRLinkTaobaoLogin_vue_vue_type_style_index_0_id_6179ab9e_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_QRLinkTaobaoLogin_vue_vue_type_style_index_0_id_6179ab9e_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_QRLinkTaobaoLogin_vue_vue_type_style_index_0_id_6179ab9e_scoped_true_lang_less____default.a); /***/ }), /***/ "db7e0bf34d01555f6525": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['data'], data: function data() { return { currentSelect: '', question: '', radioA: '', radioB: '', innerData: {} }; }, methods: { submit: function submit() { var _this = this; if (!this.currentSelect) return; this.question = ''; this.data.catalogQas.forEach(function (item) { var selected = item[_this.currentSelect]; if (selected.brief) { _this.innerData.catShptBrief = selected.brief; } if (selected.catEmbargoSe) { _this.innerData.catEmbargoSe = selected.catEmbargoSe; } if (selected.catEmbargoAir) { _this.innerData.catEmbargoAir = selected.catEmbargoAir; } if (selected.catCcMaxQty === '0') { _this.innerData.catEmbargoSe = '1'; _this.innerData.catEmbargoAir = '1'; } }); } }, mounted: function mounted() { this.innerData = this.data; if (this.data.catalogQas && this.data.catalogQas.length) { this.question = this.data.catalogQas[0].qaTitle; this.radioA = this.data.catalogQas[0].qaRadioA.text; this.radioB = this.data.catalogQas[0].qaRadioB.text; } } }; module.exports = exports['default']; /***/ }), /***/ "db913f6554d3c1ab33dc": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['qr'] }; module.exports = exports['default']; /***/ }), /***/ "dba9674cb89e2f226ce4": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var getTransInfo = function getTransInfo(name, data, str) { for (var i = 0; i < data.length; i++) { if (data[i].num_iid) { data[i].oldUrl = data[i].url; // let type = data[i].type ? ('&type=' + data[i].type) : ''; data[i].url = G.u_server + '/redirect/tao?id=' + data[i].num_iid + '&source=' + data[i].source + '&from_device=' + G.from_device; } } }; module.exports.init = function (name, data, str) { if (!data || !(data instanceof Array) || G.aliSite) return; str = str || ''; getTransInfo(name, data, str); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "dbdfbfa3b5305a7ac55d": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponTop_vue_vue_type_style_index_0_id_05b8b243_scoped_true_lang_less___ = __webpack_require__("41139159945cd97ccf00"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponTop_vue_vue_type_style_index_0_id_05b8b243_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponTop_vue_vue_type_style_index_0_id_05b8b243_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponTop_vue_vue_type_style_index_0_id_05b8b243_scoped_true_lang_less____default.a); /***/ }), /***/ "dbf2d1cc1e8bc1797734": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjg-coupon-white[data-v-c1c2cbdc] {\n color: #ffffff;\n}\n.bjgou-subsidy-bar[data-v-c1c2cbdc] {\n cursor: pointer;\n margin-top: 5px;\n width: 442px;\n height: 67px;\n position: relative;\n display: inline-flex;\n align-items: center;\n background: url(https://cdn.bijiago.com/images/extensions/bijiago/bigCoupon@2x.png);\n box-sizing: border-box !important;\n background-size: contain;\n}\n.bjgou-subsidy-bar .qrcode[data-v-c1c2cbdc] {\n display: none;\n position: absolute;\n top: 70px;\n right: -15px;\n width: 148px;\n height: 156px;\n background: #FFF6F4;\n border: 1px solid #FF6132;\n z-index: 9;\n}\n.bjgou-subsidy-bar .bjg-bold[data-v-c1c2cbdc] {\n font-size: 13px;\n font-weight: bold;\n color: #ff2d53;\n}\n.bjgou-subsidy-bar .bjg-take[data-v-c1c2cbdc] {\n min-width: 87px;\n height: 22px;\n border-radius: 11px;\n border: 1px solid #FF2D53;\n position: relative;\n display: flex;\n cursor: pointer;\n}\n.bjgou-subsidy-bar .bjg-take span[data-v-c1c2cbdc] {\n font-size: 12px;\n text-align: center;\n line-height: 22px;\n}\n.bjgou-subsidy-bar .bjg-take .taker[data-v-c1c2cbdc] {\n color: white;\n width: 36px;\n height: 24px;\n line-height: 24px;\n background: linear-gradient(90deg, #FF3A62 0%, #FF665B 100%);\n border-radius: 11px;\n display: inline-block;\n}\n.bjgou-subsidy-bar[data-v-c1c2cbdc]:hover {\n text-decoration: none;\n}\n.bjgou-subsidy-bar:hover .qrcode[data-v-c1c2cbdc] {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n", ""]); // exports /***/ }), /***/ "dc11d029293ea4fb6662": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__OrangeButton_vue_vue_type_template_id_64323026_scoped_true___ = __webpack_require__("2dd4d68fd9e53c18fd80"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__OrangeButton_vue_vue_type_script_lang_js___ = __webpack_require__("be16646238708e27785d"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__OrangeButton_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__OrangeButton_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__OrangeButton_vue_vue_type_style_index_0_id_64323026_lang_less_scoped_true___ = __webpack_require__("584acb3732f3db3467f3"); /* 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__OrangeButton_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__OrangeButton_vue_vue_type_template_id_64323026_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__OrangeButton_vue_vue_type_template_id_64323026_scoped_true___["b" /* staticRenderFns */], false, null, "64323026", 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('64323026')) { api.createRecord('64323026', component.options) } else { api.reload('64323026', component.options) } module.hot.accept("./OrangeButton.vue?vue&type=template&id=64323026&scoped=true&", function () { api.rerender('64323026', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/bjgou/components/OrangeButton.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "dc8abfd81085af16105f": /***/ (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: ['withLogo'], mixins: [_commonComponentsMemberCouponMixin2["default"]] }; module.exports = exports["default"]; /***/ }), /***/ "dcb5c5605d4bae233d99": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("3be7d467c6bac9354a1b"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("33486d2a", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../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!./QRLinkTaobaoLogin.vue?vue&type=style&index=0&id=6179ab9e&scoped=true&lang=less&", function() { var newContent = require("!!../../../../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!./QRLinkTaobaoLogin.vue?vue&type=style&index=0&id=6179ab9e&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "dcd29bd1a389dba6c22e": /***/ (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_SizeHelp_vue_vue_type_template_id_b3b47bf0_scoped_true___ = __webpack_require__("6ec95ffde49637733150"); /* 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_SizeHelp_vue_vue_type_template_id_b3b47bf0_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_SizeHelp_vue_vue_type_template_id_b3b47bf0_scoped_true___["b"]; }); /***/ }), /***/ "dcf796a6292e6f2e8565": /***/ (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_CollectionBar_vue_vue_type_style_index_0_id_617a0842_scoped_true_lang_less___ = __webpack_require__("120c0478b1efef44d946"); /* 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_CollectionBar_vue_vue_type_style_index_0_id_617a0842_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_CollectionBar_vue_vue_type_style_index_0_id_617a0842_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_CollectionBar_vue_vue_type_style_index_0_id_617a0842_scoped_true_lang_less____default.a); /***/ }), /***/ "dd5275f7ee706fb5f91b": /***/ (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_ProductItem_vue_vue_type_style_index_0_id_6894d428_scoped_true_lang_less___ = __webpack_require__("c18197bed82d1d15ff88"); /* 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_ProductItem_vue_vue_type_style_index_0_id_6894d428_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_ProductItem_vue_vue_type_style_index_0_id_6894d428_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_ProductItem_vue_vue_type_style_index_0_id_6894d428_scoped_true_lang_less____default.a); /***/ }), /***/ "dd7bf03a25fb46a8e88e": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("735bc3c8e2dc98526bc5"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("255401b3", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./MemberCouponBottomBjg.vue?vue&type=style&index=0&id=44c0e93e&scoped=true&lang=less&", function() { var newContent = require("!!../../../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!./MemberCouponBottomBjg.vue?vue&type=style&index=0&id=44c0e93e&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "de47b30d557f73101f1b": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { methods: { doJdLogin: function doJdLogin() { if (G.site !== '360buy') { location.href = 'https://pcsitepp-fm.jd.com/'; } else { location.href = 'https://passport.jd.com/new/login.aspx?ReturnUrl=' + encodeURIComponent(location.href.replace('#crumb-wrap', '') + '#forceOpen'); } } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "df8cf8aedb212481092a": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("528d0f727e634940241b"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("66e1d7e3", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./PriceProtectJdLogin.vue?vue&type=style&index=0&id=e995141a&scoped=true&lang=less&", function() { var newContent = require("!!../../../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!./PriceProtectJdLogin.vue?vue&type=style&index=0&id=e995141a&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "dfec65aa18a62ab5fafc": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SpinLoading_vue_vue_type_template_id_23093fe4_scoped_true___ = __webpack_require__("7c4b8c21fe3ca1ba7f77"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__SpinLoading_vue_vue_type_script_lang_js___ = __webpack_require__("ef8e743abc49ed3d6fe9"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__SpinLoading_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__SpinLoading_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__SpinLoading_vue_vue_type_style_index_0_id_23093fe4_scoped_true_lang_less___ = __webpack_require__("f6434a1eb339a1be024b"); /* 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__SpinLoading_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__SpinLoading_vue_vue_type_template_id_23093fe4_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__SpinLoading_vue_vue_type_template_id_23093fe4_scoped_true___["b" /* staticRenderFns */], false, null, "23093fe4", 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('23093fe4')) { api.createRecord('23093fe4', component.options) } else { api.reload('23093fe4', component.options) } module.hot.accept("./SpinLoading.vue?vue&type=template&id=23093fe4&scoped=true&", function () { api.rerender('23093fe4', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/bjgou/components/SpinLoading.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "e0a92a12936c6112620e": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("a19875cc4830d51ea172"); if(typeof content === 'string') content = [[module.i, content, '']]; // add the styles to the DOM var update = __webpack_require__("ed1f825ff922d4e45a2e")(content, {}); if(content.locals) module.exports = content.locals; // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./SubsidyBottom.vue?vue&type=style&index=0&id=1cab7080&scoped=true&lang=css&", function() { var newContent = require("!!../../../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!./SubsidyBottom.vue?vue&type=style&index=0&id=1cab7080&scoped=true&lang=css&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "e1295245ec2ddb5b21e1": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-qrlink-left[data-v-b671e2be] {\n width: 109px;\n height: 44px;\n background: white;\n border-radius: 2px;\n border: 1px solid #EAEAEA;\n position: absolute;\n top: 396px;\n left: -110px;\n cursor: pointer;\n box-sizing: border-box;\n}\n.gwd-qrlink-left .gwd-qr-content[data-v-b671e2be] {\n position: absolute;\n width: 109px;\n height: 108px;\n border: 1px solid #eaeaea;\n padding-top: 5px;\n display: none;\n top: 42px;\n left: -1px;\n box-sizing: border-box;\n z-index: 9999;\n background: white;\n}\n.gwd-qrlink-left:hover .gwd-qr-content[data-v-b671e2be] {\n display: flex;\n}\n", ""]); // exports /***/ }), /***/ "e1cde15dbbb101723ce9": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CollectionBar_vue_vue_type_template_id_617a0842_scoped_true___ = __webpack_require__("2655c53e3a6244960b77"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__CollectionBar_vue_vue_type_script_lang_js___ = __webpack_require__("4b51eee8afb51b62fd7d"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__CollectionBar_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__CollectionBar_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__CollectionBar_vue_vue_type_style_index_0_id_617a0842_scoped_true_lang_less___ = __webpack_require__("dcf796a6292e6f2e8565"); /* 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__CollectionBar_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__CollectionBar_vue_vue_type_template_id_617a0842_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__CollectionBar_vue_vue_type_template_id_617a0842_scoped_true___["b" /* staticRenderFns */], false, null, "617a0842", 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('617a0842')) { api.createRecord('617a0842', component.options) } else { api.reload('617a0842', component.options) } module.hot.accept("./CollectionBar.vue?vue&type=template&id=617a0842&scoped=true&", function () { api.rerender('617a0842', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/bjgou/components/CollectionBar.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "e1f1ecf2911e180e2d4a": /***/ (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); exports['default'] = { props: ['left', 'bottom'], mixins: [_commonComponentsMemberCouponMixin2['default']], data: function data() { return { hasBuyButton: true }; }, methods: { transText: function transText(text) { var map = { '手淘扫码': '手淘掃碼', '查看优惠': '查看優惠', '快捷购买': '快捷購買' }; if (G.ss_name === 'priceDog') { return map[text]; } return text; } }, mounted: function mounted() { var _this = this; setTimeout(function () { if ($('#J_ButtonWaitWrap').length) { _this.hasBuyButton = false; } }, 500); } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "e29ce4c2a4af273fcade": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) {/** * Created by cosimo on 2017/2/9. */ var nowPrice = undefined; function priceExtracor(selectors, radixPoint, split) { radixPoint = radixPoint || '.'; split = split || ','; function extractPrice() { for (var i = 0; i < selectors.length; i++) { var selector = selectors[i]; var price = document.querySelector(selector); if (price) { return formatPrice(price.textContent, radixPoint, split); } } return -1; } return extractPrice; } function formatPrice(price, radixPoint, split) { radixPoint = radixPoint || '.'; split = split || ','; if (price === -1) { return -1; } if (price) { price = price.toString().replace(split, ''); if (radixPoint && radixPoint !== '.') { price = price.replace(radixPoint, '.'); } price = price.match(/[0-9.]+/); if (price) { try { return parseFloat(price[0]); } catch (e) { return -1; } } } return -1; } var getPLUSPrice = function getPLUSPrice() { var PLUSDom = $('.plus-price .price'); if (PLUSDom.length === 0) { PLUSDom = $('.p-price-plus .price'); } if (PLUSDom) { return Number(PLUSDom.text().replace(/[¥¥\s]+/g, '')); } else { return 0; } }; function parserFactory(extractPrice) { function parser(callback) { function callbackWrapper(price) { if (price <= 0) { price = ''; } if (!G.dp) { console.warn('G.dp not ready'); return; } G.dp.price = price; G.dp.oldPrice = price; var tle = ''; if (G.dp.name && (G.dp.site == "360buy" || G.dp.site == "suning")) { tle = G.dp.name.trim(); } var priItem = [{ 'url': document.location.href, 'price': price, 'tle': tle, 'crc32': '' }]; if (G.dp.site == "360buy") { var PLUS = getPLUSPrice(); if (PLUS) { priItem[0].plus = PLUS; } } __webpack_require__("ee3f371a85b894c823bf").sendPriCheck(priItem); } var price = extractPrice(); if (price === -1 || price == 0 || document.readyState !== 'complete') { (function () { var tryTimes = 0; var interval = setInterval(function () { tryTimes++; var price = extractPrice(); if (document.readyState !== 'complete') { return; } if (price > 0 || tryTimes > 4) { clearInterval(interval); callbackWrapper(price); } }, 2500); })(); } else { nowPrice = price; callbackWrapper(price); } callback(price); } return parser; } function template(selectors) { // console.log('selector:', selectors) // debugger return parserFactory(priceExtracor(selectors)); } var priceParsers = {}; priceParsers[1] = ['#apex_desktop .a-price .a-offscreen', '#priceblock_dealprice', '#priceblock_saleprice', '#priceblock_ourprice', '#tmmSwatches .a-button-inner .a-button-text .a-color-price', '#tmmSwatches .a-button-inner .a-color-secondary span', '#soldByThirdParty .offer-price', '#olp_feature_div .a-color-price', '.a-color-price']; priceParsers[2] = ['#dd-price', '#d_price']; priceParsers[3] = ['#jd-price', '.p-price:not(.dj-price) .price', '#price', '.price']; priceParsers[4] = ['.price-type']; priceParsers[10] = ['#dl_sell_price']; priceParsers[12] = ['div.promotion-container > p:nth-child(2)']; priceParsers[13] = ['.dity-price-c']; priceParsers[14] = ['.price1.salePrice_big']; priceParsers[17] = ['.leftPrice']; priceParsers[18] = ['.message_price', '.message_title_name_b']; priceParsers[19] = ['.tehuiMoney']; priceParsers[21] = ['#prodPriceAj']; priceParsers[22] = ['#product_price']; priceParsers[24] = ['.d-real-price']; priceParsers[25] = ['.mainprice', '.small-price']; priceParsers[28] = ['#prdPrice', '#salePrice']; priceParsers[31] = ['#pricenow', '#current_price', '#detail_prom_price', '']; priceParsers[32] = ['#buyPrice']; priceParsers[33] = ['#leyoujia', '.item_l .font_num']; priceParsers[34] = ['.selPrice']; priceParsers[35] = ['#prd_price_div']; priceParsers[39] = ['.price .value']; priceParsers[40] = ['.Gd_shop_Price b']; priceParsers[41] = ['.js.jsj b']; priceParsers[43] = ['.price']; priceParsers[45] = ['.price .action-price']; priceParsers[50] = ['pro_promotion_price', '#pro_mall_price']; priceParsers[51] = ['#SGoodsPrice']; priceParsers[54] = ['#mprice']; priceParsers[60] = ['#xxjg .pro_buy_sen', '#xxjg .pro_buy_dis option:last-child']; priceParsers[61] = ['.tehuijia i:last-child .thisprice', '.priceList:last-child span']; priceParsers[62] = ['.info-main .price-n b']; priceParsers[66] = ['.YTPrice']; priceParsers[72] = ['.price_now', '']; priceParsers[73] = ['#productShowPrice']; priceParsers[75] = ['.fsk_goods_price', '.gd_price']; priceParsers[83] = ['#J_PromoBox .tb-wrTuan-num', '.tm-promo-price .tm-price', '.tm-price']; priceParsers[84] = ['.buy_pri', '.dynamic-price']; priceParsers[86] = ['.price_num', '.deal_accout_two', '.jumei_price', '.price_now']; priceParsers[93] = ['#yitianPrice']; priceParsers[94] = ['.good_price']; priceParsers[97] = ['#price_big em', '.FFA em']; priceParsers[98] = ['.p-price']; priceParsers[99] = ['#shopprice']; priceParsers[100] = ['#salePriceText']; priceParsers[101] = ['.myPrice em']; priceParsers[102] = ['#jiage .numb']; priceParsers[103] = ['#nowPrice strong']; priceParsers[108] = ['#spPrice']; priceParsers[109] = ['.sku-price']; priceParsers[110] = ['#bk-d-price']; priceParsers[115] = ['.mprice', '.p_mp']; priceParsers[123] = ['#J_PromoPriceNum', '#J_StrPrice']; priceParsers[125] = ['.dPrice']; priceParsers[126] = ['#price-sf .price']; priceParsers[127] = ['#intro_price .price']; priceParsers[128] = ['#price']; priceParsers[129] = ['#J-sale-price', '.J-price']; priceParsers[134] = ['#pro-price']; priceParsers[135] = ['.de_info_price']; priceParsers[138] = ['#ECS_SHOPPRICE']; priceParsers[140] = ['.groupdetail_nowprice', '.dsingle_nowprice']; priceParsers[141] = ['#jianyiPrice']; priceParsers[142] = ['.spare02']; priceParsers[145] = ['#pdpPrice .discount', '#pdpPrice', '.discou']; priceParsers[146] = ['.action-price']; priceParsers[147] = ['#postPrice']; priceParsers[152] = ['.detail-item-gold']; priceParsers[153] = ['#g5_price']; priceParsers[154] = ['.promote_price']; priceParsers[155] = ['.cur-price']; priceParsers[156] = ['#secooPriceJs']; priceParsers[157] = ['#prod_price']; priceParsers[158] = ['.price24']; priceParsers[164] = ['.jg_cuhong', '#myjgcuhong']; priceParsers[167] = ['.J_mi_goodsPrice', '.money', '.J_currentPrice', 'J_proPrice', '.price']; priceParsers[168] = ['.letv_price', '#js_price']; priceParsers[174] = ['.pro-price']; priceParsers[180] = ['#J_product_value', '.info-price']; priceParsers[182] = ['.detail_price', '.coupon_price']; priceParsers[184] = ['.promotion-price .price', '.price']; priceParsers[188] = ['#goodsPrice']; priceParsers[194] = ['.action-price']; priceParsers[195] = ['#item_price']; priceParsers[196] = ['.price strong']; priceParsers[197] = ['.ms_price strong']; priceParsers[202] = ['#J_NowPrice']; priceParsers[203] = ['#J_NowPrice']; priceParsers[210] = ['#g_price']; priceParsers[213] = ['#offerPrice']; priceParsers[221] = ['.price']; priceParsers[222] = ['#rprice']; priceParsers[223] = ['.currentPrice']; priceParsers[226] = ['.mainPrice']; priceParsers[227] = ['.sale-price']; priceParsers[228] = priceParsers[1]; priceParsers[229] = priceParsers[1]; priceParsers[230] = ['#prcIsum']; priceParsers[231] = ['.p-current-price .p-price']; priceParsers[232] = ['.action-price']; priceParsers[233] = ['.js-pdpLocalPrice']; priceParsers[234] = ['#saleprice_value']; priceParsers[235] = ['.detail_tzh span']; priceParsers[236] = ['.pro_price span']; priceParsers[237] = ['.view-SkuPriceInfo .price', '.view-SkuPriceInfo i']; priceParsers[238] = ['#priceSlot .price', '._37Y6D ._3r_Ou']; priceParsers[239] = ['.product-price']; priceParsers[241] = ['.priceBlock .salePrice', '.priceBlock']; priceParsers[242] = ['.ng-binding.wag-bold']; priceParsers[243] = ['#displayPrice']; priceParsers[244] = ['.price-main-product .price-current', '.price-current']; priceParsers[245] = ['#final-price']; priceParsers[246] = function () { parserFactory(priceExtracor(['#priceblock_dealprice', '#priceblock_ourprice', '#tmmSwatches .a-button-inner .a-color-secondary span', '#soldByThirdParty .offer-price', '#olp_feature_div .a-color-price'], ',', '.')); }; priceParsers[247] = ['#pricing td.highlight']; priceParsers[248] = ['.product-price .price']; priceParsers[249] = ['#js-product-information-price .product-current-price', '.main-product-details .compare-price__display']; priceParsers[251] = ['.product-price-container .price-sales ']; priceParsers[252] = ['.detail-price', 's_discountpricenew', '.cutpriceposition']; priceParsers[256] = ['#price']; priceParsers[259] = ['#Price .productPrice']; priceParsers[260] = ['#productPrice .nowPrice', '#productPrice']; priceParsers[261] = ['#pdpMainPrice .pOurPriceM', '#pdpSubPrice .pRetailPrice:nth-child(2)', '.pRetailPrice', '#pdpMainPrice']; priceParsers[263] = ['.priceSale']; priceParsers[264] = ['.price-set']; priceParsers[266] = priceParsers[1]; priceParsers[267] = ['.goods-data .goods-price span']; priceParsers[268] = ['.goods-price-r1 strong']; priceParsers[269] = ['#productRMB']; priceParsers[270] = ['.j_PriceNum', '.price']; priceParsers[271] = ['.price', '.product_price_cont']; priceParsers[272] = ['.action-price']; priceParsers[273] = ['.product_top_r span.fs20']; priceParsers[274] = ['#jScarePrice', '.jFirstPrice']; priceParsers[275] = ['.rmb-price']; priceParsers[276] = ['.Price']; priceParsers[277] = ['#currPrice']; priceParsers[279] = ['.product_price', 'price_rmb']; priceParsers[280] = ['#goodsCurrentPrice', '.prdsale strong']; priceParsers[281] = ['#bqPrice', '.price span']; priceParsers[285] = ['.price .current']; priceParsers[286] = ['.j-item-now-price']; priceParsers[287] = ['.xprice_val[itemprop="lowPrice"]']; priceParsers[288] = ['.action-price']; priceParsers[289] = ['.current_price']; priceParsers[290] = ['.price']; priceParsers[291] = ['#priceDiv .nowPrice']; priceParsers[292] = ['.item-actPrice']; priceParsers[294] = ['#salePriceSpan']; priceParsers[295] = ['.price-sell .price-num']; priceParsers[299] = ['.pro_price .price']; priceParsers[300] = ['#priceDomId']; priceParsers[305] = ['.autoShipPrice', '.singlePrice']; priceParsers[306] = ['.product-price div']; priceParsers[311] = ['.product-full__price', '.spp-product__mini-bag-price-size']; priceParsers[313] = ['#details-price']; priceParsers[328] = ['.goodsprice']; priceParsers[330] = ['#you_pay.price', '.price']; priceParsers[337] = ['.price']; priceParsers[338] = ['.js-price']; priceParsers[340] = ['.singlePrice']; priceParsers[341] = ['.product-price .price']; priceParsers[343] = ['.bose-price__price']; priceParsers[344] = ['.item-price']; priceParsers[345] = ['.ypYouPay']; priceParsers[347] = ['#FlashPrice']; priceParsers[348] = ['.goods-price .price1']; priceParsers[349] = ['.j-retail-price']; priceParsers[351] = ['.tm_jg #ECS_SHOPPRICE', '#ECS_SHOPPRICE']; priceParsers[352] = ['.price-b .new']; priceParsers[354] = ['.detail-last-price']; priceParsers[355] = ['.price-item.current .value']; priceParsers[356] = ['.m-price']; priceParsers[357] = ['.product-price .price']; priceParsers[362] = ['.DetailPriceContain .PriceNow']; priceParsers[363] = ['.current-price']; priceParsers[364] = ['.price']; priceParsers[365] = priceParsers[246]; priceParsers[366] = priceParsers[1]; priceParsers[367] = ['.itemInfo .price']; priceParsers[368] = ['#salePriceId']; priceParsers[369] = ['#jd-price']; priceParsers[370] = ['.g-group-price', '#kaluliPrice']; priceParsers[371] = ['#show_goods_price [name="goods_real_price"]']; priceParsers[372] = ['.price']; priceParsers[373] = ['#bb_price']; priceParsers[374] = ['#opr']; priceParsers[376] = ['#JgoodsPrice']; priceParsers[377] = ['.action-pro_price', 'action-price', '.price']; priceParsers[378] = ['.jFirstPrice']; priceParsers[379] = ['.action-price']; priceParsers[380] = ['.now-price']; priceParsers[381] = ['.priceAndService .price']; priceParsers[382] = ['.sale-price']; priceParsers[385] = ['#salePrice']; priceParsers[386] = ['.price-box .price-product']; priceParsers[387] = ['.spare02_price']; priceParsers[388] = ['.current-price']; priceParsers[389] = ['.price-info .current-price']; priceParsers[390] = ['.shop-nature1 [price]']; priceParsers[391] = ['.m-price']; priceParsers[392] = ['.now-price']; priceParsers[393] = ['.current-price']; priceParsers[394] = ['.current-price .price-number']; priceParsers[395] = ['.rmb-price']; priceParsers[396] = ['.now .price']; priceParsers[397] = ['.DetailPrice .PriceNow']; priceParsers[398] = ['.last_prices .price']; priceParsers[399] = ['.price-number']; priceParsers[400] = ['.product-property .current-price']; priceParsers[401] = ['.product-shop .PriceNow']; priceParsers[402] = ['.price-number']; priceParsers[403] = function () { parserFactory(priceExtracor(['.price-productdesc'], ',', '.')); }; priceParsers[404] = ['.price-current']; priceParsers[405] = ['.price-info .price']; priceParsers[406] = ['.d-price']; priceParsers[407] = ['.goods-price']; priceParsers[408] = ['#product-summary .price']; priceParsers[409] = ['.price_sale']; priceParsers[410] = ['.salePrice', '.nowPrice']; priceParsers[411] = ['#skuPrice']; priceParsers[412] = ['#item-price .font-bold', '#item-price']; priceParsers[413] = ['#productPriceInfo .m_price']; priceParsers[414] = ['.wb-price span']; priceParsers[415] = ['.product-price .price']; priceParsers[416] = ['#price']; priceParsers[417] = ['.special-price .price', '.price']; priceParsers[418] = ['.final', '.here_price strong']; priceParsers[419] = ['.market-price']; priceParsers[420] = ['#salePrice']; priceParsers[423] = ['.price']; priceParsers[424] = ['.price-current', '.regular-price']; priceParsers[427] = ['.redSalePrice', '.product-price-big .price-wrapper']; priceParsers[428] = ['.monetary-price-value']; priceParsers[429] = priceParsers[427]; priceParsers[430] = ['.num_span']; priceParsers[431] = ['#mall_price']; priceParsers[432] = ['#price_current']; priceParsers[433] = ['.action-price']; priceParsers[434] = ['.price']; priceParsers[435] = ['.goodsprice']; // 没有匹配到id的时候 priceParsers[9999] = function () { return function (callback) { callback(); }; }; module.exports.init = function (siteId, callback) { if (location.host === 'www.amazon.de') { callback(G.dp.oldPrice); return; } if (nowPrice) { callback(nowPrice); return; } var s = priceParsers[siteId]; if (s instanceof Array) { template(s)(callback); } else if (s instanceof Object && s.prototype) { s()(callback); } else { callback(); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "e2af7b31f2ad59fd0fad": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjgou-section-title[data-v-0e0fcbce] {\n display: inline-flex !important;\n}\n.bjgou-section-title .bjgou-hinter[data-v-0e0fcbce] {\n width: 3px;\n height: 12px;\n background: linear-gradient(180deg, #FFD848 0%, #F5B736 100%);\n}\n.bjgou-section-title span[data-v-0e0fcbce] {\n font-weight: bold;\n font-size: 12px;\n color: #333333;\n margin-left: 8px;\n}\n", ""]); // exports /***/ }), /***/ "e336c6dc5eff4f6bee7a": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-row[data-v-42d39176] {\n display: flex;\n flex-direction: row;\n}\n.gwd-inline-row[data-v-42d39176] {\n display: inline-flex;\n flex-direction: row;\n}\n.gwd-column[data-v-42d39176] {\n display: flex;\n flex-direction: column;\n}\n.gwd-inline-column[data-v-42d39176] {\n display: inline-flex;\n flex-direction: column;\n}\n.gwd-align[data-v-42d39176] {\n align-content: center;\n align-items: center;\n}\n.gwd-jcc[data-v-42d39176] {\n justify-content: center;\n}\n.gwd-jic[data-v-42d39176] {\n justify-items: center;\n}\n.gwd-button[data-v-42d39176] {\n outline: none;\n border: none;\n}\n.bjg-bar-button[data-v-42d39176] {\n font-size: 0;\n}\n.bjg-bar-button[data-v-42d39176]:hover {\n background: #fffbef;\n cursor: pointer;\n}\n.bjg-bar-button:hover .bjg-window[data-v-42d39176] {\n display: block;\n}\n.mainbar-fold .bjg-bar-button[data-v-42d39176],\n.mainbar-fold #top_coupon_btn[data-v-42d39176],\n.mainbar-fold .rinfo-btn[data-v-42d39176],\n.mainbar-fold .gwd-bottom-tmall[data-v-42d39176] {\n display: none!important;\n}\n.gwd-font12[data-v-42d39176] {\n font-size: 12px;\n}\n.gwd-font14[data-v-42d39176] {\n font-size: 14px;\n}\n.gwd-red[data-v-42d39176] {\n color: #ff3532;\n}\n.gwd-red-bg[data-v-42d39176] {\n background: #ff3532;\n}\n.gwd-hui333[data-v-42d39176] {\n color: #333333;\n}\n.gwd-hui999[data-v-42d39176] {\n color: #999999;\n}\n.gwd-font10[data-v-42d39176] {\n font-size: 12px;\n transform: scale(0.8333);\n transform-origin: bottom center;\n}\n.gwd-font11[data-v-42d39176] {\n font-size: 12px;\n transform: scale(0.91666);\n transform-origin: bottom center;\n}\n.gwd-font9[data-v-42d39176] {\n font-size: 12px;\n transform: scale(0.75);\n transform-origin: bottom center;\n}\n.gwd-hoverable[data-v-42d39176]:hover {\n background: #edf1f2;\n}\n.right-info > *[data-v-42d39176] {\n border-left: 1px solid #edf1f2;\n}\n.gwd-red-after-visit[data-v-42d39176]:hover {\n color: #e03024 !important;\n}\n.gwd-button[data-v-42d39176]:hover {\n filter: brightness(1.1);\n}\n.gwd-button[data-v-42d39176] {\n padding-top: 1px;\n padding-bottom: 1px;\n}\n.gwd-button[data-v-42d39176]:active {\n filter: brightness(0.9);\n}\n.gwd-fadeout-5s[data-v-42d39176] {\n opacity: 0;\n transition: opacity 5s;\n}\n.gwd-member-coupon-mini[data-v-42d39176] {\n width: 460px;\n background: white;\n border-left: 1px solid #e6e9eb;\n border-right: 1px solid #e6e9eb;\n border-bottom: 1px solid #e6e9eb;\n height: 37px;\n}\n.gwd-coupon-take[data-v-42d39176] {\n width: 50px;\n height: 26px;\n background: #ff3d5d;\n border-radius: 2px;\n color: white;\n font-size: 13px;\n text-align: center;\n line-height: 26px;\n cursor: pointer;\n position: relative;\n margin-left: 20px;\n margin-right: 15px;\n display: inline-block;\n}\n.gwd-coupon-take .gwd-qr-container[data-v-42d39176] {\n position: absolute;\n display: none;\n right: -15px;\n top: 30px;\n z-index: 9;\n}\n.gwd-member-coupon-mini:hover .gwd-qr-container[data-v-42d39176] {\n display: block;\n}\n", ""]); // exports /***/ }), /***/ "e5787b71040812935e9c": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "bjgou-subsidy-bar bjgou-component", attrs: { title: "点击领取" }, on: { mouseover: _vm.over, click: _vm.click } }, [ _c( "span", { staticClass: "bjg-coupon-white", staticStyle: { "font-family": "Arial", "font-size": "14px", "font-weight": "bold", "margin-left": "95px", "margin-top": "10px" } }, [_vm._v("¥")] ), _vm._v(" "), _c( "span", { staticClass: "bjg-coupon-white", staticStyle: { "font-size": "30px", "font-weight": "bold" } }, [_vm._v(_vm._s(_vm.value))] ), _vm._v(" "), _c( "span", { staticClass: "bjg-coupon-white", staticStyle: { "font-size": "18px", "font-weight": "bold", "margin-left": "6px", "margin-top": "6px" } }, [_vm._v("店铺红包")] ), _vm._v(" "), _c("div", { staticStyle: { flex: "1" } }), _vm._v(" "), _c( "span", { staticClass: "bjg-coupon-white", staticStyle: { "font-size": "18px", "font-weight": "bold", "margin-right": "22px" } }, [_vm._v(_vm._s(_vm.site === "360buy" ? "点击领取" : "立即领取"))] ), _vm._v(" "), _vm.qr ? _c( "div", { staticClass: "qrcode" }, [ _c("img", { staticStyle: { "margin-top": "7px", width: "120px", height: "120px" }, attrs: { src: _vm.qrcode, alt: "" } }), _vm._v(" "), _vm.error ? _c("QrError", { on: { refresh: _vm.over } }) : _vm._e(), _vm._v(" "), _c( "div", { staticStyle: { "margin-top": "4px", "text-align": "center" } }, [ _c( "span", { staticStyle: { "font-weight": "bold", color: "#ff6132", "font-size": "14px" } }, [_vm._v("微信扫码")] ), _vm._v(" "), _c( "span", { staticStyle: { "margin-left": "4px", color: "#333333", "font-size": "12px" } }, [ _vm._v( "领" + _vm._s(_vm.site === "360buy" ? "优惠券" : "礼金") ) ] ) ] ) ], 1 ) : _vm._e() ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "e5e42eae3f3a4433706b": /***/ (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_MemberCouponBottomBjg_vue_vue_type_template_id_44c0e93e_scoped_true___ = __webpack_require__("10bcddd0827eacb5d2f5"); /* 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_MemberCouponBottomBjg_vue_vue_type_template_id_44c0e93e_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_MemberCouponBottomBjg_vue_vue_type_template_id_44c0e93e_scoped_true___["b"]; }); /***/ }), /***/ "e5ef5de8f657bbe96e8e": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjg-coupon-white[data-v-09046175] {\n color: #ffffff;\n}\n.bjgou-subsidy-bar[data-v-09046175] {\n cursor: pointer;\n margin-top: 5px;\n width: 442px;\n height: 67px;\n position: relative;\n display: inline-flex;\n align-items: center;\n background: url(https://cdn.bijiago.com/images/extensions/bijiago/bigCoupon@2x.png);\n box-sizing: border-box !important;\n background-size: contain;\n}\n.bjgou-subsidy-bar .qrcode[data-v-09046175] {\n display: none;\n position: absolute;\n top: 70px;\n right: -15px;\n width: 148px;\n height: 156px;\n background: #FFF6F4;\n border: 1px solid #FF6132;\n z-index: 9;\n}\n.bjgou-subsidy-bar .bjg-bold[data-v-09046175] {\n font-size: 13px;\n font-weight: bold;\n color: #ff2d53;\n}\n.bjgou-subsidy-bar .bjg-take[data-v-09046175] {\n min-width: 87px;\n height: 22px;\n border-radius: 11px;\n border: 1px solid #FF2D53;\n position: relative;\n display: flex;\n cursor: pointer;\n}\n.bjgou-subsidy-bar .bjg-take span[data-v-09046175] {\n font-size: 12px;\n text-align: center;\n line-height: 22px;\n}\n.bjgou-subsidy-bar .bjg-take .taker[data-v-09046175] {\n color: white;\n width: 36px;\n height: 24px;\n line-height: 24px;\n background: linear-gradient(90deg, #FF3A62 0%, #FF665B 100%);\n border-radius: 11px;\n display: inline-block;\n}\n.bjgou-subsidy-bar[data-v-09046175]:hover {\n text-decoration: none;\n}\n.bjgou-subsidy-bar:hover .qrcode[data-v-09046175] {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n", ""]); // exports /***/ }), /***/ "e756d69fbda7cdc8ade7": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "gwd-contact-link", on: { mouseover: _vm.over } }, [ _vm._v("\n 扫码联系客服\n "), _vm.qr ? _c( "div", { staticClass: "gwd-app-qr-content gwd-column gwd-align" }, [ _c( "div", { staticClass: "gwd-qr-img", style: "margin-top: 7px; margin-left: 7px; margin-right: 7px; height: 111.04px; position: relative; width: 111.04px;" }, [ _c("img", { staticClass: "gwd-qr-logo", attrs: { src: __webpack_require__("c9085187c37fc1ab0e5e"), alt: "" } }), _vm._v(" "), _c("img", { staticStyle: { width: "100%" }, attrs: { src: _vm.qr, alt: "" } }) ] ), _vm._v(" "), _c( "div", { staticClass: "gwd-row gwd-align gwd-qr-bottom-line", style: "margin-top: 6px;" }, [ _c( "span", { staticClass: "bold", style: "font-size: 20px;" }, [_vm._v("淘宝APP")] ), _vm._v(" "), _c( "span", { staticClass: "normal", style: "font-size: 18px" }, [_vm._v("扫码")] ), _vm._v(" "), _c( "span", { staticClass: "normal", staticStyle: { "margin-left": "10px" } }, [_vm._v("联系客服")] ) ] ) ] ) : _vm._e() ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "e80a89d5b538bbfd4bc2": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__QrError_vue_vue_type_template_id_8590af9e_scoped_true___ = __webpack_require__("d94e140c19cb4f593342"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QrError_vue_vue_type_script_lang_js___ = __webpack_require__("4b56f9a4d97d17e3d5db"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__QrError_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__QrError_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__QrError_vue_vue_type_style_index_0_id_8590af9e_scoped_true_lang_less___ = __webpack_require__("7ee8c7c37da7b9a78bf5"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__QrError_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__QrError_vue_vue_type_template_id_8590af9e_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__QrError_vue_vue_type_template_id_8590af9e_scoped_true___["b" /* staticRenderFns */], false, null, "8590af9e", 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('8590af9e')) { api.createRecord('8590af9e', component.options) } else { api.reload('8590af9e', component.options) } module.hot.accept("./QrError.vue?vue&type=template&id=8590af9e&scoped=true&", function () { api.rerender('8590af9e', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/bjgou/components/QrError.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "ea0af90f017e30b53ee5": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SizeHelp_vue_vue_type_template_id_b3b47bf0_scoped_true___ = __webpack_require__("dcd29bd1a389dba6c22e"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__SizeHelp_vue_vue_type_script_lang_js___ = __webpack_require__("3359cfa348808629ff03"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__SizeHelp_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__SizeHelp_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__SizeHelp_vue_vue_type_style_index_0_id_b3b47bf0_scoped_true_lang_less___ = __webpack_require__("01c701c2cffcf33ed2d3"); /* 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__SizeHelp_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__SizeHelp_vue_vue_type_template_id_b3b47bf0_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__SizeHelp_vue_vue_type_template_id_b3b47bf0_scoped_true___["b" /* staticRenderFns */], false, null, "b3b47bf0", 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('b3b47bf0')) { api.createRecord('b3b47bf0', component.options) } else { api.reload('b3b47bf0', component.options) } module.hot.accept("./SizeHelp.vue?vue&type=template&id=b3b47bf0&scoped=true&", function () { api.rerender('b3b47bf0', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/bjgou/components/SizeHelp.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "ea2eb99b67c2d1cc2243": /***/ (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_BjgBottomWindow_vue_vue_type_script_lang_js___ = __webpack_require__("9f64364754bb77396ebf"); /* 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_BjgBottomWindow_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_BjgBottomWindow_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_BjgBottomWindow_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_BjgBottomWindow_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_BjgBottomWindow_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "eaa0b9c74f60eb2bb295": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("dbf2d1cc1e8bc1797734"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("bfdce50a", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../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!./MemberCouponMiniBjg.vue?vue&type=style&index=0&id=c1c2cbdc&scoped=true&lang=less&", function() { var newContent = require("!!../../../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!./MemberCouponMiniBjg.vue?vue&type=style&index=0&id=c1c2cbdc&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "eab0e5af93d0fd8b0ae9": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, regeneratorRuntime) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); var user = __webpack_require__("d098bd5eb9f0b2883cf6"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); exports['default'] = { name: "MiniFavor.vue", data: function data() { return { productChecked: G.productChecked, clock: __webpack_require__("4b2954cb738c89013fec"), checked: __webpack_require__("ddbfda47de37c7516a87"), qr: G.qr, login: G.userLogin }; }, methods: { checkCollected: function checkCollected() { var dpId, token; return regeneratorRuntime.async(function checkCollected$(context$1$0) { var _this = this; while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(globalCondition.met('GwdDpIdGot')); case 2: dpId = context$1$0.sent; context$1$0.next = 5; return regeneratorRuntime.awrap(user.hasUserToken()); case 5: token = context$1$0.sent; if (token) { context$1$0.next = 11; break; } G.userLogin = false; this.login = false; G.trigger('bjgouFavor'); return context$1$0.abrupt('return'); case 11: G.userLogin = true; this.login = true; user.checked(dpId).then(function (res) { if (res.code === -3) { G.userLogin = false; _this.login = false; G.trigger('bjgouFavor'); return; } if (res.code === 0) { _this.productChecked = false; G.productChecked = false; G.trigger('bjgouFavor'); return; } _this.productChecked = res.data.id; G.productChecked = res.data.id; G.trigger('bjgouFavor'); // G.productChecked = res.data }); case 14: case 'end': return context$1$0.stop(); } }, null, this); }, favorClick: function favorClick() { var dpId, res; return regeneratorRuntime.async(function favorClick$(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: dpId = context$1$0.sent; if (this.productChecked) { context$1$0.next = 11; break; } context$1$0.next = 6; return regeneratorRuntime.awrap(user.collect(dpId)); case 6: res = context$1$0.sent; console.log(res); if (res.code === 1) { this.productChecked = res.data.id; G.productChecked = res.data.id; } context$1$0.next = 16; break; case 11: context$1$0.next = 13; return regeneratorRuntime.awrap(user.del(this.productChecked)); case 13: res = context$1$0.sent; console.log(res); if (res.code === 1) { this.productChecked = false; G.productChecked = false; } case 16: G.trigger('bjgouFavor'); case 17: case 'end': return context$1$0.stop(); } }, null, this); }, goLogin: function goLogin() { //location.href = `https://i.bijiago.com/UserUnion/Authorize?utype=2&app_platform=ext&_referer=${encodeURIComponent(location.href)}` user.goLogin(); } }, mounted: function mounted() { var _this2 = this; this.checkCollected(); G.on('bjgouFavor', function () { _this2.productChecked = G.productChecked; _this2.login = G.userLogin; }); } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "eb976f750ad17796d6eb": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".pricedog-bar[data-v-72651e53] {\n width: 100px;\n height: 37px;\n font-size: 0;\n background: white;\n border-radius: 4px;\n border: 1px solid #E6E9EB;\n position: relative;\n box-sizing: border-box;\n}\n.pricedog-bar .pricedog-tab-content[data-v-72651e53] {\n display: none;\n position: absolute;\n left: -1px;\n top: 35px;\n text-align: center;\n z-index: 9;\n background: #FFFFFF;\n border-radius: 0px 0px 4px 4px;\n border: 1px solid #E6E9EB;\n box-sizing: border-box;\n}\n.pricedog-bar .pricedog-tab[data-v-72651e53]:hover {\n background: #fffbef;\n}\n.pricedog-bar .pricedog-tab:hover .pricedog-tab-content[data-v-72651e53] {\n display: flex;\n}\n.pricedog-bar .pricedog-tab[data-v-72651e53] {\n justify-content: center;\n}\n.pricedog-bar .pricedog-tab span[data-v-72651e53] {\n font-size: 12px;\n}\n", ""]); // exports /***/ }), /***/ "ebdf9f6bdfb6e4994232": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, regeneratorRuntime, G) { module.exports = { init: function init() { var _this = this; setTimeout(function () { var list = $('.bjgext-item-dp').toArray().filter(function (x) { return x.dataset.id.indexOf('-83') > -1 || x.dataset.id.indexOf('-123') > -1; }); var pidConfig = __webpack_require__("0cfce96dbc80f0b4a6d0"); console.log('addb2clistcoupon start 3'); list.forEach(function callee$2$0(item) { var coupon, m, html; return regeneratorRuntime.async(function callee$2$0$(context$3$0) { while (1) switch (context$3$0.prev = context$3$0.next) { case 0: if (!($(item).find('.bjgext-item-img .coupon_span').length > 0)) { context$3$0.next = 2; break; } return context$3$0.abrupt('return'); case 2: context$3$0.next = 4; return regeneratorRuntime.awrap(__webpack_require__("6c0a23e5b52046830607").initWithDpAsync(item.dataset.id, pidConfig[G.union], 'compare')); case 4: coupon = context$3$0.sent; if (coupon && coupon.data) { m = coupon.data.coupon.coupon_money; html = '<span class="coupon_span">领' + m + '元券</span>'; console.log('addcoupon ' + item.dataset.id + ' with value ', m); $(item).find('.bjgext-item-img').append(html); } case 6: case 'end': return context$3$0.stop(); } }, null, _this); }); console.log(list); }, 1000); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "eca30c40a94751679e69": /***/ (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_FakeBtn_vue_vue_type_style_index_0_id_255024c9_scoped_true_lang_less___ = __webpack_require__("bc6fff8102ba1c74596f"); /* 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_FakeBtn_vue_vue_type_style_index_0_id_255024c9_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_FakeBtn_vue_vue_type_style_index_0_id_255024c9_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_FakeBtn_vue_vue_type_style_index_0_id_255024c9_scoped_true_lang_less____default.a); /***/ }), /***/ "ed91e916f05d2986bcd1": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, regeneratorRuntime) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); var commonUtil = __webpack_require__("3e983ecbff4e1a29654c"); exports['default'] = { props: ['data', 'top', 'additionalClass'], data: function data() { return { mt: 0, debugMode: !!window.GwdToolkit, // debugMode: false, search: $('#key').val(), content: '', from: location.hostname === 'search.jd.com' || location.hostname === 'list.jd.com' ? '京东搜索结果页' : '商品详情页', rankName: '', id: parseInt(Math.random() * 10000) }; }, mounted: function mounted() { if (this.top) { this.mt = this.top; } if (!window.gwdRank) { window.gwdRank = this; } }, methods: { rankClick: function rankClick(item) { var link, contentId, rankType, payload, url, res, search; return regeneratorRuntime.async(function rankClick$(context$1$0) { var _this = this; while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!location.hostname.includes('.jd.com')) { window.open(item.rurl); } link = commonUtil.getParameterByName('target_url', item.rurl); contentId = commonUtil.getParameterByName('contentId', link); rankType = commonUtil.getParameterByName('rankType', link); payload = { functionId: 'getRankLanding', appid: 'JDReactRankingList', body: JSON.stringify({ version: '109', rankType: rankType, source: 'dacu', rankId: contentId, extraParam: {}, fromName: '-100', hasVenderRank: '1' }), clientVersion: '9.4.2', client: 'wh5', uuid: Date.now() * 1000 + parseInt(Math.random() * 1000), area: '1_2802_54747_0' }; url = __webpack_require__("91f250ebeb8d5987491c").buildUrl('https://api.m.jd.com/client.action', payload); context$1$0.next = 8; return regeneratorRuntime.awrap(__webpack_require__("91f250ebeb8d5987491c").requestXHR(url)); case 8: res = context$1$0.sent; this.content = JSON.stringify(res.result.products.map(function (item) { item.zyTag = parseInt(item.zyTag); return item; })); this.rankName = item.rname; search = $('#key').val(); this.search = search ? search : 'fake'; this.$nextTick(function () { $('#gwd-jdrank-submit-' + _this.id).click(); }); case 14: case 'end': return context$1$0.stop(); } }, null, this); } }, computed: { addition: function addition() { return this.data.length ? this.data.filter(function (item, idx) { return idx > 0; }) : []; } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "edad80caeb3c830bf9cb": /***/ (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_BjgBottomWindow_vue_vue_type_style_index_0_id_683c35f8_scoped_true_lang_less___ = __webpack_require__("55ccdce0b5a15dc1776b"); /* 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_BjgBottomWindow_vue_vue_type_style_index_0_id_683c35f8_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_BjgBottomWindow_vue_vue_type_style_index_0_id_683c35f8_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_BjgBottomWindow_vue_vue_type_style_index_0_id_683c35f8_scoped_true_lang_less____default.a); /***/ }), /***/ "edb006a6bdc87dceab2d": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { module.exports = function (callback) { var cc = "?from_device=" + G.from_device + "&callback=?"; if (G.from_device === 'sogou' || G.from_device === "chrome") cc = '?from_device=' + G.from_device; $.getJSON(G.server + '/ip.php' + cc).done(function (data) { if (data && data.result instanceof Array) { G.forbidWishlit = true; G.forbidYFQ = true; } if (data && data.result && data.result.address && data.result.address.indexOf('北京') > -1) { G.forbidWishlit = true; // 屏蔽 yifenqian G.forbidYFQ = true; } callback(); }).fail(function () { callback(); }); }; module.exports.common = function (callback) { // let cc = "?from_device=" + G.from_device + "&callback=?" // if (G.from_device === 'sogou' || (G.from_device === 'bijiago' && G.chrome_extension)) // cc = '?from_device=' + G.from_device; // if (G.from_device === 'xdjf') // cc = "?callback=?&district=1" callback(null); // $.getJSON(G.server + '/ip.php' + cc).then((data) => { // debugger // if (data && data.result && data.result.address) { // callback(data); // } else { // callback(null) // } // // }).catch(() => { // callback(null) // }) }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "edd40abc3cca37fc4610": /***/ (function(module, exports, __webpack_require__) { "use strict"; if (!Function.prototype.bind) { Function.prototype.bind = function (oThis) { if (typeof this !== 'function') { // closest thing possible to the ECMAScript 5 // internal IsCallable function throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable'); } var aArgs = Array.prototype.slice.call(arguments, 1), fToBind = this, fNOP = function fNOP() {}, fBound = function fBound() { return fToBind.apply(this instanceof fNOP ? this : oThis, aArgs.concat(Array.prototype.slice.call(arguments))); }; fNOP.prototype = this.prototype; fBound.prototype = new fNOP(); return fBound; }; } if (!Array.prototype.indexOf) { Array.prototype.indexOf = function (searchElement, fromIndex) { var k; if (this == null) { throw new TypeError('"this" is null or not defined'); } var O = Object(this); var len = O.length >>> 0; if (len === 0) { return -1; } var n = +fromIndex || 0; if (Math.abs(n) === Infinity) { n = 0; } if (n >= len) { return -1; } k = Math.max(n >= 0 ? n : len - Math.abs(n), 0); while (k < len) { if (k in O && O[k] === searchElement) { return k; } k++; } return -1; }; } // 邮乐网重写了filter if (!Array.prototype.filter || location.host.indexOf('ule.com') > -1) { Array.prototype.filter = function (fun /*, thisArg*/) { if (this === void 0 || this === null) { throw new TypeError(); } var t = Object(this); var len = t.length >>> 0; if (typeof fun !== 'function') { throw new TypeError(); } var res = []; var thisArg = arguments.length >= 2 ? arguments[1] : void 0; for (var i = 0; i < len; i++) { if (i in t) { var val = t[i]; if (fun.call(thisArg, val, i, t)) { res.push(val); } } } return res; }; } if (location.host.indexOf('lianjia.com') > -1 || location.host.indexOf('.ke.') > -1) { Number.prototype.toFixed = function (s) { var changenum = (parseInt(this * Math.pow(10, s) + 0.5) / Math.pow(10, s)).toString(); var index = changenum.indexOf("."); if (index < 0 && s > 0) { changenum = changenum + "."; for (var i = 0; i < s; i++) { changenum = changenum + "0"; } } else { index = changenum.length - index; for (var i = 0; i < s - index + 1; i++) { changenum = changenum + "0"; } } return changenum; }; } if (location.host === 'item.jd.com' || location.host === 're.jd.com' || location.host === 'item.yhd.com') { Array.prototype.forEach = function (callback /*, thisArg*/) { var T, k; if (this == null) { throw new TypeError('this is null or not defined'); } // 1. Let O be the result of calling toObject() passing the // |this| value as the argument. var O = Object(this); // 2. Let lenValue be the result of calling the Get() internal // method of O with the argument "length". // 3. Let len be toUint32(lenValue). var len = O.length >>> 0; // 4. If isCallable(callback) is false, throw a TypeError exception. // See: http://es5.github.com/#x9.11 if (typeof callback !== 'function') { throw new TypeError(callback + ' is not a function'); } // 5. If thisArg was supplied, let T be thisArg; else let // T be undefined. if (arguments.length > 1) { T = arguments[1]; } // 6. Let k be 0. k = 0; // 7. Repeat while k < len. while (k < len) { var kValue; // a. Let Pk be ToString(k). // This is implicit for LHS operands of the in operator. // b. Let kPresent be the result of calling the HasProperty // internal method of O with argument Pk. // This step can be combined with c. // c. If kPresent is true, then if (k in O) { // i. Let kValue be the result of calling the Get internal // method of O with argument Pk. kValue = O[k]; // ii. Call the Call internal method of callback with T as // the this value and argument list containing kValue, k, and O. callback.call(T, kValue, k, O); } // d. Increase k by 1. k++; } // 8. return undefined. }; } /***/ }), /***/ "ede8645cc887bf4d66ec": /***/ (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_CommonCouponBarMini_vue_vue_type_template_id_3fdd510a_scoped_true___ = __webpack_require__("943197de5d5f506919a6"); /* 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_CommonCouponBarMini_vue_vue_type_template_id_3fdd510a_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_CommonCouponBarMini_vue_vue_type_template_id_3fdd510a_scoped_true___["b"]; }); /***/ }), /***/ "ee3f371a85b894c823bf": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var dpList = __webpack_require__("beec10bfe871446903ae"); var priceCheck = __webpack_require__("8b533351445f44b98685"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var Timer, nowSiteId; var maxTimes = 0; var globalObj = { 'crcarr': [] }; // 第一个是url 第二个是价格 var siteDicts = { 'yihaodian': [['.proImg a.img', '.proPrice>em.num']], 'tmall': [['.product-title a', '.ui-price strong'], ['.productTitle a', '.productPrice em']] }; var siteIdDicts = { "yihaodian": 31, "tmall": 83 }; var listenerDicts = { "yihaodian": ".clearfix>#plist" // "suning": ".search-main" }; var getItemInfo = function getItemInfo(a, b, c) { var info = []; var len = $(a).length; for (var i = 0; i < len; i++) { var urldom = $(a).eq(i).find(b).eq(0); var pricedom = $(a).eq(i).find(c).eq(0); if (urldom && pricedom) { var url = urldom.attr('href') || ''; var price = pricedom.text().replace('¥', '').replace('约', ''); var crc32 = getCrc(urldom); if (urlFilter(url)) continue; url = process(url); if (url && price && crc32) { if (globalObj.crcarr.indexOf && globalObj.crcarr.indexOf(crc32) === -1 && crc32 !== 'x') globalObj.crcarr.push(crc32);else if (crc32 === 'x') crc32 = '';else continue; info.push({ 'url': url, 'price': price, 'crc32': crc32 }); } } } return info; }; var urlFilter = function urlFilter(url) { // 一号店做一些广告商品过滤 if (url.indexOf('' + G.extName) > -1) return true; if (G.site == 'yihaodian') { if (url.indexOf('tracker.yhd.com') > -1 || url.indexOf('item.yhd.com') == -1) return true; } if (G.site == "360buy") { if (url.indexOf('item.jd.com') == -1) return true; } return false; }; var process = function process(url) { if (!url) return; var hash = url.indexOf('#') > -1; if (hash) url = url.slice(0, hash); if (url.indexOf('//') === 0) return 'http:' + url; if (url.indexOf('/') === 0) return '' + location.host + url; return url; }; var getCrc = function getCrc(a) { var crc = ''; switch (G.site) { case "yihaodian": var crc32 = $(a).attr('id').match(/pdlink1_(\d+)/); if (crc32) crc = crc32[1]; break; case "suning": crc = $(a).parents('.wrap').find('input.hidenInfo').attr('datapro').split('||')[1]; break; default: crc = "x"; break; } return crc; }; var getInfo = function getInfo(selectors) { var siteP = siteDicts[G.site]; var len = selectors.length; for (var i = 0; i < len; i++) { var selector = selectors[i]; for (var j = 0; j < siteP.length; j++) { var itemP = siteP[j]; var res1 = $(selector + ' ' + itemP[0]); var res2 = $(selector + ' ' + itemP[1]); if (res1.length && res2.length) { return getItemInfo(selector, itemP[0], itemP[1]); } } } }; var sended = []; var sendInfo = function sendInfo(info) { //console.log('info:', info) if (sended.indexOf(JSON.stringify(info)) > -1) { return; } sended.push(JSON.stringify(info)); if (!info || info.length === 0) return; var province_id = priceCheck.getSubStationId(G.site); var data = { 'province_id': province_id, 'info': info }; if (!log) { log = console.log; } if (typeof log === 'function') { log('getListInfo_is_send' + G.union + '_site' + G.logsite); } cnzz.log('getListInfo_is_into'); // 发送的数据需要加密处理 data = __webpack_require__("61191ae0f0390d21295c").gZip(data); var siteid = siteIdDicts[G.site] || siteIdDicts['nowSite'] || nowSiteId; if (window.XMLHttpRequest) { try { communicate.trigger({ type: 'sendListInfo', data: btoa(data), url: G.server + '/extension?ac=sendListInfo&site_id=' + siteid + '&u=' + G.union }); // let xml = new XMLHttpRequest() // xml.open('POST', `${G.server}/extension?ac=sendListInfo&site_id=${siteid}&u=${G.union}`) // xml.send(data); cnzz.log("实时抓取发送请求"); } catch (e) {} } }; var addDomListener = function addDomListener() { var scrollTop = 0; var time2 = undefined; if (G.site === 'suning') { $(window).on('scroll', function (e) { var sctop = $(window).scrollTop(); if (sctop - scrollTop > 500) { scrollTop = sctop; clearTimeout(time2); if (maxTimes > 8) return; time2 = setTimeout(function () { maxTimes++; __webpack_require__("60624e018be49fb2d959").init(editInfo); }, 1500); } }); } else { var dom = $('' + listenerDicts[G.site])[0]; if (!dom) return; // 监听节点变化 发现新内容加载再继续获取价格等信息 if (dom.addEventListener) { dom.addEventListener('DOMSubtreeModified', function () { clearTimeout(Timer); if (maxTimes > 15) return; Timer = setTimeout(function () { maxTimes++; var info = getInfo(globalObj.selectors); if (!info || info.length === 0) return; //console.log('send info a') sendInfo(info); }, 1000); }, false); } } }; var editInfo = function editInfo(id, info) { siteIdDicts['nowSite'] = id; sendInfo(info); }; module.exports.init = function () { var ua = navigator.userAgent; if (G.from_device === 'firefox' || ua.match(/Firefox/i)) { return; } if (location.host.match(/^m\./)) return; if (G.site === 'yangkeduo') { try { var listInfo = window.__NEXT_DATA__ && window.__NEXT_DATA__.props.pageProps.data.initList; if (listInfo && listInfo.length > 0) { var newList = listInfo.map(function (v) { return { 'url': location.protocol + '//' + location.host + '/' + v.linkURL, 'price': Number(v.price), 'tle': v.goodsName || '', 'crc32': '' }; }); if (newList && newList.length > 0 && newList[0].price) { sendInfo(newList); } } } catch (e) {} } else if (!siteDicts[G.site]) { try { __webpack_require__("60624e018be49fb2d959").init(editInfo); } catch (e) { log('listInfoError:' + JSON.stringify(e)); } if (location.host.indexOf('suning') > -1) { addDomListener(); } } else { var _ret = (function () { var selectors = dpList.check(); globalObj.selectors = selectors; if (!selectors || selectors && !selectors.length) return { v: undefined }; setTimeout(function () { var info = getInfo(selectors); if (!info || info.length === 0) return; sendInfo(info); addDomListener(); }, 1000); })(); if (typeof _ret === 'object') return _ret.v; } }; module.exports.sendPriCheck = function (info) { nowSiteId = __webpack_require__("60624e018be49fb2d959").getSiteId(G.site); sendInfo(info); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "eef224dd8dc6181f8f8f": /***/ (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_PriceProtectPageButton_vue_vue_type_style_index_0_lang_css___ = __webpack_require__("54d4cf596e36f1bc186c"); /* 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_PriceProtectPageButton_vue_vue_type_style_index_0_lang_css____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PriceProtectPageButton_vue_vue_type_style_index_0_lang_css___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PriceProtectPageButton_vue_vue_type_style_index_0_lang_css____default.a); /***/ }), /***/ "ef8e743abc49ed3d6fe9": /***/ (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_SpinLoading_vue_vue_type_script_lang_js___ = __webpack_require__("0a82bb870c6445ae3238"); /* 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_SpinLoading_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_SpinLoading_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_SpinLoading_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_SpinLoading_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_SpinLoading_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "f00e764040e3423c38e0": /***/ (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_PriceProtectBar_vue_vue_type_script_lang_js___ = __webpack_require__("2e0e194a8cf95c4aecc5"); /* 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_PriceProtectBar_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_PriceProtectBar_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_PriceProtectBar_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_PriceProtectBar_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_PriceProtectBar_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "f02e7d39b343f92cf387": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { module.exports.get = function (tag, dpId) { return new Promise(function (resolve, reject) { var u = G && G.u_server ? G.u_server : 'https://u.gwdang.com'; __webpack_require__("91f250ebeb8d5987491c").rawGet(u + ('/helper/qrcode?union=' + G.union + '&event=appQrcode' + (tag ? '&tag=' + tag : '') + '&dp_id=') + (dpId ? dpId : G.dp.dpId)).then(function (res) { if (typeof res === 'string') { res = JSON.parse(res); } resolve(res.data.qrImgStr); })['catch'](function (err) { return reject(err); }); }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "f07a854b46071e85aa67": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_template_id_24d41b24_scoped_true___ = __webpack_require__("3832d7e2010c4bcbbba2"); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_template_id_24d41b24_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_template_id_24d41b24_scoped_true___["b"]; }); /***/ }), /***/ "f16ad1768527168a05a4": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__BottomFavor_vue_vue_type_template_id_013bbf9d_scoped_true___ = __webpack_require__("3b883231bf796b51a8b8"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__BottomFavor_vue_vue_type_script_lang_js___ = __webpack_require__("2b1f0d74f1e318bff33f"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__BottomFavor_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__BottomFavor_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__BottomFavor_vue_vue_type_style_index_0_id_013bbf9d_lang_less_scoped_true___ = __webpack_require__("5794cd167f3f64fcce67"); /* 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__BottomFavor_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__BottomFavor_vue_vue_type_template_id_013bbf9d_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__BottomFavor_vue_vue_type_template_id_013bbf9d_scoped_true___["b" /* staticRenderFns */], false, null, "013bbf9d", 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('013bbf9d')) { api.createRecord('013bbf9d', component.options) } else { api.reload('013bbf9d', component.options) } module.hot.accept("./BottomFavor.vue?vue&type=template&id=013bbf9d&scoped=true&", function () { api.rerender('013bbf9d', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/bjgou/components/BottomFavor.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "f24e264029de1159f489": /***/ (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_ShopCouponMini_vue_vue_type_script_lang_js___ = __webpack_require__("d7127d175f691a0cb42c"); /* 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_ShopCouponMini_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_ShopCouponMini_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_ShopCouponMini_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_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_ShopCouponMini_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_ShopCouponMini_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "f273eae5b91aca939a84": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime) {// 加载一些购物党插件不存在时才启用的功能 var _this = this; module.exports.init = function () { setTimeout(function callee$1$0() { return regeneratorRuntime.async(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: if (!window.gwd_G) { __webpack_require__("39c432bd7bb3fe587696").init(); } case 1: case 'end': return context$2$0.stop(); } }, null, _this); }, 2000); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "f2b706dcdb3731e0de2c": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, $, G, Vue) { var _this = this; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _componentsQRLinkTaobaoLogin = __webpack_require__("9c9b99688069c7c98a03"); var _componentsQRLinkTaobaoLogin2 = _interopRequireDefault(_componentsQRLinkTaobaoLogin); var request = __webpack_require__("91f250ebeb8d5987491c"); module.exports.init = function callee$0$0() { var redirectUrl, res, div, tag; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: redirectUrl = __webpack_require__("3e983ecbff4e1a29654c").getParameterByName('redirectURL'); if (!(location.hostname !== 'login.m.taobao.com' || !redirectUrl)) { context$1$0.next = 3; break; } return context$1$0.abrupt('return'); case 3: if (!redirectUrl.includes('taolijin')) { context$1$0.next = 5; break; } return context$1$0.abrupt('return'); case 5: context$1$0.next = 7; return regeneratorRuntime.awrap(request.rawGet('https://www.gwdang.com/api/uland_to_dpid?u=' + encodeURIComponent(redirectUrl))); case 7: res = context$1$0.sent; $('.fm-agreement input').click(); div = document.createElement('DIV'); document.body.appendChild(div); tag = 5; if (G.from_device === 'bijiago') { tag = 7; } new Vue({ el: div, render: function render(h) { return h(_componentsQRLinkTaobaoLogin2['default'], { props: { tag: tag, dpId: res.dp_id } }); } }); case 14: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "f2db31043966db897bb0": /***/ (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_CollectionItem_vue_vue_type_template_id_6af99812_scoped_true___ = __webpack_require__("11eab4bb5b4e4ca2589e"); /* 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_CollectionItem_vue_vue_type_template_id_6af99812_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_CollectionItem_vue_vue_type_template_id_6af99812_scoped_true___["b"]; }); /***/ }), /***/ "f3d02ced7d319b2030c9": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _MemberCouponMixin = __webpack_require__("1fffec0778a8d8b2e8e2"); var _MemberCouponMixin2 = _interopRequireDefault(_MemberCouponMixin); exports['default'] = { mixins: [_MemberCouponMixin2['default']], props: ['data'], data: function data() { return { G: G }; }, computed: {}, methods: { getText: function getText(text) { var map = { '购买方案': '購買方案', '实付总价': '實付總價', '折合每件': '折合每件', '使用的促销': '使用的促銷', '扫码 参加活动': '掃碼 參加活動', '淘宝APP': '淘寶APP' }; if (G.lang === 'zh-tr') { return map[text]; } return text; }, link2: function link2(u, src) { if (src.indexOf('//') === 0) { return u.replace('$URL', encodeURIComponent('https:' + src)).replace('ext_promo_plan', 'promo_calc_plan'); } return u.replace('$URL', encodeURIComponent(src)).replace('ext_promo_plan', 'promo_calc_all'); } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "f423f4cf37e1e709bc4d": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MemberCouponTop_vue_vue_type_template_id_28e28ad7_scoped_true___ = __webpack_require__("55327c6868cccffbbddd"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__MemberCouponTop_vue_vue_type_script_lang_js___ = __webpack_require__("cf29f8542c435ae4b9b6"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__MemberCouponTop_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__MemberCouponTop_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__MemberCouponTop_vue_vue_type_style_index_0_id_28e28ad7_scoped_true_lang_less___ = __webpack_require__("f6e82e1340e2b40a2323"); /* 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__MemberCouponTop_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__MemberCouponTop_vue_vue_type_template_id_28e28ad7_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__MemberCouponTop_vue_vue_type_template_id_28e28ad7_scoped_true___["b" /* staticRenderFns */], false, null, "28e28ad7", 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('28e28ad7')) { api.createRecord('28e28ad7', component.options) } else { api.reload('28e28ad7', component.options) } module.hot.accept("./MemberCouponTop.vue?vue&type=template&id=28e28ad7&scoped=true&", function () { api.rerender('28e28ad7', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/MemberCouponTop.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "f48ba811c1b2ba7ef0c9": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__QRLinkContactTmall_vue_vue_type_template_id_4148f062_scoped_true___ = __webpack_require__("4b9a1dffc80dda59b7be"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QRLinkContactTmall_vue_vue_type_script_lang_js___ = __webpack_require__("c62f444e95d32876714d"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__QRLinkContactTmall_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__QRLinkContactTmall_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__QRLinkContactTmall_vue_vue_type_style_index_0_id_4148f062_scoped_true_lang_less___ = __webpack_require__("2c7fa747888a567cd254"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__QRLinkContactTmall_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__QRLinkContactTmall_vue_vue_type_template_id_4148f062_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__QRLinkContactTmall_vue_vue_type_template_id_4148f062_scoped_true___["b" /* staticRenderFns */], false, null, "4148f062", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('4148f062')) { api.createRecord('4148f062', component.options) } else { api.reload('4148f062', component.options) } module.hot.accept("./QRLinkContactTmall.vue?vue&type=template&id=4148f062&scoped=true&", function () { api.rerender('4148f062', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/QRLinkContactTmall.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "f4dc08505a68602504c4": /***/ (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.ready && (!_vm.user || !_vm.enabled), expression: "ready && (!user || !enabled)" } ], staticClass: "bjg-page-protect-button", on: { mouseover: _vm.over } }, [ _c("img", { staticStyle: { width: "186px", height: "46px" }, attrs: { src: __webpack_require__("8ad87fd4abe08ec7ad8a"), alt: "" } }), _vm._v(" "), _c( "div", { staticClass: "bjg-box" }, [ _c("PriceProtectAuthLoginRequest", { attrs: { center: true, login: _vm.user }, on: { userAgreed: function($event) { return _vm.setEnable() } } }) ], 1 ) ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "f6434a1eb339a1be024b": /***/ (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_SpinLoading_vue_vue_type_style_index_0_id_23093fe4_scoped_true_lang_less___ = __webpack_require__("d21bfd2bfa0193df4d3d"); /* 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_SpinLoading_vue_vue_type_style_index_0_id_23093fe4_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_SpinLoading_vue_vue_type_style_index_0_id_23093fe4_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_SpinLoading_vue_vue_type_style_index_0_id_23093fe4_scoped_true_lang_less____default.a); /***/ }), /***/ "f64a8d0d0a911d2ea885": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponMini_vue_vue_type_style_index_0_id_c6f6054e_scoped_true_lang_less___ = __webpack_require__("da0eb56990f314192623"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponMini_vue_vue_type_style_index_0_id_c6f6054e_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponMini_vue_vue_type_style_index_0_id_c6f6054e_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponMini_vue_vue_type_style_index_0_id_c6f6054e_scoped_true_lang_less____default.a); /***/ }), /***/ "f6604761a98ac98bbcec": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { methods: { click: function click() { this.$emit('refresh'); } } }; module.exports = exports['default']; /***/ }), /***/ "f6e00ee59c94ed9d130a": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjg-price-protect-auth {\n height: 201px;\n}\n.bjg-price-protect-auth button {\n margin-top: 20px;\n width: 340px;\n height: 30px;\n border-radius: 15px;\n text-align: center;\n font-size: 14px;\n font-weight: bold;\n color: white;\n box-sizing: border-box !important;\n}\n", ""]); // exports /***/ }), /***/ "f6e82e1340e2b40a2323": /***/ (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_MemberCouponTop_vue_vue_type_style_index_0_id_28e28ad7_scoped_true_lang_less___ = __webpack_require__("77a9c55d500e3b83f42d"); /* 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_MemberCouponTop_vue_vue_type_style_index_0_id_28e28ad7_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_MemberCouponTop_vue_vue_type_style_index_0_id_28e28ad7_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_MemberCouponTop_vue_vue_type_style_index_0_id_28e28ad7_scoped_true_lang_less____default.a); /***/ }), /***/ "f80fc58b9800f1267989": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjg-coupon-white[data-v-c6f6054e] {\n color: #ffffff;\n}\n.bjgou-subsidy-bar[data-v-c6f6054e] {\n margin-top: 5px;\n width: 442px;\n height: 67px;\n position: relative;\n display: inline-flex;\n align-items: center;\n background: url(https://cdn.bijiago.com/images/extensions/bijiago/bigCoupon@2x.png);\n box-sizing: border-box !important;\n background-size: contain;\n text-decoration: none!important;\n}\n.bjgou-subsidy-bar .gwd-coupon-qr[data-v-c6f6054e] {\n display: none;\n position: absolute;\n width: 148px;\n height: 175px;\n right: 0;\n z-index: 9;\n top: 70px;\n background: #FFF6F4;\n border: 1px solid #FF6132;\n flex-direction: column;\n align-items: center;\n}\n.bjgou-subsidy-bar .gwd-coupon-qr .gwd-coupon-title[data-v-c6f6054e] {\n display: inline-block;\n position: relative;\n font-size: 12px;\n color: #333333 !important;\n z-index: 2;\n}\n.bjgou-subsidy-bar .gwd-coupon-qr .gwd-coupon-title[data-v-c6f6054e]::after {\n content: '';\n position: absolute;\n bottom: 2px;\n left: 0;\n right: 0;\n height: 4px;\n z-index: -1;\n background: #ff8f4b;\n}\n.bjgou-subsidy-bar .qrcode[data-v-c6f6054e] {\n display: none;\n position: absolute;\n top: 70px;\n right: -15px;\n width: 148px;\n height: 156px;\n background: #FFF7F7;\n border: 1px solid #FF2D53;\n z-index: 9;\n}\n.bjgou-subsidy-bar .bjg-bold[data-v-c6f6054e] {\n font-size: 13px;\n font-weight: bold;\n color: #ff2d53;\n}\n.bjgou-subsidy-bar .bjg-take[data-v-c6f6054e] {\n min-width: 87px;\n height: 22px;\n border-radius: 11px;\n border: 1px solid #FF2D53;\n position: relative;\n display: flex;\n cursor: pointer;\n}\n.bjgou-subsidy-bar .bjg-take span[data-v-c6f6054e] {\n font-size: 12px;\n text-align: center;\n line-height: 22px;\n}\n.bjgou-subsidy-bar .bjg-take .taker[data-v-c6f6054e] {\n color: white;\n width: 36px;\n height: 24px;\n line-height: 24px;\n background: linear-gradient(90deg, #FF3A62 0%, #FF665B 100%);\n border-radius: 11px;\n display: inline-block;\n}\n.bjgou-subsidy-bar:hover .gwd-coupon-qr[data-v-c6f6054e] {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n", ""]); // exports /***/ }), /***/ "f8194b2fecbc41345733": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var request = __webpack_require__("91f250ebeb8d5987491c"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var mobileprice = __webpack_require__("6eb25eb4cdf107c16d13"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var getPromoInfo = function getPromoInfo(callback) { var dp_data = userData.get('dp_data'); var dp_id = dp_data.now.dp_id; var class_id = dp_data.now.class_id; var sbrand = dp_data.exact_arr.sbrand; var brand_id = dp_data.exact_arr.brand_id; var keyword = encodeURIComponent(dp_data.now.coreword); var tb_class = dp_data.exact_arr.taobao_class_id; var title = dp_data.collectInfo && dp_data.collectInfo.title ? dp_data.collectInfo.title : G.dp.name; //order说明: 0 最新 1 最热 2 即将结束 var url = G.server + '/brwext/promo_brand?pg=1&ps=5&order=0&tb_class=' + tb_class + '&keyword=' + keyword + '&class_id=' + class_id + '&dp_id=' + dp_id + '&title=' + encodeURIComponent(title) + '&url=' + encodeURIComponent(window.location.href) + '&sbrand=' + encodeURIComponent(sbrand) + '&brand_id=' + brand_id; request.get(url).done(function (data) { if (data && data.products && data.products.length > 0) callback(data);else callback(null); }); }; var render = function render(data) { if (data) { if (data.products.length < 4 && data.products.length !== 2) return; data.products = data.products.slice(0, 4); var dom = __webpack_require__("53268b0970ea978f27ad"); var html = template.compile(dom)({ data: data.products }); $('#bjgext_minibar .promo-box ul').append(html); //$('.promo-box').show() // $('.promo-box').prev().css('border-bottom', '1px solid #e6e9eb') //$('.bjgext-toptabs .bjgext-mini-logo, .bjgext-mini-compare').addClass('hasPromo') } else { hidePrev(); } mobileprice.init(); }; function hidePrev() { setTimeout(function () { $('.promo-box').prev().css('border-bottom', 'none'); $('.promo-box').remove(); }, 0); } module.exports.init = function () { if (G.site === 'amazon-com' || G.site === 'amazon-uk' || G.site === 'amazon-jp' || G.site === '6pm') { hidePrev(); return; } if (G.show_promo === '0' || G.show_minibar === '0') { hidePrev(); return; } if (G.aliSite) { hidePrev(); return; } getPromoInfo(render); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "f82463ef8bf582c65ac0": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("CommonCouponBarMini", { attrs: { icon: _vm.icon, type: "link", text: "当前商品可领会员券", mainColor: "#ff6132", secondColor: "#ff7d38", href: "https://tb.gwdang.com/extension/qrpage?dp_id=" + _vm.G.dp.dpId + "&tag=2" } }) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "f86fbf95570d4916afe7": /***/ (function(module, exports, __webpack_require__) { "use strict"; var __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { return function (time) { var x = new Date(time); var p = new Date(x.getFullYear(), x.getMonth(), x.getDate()); var midDate = p.getTime() + 19 * 3600000; return midDate; }; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }), /***/ "f95f9fc59c2bef5c60ec": /***/ (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: "bjg-jd-item-list" }, [ _vm.status === "syncing" ? _c( "div", { staticClass: "bjg-window-status gwd-row gwd-align" }, [ _c("SpinLoading"), _vm._v(" "), _c( "span", { staticStyle: { "font-size": "12px", color: "#ff9747", "margin-left": "6px" } }, [_vm._v("订单信息同步中")] ) ], 1 ) : _vm._e(), _vm._v(" "), _vm.status === "complete" ? _c("div", { staticClass: "bjg-window-status gwd-row gwd-align" }, [ _c("img", { staticStyle: { width: "25px", height: "10px" }, attrs: { src: __webpack_require__("6e4f6bb462ba51243ece"), alt: "" } }), _vm._v(" "), _c("img", { staticStyle: { width: "12px", height: "11px", "margin-left": "6px" }, attrs: { src: __webpack_require__("34b3ee29820049e4f156"), alt: "" } }), _vm._v(" "), _c( "span", { staticStyle: { "margin-left": "3px", "font-size": "12px", color: "#ff9747" } }, [_vm._v("价保监控中")] ), _vm._v(" "), _c("img", { staticStyle: { width: "25px", height: "10px", "margin-left": "6px" }, attrs: { src: __webpack_require__("6e4f6bb462ba51243ece"), alt: "" } }) ]) : _vm._e(), _vm._v(" "), _vm.status === "needLogin" ? _c("div", { staticClass: "bjg-window-status gwd-row gwd-align" }, [ _c("img", { staticStyle: { width: "12px", height: "12px" }, attrs: { src: __webpack_require__("bc5ba32c2f9fa34ab43d"), alt: "" } }), _vm._v(" "), _c( "span", { staticStyle: { "margin-left": "10px", "font-size": "12px", color: "#ff6132" } }, [ _vm._v( "\n 您的京东账户未登录,新增订单可能无法价格保护," ), _c( "span", { staticStyle: { "text-decoration": "underline", cursor: "pointer" }, on: { click: function($event) { return _vm.doLogin() } } }, [_vm._v("点击登录")] ) ] ) ]) : _vm._e(), _vm._v(" "), _c( "div", { staticClass: "gwd-row bjg-section", staticStyle: { "margin-top": "14px" } }, [ _c("SectionTitle", [_vm._v("价格保护中订单")]), _vm._v(" "), _c("div", { staticStyle: { flex: "1" } }), _vm._v(" "), _c( "button", { staticClass: "gwd-button bjg-sync", staticStyle: { "white-space": "nowrap" }, on: { click: function($event) { return _vm.syncNow() } } }, [ _c("img", { staticStyle: { width: "10px", height: "10px", "vertical-align": "middle" }, attrs: { src: __webpack_require__("8fc6282727d5aa73b96f"), alt: "" } }), _vm._v("\n 立即同步订单\n ") ] ) ], 1 ), _vm._v(" "), _vm.protectingItems.length === 0 ? _c("div", { staticClass: "gwd-column gwd-align" }, [ _c("img", { staticStyle: { width: "60px", height: "52px", "margin-top": "30px" }, attrs: { src: __webpack_require__("05dfa209aa4c60b7f0dd"), alt: "" } }), _vm._v(" "), _c( "span", { staticStyle: { "font-size": "14px", color: "#333333", "margin-top": "21px" } }, [_vm._v("订单中的商品均超过价格保护周期")] ), _vm._v(" "), _c( "a", { staticStyle: { "font-size": "12px", color: "#ff9747", "text-decoration": "underline", "margin-top": "13px" }, attrs: { href: "" }, on: { click: function($event) { $event.preventDefault() return _vm.syncNow($event) } } }, [_vm._v("刷新试试")] ), _vm._v(" "), _c("img", { staticStyle: { "margin-top": "30px", width: "379px", height: "26px", "margin-bottom": "25px" }, attrs: { src: "https://cdn.bijiago.com/images/extensions/bijiago/price-protect-help@2x.png", alt: "help" }, on: { click: function($event) { return _vm.goIntro() } } }) ]) : _vm._e(), _vm._v(" "), _vm._l(_vm.protectingItems, function(item, idx) { return _c("ProductItem", { key: idx, attrs: { line: idx > 0, product: item } }) }), _vm._v(" "), _vm.outdatedItems.length ? _c( "div", { staticClass: "gwd-row bjg-section gwd-align", staticStyle: { "margin-top": "6px" } }, [ _c("SectionTitle", [_vm._v("无法价保订单")]), _vm._v(" "), _vm._m(0), _vm._v(" "), _c( "GwdA", { staticStyle: { "font-size": "12px", color: "#333333" }, attrs: { href: "https://pcsitepp-fm.jd.com/rest/pricepro/pricerule", target: "_blank" } }, [_vm._v("京东商城价保规则")] ), _vm._v(" "), _c("img", { staticStyle: { width: "10px", height: "10px", "margin-top": "1px" }, attrs: { src: __webpack_require__("7c47667a08546de6b7d4"), alt: "" } }) ], 1 ) : _vm._e(), _vm._v(" "), _vm._l(_vm.outdatedItems, function(item, idx) { return _c("ProductItem", { key: "s" + idx, attrs: { line: idx > 0, product: item, outdated: true } }) }) ], 2 ) } var staticRenderFns = [ function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticStyle: { flex: "1", overflow: "hidden" } }, [ _c( "span", { staticStyle: { "font-size": "12px", color: "#8c847b", "transform-origin": "left center", "margin-left": "5px", transform: "scale(0.8333)", "white-space": "nowrap", display: "block" } }, [_vm._v("商品不支持价保、超过价保周期等")] ) ]) } ] render._withStripped = true /***/ }), /***/ "fb868c63d79bc6c6fcc7": /***/ (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_PriceDogMiniBar_vue_vue_type_template_id_72651e53_scoped_true___ = __webpack_require__("6117392a97ef5fb97e10"); /* 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_PriceDogMiniBar_vue_vue_type_template_id_72651e53_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_PriceDogMiniBar_vue_vue_type_template_id_72651e53_scoped_true___["b"]; }); /***/ }), /***/ "fbe55d563c028a86aeb3": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CollectionList_vue_vue_type_template_id_56eea7fc_scoped_true___ = __webpack_require__("0d07d6944333a9411c3c"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__CollectionList_vue_vue_type_script_lang_js___ = __webpack_require__("bce67c15ce3dddb6c1d7"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__CollectionList_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__CollectionList_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__CollectionList_vue_vue_type_style_index_0_id_56eea7fc_scoped_true_lang_less___ = __webpack_require__("736c759b5b051531338e"); /* 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__CollectionList_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__CollectionList_vue_vue_type_template_id_56eea7fc_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__CollectionList_vue_vue_type_template_id_56eea7fc_scoped_true___["b" /* staticRenderFns */], false, null, "56eea7fc", 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('56eea7fc')) { api.createRecord('56eea7fc', component.options) } else { api.reload('56eea7fc', component.options) } module.hot.accept("./CollectionList.vue?vue&type=template&id=56eea7fc&scoped=true&", function () { api.rerender('56eea7fc', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/bjgou/components/CollectionList.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "fc02c8246c40af764545": /***/ (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_JdRankList_vue_vue_type_template_id_a48d90ba_scoped_true___ = __webpack_require__("817cf5489444460b05d0"); /* 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_JdRankList_vue_vue_type_template_id_a48d90ba_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_JdRankList_vue_vue_type_template_id_a48d90ba_scoped_true___["b"]; }); /***/ }), /***/ "fcdd97987c010877a5a5": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("8fa197530a881ccf85b8"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("10f14542", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!./common.less", function() { var newContent = require("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!./common.less"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "ff8d16a23118d8d9618f": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, " #gwd_ht_main a{\n display: inline-block;\n }\n .gwd_haitao {\n font-size: 12px;\n font-family: 'Microsoft Yahei'\n }\n #gwd_ht_main{\n width: 376px;\n height: 198px;\n font-size: 13px;\n display: inline-block;\n border: 1px solid #e6e9eb;\n border-radius: 18px;\n box-shadow: 0px 5px 19px 0px #d7d8d9;\n }\n #gwd_ht_load img {\n position: relative;\n top: 91px;\n left: 74px;\n }\n .ht_6pm{\n position: relative;\n margin: 0 auto;\n }\n #gwd_ht_main .ht_head{\n height: 36px;\n position: relative;\n }\n #gwd_ht_main .gwd_site_icon{\n display: inline-block;\n background: url('http://s1.gwdang.com/images/extensions/haitao_siteicon.png') 13px 7px no-repeat;\n background-size: 24px 22px;\n height: 36px;\n width: 52px;\n float: left;\n cursor: pointer;\n }\n #gwd_ht_main .unit_price #ht_addcollect{\n border: 1px solid #f07860;\n cursor: pointer;\n height: 24px;\n line-height: 24px;\n text-align: center;\n width: 77px;\n border-radius: 12px;\n background-color: #fff;\n margin-bottom: 6px;\n margin-top: 4px;\n color: #f07860;\n }\n #gwd_ht_main .unit_price #ht_addcollect.trend_wait.c_adding{\n background-color: #f07860;\n color: #fff;\n }\n #gwd_ht_main .unit_price #ht_addcollect.trend_wait.c_added{\n background-color: #f07860;\n color: #fff;\n }\n .unit_price > span {\n font-size: 14px;\n }\n .price_tle {\n margin-left: 12px;\n }\n #gwd_ht_main .unit_price #ht_addcollect:hover {\n text-decoration: none;\n }\n #gwd_ht_main .unit_price #ht_addcollect:hover span {\n text-decoration: underline;\n }\n .gwd_haitao .price_num{\n color: #778e99;\n display: inline-block;\n width: 89px;\n font-weight: bold;\n font-size: 16px;\n margin-left: 10px;\n }\n .gwd_haitao .ht_getprice{\n width: 322px;\n height: 35px;\n line-height: 35px;\n font-size: 16px;\n text-align: center;\n float: left;\n color: #454A4D;\n border-left: 1px solid #e6e9eb;\n }\n .fontf_Arial {\n font-family: \"Arial\";\n font-weight: bold;\n }\n .ht_getprice_num {\n font-weight: bold;\n color: #EB2F2F;\n font-size: 18px;\n }\n .unit_price{\n text-align: left;\n }\n .on_Or_Off {\n position: absolute;\n top: 52px;\n right: 0px;\n height: 20px;\n line-height: 20px;\n width: 20px;\n color: red;\n }\n .translate_detail {\n top: 64px;\n left: 350px;\n }\n a.trans_help {\n color: #40ace6;\n font-size: 14px;\n margin-left: 40px;\n margin-right: 330px;\n }\n .trans_help:hover {\n color: #2b7299;\n text-decoration: none;\n }\n .gwd_haitao .content_default_left .tariff_remind_detail {\n right: 247px;\n height: 90px;\n top: -27px;\n }\n .gwd_haitao .div_detail {\n display: none;\n position: absolute;\n width: 146px;\n border: 1px solid #e6e9eb;\n background-color: #fff;\n z-index: 99;\n line-height: 19px;\n font-size: 12px;\n color: #888;\n padding: 6px 6px 9px 6px;\n box-shadow: 2px 2px 12px 2px #e6e9eb;\n height: auto;\n }\n .gwd_haitao .content_default_left .weight_type_detail {\n top: 7px;\n left: 156px;\n position: absolute;\n width: 113px;\n height: 24px;\n line-height: 22px;\n padding: 0px 6px;\n }\n .collect_detail {\n top: -7px;\n left: 244px;\n text-align: left;\n }\n .gwd_haitao .transport_remind_detail {\n padding: 0px 6px;\n top: 9px;\n left: 241px;\n width: 112px;\n }\n .gwd_haitao .tariff_info_detail {\n padding: 0 6px;\n width: 110px;\n top: 9px;\n left: 241px;\n }\n .pro_type_detail {\n top: 9px;\n left: 350px;\n }\n .gwd_haitao .pro_type_detail.div_detail {\n padding: 0 6px;\n width: 134px;\n }\n .mail_type_detail {\n top: 33px;\n left: 350px;\n }\n #ht_trans_input{\n position: relative;\n top: 8px;\n cursor: pointer;\n }\n .size_detail {\n top: 130px;\n left: 350px;\n }\n .gwd_haitao .size_detail.div_detail {\n padding: 0px 6px;\n width: 110px;\n }\n .trans_label{\n height: 30px;\n line-height: 30px;\n font-weight: normal;\n }\n .ht_translate:hover {\n cursor: text;\n }\n .ht_translate,.pro_type,.mail_type{\n text-align: left;\n }\n .pro_type:hover,.mail_type:hover {\n cursor: text;\n }\n .gwd_haitao .ht_getprice:hover{\n text-decoration: none;\n color: #454A4D;\n }\n .gwd_haitao .ht_weight_num{\n height: 20px;\n width: 54px;\n float: left;\n border-radius: inherit;\n border-bottom-left-radius: 4px;\n border-top-left-radius: 4px;\n border-right: none;\n position: relative;\n margin-top: 9px;\n margin-left: 15px;\n padding: 0 3px;\n display: inline-block;\n border: 1px solid #47befe;\n box-sizing: initial;\n font-size: 12px;\n }\n .gwd_haitao .weight_type{\n display: inline-block;\n height: 22px;\n width: 24px;\n background-color: #47befe;\n color: #fff;\n text-align: center;\n line-height: 22px;\n position: relative;\n margin-top: 9px;\n border-top-right-radius: 4px;\n cursor: pointer;\n border-bottom-right-radius: 4px;\n }\n .gwd_haitao .content_default_left{\n height: 160px;\n width: 254px;\n border-right: 1px solid #e6e9eb;\n float: left;\n display: inline-block;\n }\n .gwd_haitao .ht_weight span {\n float: left;\n font-size: 14px;\n }\n .ht_weight .weight_tle {\n margin-left: 12px;\n } \n .content_default_left div{\n height: 40px;\n line-height: 40px;\n color: #373737;\n position: relative;\n border-bottom: 1px solid #e6e9eb\n }\n .gwd_haitao .content_default_left div.ht_tariff {\n border-bottom: none;\n }\n .gwd_haitao .ht_transport_btn,.gwd_haitao .ht_tariff_btn{\n float: right;\n margin-right: 15px;\n cursor: pointer;\n color: #40ace6;\n }\n .gwd_haitao .ht_transport_btn:hover,.ht_tariff_btn:hover{\n text-decoration: none;\n color: #40ace6;\n }\n .gwd_haitao .ht_freight_num{\n display: inline-block;\n width: 42px;\n color: #778e99;\n font-size: 14px;\n }\n .gwd_haitao .ht_freight,.gwd_haitao .del_line{\n display: inline-block;\n text-align: left;\n font-size: 14px;\n margin-left: 12px;\n }\n a.ht_transport_btn span, .ht_tariff_btn span {\n display: inline-block;\n width: 60px;\n height: 40px;\n overflow: hidden;\n float: left;\n font-size: 12px;\n margin-right: 5px;\n }\n a.ht_transport_btn span:hover, .ht_tariff_btn span:hover {\n text-decoration: underline;\n }\n .gwd_haitao .point_icon{\n background: url('http://s1.gwdang.com/images/extensions/haitao_downblueicon.png') 0px 0px no-repeat;\n background-size: 9px 6px;\n display: inline-block;\n height: 9px;\n width: 10px;\n position: relative;\n top: 1px;\n }\n .gwd_haitao .del_line{\n cursor: pointer;\n display: inline-block;\n width: 98px;\n }\n .gwd_haitao .del_line .ht_tariff_num {\n text-decoration: line-through;\n color: #778e99;\n font-size: 14px;\n }\n .gwd_haitao .del_line .ht_tariff_num em {\n font-style: normal;\n }\n .gwd_haitao .content_default_right{\n display: inline-block;\n height: 160px;\n width: 119px;\n }\n .gwd_haitao .content_default_right a{\n width: 120px;\n height: 40px;\n line-height: 40px;\n color: #383835;\n border-bottom: 1px solid #e6e9eb;\n padding: 0 0 0 14px;\n text-decoration: none;\n }\n .gwd_haitao .content_default_right a span {\n font-size: 12px;\n margin-left: 7px;\n }\n .gwd_haitao .content_default_right a:hover{\n text-decoration: none;\n color: #383835;\n }\n #gwd_ht_main .size_help{\n cursor: pointer;\n border-bottom: none;\n }\n #gwd_ht_main .size_help span {\n text-decoration: none;\n color: #5aa4cc;\n }\n #gwd_ht_main .size_help span:hover {\n text-decoration: underline;\n }\n .gwd_haitao .content_default_right em{\n display: inline-block;\n width: 20px;\n height: 20px;\n position: relative;\n top: 5px;\n }\n .gwd_haitao .size_help em{\n background: url('http://s1.gwdang.com/images/extensions/haitao_sizeicon.png') 0px 0px no-repeat;\n background-size: 20px 20px;\n }\n .gwd_haitao .ht_translate em{\n background: url('http://s1.gwdang.com/images/extensions/haitao_transicon.png') 0px 0px no-repeat;\n background-size: 20px 20px;\n }\n .gwd_haitao .pro_type .ziying{\n background: url('http://s1.gwdang.com/images/extensions/haitao_ziyingicon.png') 0px 0px no-repeat;\n }\n .gwd_haitao .pro_type .sanfang{\n background: url('http://s1.gwdang.com/images/extensions/haitao_sanicon.png') 0px 0px no-repeat;\n background-size: 20px 20px;\n }\n .gwd_haitao .mail_type .zhiyou{\n background: url('http://s1.gwdang.com/images/extensions/haitao_zhiicon.png') 0px 0px no-repeat;\n }\n .gwd_haitao .mail_type .feizhiyou{\n background: url('http://s1.gwdang.com/images/extensions/haitao_zhuanicon.png') 0px 0px no-repeat;\n background-size: 20px 20px;\n }\n .gwd_haitao .same-style em {\n background: url('http://s1.gwdang.com/images/extensions/haitao_samestyle.png') 0px 0px no-repeat;\n }\n .gwd_haitao .vip_tle em {\n background: url('http://s1.gwdang.com/images/extensions/haitao_vipicon.png') 0px 0px no-repeat;\n }\n .gwd_haitao .gwd_wishlist_trend_detail_wrapper{\n float: left;\n }\n .gwd_haitao .ht_content{\n height: 162px;\n border-top: 1px solid #e6e9eb;\n position: relative;\n }\n .content_default {\n float: left;\n }\n .content_default:after, .gwd_haitao .content_default_right:after {\n content: \"\";\n display: block;\n clear: both;\n }\n /* 关税分类选择 */\n #tariff_detail{\n position: absolute;\n display:none;\n background-color: #fff;\n z-index: 99999999;\n top: 0px;\n left: 0px;\n width: 290px;\n height: 180px;\n border: 1px solid #e6e9eb;\n box-shadow: 0px 5px 19px 0px #d7d8d9;\n }\n #tariff_detail .xialabox a{\n display:block;\n color: #5c6266;\n margin-left: 7px;\n width: 98px;\n height: 25px;\n line-height: 25px;\n overflow: hidden;\n }\n #tariff_detail .xialabox a:hover{\n color: #47befe;\n text-decoration: underline;\n }\n #tariff_detail .tar_head{\n height: 40px;\n border-bottom: 1px solid #e6e9eb;\n }\n #tariff_detail .tar_desc , #tariff_detail .tar_head {\n font-size: 14px;\n }\n #tariff_detail .tar_head span{\n display: inline-block;\n height: 34px;\n line-height: 35px;\n font-size: 14px;\n text-align: center;\n width: 271px;\n }\n #tariff_detail .ht_tariff_num, .ht_tariff_cate {\n color: #40ace6;\n }\n .ht_tariff_cate {\n width: 70px;\n height: 20px;\n overflow: hidden;\n display: inline-block;\n line-height: 20px;\n position: relative;\n top: 5px;\n }\n #tariff_detail .del_line {\n width: 118px;\n }\n .gwd_haitao .tar_desc{\n line-height: 35px;\n }\n .gwd_haitao .tar_desc .del_line{\n margin: 0 0 0 20px;\n }\n .gwd_haitao .tar_desc .desc_t{\n margin-left: 9px;\n }\n #cate_select_box{\n text-align: center;\n margin-top: 4px;\n position: relative;\n }\n .gwd_haitao #cate_select_box input{\n height: 30px;\n width: 109px;\n background: url('http://s1.gwdang.com/images/extensions/haitao_downgrayicon.png') no-repeat 89px 11px;\n background-size: 12px 7px;\n cursor: pointer;\n border: 1px solid #fff;\n box-shadow: none;\n box-sizing: border-box;\n padding: 3px 7px;\n border-radius: 4px;\n color: #9ca7ad;\n font-size: 12px;\n }\n .gwd_haitao #cate_select_box input.sel_info{\n background-color: #e1e1e1;\n }\n .gwd_haitao #cate_select_box input.input_hover{\n border-bottom: 1px solid #fff;\n color: #9ca7ad;\n }\n .gwd_haitao .cate_select_1{\n display: inline-block;\n float: left;\n margin-left: 22px;\n border: 1px solid #969899;\n border-radius: 4px;\n position: relative;\n }\n .gwd_haitao .cate_select_1.select_hover , .gwd_haitao .cate_select_2.select_hover{\n height: 218px;\n z-index: 9999;\n background-color: #fff;\n\n }\n .gwd_haitao .cate_select_2{\n margin-left: 16px;\n display: inline-block;\n border: 1px solid #969899;\n border-radius: 4px;\n position: relative;\n float: left;\n }\n .gwd_haitao .xialabox{\n display: none;\n background-color: #fff;\n overflow-y: scroll;\n overflow-x: hidden;\n height: 185px;\n text-align: left;\n border-top: none;\n position: absolute;\n width: 109px;\n font-size: 12px;\n }\n .ie_hack.gwd_haitao .xialabox {\n width: 111px;\n }\n .gwd_haitao #select_btn{\n display: inline-block;\n width: 60px;\n height: 24px;\n background-color: #47befe;\n border-radius: 12px;\n margin: 0 auto;\n color: #fff;\n text-align: center;\n line-height: 23px;\n cursor: pointer;\n position: absolute;\n top: 54px;\n left: 116px;\n }\n #transport_detail{\n position: fixed;\n width: 755px;\n height: 314px;\n border: 1px solid #e6e9eb;\n background-color: #fff;\n top: 400px;\n left: 400px;\n display: none;\n z-index: 99999;\n box-shadow: 0px 5px 19px 0px #d7d8d9;\n }\n #transport_detail *{\n box-sizing: border-box;\n }\n #transport_detail .trans_nav .span_0 {\n margin-left: 10px;\n }\n #transport_detail .trans_nav .span_1{\n text-align: left;\n width: 146px;\n margin-left: 17px;\n }\n #transport_detail .trans_nav .span_2{\n text-align: left;\n width: 147px;\n margin-left: 4px;\n }\n .ht_trans_detail .trans_head{\n height: 51px;\n border-bottom: 1px solid #e6e9eb;\n }\n .gwd_haitao .closebar{\n display: inline-block;\n text-align: center;\n font-size: 30px;\n position: absolute;\n top: 4px;\n right: 7px;\n color: #666;\n cursor: pointer;\n }\n .gwd_haitao .closebar.closebg {\n background: url(\"http://s1.gwdang.com/images/extensions/haitao_closeicon.png\") 6px 6px no-repeat;\n background-size: 9px 9px;\n height: 22px;\n width: 22px;\n top: 1px;\n right: 1px;\n }\n .gwd_haitao .closebar.closebg:hover {\n background: url(\"http://s1.gwdang.com/images/extensions/haitao_closehovericon.png\") 3px 3px no-repeat;\n background-size: 15px 15px;\n }\n .ht_trans_detail .trans_nav{\n display:inline-block;\n float: left;\n width: 753px;\n }\n .ht_trans_detail .trans_nav>span{\n width: 120px;\n color: #5c6266;\n font-size: 16px;\n height: 48px;\n font-weight: bold;\n float: left;\n line-height: 48px;\n text-align: center;\n }\n .ht_trans_detail .trans_nav .span_3 {\n width: 196px;\n text-align: left;\n color: #406980;\n margin-left: 35px;\n }\n .ht_trans_detail .trans_nav .trans_w{\n text-align: left;\n position: absolute;\n top: 14px;\n left: 352px;\n height: 20px;\n }\n .ht_trans_detail .trans_w .weight_type{\n height: 20px;\n width: 26px;\n margin-top: 0px;\n line-height: 20px;\n font-size: 14px;\n float: left;\n font-weight: normal;\n }\n .ht_trans_detail .trans_w .ht_weight_num{\n height: 20px;\n position: static;\n width: 49px;\n margin-top: 0px;\n font-size: 12px;\n border-color: #8dc2e5;\n }\n .gwd_haitao .trans_content {\n height: 210px;\n width: 751px;\n overflow-y: scroll;\n }\n .ht_trans_detail .trans_foot,.size_desc {\n color: #9f9f9f;\n line-height: 35px;\n }\n .ht_trans_detail .trans_foot {\n height: 50px;\n border-top: 1px solid #e6e9eb;\n line-height: 50px;\n }\n .gwd_haitao .red{\n color: #e72030;\n }\n .gwd_haitao span.red {\n background: url('http://s1.gwdang.com/images/extensions/haitao_staricon.png') 0px 1px no-repeat;\n background-size: 8px 9px;\n height: 10px;\n width: 10px;\n display: inline-block;\n }\n .ht_trans_detail .trans_foot .red+span{\n color: #919699;\n }\n .ht_trans_detail #trans_list{\n margin: 0px;\n padding: 0px;\n }\n .ht_trans_detail #trans_list li{\n list-style: none;\n display: block;\n color: #333;\n cursor: pointer;\n text-align: left;\n background-color: #fff;\n }\n .ht_trans_detail #trans_list li:after{\n display:block;\n clear:both;\n content:\"\";\n visibility:hidden;\n height:0;\n }\n .gwd_haitao #trans_list li:hover{\n background-color: #E1E1E6;\n }\n .ht_trans_detail #trans_list li>span, .ht_trans_detail #trans_list li>a{\n display:inline-block;\n margin-top: 8px;\n margin-bottom: 8px;\n float: left;\n text-align: left;\n white-space: pre-wrap;\n color: #5c6266;\n }\n .ht_trans_detail #trans_list li a:hover {\n text-decoration: none;\n }\n span.sale_tle {\n width: 225px;\n margin-left: 36px;\n line-height: 16px;\n }\n span.sale_tle a{\n color: #40ace6;\n }\n span.sale_tle a:hover {\n color: #2b7299;\n }\n .ht_trans_detail .lo_center{\n margin-left: 24px;\n width: 120px;\n line-height: 16px;\n }\n .ht_trans_detail span.trans_cate {\n width: 130px;\n margin-left: 16px;\n }\n .ht_trans_detail span.trans_pr {\n width: 146px;\n margin-left: 30px;\n line-height: 16px;\n }\n .ht_trans_detail a.trans_com {\n width: 85px;\n margin-left: 39px;\n line-height: 16px;\n color: #333;\n }\n .ht_trans_detail a.trans_com:hover {\n color: #0066c0;\n text-decoration: none;\n }\n /* 没有优惠政策的情况 */\n #transport_detail.no_sale {\n width: 490px;\n }\n .no_sale.ht_trans_detail .trans_nav {\n width: 436px;\n }\n .no_sale.gwd_haitao .trans_content {\n width: 444px;\n }\n .no_sale.ht_trans_detail .trans_nav .span_3 {\n display: none;\n }\n #transport_detail.no_sale span.sale_tle {\n display: none;\n }\n /* 尺码帮助 */\n #size_detail{\n width: 618px;\n height: 440px;\n position: fixed;\n top: 400px;\n left: 400px;\n display: none;\n text-align: left;\n z-index: 9999999;\n box-sizing: border-box;\n background-color: #fff;\n border: 1px solid #e6e9eb; \n box-shadow: 0px 5px 19px 0px #d7d8d9; \n }\n .ht_size_detail .shangyi, .tongzhuang0, .tongxie0{\n position: absolute;\n left: 38px;\n }\n .ht_size_detail .xiazhuang, .tongzhuang4, .tongxie4{\n position: absolute;\n top: 50px;\n left: 38px;\n }\n .ht_size_detail .shoes,.ht_size_detail .tongzhuang, .ht_size_detail .tongxie{\n display: none;\n }\n .ht_size_detail span.shoes {\n position: absolute;\n top: 39px;\n left: 38px;\n color: #fff;\n background-color: #47befe;\n border: 1px solid #47befe;\n }\n .ht_size_detail .shangyi.size_hover,.ht_size_detail .xiazhuang.size_hover, .ht_size_detail .xiazhuang.size_hover, .ht_size_detail .tongzhuang.size_hover, .ht_size_detail .tongxie.size_hover{\n background-color: #47befe;\n border: 1px solid #47befe;\n color: #fff;\n }\n .ht_size_detail .shangyi,.ht_size_detail .xiazhuang,.ht_size_detail .shoes,.ht_size_detail .tongzhuang, .ht_size_detail .tongxie{\n height: 30px;\n width: 60px;\n text-align: center;\n line-height: 30px;\n cursor: pointer;\n border-radius: 15px;\n border: 1px solid #969899;\n color: #8A9499;\n }\n .ht_size_detail .cloth_icon{\n position: absolute;\n top: 100px;\n left: 22px;\n }\n \n .ht_size_detail .manshangzhuang {\n background: url('http://s1.gwdang.com/images/extensions/man_shangzhuang.png') -4px 0px no-repeat;\n height: 191px;\n width: 93px;\n }\n .ht_size_detail .womanshangzhuang {\n background: url('http://s1.gwdang.com/images/extensions/woman_shangzhuang.png') 0px 0px no-repeat;\n height: 187px;\n width: 87px;\n }\n .ht_size_detail .kid0 {\n background: url('http://s1.gwdang.com/images/extensions/kids0_4.png') 0px 0px no-repeat;\n height: 187px;\n width: 87px;\n margin-left: 8px;\n }\n .ht_size_detail .kid4 {\n background: url('http://s1.gwdang.com/images/extensions/kids4_12.png') -2px 0px no-repeat;\n height: 187px;\n width: 87px;\n margin-left: 0px;\n }\n .ht_size_detail .manxiazhuang {\n background: url('http://s1.gwdang.com/images/extensions/man_xiazhuang.png') -17px 0px no-repeat;\n height: 216px;\n width: 63px;\n margin-left: 13px;\n }\n .ht_size_detail .womanxiazhuang {\n background: url('http://s1.gwdang.com/images/extensions/woman_xiazhuang.png') 0px 0px no-repeat;\n height: 220px;\n width: 66px;\n margin-left: 11px;\n }\n \n .ht_size_detail .ht_shoes.man_foot {\n background: url('http://s1.gwdang.com/images/extensions/man_foot.png') 4px 0px no-repeat;\n height: 170px;\n width: 111px;\n }\n .ht_size_detail .ht_shoes.woman_foot {\n background: url('http://s1.gwdang.com/images/extensions/woman_foot.png') 4px 0px no-repeat;\n height: 170px;\n width: 111px;\n }\n .ht_size_detail .ht_shoes.kids_foot {\n background: url('http://s1.gwdang.com/images/extensions/kid_shoes.png') 0px 0px no-repeat;\n height: 171px;\n width: 131px;\n left: 4px;\n }\n .ht_size_detail .clothes_nav{\n margin-top: 13px;\n line-height: 30px;\n height: 30px;\n width: 567px;\n margin-left: 55px;\n }\n .ht_size_detail .clothes_nav ul{\n padding: 0;\n margin: 0px;\n }\n .ht_size_detail .size_s{\n height: 40px;\n display: inline-block;\n border-right: 2px solid #e6e9eb;\n }\n .detail_left {\n float: left;\n width: 136px;\n height: 367px;\n position: relative;\n }\n .detail_left span {\n display: inline-block;\n }\n .ht_size_detail #size_item{\n height: 180px;\n width: 452px;\n overflow-y: scroll;\n border: 1px solid #e6e9eb;\n }\n .ht_size_detail .clothes_nav ul li{\n list-style: none;\n float: left;\n font-size: 16px;\n width: 32px;\n margin-right: 57px;\n color: #000;\n cursor: pointer;\n border-bottom: 3px solid #fff;\n }\n .ht_size_detail .clothes_nav ul li:hover {\n color: #47befe;\n }\n .ht_size_detail .clothes_nav ul li.select{\n border-bottom: 3px solid #47befe;\n color: #47befe;\n }\n .ht_size_detail .size_head{\n height: 60px;\n }\n .ht_size_detail .unit_desc{\n display: inline-block;\n float: right;\n margin-right: 27px;\n margin-top: 8px;\n position: relative;\n }\n .ht_size_detail .size_con{\n text-align: right;\n margin-top: 16px;\n margin-bottom: 11px;\n margin-right: 26px;\n color: #575e61;\n }\n .ht_size_detail .size_op{\n width: 440px;\n display: inline-block;\n position: relative;\n }\n\n .ht_size_detail .size_op input+input {\n margin-left: 0px; \n }\n #first_size+.first_xiala {\n position: absolute;\n right: 267px;\n }\n .ht_size_detail .size_op input{\n width: 100px;\n height: 31px;\n box-sizing: border-box;\n }\n #first_size, #second_size {\n border-radius: 4px;\n outline: none;\n padding: 0 7px;\n border: 1px solid #969899;\n box-shadow: none;\n }\n #first_size:focus, #second_size:focus {\n border-color: #47befe;\n }\n .ht_size_detail .size_xialabox {\n display: none;\n width: 60px;\n height: 190px;\n border: 1px solid #999;\n border-bottom: none;\n position: absolute;\n text-align: left;\n line-height: 19px;\n top: -189px;\n right: 267px;\n box-sizing: border-box;\n background-color: #fff;\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n }\n #second_size+.second_xiala{\n position: absolute;\n right: -14px;\n }\n .ht_size_detail #second_size+input+.size_xialabox{\n right: -14px;\n }\n .ht_size_detail .size_xialabox a{\n display: block;\n padding-left: 7px;\n color: #5c6266;\n }\n .ht_size_detail .size_xialabox a:hover{\n text-decoration: underline;\n color: #47befe;\n }\n .ht_size_detail .size_op .size_xiala{\n width: 60px;\n border: 1px solid #999;\n padding-left: 7px;\n border-radius: 4px;\n color: #8a9499;\n }\n .ht_size_detail .size_op .size_xiala.msHover {\n border-radius: 0px;\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n background: url('http://s1.gwdang.com/images/extensions/haitao_upgrayicon.png') no-repeat 42px 12px;\n background-size: 12px 7px;\n }\n .ht_size_detail .size_xiala{\n background: url('http://s1.gwdang.com/images/extensions/haitao_downgrayicon.png') no-repeat 42px 12px;\n background-size: 12px 7px;\n cursor: pointer;\n }\n .ht_size_detail .conversion{\n margin: 0 30px 0 105px;\n }\n /* fanyi */\n .ht_fanyi{\n display: block;\n position: absolute;\n width: 200px;\n z-index: 99;\n background: #fff url('http://s1.gwdang.com/images/extensions/haitao_fanyi_icon.png') 0px 0px no-repeat;\n border: 1px solid #47befe;\n border-radius: 8px;\n min-height: 25px;\n color: #494b4d;\n text-indent: 32px;\n padding: 2px 12px;\n line-height: 19px;\n }\n .ht_fanyi a{\n display: block;\n width: 130px;\n text-decoration: none;\n color: #494b4d;\n }\n .ht_fanyi a:hover{\n text-decoration: none;\n color: #494b4d;\n }\n #ht_top{\n position: absolute;\n width: 0px;\n height: 0px;\n line-height: 0px;\n border-bottom: 8px solid #278ac9;\n border-left: 9px solid transparent;\n border-right: 9px solid transparent;\n left: 58px;\n top: -8px;\n }\n #ht_top:after {\n content: \"\";\n display: block;\n position: absolute;\n width: 0px;\n height: 0px;\n line-height: 0px;\n border-bottom: 7px solid #fff;\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n left: -8px;\n top: 1px;\n }\n /* 滚动条样式 */\n .gwd_haitao ::-webkit-scrollbar {width:6px;height: 6px;}\n .gwd_haitao ::-webkit-scrollbar-track {background:#f0f0f0;}\n .gwd_haitao ::-webkit-scrollbar-thumb {\n background: #cdcdcd;\n border-radius: 4px;\n }\n #size_detail ::-webkit-scrollbar {width:2px;height: 6px;}\n /* 亚马逊遮挡 */\n div#actionPanelWrapper.burj {\n overflow: visible!important;\n }\n\n /* amazonGlobal */\n #globalInnerDetail {\n display: none;\n }\n #globalInnerDetail .content_default_left {\n text-align: center;\n }\n #globalInnerDetail .inner-tle {\n color: #666;\n }\n #globalInnerDetail .inner-img img {\n max-height: 100px;\n max-width: 150px;\n }\n #globalInnerDetail .inner-tle {\n font-size: 12px;\n line-height: 14px;\n width: 230px;\n height: 28px;\n overflow: hidden;\n }\n #globalInnerDetail .inner-btn {\n color: #fff;\n background-color: #46c0fe;\n height: 22px;\n line-height: 22px;\n text-align: center;\n display: inline-block;\n width: 78px;\n border-radius: 5px;\n text-decoration: none;\n margin-top: 2px;\n }\n #globalInnerDetail .pro_type:hover .pro_type_detail {\n display: block !important;\n }\n #globalInnerDetail .mail_type:hover .mail_type_detail {\n display: block !important;\n }\n #globalInnerDetail .vip_tle:hover .vip_tle_detail {\n display: block !important;\n }\n #globalInnerDetail .same-style:hover .same-style_detail {\n display: block !important;\n }\n #globalInnerDetail .same-style_detail {\n left: 350px;\n top: 81px;\n }", ""]); // exports /***/ }), /***/ "ffcdb5971a2d6b937e35": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, $, G, Vue) { var request = __webpack_require__("91f250ebeb8d5987491c"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); module.exports = { init: function init() { var dp_id, url, rate, price, config, prev, duomaiData, t; return regeneratorRuntime.async(function init$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!($('body').hasClass('gwd_unfold') || $('html').hasClass('gwd_bottom'))) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: if (!(G.from_device === 'biyibi')) { context$1$0.next = 5; break; } globalCondition.setMet('noOtherGiftMoney'); return context$1$0.abrupt('return'); case 5: dp_id = G.dp.itemId; if (G.aliSite) { dp_id = __webpack_require__("3e983ecbff4e1a29654c").getParameterByName('id'); if (G.site === 'tmall') { dp_id = dp_id + '-83'; } else { dp_id = dp_id + '-123'; } } dp_id = dp_id ? 'dp_id=' + dp_id : ''; url = encodeURIComponent(location.href); url = url ? 'url=' + url : ''; rate = 'rate='; price = G.dp.price; context$1$0.next = 14; return regeneratorRuntime.awrap(request.rawGet('https://cdn.bijiago.com/js/configs/gwdang.json')); case 14: config = context$1$0.sent; if (!(G.site === '360buy' && config.allowDuomai)) { context$1$0.next = 24; break; } prev = 'www.duomai.com'; if (!G.allowBackgroundRequest) { prev = 'browser.bijiago.com/duomai'; } context$1$0.next = 20; return regeneratorRuntime.awrap(request.rawGet('https://' + prev + '/api/duomai_product.php?type=jd&good_id=' + G.dp.itemId.replace('-3', ''))); case 20: duomaiData = context$1$0.sent; if (typeof duomaiData === 'string') { duomaiData = JSON.parse(duomaiData); } rate = 'rate=' + parseFloat(duomaiData.d.rate); price = duomaiData.d.goods_price * (location.href.indexOf('debugExt') > -1 ? 10000 : 1); case 24: t = $('#summary-tips').text(); if (!(G.site === '360buy' && (t.indexOf('不可使用东券') > -1 || t.indexOf('不可使用京券、东券') > -1))) { context$1$0.next = 28; break; } globalCondition.setMet('noOtherGiftMoney'); return context$1$0.abrupt('return'); case 28: if (!(G.ss_name === 'priceDog')) { context$1$0.next = 30; break; } return context$1$0.abrupt('return'); case 30: if (!$('.bjgou-subsidy-bar').length) { context$1$0.next = 32; break; } return context$1$0.abrupt('return'); case 32: if (!$('.bjgou-mini-coupon-bar').length) { context$1$0.next = 34; break; } return context$1$0.abrupt('return'); case 34: request.get(G.server + '/extension/Coupon?rebate=1&' + rate + '&price=' + G.dp.price + '&' + dp_id + '&' + url).then(function (res) { if (!res.rebate) { globalCondition.setMet('noOtherGiftMoney'); return; } // if ($('.dsj-content').length) { // $('.dsj-content').after('<div id="bjgou-subsidy"></div>') // } else { // $('#bjgext_minibar').after('<div id="bjgou-subsidy"></div>') // } $('#bjg-coupon-placeholder').replaceWith('<div id="bjgou-subsidy"></div>'); var Subsidy = __webpack_require__("2d1b815917806a0ba09c")['default']; cnzz.logOnce((G.site === '360buy' ? 'jd' : 'taobao') + 'GiftMoney:show'); var jumpLink = G.site === '360buy' ? res.url.replace('/?', '/index.html?') : __webpack_require__("4733a3dd803685ec596a").appendTbInfoForUrl('https://tb.bijiago.com/extension/qrpage?' + dp_id + '&tag=9_chrome&rebate=1&discount=' + res.rebate + '&union=' + G.union); new Vue({ el: '#bjgou-subsidy', render: function render(h) { return h(Subsidy, { props: { value: res.rebate, qr: false, url: jumpLink } }); } }); $('#bijiago-banner-ad').remove(); $('.bjg-coupon-space').after('<div id="bjgou-subsidy-bottom"></div>'); var SubsidyBottom = __webpack_require__("504587c23f469ea6dea5")['default']; new Vue({ el: '#bjgou-subsidy-bottom', render: function render(h) { return h(SubsidyBottom, { props: { value: res.rebate, qr: false, url: jumpLink } }); } }); __webpack_require__("08527d571215689ce73c").init(jumpLink, '领红包下单'); }); case 35: case 'end': return context$1$0.stop(); } }, null, this); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }) },["73ffe551a141cc2a674e"]);