Před instalací, Greasy Fork chce abyste věděli, že tento skript obsahuje "antifunkce", což jsou věci, které spíše přispívají autorovi skriptu, než vám.
Autor skriptu vysvětluje:
含有购物党官方返利
自动比较同款商品在淘宝/京东/天猫/亚马逊/当当//等更低价,提供365天历史价格走势查询,不仅可以领隐藏优惠券,无券商品还能领补贴红包,支持全网降价提醒、京东价格保护自动监控,链家二手房和Steam游戏也能比价!
// ==UserScript== // @name 网购比价领券神器—购物党,不仅自动领券还能额外领取补贴红包,365天历史价格、同款更低价、降价提醒、价格保护,官方持续维护 // @author 购物党 // @name:zh-cn 网购比价领券神器—购物党,不仅自动领券还能额外领取补贴红包,365天历史价格、同款更低价、降价提醒、价格保护,官方持续维护 // @antifeature referral-link 含有购物党官方返利 // @description 自动比较同款商品在淘宝/京东/天猫/亚马逊/当当//等更低价,提供365天历史价格走势查询,不仅可以领隐藏优惠券,无券商品还能领补贴红包,支持全网降价提醒、京东价格保护自动监控,链家二手房和Steam游戏也能比价! // @description:zh-hk 自动比较同款商品在淘宝/京东/天猫/亚马逊/当当//等更低价,提供365天历史价格走势查询,不仅可以领隐藏优惠券,无券商品还能领补贴红包,支持全网降价提醒、京东价格保护自动监控,链家二手房和Steam游戏也能比价! // @run-at document-idle // @version 4.0.7 // @grant none // @require https://cdn.gwdang.com/js/vendor-gwd.js?v=2.9 // @include https://www.hihonor.com/* // @include https://www.ymatou.hk/* // @include https://www.ymatou.com/* // @include http://traveldetail.fliggy.com/* // @include https://traveldetail.fliggy.com/* // @include http://*.wzhouhui.com/* // @include https://*.wzhouhui.com/* // @include http://cn.wemakeprice.com/* // @include https://cn.wemakeprice.com/* // @include http://cn.dod.nl/* // @include https://cn.dod.nl/* // @include http://*.decathlon.com.cn/* // @include https://*.decathlon.com.cn/* // @include http://cn.apo.com/* // @include https://cn.apo.com/* // @include http://*.ansgo.com/* // @include https://*.ansgo.com/* // @include http://*.perfumesclub.cn/* // @include https://*.perfumesclub.cn/* // @include http://*.net-a-porter.com/* // @include https://*.net-a-porter.com/* // @include http://*.kidsroom.cn/* // @include https://*.kidsroom.cn/* // @include http://cn.getthelabel.com/* // @include https://cn.getthelabel.com/* // @include http://*.farfetch.cn/* // @include https://*.farfetch.cn/* // @include http://item.kongfz.com/* // @include https://item.kongfz.com/* // @include http://book.kongfz.com/* // @include https://book.kongfz.com/* // @include http://cn.iherb.com/* // @include https://cn.iherb.com/* // @include http://*.hqhair.com/* // @include https://*.hqhair.com/* // @include http://*.wl.cn/* // @include https://*.wl.cn/* // @include http://*.columbia.com/* // @include https://*.columbia.com/* // @include http://*.columbiasports.cn/* // @include https://*.columbiasports.cn/* // @include http://*.ehaoyao.com/* // @include https://*.ehaoyao.com/* // @include http://*.bhphotovideo.com/* // @include https://*.bhphotovideo.com/* // @include http://*.shoes.com/* // @include https://*.shoes.com/* // @include http://*.jomashop.com/* // @include https://*.jomashop.com/* // @include http://cn.pharmacydirect.co.nz/* // @include https://cn.pharmacydirect.co.nz/* // @include http://*.holland-at-home.com/* // @include https://*.holland-at-home.com/* // @include http://cn.holland-at-home.com/* // @include https://cn.holland-at-home.com/* // @include http://*.rei.com/* // @include https://*.rei.com/* // @include http://item.aomygod.com/* // @include https://item.aomygod.com/* // @include http://*.huatuoyf.com/* // @include https://*.huatuoyf.com/* // @include http://*.forever21.com/* // @include https://*.forever21.com/* // @include http://zh.ashford.com/* // @include https://zh.ashford.com/* // @include http://*.bestbuy.com/* // @include https://*.bestbuy.com/* // @include http://*.target.com/* // @include https://*.target.com/* // @include http://cn.chemistdirect.com.au/* // @include https://cn.chemistdirect.com.au/* // @include http://*.ba.de/* // @include https://*.ba.de/* // @include http://m.wandougongzhu.cn/* // @include https://m.wandougongzhu.cn/* // @include http://cn.feelunique.com/* // @include https://cn.feelunique.com/* // @include http://shop.dixintong.com/* // @include https://shop.dixintong.com/* // @include http://cn.pharmacyonline.com.au/* // @include https://cn.pharmacyonline.com.au/* // @include http://cn.discount-apotheke.de/* // @include https://cn.discount-apotheke.de/* // @include http://*.carters.com/* // @include https://*.carters.com/* // @include http://*.katespade.co.uk/* // @include https://*.katespade.co.uk/* // @include http://*.katespade.cn/* // @include https://*.katespade.cn/* // @include http://*.beautybay.com/* // @include https://*.beautybay.com/* // @include http://cn.pharmacy4less.com.au/* // @include https://cn.pharmacy4less.com.au/* // @include http://*.newegg.com/* // @include https://*.newegg.com/* // @include http://*.newbalance.com/* // @include https://*.newbalance.com/* // @include http://*.bodybuilding.com/* // @include https://*.bodybuilding.com/* // @include http://*.ssnewyork.com/* // @include https://*.ssnewyork.com/* // @include http://*.wine9.com/* // @include https://*.wine9.com/* // @include http://*.kohls.com/* // @include https://*.kohls.com/* // @include http://*.gnc.com/* // @include https://*.gnc.com/* // @include http://*.qw.cc/* // @include https://*.qw.cc/* // @include http://*.haiershui.com/* // @include https://*.haiershui.com/* // @include http://*.ugg.com/* // @include https://*.ugg.com/* // @include http://*.ugg.cn/* // @include https://*.ugg.cn/* // @include http://*.yoger.com.cn/* // @include https://*.yoger.com.cn/* // @include http://*.flyco.com/* // @include https://*.flyco.com/* // @include http://*.yfdyf.com/* // @include https://*.yfdyf.com/* // @include http://*.joesnewbalanceoutlet.com/* // @include https://*.joesnewbalanceoutlet.com/* // @include http://*.jomoo.com.cn/* // @include https://*.jomoo.com.cn/* // @include http://*.dapu.com/* // @include https://*.dapu.com/* // @include http://china.coach.com/* // @include https://china.coach.com/* // @include http://*.shanmai.cn/* // @include https://*.shanmai.cn/* // @include http://*.fengbuy.com/* // @include https://*.fengbuy.com/* // @include http://*.t10.com/* // @include https://*.t10.com/* // @include http://cn.amcal.com.au/* // @include https://cn.amcal.com.au/* // @include http://cn.babyhaven.com/* // @include https://cn.babyhaven.com/* // @include http://*.51taouk.com/* // @include https://*.51taouk.com/* // @include http://*.usashopcn.com/* // @include https://*.usashopcn.com/* // @include http://*.petit-bateau.us/* // @include https://*.petit-bateau.us/* // @include http://*.tlcpharmacy.cn.com/* // @include https://*.tlcpharmacy.cn.com/* // @include http://*.km1818.com/* // @include https://*.km1818.com/* // @include http://*.bienmanger.cn/* // @include https://*.bienmanger.cn/* // @include http://*.syshop.com/* // @include https://*.syshop.com/* // @include http://*.qipaimall.com/* // @include https://*.qipaimall.com/* // @include http://mall.goumin.com/* // @include https://mall.goumin.com/* // @include http://*.taohwu.com/* // @include https://*.taohwu.com/* // @include http://*.xmeise.com/* // @include https://*.xmeise.com/* // @include http://*.septwolves.cn/* // @include https://*.septwolves.cn/* // @include http://*.kiehls.com/* // @include https://*.kiehls.com/* // @include http://*.puzeyf.com/* // @include https://*.puzeyf.com/* // @include http://*.aizhigu.com.cn/* // @include https://*.aizhigu.com.cn/* // @include http://*.hecha.cn/* // @include https://*.hecha.cn/* // @include http://*.zgshoes.com/* // @include https://*.zgshoes.com/* // @include http://cn.takeya.co.jp/* // @include https://cn.takeya.co.jp/* // @include http://*.shoprobam.com/* // @include https://*.shoprobam.com/* // @include http://*.opplestore.com/* // @include https://*.opplestore.com/* // @include http://*.maichawang.com/* // @include https://*.maichawang.com/* // @include http://*.bose.com/* // @include https://*.bose.com/* // @include http://dewaren.com/* // @include https://dewaren.com/* // @include http://*.winona.cn/* // @include https://*.winona.cn/* // @include http://*.motorola.com.cn/* // @include https://*.motorola.com.cn/* // @include http://*.danielwellington.cn/* // @include https://*.danielwellington.cn/* // @include http://*.danielwellington.com/* // @include https://*.danielwellington.com/* // @include http://youhui.pinduoduo.com/* // @include https://youhui.pinduoduo.com/* // @include http://*.yangkeduo.com/* // @include https://*.yangkeduo.com/* // @include http://*.finishline.com/* // @include https://*.finishline.com/* // @include http://*.skinstore.com/* // @include https://*.skinstore.com/* // @include http://item.wjike.com/* // @include https://item.wjike.com/* // @include http://youpin.mi.com/* // @include https://youpin.mi.com/* // @include http://*.xiaomiyoupin.com/* // @include https://*.xiaomiyoupin.com/* // @include http://store.steampowered.com/* // @include https://store.steampowered.com/* // @include http://*.jialich.cn/* // @include https://*.jialich.cn/* // @include http://*.tthigo.com/* // @include https://*.tthigo.com/* // @include http://*.modernavenue.com/* // @include https://*.modernavenue.com/* // @include http://*.tcl.com/* // @include https://*.tcl.com/* // @include http://*.bonjourhk.com/* // @include https://*.bonjourhk.com/* // @include http://m.bonjourhk.com/* // @include https://m.bonjourhk.com/* // @include http://*.trt.hk/* // @include https://*.trt.hk/* // @include http://*.forestfood.com/* // @include https://*.forestfood.com/* // @include http://*.converse.com.cn/* // @include https://*.converse.com.cn/* // @include http://*.fila.cn/* // @include https://*.fila.cn/* // @include http://*.levi.com.cn/* // @include https://*.levi.com.cn/* // @include http://*.levi.com/* // @include https://*.levi.com/* // @include http://*.hangowa.com/* // @include https://*.hangowa.com/* // @include http://*.super-in.com/* // @include https://*.super-in.com/* // @include http://*.ccxpet.com/* // @include https://*.ccxpet.com/* // @include http://*.360lj.com/* // @include https://*.360lj.com/* // @include http://*.hysjg.com/* // @include https://*.hysjg.com/* // @include http://*.0061.com.au/* // @include https://*.0061.com.au/* // @include http://mall.ecovacs.cn/* // @include https://mall.ecovacs.cn/* // @include http://mall.littleswan.com/* // @include https://mall.littleswan.com/* // @include http://*.vitagou.hk/* // @include https://*.vitagou.hk/* // @include http://*.hpstore.cn/* // @include https://*.hpstore.cn/* // @include http://*.kkguan.com/* // @include https://*.kkguan.com/* // @include http://*.mayn.com.cn/* // @include https://*.mayn.com.cn/* // @include http://*.peikua.com/* // @include https://*.peikua.com/* // @include http://item.kinhom.com/* // @include https://item.kinhom.com/* // @include http://*.9drug.com/* // @include https://*.9drug.com/* // @include http://*.tea7.com/* // @include https://*.tea7.com/* // @include http://*.01home.com/* // @include https://*.01home.com/* // @include http://*.aliexpress.com/* // @include https://*.aliexpress.com/* // @include http://*.easytoys.cn/* // @include https://*.easytoys.cn/* // @include http://*.kiwistarcare.com/* // @include https://*.kiwistarcare.com/* // @include http://*.carrefour.cn/* // @include https://*.carrefour.cn/* // @include http://china.lotte.com/* // @include https://china.lotte.com/* // @include http://*.ewatches.com/* // @include https://*.ewatches.com/* // @include http://global.timex.com/* // @include https://global.timex.com/* // @include http://comfortfirst.com/* // @include https://comfortfirst.com/* // @include http://*.luolai.cn/* // @include https://*.luolai.cn/* // @include http://*.youyu.com/* // @include https://*.youyu.com/* // @include http://*.yoox.cn/* // @include https://*.yoox.cn/* // @include http://store.yoox.cn/* // @include https://store.yoox.cn/* // @include http://*.suanjuzi.com/* // @include https://*.suanjuzi.com/* // @include http://*.yao123.com/* // @include https://*.yao123.com/* // @include http://item.baobeigezi.com/* // @include https://item.baobeigezi.com/* // @include http://*.baobeigezi.com/* // @include https://*.baobeigezi.com/* // @include http://*.opposhop.cn/* // @include https://*.opposhop.cn/* // @include http://store.oppo.com/* // @include https://store.oppo.com/* // @include http://*.oppo.com/* // @include https://*.oppo.com/* // @include http://hd.oppo.com/* // @include https://hd.oppo.com/* // @include http://mall.to8to.com/* // @include https://mall.to8to.com/* // @include http://item.yunhou.com/* // @include https://item.yunhou.com/* // @include http://item.yhd.com/* // @include https://item.yhd.com/* // @include http://*.haituncun.com/* // @include https://*.haituncun.com/* // @include http://*.walmart.com/* // @include https://*.walmart.com/* // @include http://*.vmei.com/* // @include https://*.vmei.com/* // @include http://*.jgb.cn/* // @include https://*.jgb.cn/* // @include http://*.51din.com/* // @include https://*.51din.com/* // @include http://*.aidai.com/* // @include https://*.aidai.com/* // @include http://shop.boqii.com/* // @include https://shop.boqii.com/* // @include http://*.spider.com.cn/* // @include https://*.spider.com.cn/* // @include http://*.jiae.com/* // @include https://*.jiae.com/* // @include http://*.zazhipu.com/* // @include https://*.zazhipu.com/* // @include http://*.shop.philips.com.cn/* // @include https://*.shop.philips.com.cn/* // @include http://tuan.zhongjiu.cn/* // @include https://tuan.zhongjiu.cn/* // @include http://*.zhongjiu.cn/* // @include https://*.zhongjiu.cn/* // @include http://*.kaluli.com/* // @include https://*.kaluli.com/* // @include http://shop.wstx.com/* // @include https://shop.wstx.com/* // @include http://*.purcotton.com/* // @include https://*.purcotton.com/* // @include http://shop.juanpi.com/* // @include https://shop.juanpi.com/* // @include http://*.jinxiang.com/* // @include https://*.jinxiang.com/* // @include http://*.163.com/* // @include https://*.163.com/* // @include http://*.guojimami.com/* // @include https://*.guojimami.com/* // @include http://*.baiyangwang.com/* // @include https://*.baiyangwang.com/* // @include http://cn.royyoungchemist.com.au/* // @include https://cn.royyoungchemist.com.au/* // @include http://cn.medihealshop.com/* // @include https://cn.medihealshop.com/* // @include http://*.medihealshop.com/* // @include https://*.medihealshop.com/* // @include http://cn.1001pharmacies.com/* // @include https://cn.1001pharmacies.com/* // @include http://*.lookfantastic.cn/* // @include https://*.lookfantastic.cn/* // @include http://*.lookfantastic.com/* // @include https://*.lookfantastic.com/* // @include http://you.163.com/* // @include https://you.163.com/* // @include http://product.bl.com/* // @include https://product.bl.com/* // @include http://*.bestinfoods.com/* // @include https://*.bestinfoods.com/* // @include http://*.muji.net/* // @include https://*.muji.net/* // @include http://*.easeeyes.com/* // @include https://*.easeeyes.com/* // @include http://*.lingshi.com/* // @include https://*.lingshi.com/* // @include http://*.nubia.com/* // @include https://*.nubia.com/* // @include http://shop.nubia.com/* // @include https://shop.nubia.com/* // @include http://*.nubia.cn/* // @include https://*.nubia.cn/* // @include http://*.kzj365.com/* // @include https://*.kzj365.com/* // @include http://*.kaola.com/* // @include https://*.kaola.com/* // @include http://*.kaola.com.hk/* // @include https://*.kaola.com.hk/* // @include http://*.kaola.com.hk/* // @include https://*.kaola.com.hk/* // @include http://*.ymatou.com/* // @include https://*.ymatou.com/* // @include http://detail.metao.com/* // @include https://detail.metao.com/* // @include http://*.coocaa.com/* // @include https://*.coocaa.com/* // @include http://*.lifevc.com/* // @include https://*.lifevc.com/* // @include http://*.supuy.com/* // @include https://*.supuy.com/* // @include http://*.supumall.com/* // @include https://*.supumall.com/* // @include http://*.mia.com/* // @include https://*.mia.com/* // @include http://miyabaobei.hk/* // @include https://miyabaobei.hk/* // @include http://*.miyabaobei.hk/* // @include https://*.miyabaobei.hk/* // @include http://item.gomehigo.hk/* // @include https://item.gomehigo.hk/* // @include http://*.wangfujing.com/* // @include https://*.wangfujing.com/* // @include http://global.gou.com/* // @include https://global.gou.com/* // @include http://*.gou.com/* // @include https://*.gou.com/* // @include http://*.ikjtao.com/* // @include https://*.ikjtao.com/* // @include http://*.bestkeep.cn/* // @include https://*.bestkeep.cn/* // @include http://*.ule.com/* // @include https://*.ule.com/* // @include http://shop.philips.com.cn/* // @include https://shop.philips.com.cn/* // @include http://shop.tcl.com/* // @include https://shop.tcl.com/* // @include http://mall.tcl.com/* // @include https://mall.tcl.com/* // @include http://*.e-changhong.com/* // @include https://*.e-changhong.com/* // @include http://shop.konka.com/* // @include https://shop.konka.com/* // @include http://shop.hisense.com/* // @include https://shop.hisense.com/* // @include http://*.hisense.com/* // @include https://*.hisense.com/* // @include http://*.ineigo.com/* // @include https://*.ineigo.com/* // @include http://*.skg.com/* // @include https://*.skg.com/* // @include http://*.oyeah.com/* // @include https://*.oyeah.com/* // @include http://*.morefood.com/* // @include https://*.morefood.com/* // @include http://*.zhen.com/* // @include https://*.zhen.com/* // @include http://shop.vivo.com.cn/* // @include https://shop.vivo.com.cn/* // @include http://gfive.b2c.eqimingxing.com/* // @include https://gfive.b2c.eqimingxing.com/* // @include http://*.6pm.com/* // @include https://*.6pm.com/* // @include http://shop.gionee.com/* // @include https://shop.gionee.com/* // @include http://z.gionee.com/* // @include https://z.gionee.com/* // @include http://store.lining.com/* // @include https://store.lining.com/* // @include http://*.mf910.com/* // @include https://*.mf910.com/* // @include http://*.k-touch.cn/* // @include https://*.k-touch.cn/* // @include http://item.grainger.cn/* // @include https://item.grainger.cn/* // @include http://piao.163.com/* // @include https://piao.163.com/* // @include http://mall.163.com/* // @include https://mall.163.com/* // @include http://detail.yao.95095.com/* // @include https://detail.yao.95095.com/* // @include http://*.ebay.com/* // @include https://*.ebay.com/* // @include http://*.100yue.com/* // @include https://*.100yue.com/* // @include http://*.feiniu.com/* // @include https://*.feiniu.com/* // @include http://*.lemall.com/* // @include https://*.lemall.com/* // @include http://item.feiniu.com/* // @include https://item.feiniu.com/* // @include http://*.xgbaby.com/* // @include https://*.xgbaby.com/* // @include http://*.zuipin.cn/* // @include https://*.zuipin.cn/* // @include http://item.feifei.cn/* // @include https://item.feifei.cn/* // @include http://*.feifei.com/* // @include https://*.feifei.com/* // @include http://guang.com/* // @include https://guang.com/* // @include http://*.haitaocheng.com/* // @include https://*.haitaocheng.com/* // @include http://*.rrs.com/* // @include https://*.rrs.com/* // @include http://*.rrsjk.com/* // @include https://*.rrsjk.com/* // @include http://shop.ccb.com/* // @include https://shop.ccb.com/* // @include http://*.meilishuo.com/* // @include https://*.meilishuo.com/* // @include http://item.meilishuo.com/* // @include https://item.meilishuo.com/* // @include http://*.mogujie.com/* // @include https://*.mogujie.com/* // @include http://shop.mogu.com/* // @include https://shop.mogu.com/* // @include http://shop.mogujie.com/* // @include https://shop.mogujie.com/* // @include http://shop.coolpad.com/* // @include https://shop.coolpad.com/* // @include http://shop.coolpad.cn/* // @include https://shop.coolpad.cn/* // @include http://*.yiguo.com/* // @include https://*.yiguo.com/* // @include http://item.wanggou.com/* // @include https://item.wanggou.com/* // @include http://mall.jia.com/* // @include https://mall.jia.com/* // @include http://*.jiumei.com/* // @include https://*.jiumei.com/* // @include http://weigou.baidu.com/* // @include https://weigou.baidu.com/* // @include http://shop.letv.com/* // @include https://shop.letv.com/* // @include http://*.xiaomi.com/* // @include https://*.xiaomi.com/* // @include http://item.mi.com/* // @include https://item.mi.com/* // @include http://*.mi.com/* // @include https://*.mi.com/* // @include http://*.handu.com/* // @include https://*.handu.com/* // @include http://*.yummy77.com/* // @include https://*.yummy77.com/* // @include http://*.fruitday.com/* // @include https://*.fruitday.com/* // @include http://*.benlai.com/* // @include https://*.benlai.com/* // @include http://taoshu.com/* // @include https://taoshu.com/* // @include http://*.meilele.com/* // @include https://*.meilele.com/* // @include http://*.gjw.com/* // @include https://*.gjw.com/* // @include http://*.oneplus.com/* // @include https://*.oneplus.com/* // @include http://store.apple.com/* // @include https://store.apple.com/* // @include http://*.apple.com/* // @include https://*.apple.com/* // @include http://*.apple.com.cn/* // @include https://*.apple.com.cn/* // @include http://*.j1.com/* // @include https://*.j1.com/* // @include http://miao.j1.com/* // @include https://miao.j1.com/* // @include http://*.zzl365.com/* // @include https://*.zzl365.com/* // @include http://mobile.139shop.com/* // @include https://mobile.139shop.com/* // @include http://139shop.com/* // @include https://139shop.com/* // @include http://*.yiwugou.com/* // @include https://*.yiwugou.com/* // @include http://*.zhiwo.com/* // @include https://*.zhiwo.com/* // @include http://*.miqi.cn/* // @include https://*.miqi.cn/* // @include http://*.miqi.cn/* // @include https://*.miqi.cn/* // @include http://*.camel.com.cn/* // @include https://*.camel.com.cn/* // @include http://*.kuaishubao.com/* // @include https://*.kuaishubao.com/* // @include http://*.juegg.com/* // @include https://*.juegg.com/* // @include http://mall.10010.com/* // @include https://mall.10010.com/* // @include http://*.wowsai.com/* // @include https://*.wowsai.com/* // @include http://*.tianpin.com/* // @include https://*.tianpin.com/* // @include http://*.tootoo.cn/* // @include https://*.tootoo.cn/* // @include http://item.minshengec.com/* // @include https://item.minshengec.com/* // @include http://*.sfbest.com/* // @include https://*.sfbest.com/* // @include http://ht.sfbest.hk/* // @include https://ht.sfbest.hk/* // @include http://shop.lenovo.com.cn/* // @include https://shop.lenovo.com.cn/* // @include http://*.lenovo.com.cn/* // @include https://*.lenovo.com.cn/* // @include http://shop.lenovomobile.com/* // @include https://shop.lenovomobile.com/* // @include http://*.lenovomobile.com/* // @include https://*.lenovomobile.com/* // @include http://*.lenovo.com.cn/* // @include https://*.lenovo.com.cn/* // @include http://thinkpad.lenovo.com.cn/* // @include https://thinkpad.lenovo.com.cn/* // @include http://*.vmall.com/* // @include https://*.vmall.com/* // @include http://*.ihush.com/* // @include https://*.ihush.com/* // @include http://*.fclub.cn/* // @include https://*.fclub.cn/* // @include http://item.yohobuy.com/* // @include https://item.yohobuy.com/* // @include http://*.yohobuy.com/* // @include https://*.yohobuy.com/* // @include http://*.fclub.cn/* // @include https://*.fclub.cn/* // @include http://ju.taobao.com/* // @include https://ju.taobao.com/* // @include http://*.tmall.com/* // @include https://*.tmall.com/* // @include http://detail.liangxinyao.com/* // @include https://detail.liangxinyao.com/* // @include http://world.tmall.com/* // @include https://world.tmall.com/* // @include http://detail.tmall.hk/* // @include https://detail.tmall.hk/* // @include http://*.taobao.com/* // @include https://*.taobao.com/* // @include http://2.taobao.com/* // @include https://2.taobao.com/* // @include http://ai.taobao.com/* // @include https://ai.taobao.com/* // @include http://chaoshi.detail.tmall.com/* // @include https://chaoshi.detail.tmall.com/* // @include http://detail.ju.taobao.com/* // @include https://detail.ju.taobao.com/* // @include http://*.vipshop.com/* // @include https://*.vipshop.com/* // @include http://*.vip.com/* // @include https://*.vip.com/* // @include http://tuan.lefeng.com/* // @include https://tuan.lefeng.com/* // @include http://*.lefeng.com/* // @include https://*.lefeng.com/* // @include http://*.jxdyf.com/* // @include https://*.jxdyf.com/* // @include http://*.jxdyf.com/* // @include https://*.jxdyf.com/* // @include http://*.tnice.com/* // @include https://*.tnice.com/* // @include http://auction1.paipai.com/* // @include https://auction1.paipai.com/* // @include http://item.xinbaigo.com/* // @include https://item.xinbaigo.com/* // @include http://*.orbis.com.cn/* // @include https://*.orbis.com.cn/* // @include http://*.sfht.com/* // @include https://*.sfht.com/* // @include http://*.d1.com.cn/* // @include https://*.d1.com.cn/* // @include http://*.chazuo.com/* // @include https://*.chazuo.com/* // @include http://*.u1baby.com/* // @include https://*.u1baby.com/* // @include http://*.homevv.com/* // @include https://*.homevv.com/* // @include http://*.paixie.net/* // @include https://*.paixie.net/* // @include http://tuan.paixie.net/* // @include https://tuan.paixie.net/* // @include http://faxian.paixie.net/* // @include https://faxian.paixie.net/* // @include http://*.tao3c.com/* // @include https://*.tao3c.com/* // @include http://*.zm7.cn/* // @include https://*.zm7.cn/* // @include http://s.etao.com/* // @include https://s.etao.com/* // @include http://product.pchouse.com.cn/* // @include https://product.pchouse.com.cn/* // @include http://buy.daphne.cn/* // @include https://buy.daphne.cn/* // @include http://*.lucemall.com.cn/* // @include https://*.lucemall.com.cn/* // @include http://*.easy361.com/* // @include https://*.easy361.com/* // @include http://item.360hqb.com/* // @include https://item.360hqb.com/* // @include http://q.360hqb.com/* // @include https://q.360hqb.com/* // @include http://*.goujiuwang.com/* // @include https://*.goujiuwang.com/* // @include http://*.huimai365.com/* // @include https://*.huimai365.com/* // @include http://*.jiuxian.com/* // @include https://*.jiuxian.com/* // @include http://*.winenice.com/* // @include https://*.winenice.com/* // @include http://*.yesmywine.com/* // @include https://*.yesmywine.com/* // @include http://mall.yesmywine.com/* // @include https://mall.yesmywine.com/* // @include http://*.banggo.com/* // @include https://*.banggo.com/* // @include http://ploy.banggo.com/* // @include https://ploy.banggo.com/* // @include http://*.yanyue.cn/* // @include https://*.yanyue.cn/* // @include http://*.bearbuy.com.cn/* // @include https://*.bearbuy.com.cn/* // @include http://*.amazon.cn/* // @include https://*.amazon.cn/* // @include http://*.amazon.com/* // @include https://*.amazon.com/* // @include http://*.amazon.co.uk/* // @include https://*.amazon.co.uk/* // @include http://*.amazon.de/* // @include https://*.amazon.de/* // @include http://*.amazon.co.jp/* // @include https://*.amazon.co.jp/* // @include http://*.amazon.fr/* // @include https://*.amazon.fr/* // @include http://*.amazon.ca/* // @include https://*.amazon.ca/* // @include http://*.amazon.it/* // @include https://*.amazon.it/* // @include http://*.amazon.es/* // @include https://*.amazon.es/* // @include http://*.dangdang.com/* // @include https://*.dangdang.com/* // @include http://*.globaldangdang.hk/* // @include https://*.globaldangdang.hk/* // @include http://z.jd.com/* // @include https://z.jd.com/* // @include http://item.jd.com/* // @include https://item.jd.com/* // @include http://i-item.jd.com/* // @include https://i-item.jd.com/* // @include http://item.paipai.com/* // @include https://item.paipai.com/* // @include http://item.yiyaojd.com/* // @include https://item.yiyaojd.com/* // @include http://item.jkcsjd.com/* // @include https://item.jkcsjd.com/* // @include http://item.jd.hk/* // @include https://item.jd.hk/* // @include http://paimai.jd.com/* // @include https://paimai.jd.com/* // @include http://*.jd.com/* // @include https://*.jd.com/* // @include http://*.jd.hk/* // @include https://*.jd.hk/* // @include http://*.360buy.com/* // @include https://*.360buy.com/* // @include http://re.jd.com/* // @include https://re.jd.com/* // @include http://auction.jd.com/* // @include https://auction.jd.com/* // @include http://club.jd.com/* // @include https://club.jd.com/* // @include http://*.360top.com/* // @include https://*.360top.com/* // @include http://detail.zol.com.cn/* // @include https://detail.zol.com.cn/* // @include http://dealer.zol.com.cn/* // @include https://dealer.zol.com.cn/* // @include http://*.zol.com/* // @include https://*.zol.com/* // @include http://*.fglady.cn/* // @include https://*.fglady.cn/* // @include http://*.ouku.com/* // @include https://*.ouku.com/* // @include http://*.newegg.comn/* // @include https://*.newegg.comn/* // @include http://zhadan.newegg.cn/* // @include https://zhadan.newegg.cn/* // @include http://tuan.newegg.cn/* // @include https://tuan.newegg.cn/* // @include http://product.kimiss.com/* // @include https://product.kimiss.com/* // @include http://*.redbaby.com.cn/* // @include https://*.redbaby.com.cn/* // @include http://product.m18.com/* // @include https://product.m18.com/* // @include http://list.m18.com/* // @include https://list.m18.com/* // @include http://*.m18.com/* // @include https://*.m18.com/* // @include http://*.w1.cn/* // @include https://*.w1.cn/* // @include http://*.ashford.com/* // @include https://*.ashford.com/* // @include http://*.sephora.cn/* // @include https://*.sephora.cn/* // @include http://*.lafaso.com/* // @include https://*.lafaso.com/* // @include http://*.s.cn/* // @include https://*.s.cn/* // @include http://*.51buy.com/* // @include https://*.51buy.com/* // @include http://*.51buy.cn/* // @include https://*.51buy.cn/* // @include http://*.okbuy.com/* // @include https://*.okbuy.com/* // @include http://*.letao.com/* // @include https://*.letao.com/* // @include http://*.buy007.com/* // @include https://*.buy007.com/* // @include http://*.taoxie.com/* // @include https://*.taoxie.com/* // @include http://ju.suning.com/* // @include https://ju.suning.com/* // @include http://item.suning.com/* // @include https://item.suning.com/* // @include http://*.suning.com/* // @include https://*.suning.com/* // @include http://*.suning.cn/* // @include https://*.suning.cn/* // @include http://qiang.suning.com/* // @include https://qiang.suning.com/* // @include http://product.suning.com/* // @include https://product.suning.com/* // @include http://*.suning.com/* // @include https://*.suning.com/* // @include http://*.coo8.com/* // @include https://*.coo8.com/* // @include http://*.lusen.com/* // @include https://*.lusen.com/* // @include http://*.lusen.com/* // @include https://*.lusen.com/* // @include http://item.gome.com.cn/* // @include https://item.gome.com.cn/* // @include http://tao.gome.com.cn/* // @include https://tao.gome.com.cn/* // @include http://q.gome.com.cn/* // @include https://q.gome.com.cn/* // @include http://tuan.gome.com.cn/* // @include https://tuan.gome.com.cn/* // @include http://*.gomehome.com/* // @include https://*.gomehome.com/* // @include http://*.gome.com.cn/* // @include https://*.gome.com.cn/* // @include http://*.yhd.com/* // @include https://*.yhd.com/* // @include http://*.yihaodian.com/* // @include https://*.yihaodian.com/* // @include http://*.1mall.com/* // @include https://*.1mall.com/* // @include http://try.yhd.com/* // @include https://try.yhd.com/* // @include http://*.womai.com/* // @include https://*.womai.com/* // @include http://*.leyou.com.cn/* // @include https://*.leyou.com.cn/* // @include http://leleshan.leyou.com.cn/* // @include https://leleshan.leyou.com.cn/* // @include http://*.shopin.net/* // @include https://*.shopin.net/* // @include http://*.xiu.com/* // @include https://*.xiu.com/* // @include http://outlets.xiu.com/* // @include https://outlets.xiu.com/* // @include http://ferragamo.xiu.com/* // @include https://ferragamo.xiu.com/* // @include http://tuan.xiu.com/* // @include https://tuan.xiu.com/* // @include http://item.mbaobao.com/* // @include https://item.mbaobao.com/* // @include http://*.mbaobao.com/* // @include https://*.mbaobao.com/* // @include http://item.vjia.com/* // @include https://item.vjia.com/* // @include http://*.7cv.com/* // @include https://*.7cv.com/* // @include http://*.qinqinbaby.com/* // @include https://*.qinqinbaby.com/* // @include http://*.chunshuitang.com/* // @include https://*.chunshuitang.com/* // @include http://*.x.com.cn/* // @include https://*.x.com.cn/* // @include http://*.guopi.com/* // @include https://*.guopi.com/* // @include http://*.no5.com.cn/* // @include https://*.no5.com.cn/* // @include http://*.sasa.com/* // @include https://*.sasa.com/* // @include http://*.sasa.com/* // @include https://*.sasa.com/* // @include http://*.hksasa.cn/* // @include https://*.hksasa.cn/* // @include http://*.dhc.net.cn/* // @include https://*.dhc.net.cn/* // @include http://*.9dadao.com/* // @include https://*.9dadao.com/* // @include http://*.360kxr.com/* // @include https://*.360kxr.com/* // @include http://*.m6go.com/* // @include https://*.m6go.com/* // @include http://*.likeface.com/* // @include https://*.likeface.com/* // @include http://*.qxian.com/* // @include https://*.qxian.com/* // @include http://*.didamall.com/* // @include https://*.didamall.com/* // @include http://*.yaodian100.com/* // @include https://*.yaodian100.com/* // @include http://*.yaofang.cn/* // @include https://*.yaofang.cn/* // @include http://*.lijiababy.com.cn/* // @include https://*.lijiababy.com.cn/* // @include http://99read.com/* // @include https://99read.com/* // @include http://product.china-pub.com/* // @include https://product.china-pub.com/* // @include http://*.bookschina.com/* // @include https://*.bookschina.com/* // @include http://*.efeihu.com/* // @include https://*.efeihu.com/* // @include http://tuan.efeihu.com/* // @include https://tuan.efeihu.com/* // @include http://*.360mart.com/* // @include https://*.360mart.com/* // @include http://*.yintai.com/* // @include https://*.yintai.com/* // @include http://item.yintai.com/* // @include https://item.yintai.com/* // @include http://*.quwan.com/* // @include https://*.quwan.com/* // @include http://*.urcosme.com/* // @include https://*.urcosme.com/* // @include http://*.strawberrynet.com/* // @include https://*.strawberrynet.com/* // @include http://*.strawberrynet.com/* // @include https://*.strawberrynet.com/* // @include http://*.luce.com.cn/* // @include https://*.luce.com.cn/* // @include http://*.k121.com/* // @include https://*.k121.com/* // @include http://*.happigo.com/* // @include https://*.happigo.com/* // @include http://mall.happigo.com/* // @include https://mall.happigo.com/* // @include http://*.gap.cn/* // @include https://*.gap.cn/* // @include http://*.misslele.com/* // @include https://*.misslele.com/* // @include http://*.5lux.com/* // @include https://*.5lux.com/* // @include http://*.5lux.com/* // @include https://*.5lux.com/* // @include http://*.xiaozhuren.com/* // @include https://*.xiaozhuren.com/* // @include http://*.all3c.com/* // @include https://*.all3c.com/* // @include http://*.idaphne.com/* // @include https://*.idaphne.com/* // @include http://product.pcbaby.com.cn/* // @include https://product.pcbaby.com.cn/* // @include http://*.binggo.com/* // @include https://*.binggo.com/* // @include http://*.tiantian.com/* // @include https://*.tiantian.com/* // @include http://tuan.tiantian.com/* // @include https://tuan.tiantian.com/* // @include http://*.xiji.com/* // @include https://*.xiji.com/* // @include http://*.xijie.com/* // @include https://*.xijie.com/* // @include http://mall.jumei.com/* // @include https://mall.jumei.com/* // @include http://pop.jumei.com/* // @include https://pop.jumei.com/* // @include http://*.jumei.com/* // @include https://*.jumei.com/* // @include http://item.jumei.com/* // @include https://item.jumei.com/* // @include http://*.jumeiglobal.com/* // @include https://*.jumeiglobal.com/* // @include http://item.jumeiglobal.com/* // @include https://item.jumeiglobal.com/* // @include http://buy.caomeipai.com/* // @include https://buy.caomeipai.com/* // @include http://*.dahuozhan.com/* // @include https://*.dahuozhan.com/* // @include http://*.dazhe.cn/* // @include https://*.dazhe.cn/* // @include http://*.huolida.com/* // @include https://*.huolida.com/* // @include http://*.12dian.com/* // @include https://*.12dian.com/* // @include http://*.yougou.com/* // @include https://*.yougou.com/* // @include http://*.yougou.com/* // @include https://*.yougou.com/* // @include http://*.111.com.cn/* // @include https://*.111.com.cn/* // @include http://*.daoyao.com/* // @include https://*.daoyao.com/* // @include http://*.jianke.com/* // @include https://*.jianke.com/* // @include http://*.360kad.com/* // @include https://*.360kad.com/* // @include http://*.lbxcn.com/* // @include https://*.lbxcn.com/* // @include http://book.douban.com/* // @include https://book.douban.com/* // @include http://dongxi.douban.com/* // @include https://dongxi.douban.com/* // @include http://product.it168.com/* // @include https://product.it168.com/* // @include http://product.pconline.com.cn/* // @include https://product.pconline.com.cn/* // @include http://product.pcpop.com/* // @include https://product.pcpop.com/* // @include http://cosme.pclady.com.cn/* // @include https://cosme.pclady.com.cn/* // @include http://brand.yoka.com/* // @include https://brand.yoka.com/* // @include http://detail.55bbs.com/* // @include https://detail.55bbs.com/* // @include http://hzp.onlylady.com/* // @include https://hzp.onlylady.com/* // @include http://*.24dq.com/* // @include https://*.24dq.com/* // @include http://*.muyingzhijia.com/* // @include https://*.muyingzhijia.com/* // @include http://item.muyingzhijia.com/* // @include https://item.muyingzhijia.com/* // @include http://*.houmart.com/* // @include https://*.houmart.com/* // @include http://*.onlyts.cn/* // @include https://*.onlyts.cn/* // @include http://*.winxuan.com/* // @include https://*.winxuan.com/* // @include http://item.winxuan.com/* // @include https://item.winxuan.com/* // @include http://detail.bookuu.com/* // @include https://detail.bookuu.com/* // @include http://e.bookuu.com/* // @include https://e.bookuu.com/* // @include http://wenju.bookuu.com/* // @include https://wenju.bookuu.com/* // @include http://book.beifabook.com/* // @include https://book.beifabook.com/* // @include http://product.yesky.com/* // @include https://product.yesky.com/* // @include http://product.pchome.net/* // @include https://product.pchome.net/* // @include http://product.enet.com.cn/* // @include https://product.enet.com.cn/* // @include http://*.ruiyi.com/* // @include https://*.ruiyi.com/* // @include http://*.ruiyi.cn/* // @include https://*.ruiyi.cn/* // @include http://*.rayi.com/* // @include https://*.rayi.com/* // @include http://*.rayi.cn/* // @include https://*.rayi.cn/* // @include http://*.nop.cn/* // @include https://*.nop.cn/* // @include http://product.imobile.com.cn/* // @include https://product.imobile.com.cn/* // @include http://product.cnmo.com/* // @include https://product.cnmo.com/* // @include http://phone.shouji.com.cn/* // @include https://phone.shouji.com.cn/* // @include http://product.tompda.com/* // @include https://product.tompda.com/* // @include http://*.3533.com/* // @include https://*.3533.com/* // @include http://product.intozgc.com/* // @include https://product.intozgc.com/* // @include http://product.chinabyte.com/* // @include https://product.chinabyte.com/* // @include http://app.tech.ifeng.com/* // @include https://app.tech.ifeng.com/* // @include http://www2.xitek.com/* // @include https://www2.xitek.com/* // @include http://product.imp3.net/* // @include https://product.imp3.net/* // @include http://*.menglu.com/* // @include https://*.menglu.com/* // @include http://*.moonbasa.com/* // @include https://*.moonbasa.com/* // @include http://*.ing2ing.com/* // @include https://*.ing2ing.com/* // @include http://*.qjherb.com/* // @include https://*.qjherb.com/* // @include http://*.korirl.com/* // @include https://*.korirl.com/* // @include http://*.alaves.com/* // @include https://*.alaves.com/* // @include http://*.0-100s.com/* // @include https://*.0-100s.com/* // @include http://*.cherriespie.com/* // @include https://*.cherriespie.com/* // @include http://*.clafield.com/* // @include https://*.clafield.com/* // @include http://*.baoyeah.com/* // @include https://*.baoyeah.com/* // @include http://*.suorang.com/* // @include https://*.suorang.com/* // @include http://*.monteamor.com/* // @include https://*.monteamor.com/* // @include http://*.rutisher.com/* // @include https://*.rutisher.com/* // @include http://*.keede.com/* // @include https://*.keede.com/* // @include http://*.kede.com/* // @include https://*.kede.com/* // @include http://*.vancl.com/* // @include https://*.vancl.com/* // @include http://*.dazhongdianqi.com.cn/* // @include https://*.dazhongdianqi.com.cn/* // @include http://*.skinstorechina.com/* // @include https://*.skinstorechina.com/* // @include http://item.buy.qq.com/* // @include https://item.buy.qq.com/* // @include http://*.zol.com.cn/* // @include https://*.zol.com.cn/* // @include http://*.pconline.com.cn/* // @include https://*.pconline.com.cn/* // @include http://*.yesky.com/* // @include https://*.yesky.com/* // @include http://*.it168.com/* // @include https://*.it168.com/* // @include http://*.pcpop.com/* // @include https://*.pcpop.com/* // @include http://*.pchome.net/* // @include https://*.pchome.net/* // @include http://*.139shop.com/* // @include https://*.139shop.com/* // @include http://*.milier.com/* // @include https://*.milier.com/* // @include http://*.sportica.cn/* // @include https://*.sportica.cn/* // @include http://*.zhenpin.com/* // @include https://*.zhenpin.com/* // @include http://*.gaojie.com/* // @include https://*.gaojie.com/* // @include http://*.naruko.com.cn/* // @include https://*.naruko.com.cn/* // @include http://*.vivian.com/* // @include https://*.vivian.com/* // @include http://*.vivian.cn/* // @include https://*.vivian.cn/* // @include http://*.masamaso.com/* // @include https://*.masamaso.com/* // @include http://*.masamaso.cn/* // @include https://*.masamaso.cn/* // @include http://*.linkmasa.com/* // @include https://*.linkmasa.com/* // @include http://*.linkmasa.cn/* // @include https://*.linkmasa.cn/* // @include http://item.secoo.com/* // @include https://item.secoo.com/* // @include http://paimai.secoo.com/* // @include https://paimai.secoo.com/* // @include http://sale.secoo.com/* // @include https://sale.secoo.com/* // @include http://*.ehaier.com/* // @include https://*.ehaier.com/* // @include http://qiji.ehaier.com/* // @include https://qiji.ehaier.com/* // @include http://*.handuyishe.com/* // @include https://*.handuyishe.com/* // @include http://*.wbiao.cn/* // @include https://*.wbiao.cn/* // @include http://*.shangpin.com/* // @include https://*.shangpin.com/* // @include http://*.shangpin.hk/* // @include https://*.shangpin.hk/* // @include http://*.pba.cn/* // @include https://*.pba.cn/* // @include http://*.metromall.cn/* // @include https://*.metromall.cn/* // @include http://*.lizi.com/* // @include https://*.lizi.com/* // @include http://*.kadang.com/* // @include https://*.kadang.com/* // @include http://*.aimer.com.cn/* // @include https://*.aimer.com.cn/* // @include http://*.lamiu.com/* // @include https://*.lamiu.com/* // @include http://*.esprit.cn/* // @include https://*.esprit.cn/* // @include http://*.liebo.com/* // @include https://*.liebo.com/* // @include http://*.wangjiu.com/* // @include https://*.wangjiu.com/* // @include http://*.xifuquan.com/* // @include https://*.xifuquan.com/* // @include http://*.189.cn/* // @include https://*.189.cn/* // @include http://*.hicdma.com/* // @include https://*.hicdma.com/* // @include http://*.e100.cn/* // @include https://*.e100.cn/* // @include http://store.samsung.com/* // @include https://store.samsung.com/* // @include http://store.meizu.com/* // @include https://store.meizu.com/* // @include http://detail.meizu.com/* // @include https://detail.meizu.com/* // @include http://b2c.958shop.com/* // @include https://b2c.958shop.com/* // @include http://*.okhqb.com/* // @include https://*.okhqb.com/* // @include http://*.ztedevice.com.cn/* // @include https://*.ztedevice.com.cn/* // @include http://*.daling.com/* // @include https://*.daling.com/* // @include http://item.showjoy.com/* // @include https://item.showjoy.com/* // @include http://*.ocj.com.cn/* // @include https://*.ocj.com.cn/* // @include http://*.ocj.kr/* // @include https://*.ocj.kr/* // @include http://*.lvyoumall.com/* // @include https://*.lvyoumall.com/* // @include http://*.kjt.com/* // @include https://*.kjt.com/* // @include http://store.logitech.com.cn/* // @include https://store.logitech.com.cn/* // @include http://shop.boohee.com/* // @include https://shop.boohee.com/* // @include http://*.meici.com/* // @include https://*.meici.com/* // @include http://*.beibei.com/* // @include https://*.beibei.com/* // @include http://store.nike.com/* // @include https://store.nike.com/* // @include http://*.nike.com/* // @include https://*.nike.com/* // @include http://*.fengqu.com/* // @include https://*.fengqu.com/* // @include http://*.mei.com/* // @include https://*.mei.com/* // @include http://*.vsigo.cn/* // @include https://*.vsigo.cn/* // @include http://*.sundan.com/* // @include https://*.sundan.com/* // @include http://hd.zazhipu.com/* // @include https://hd.zazhipu.com/* // @include http://*.microsoftstore.com.cn/* // @include https://*.microsoftstore.com.cn/* // @include http://*.xgdq.com/* // @include https://*.xgdq.com/* // @include http://*.xtep.com.cn/* // @include https://*.xtep.com.cn/* // @include http://*.xtep.com.cn/* // @include https://*.xtep.com.cn/* // @include http://*.staples.cn/* // @include https://*.staples.cn/* // @include http://mall.midea.com/* // @include https://mall.midea.com/* // @include http://*.midea.cn/* // @include https://*.midea.cn/* // @include http://www1.macys.com/* // @include https://www1.macys.com/* // @include http://cn.shopbop.com/* // @include https://cn.shopbop.com/* // @include http://*.hua.com/* // @include https://*.hua.com/* // @include http://shop.zhe800.com/* // @include https://shop.zhe800.com/* // @include http://*.cosme.com/* // @include https://*.cosme.com/* // @include http://*.diapers.com/* // @include https://*.diapers.com/* // @include http://*.windeln.de/* // @include https://*.windeln.de/* // @include http://*.windeln.com.cn/* // @include https://*.windeln.com.cn/* // @include http://*.escentual.com/* // @include https://*.escentual.com/* // @include http://*.biccamera.com/* // @include https://*.biccamera.com/* // @include http://*.esteelauder.com/* // @include https://*.esteelauder.com/* // @include http://*.saksfifthavenue.com/* // @include https://*.saksfifthavenue.com/* // @include http://*.thewatchery.com/* // @include https://*.thewatchery.com/* // @include http://item.tuhu.com/* // @include https://item.tuhu.com/* // @include http://item.tuhu.cn/* // @include https://item.tuhu.cn/* // @include http://eshop.htc.com/* // @include https://eshop.htc.com/* // @include http://roseonly.com.cn/* // @include https://roseonly.com.cn/* // @include http://*.taqu.cn/* // @include https://*.taqu.cn/* // @include http://shop.jx.189.cn/* // @include https://shop.jx.189.cn/* // @include http://*.bftv.com/* // @include https://*.bftv.com/* // @include http://*.axmall.com.au/* // @include https://*.axmall.com.au/* // @include http://*.lianjia.com/* // @include https://*.lianjia.com/* // @include http://*.ke.com/* // @include https://*.ke.com/* // @include http://*.5i5j.com/* // @include https://*.5i5j.com/* // @include http://*.lovo.cn/* // @include https://*.lovo.cn/* // @include https://plogin.m.jd.com/* // @include https://login.m.taobao.com/* // @grant none // @namespace no // ==/UserScript== gwdangJsonp([0],{ /***/ "004c41292b54f3670049": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; 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, _c = _vm._self._c; 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, _c = _vm._self._c; 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; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "0080ecb3f259e8da1a80": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AmazonSameLinks_vue_vue_type_style_index_0_id_e09aa000_scoped_true_lang_less__ = __webpack_require__("5734378f1cd687957070"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AmazonSameLinks_vue_vue_type_style_index_0_id_e09aa000_scoped_true_lang_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AmazonSameLinks_vue_vue_type_style_index_0_id_e09aa000_scoped_true_lang_less__); /* unused harmony reexport namespace */ /***/ }), /***/ "018335910ad4773853f3": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_script_lang_js__ = __webpack_require__("b28075e64badea09b6c7"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_script_lang_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_script_lang_js__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniSameList_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "027d37651180f47df6c7": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Switch_vue_vue_type_template_id_222e987e_scoped_true__ = __webpack_require__("b82eb4b3ad807a035928"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Switch_vue_vue_type_script_lang_js__ = __webpack_require__("90f63eba7eda2d0bb666"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__Switch_vue_vue_type_script_lang_js__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__Switch_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Switch_vue_vue_type_style_index_0_id_222e987e_scoped_true_lang_less__ = __webpack_require__("20b1aff0e24730e2fdc0"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__Switch_vue_vue_type_script_lang_js__["default"], __WEBPACK_IMPORTED_MODULE_0__Switch_vue_vue_type_template_id_222e987e_scoped_true__["render"], __WEBPACK_IMPORTED_MODULE_0__Switch_vue_vue_type_template_id_222e987e_scoped_true__["staticRenderFns"], false, null, "222e987e", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('222e987e')) { api.createRecord('222e987e', component.options) } else { api.reload('222e987e', component.options) } module.hot.accept("./Switch.vue?vue&type=template&id=222e987e&scoped=true", function () { api.rerender('222e987e', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/Controls/Switch.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "03e267a1b1b1361ab9ca": /***/ (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__("391d3e38e155e1dd99c6"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("6c08bd64", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./Switch.vue?vue&type=style&index=0&id=222e987e&scoped=true&lang=less", function() { var newContent = require("!!../../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./Switch.vue?vue&type=style&index=0&id=222e987e&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "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__("ca41f87e3478d1476166"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QRLink_vue_vue_type_script_lang_js__ = __webpack_require__("2b5802bacfae029c4994"); /* 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_id_673c66fa_lang_css__ = __webpack_require__("96098ab3c5aee0e9fa45"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__QRLink_vue_vue_type_style_index_1_id_673c66fa_scoped_true_lang_less__ = __webpack_require__("d7864f67e2e085df3a59"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_4__node_modules_vue_loader_15_11_1_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__["render"], __WEBPACK_IMPORTED_MODULE_0__QRLink_vue_vue_type_template_id_673c66fa_scoped_true__["staticRenderFns"], false, null, "673c66fa", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@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); /***/ }), /***/ "04a1e812dbb979983ae6": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__EpicTrend_vue_vue_type_template_id_bc2362ee_scoped_true__ = __webpack_require__("3db0075f47802954174f"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__EpicTrend_vue_vue_type_script_lang_js__ = __webpack_require__("5117a0aa56b6df4259bd"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__EpicTrend_vue_vue_type_script_lang_js__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__EpicTrend_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__EpicTrend_vue_vue_type_style_index_0_id_bc2362ee_scoped_true_lang_less__ = __webpack_require__("5768ec46ee3de6456ae0"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__EpicTrend_vue_vue_type_script_lang_js__["default"], __WEBPACK_IMPORTED_MODULE_0__EpicTrend_vue_vue_type_template_id_bc2362ee_scoped_true__["render"], __WEBPACK_IMPORTED_MODULE_0__EpicTrend_vue_vue_type_template_id_bc2362ee_scoped_true__["staticRenderFns"], false, null, "bc2362ee", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('bc2362ee')) { api.createRecord('bc2362ee', component.options) } else { api.reload('bc2362ee', component.options) } module.hot.accept("./EpicTrend.vue?vue&type=template&id=bc2362ee&scoped=true", function () { api.rerender('bc2362ee', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/EpicTrend.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "04b1e9fadd9358e8d012": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_style_index_1_id_3fdd510a_lang_less__ = __webpack_require__("3091f30132f4300f4300"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_style_index_1_id_3fdd510a_lang_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_style_index_1_id_3fdd510a_lang_less__); /* unused harmony reexport namespace */ /***/ }), /***/ "05dfce086a5faeee4991": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['tag', 'coupon'], data: function data() { return { dpId: G.dp.dpId }; }, methods: { addLink: function addLink(link) { return __webpack_require__("4733a3dd803685ec596a").appendTbInfoForUrl(link); } }, computed: { couponTypeText: function couponTypeText() { var tag = parseInt(this.tag); return ['', '', '会员券', '', '', '', '店铺券'][tag]; } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "069f4824e32ace376302": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return _c("a", { staticClass: "gwd-img-same-item gwd-inline-column", style: { "min-height": _vm.minHeight }, attrs: { href: _vm.link, target: "_blank" } }, [_c("img", { attrs: { src: _vm.item.img, alt: "", onerror: "this.src = 'https://cdn.gwdang.com/plt_web/template/metro/images/dp/loading.png'" } }), _vm._v(" "), _c("div", { staticClass: "gwd-row", staticStyle: { "margin-top": "6px", "justify-content": "space-between", "align-items": "baseline" } }, [_c("Price", { attrs: { price: _vm.item.price, fontSize: 18, unit: _vm.unit } }), _vm._v(" "), _c("span", { staticClass: "gwd-sales" }, [_vm._v(_vm._s(_vm.salesText) + _vm._s(_vm.item.dpId.endsWith("-3") || _vm.item.dpId.endsWith("-228") ? "评论" : "已售"))])], 1), _vm._v(" "), _c("div", { staticClass: "gwd-title", staticStyle: { "margin-top": "7px" } }, [_vm.item.self ? _c("span", { staticClass: "gwd-jd-self" }, [_vm._v("自营")]) : _vm._e(), _vm._v("\n " + _vm._s(_vm.item.title) + "\n ")]), _vm._v(" "), _c("div", { staticClass: "gwd-item-promos" }, _vm._l(_vm.item.promos, function (promo) { return _c("span", { key: promo.tag + promo.text }, [_vm._v(_vm._s(_vm.getPromoText(promo)))]); }), 0), _vm._v(" "), _c("span", { staticClass: "gwd-shop-name gwd-row gwd-align", staticStyle: { "min-height": "18px" } }, [_c("img", { staticClass: "gwd-favicon", attrs: { src: "https://cdn.gwdang.com/images/favicon/" + _vm.siteId + ".png", alt: "" } }), _vm._v(" "), _c("span", [_vm._v(_vm._s(_vm.item.shopName))])])]); }; var staticRenderFns = []; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "0722aee0c96778afe838": /***/ (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__("1c3640a0c2d82fc079cb"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("d01cc59e", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./MiniSameList.vue?vue&type=style&index=0&id=caa5e08c&scoped=true&lang=less", function() { var newContent = require("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./MiniSameList.vue?vue&type=style&index=0&id=caa5e08c&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "08264866aa6af42b979d": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, "\n#gwd_mini_compare_detail[data-v-caa5e08c] {\n position: absolute;\n margin: 0px 0 12px 0px;\n height: auto;\n width: 278px;\n top: 36px;\n left: 50%;\n margin-left: -139px;\n background-color: #fff;\n display: none;\n z-index: 9999999;\n border: 1px solid #edf1f2;\n box-shadow: 0 2px 4px 0 rgba(0,0,0,0.11);\n /* z-index: 999; */\n}\n#gwd_mini_compare_detail li[data-v-caa5e08c]:hover {\n background-color: #edf1f1;\n}\n#gwd_mini_compare_detail li[data-v-caa5e08c] {\n height: 40px;\n}\n#gwd_mini_compare_detail li *[data-v-caa5e08c] {\n float: left;\n}\n#gwd_mini_compare_detail li a[data-v-caa5e08c] {\n display: inline-block;\n height: 39px;\n width: 248px;\n border-bottom: 1px solid #edf1f1;\n margin-left: 15px;\n}\n#gwd_mini_compare_detail li img[data-v-caa5e08c] {\n width: 16px;\n margin-top: 12px;\n margin-right: 14px;\n}\n#gwd_mini_compare_detail li .m-item-sitename[data-v-caa5e08c] {\n width: 113px;\n margin-right: 6px;\n line-height: 40px;\n height: 40px;\n font-size: 14px;\n color: #404547;\n text-align: left;\n overflow: hidden;\n}\n#gwd_mini_compare_detail li .m-item-price[data-v-caa5e08c] {\n color: #E4393C;\n font-size: 14px;\n float: right;\n line-height: 40px;\n font-weight: bold;\n}\n#gwd_mini_compare_detail .m-all-link[data-v-caa5e08c] {\n color: #969899;\n text-decoration: none!important;\n float: right;\n height: 12px;\n line-height: 12px;\n margin-right: 15px;\n margin-top: 15px;\n margin-bottom: 15px;\n font-size: 12px;\n}\n#gwd_mini_compare_detail .m-all-link[data-v-caa5e08c]:hover {\n color: #48beff!important;\n}\n.bjg-hover-bg[data-v-caa5e08c] {\n background: #fffbef;\n}\n", ""]); // exports /***/ }), /***/ "08d7fb3ae934205c2175": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['price', 'fontSize', 'unit'] }; module.exports = exports['default']; /***/ }), /***/ "0a3edbc0c1925e4816e9": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['d1', 'd2', 'aliSite', 'promoUrl', 'lowtle', 'showcoudan'] }; module.exports = exports['default']; /***/ }), /***/ "0a4a37e7f6d37c5f205c": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['color'] }; module.exports = exports['default']; /***/ }), /***/ "0b3ced488cb2dd660650": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return _c("div", { staticClass: "minibar-btn-box gwd-row gwd-align gwd-jcc", staticStyle: { display: "inline-flex" } }, [_c("em", { staticClass: "gwd-favor-icon", "class": { "gwd-favored": _vm.checked } }), _vm._v(" "), _c("span", [_vm._v(_vm._s(_vm.checked ? "已添加提醒" : "降价提醒"))])]); }; var staticRenderFns = []; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "0b4163e217e4ff33f7c4": /***/ (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__("c89ffab6f504aa79e40d"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("7c2afbc2", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!./priceTrend.less", function() { var newContent = require("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!./priceTrend.less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "0b73d6d1967e4a153feb": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return _c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.show, expression: "show" }], ref: "overlay", staticClass: "gwd-overlay", "class": { "gwd-overlay-bottom": _vm.style === "bottom", "gwd-1688": _vm.is1688 }, on: { click: _vm.overlayClick } }, [_c("div", { staticClass: "gwd-app-window gwd-row", "class": { "gwd-expanded": _vm.expanded, "gwd-1688": _vm.is1688 } }, [_c("a", { staticClass: "gwd-window-close", attrs: { href: "#" }, on: { click: function click($event) { $event.preventDefault(); return _vm.close(); } } }, [_c("img", { attrs: { src: __webpack_require__("b1fd938df0d982e1069b"), alt: "" } })]), _vm._v(" "), _c("a", { staticClass: "gwd-window-expand gwd-row gwd-align gwd-jcc", attrs: { href: "#" }, on: { click: function click($event) { $event.preventDefault(); _vm.expanded = !_vm.expanded; } } }, [_c("img", { attrs: { src: __webpack_require__("6829388e20ef26e0e1f8"), alt: "" } })]), _vm._v(" "), _c("div", { staticClass: "gwd-window-left gwd-column gwd-align", staticStyle: { "overflow-y": "auto" } }, [_c("img", { staticStyle: { width: "89px", height: "18px", "margin-top": "16px" }, attrs: { src: __webpack_require__("be01f895645aa39c265b"), alt: "" } }), _vm._v(" "), _c("img", { staticStyle: { height: "180px", "border-radius": "8px", "margin-top": "16px" }, attrs: { src: _vm.img, alt: "" } }), _vm._v(" "), _vm.price ? _c("Price", { staticStyle: { "margin-top": "8px" }, attrs: { price: _vm.price, unit: _vm.unit } }) : _vm._e(), _vm._v(" "), _c("div", { staticClass: "gwd-column gwd-align", staticStyle: { "margin-top": "29px" } }, _vm._l(_vm.sites, function (item) { return _c("a", { key: item, staticClass: "gwd-site-select", "class": { "gwd-active": _vm.currentViewing === item }, attrs: { href: "#" }, on: { click: function click($event) { $event.preventDefault(); _vm.currentViewing = item; } } }, [_vm._v(_vm._s(_vm.getSiteName(item)))]); }), 0), _vm._v(" "), _c("hr", { directives: [{ name: "show", rawName: "v-show", value: _vm.currentSiteResult && _vm.currentSiteResult.list.length, expression: "currentSiteResult && currentSiteResult.list.length" }], staticStyle: { "margin-top": "40px" } }), _vm._v(" "), _c("div", { directives: [{ name: "show", rawName: "v-show", value: _vm.currentSiteResult && _vm.currentSiteResult.list.length, expression: "currentSiteResult && currentSiteResult.list.length" }], staticClass: "gwd-sort gwd-column", staticStyle: { "margin-top": "56px", "padding-left": "32px" } }, [_c("span", { staticStyle: { "margin-left": "8px" } }, [_vm._v("排序")]), _vm._v(" "), _vm._l(_vm.sortOptions, function (item) { return _c("a", { key: item, staticClass: "gwd-sort-item", "class": { "gwd-active": _vm.currentSort === item }, attrs: { href: "#" }, on: { click: function click($event) { $event.preventDefault(); _vm.currentSort = item; } } }, [_vm._v(_vm._s(_vm.getSortName(item)))]); })], 2)], 1), _vm._v(" "), _c("div", { staticClass: "gwd-window-right", staticStyle: { flex: "1" } }, [_vm.currentSiteResult.status === _vm.SiteStatus.loading ? _c("div", { staticStyle: { "font-size": "20px", "text-align": "center", flex: "1", "padding-top": "300px" } }, [_vm._v("Loading...")]) : _vm._e(), _vm._v(" "), [_vm.SiteStatus.error, _vm.SiteStatus.needLogin, _vm.SiteStatus.needVisit].includes(_vm.currentSiteResult.status) ? _c("Error", { attrs: { site: _vm.currentViewing, siteMap: _vm.siteMap, error: _vm.currentSiteResult.status, errorDetail: _vm.currentSiteResult.statusDetail }, on: { retry: function retry($event) { return _vm.doSearch(_vm.currentViewing); } } }) : _vm._e(), _vm._v(" "), _vm.currentSiteResult.list.length ? _c("div", { ref: "list", staticClass: "gwd-list gwd-scrollbar", style: "overflow-y: " + (_vm.firefox ? "scroll" : "overlay") + ";" }, _vm._l(_vm.sortedList, function (item) { return _c("ProductItem", { key: item.dpId, attrs: { item: item } }); }), 1) : _vm._e()], 1)])]); }; var staticRenderFns = []; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "0bf4480c726f03c36d33": /***/ (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'] = { data: function data() { return { closed: false }; }, mixins: [_commonComponentsMemberCouponMixin2['default']], props: ['dpId'], methods: { close: function close() { this.closed = true; localStorage.setItem('gwd-act-qr-link', Date.now()); } }, mounted: function mounted() { if (localStorage.getItem('gwd-act-qr-link')) { var time = parseInt(localStorage.getItem('gwd-act-qr-link')); if (Date.now() - time < 1000 * 60 * 60 * 24) { this.closed = true; return; } } this.over(); } }; module.exports = exports['default']; /***/ }), /***/ "0c002c79bd4cd64bfc35": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, "\n.f-feature[data-v-209e5606] {\n padding-left: 9px;\n padding-right: 9px;\n border: 1px solid #cccccc;\n background: #ffffff;\n margin-left: 10px;\n}\n", ""]); // exports /***/ }), /***/ "0c60e330597401a93efd": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return _c("label", { staticClass: "gwd-switch", "class": { "gwd-allow-animation": _vm.allowAnimation } }, [_c("input", { directives: [{ name: "model", rawName: "v-model", value: _vm.inputVal, expression: "inputVal" }], attrs: { type: "checkbox" }, domProps: { checked: Array.isArray(_vm.inputVal) ? _vm._i(_vm.inputVal, null) > -1 : _vm.inputVal }, on: { change: function change($event) { var $$a = _vm.inputVal, $$el = $event.target, $$c = $$el.checked ? true : false; if (Array.isArray($$a)) { var $$v = null, $$i = _vm._i($$a, $$v); if ($$el.checked) { $$i < 0 && (_vm.inputVal = $$a.concat([$$v])); } else { $$i > -1 && (_vm.inputVal = $$a.slice(0, $$i).concat($$a.slice($$i + 1))); } } else { _vm.inputVal = $$c; } } } }), _vm._v(" "), _c("span", { staticClass: "gwd-slider" })]); }; var staticRenderFns = []; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "0c74b2f4a157fb675c2a": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_script_lang_js__ = __webpack_require__("438532846047d75ca37f"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "0dac12c39a7042f8ce1c": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CollectionSettingMini_vue_vue_type_template_id_1a72083a_scoped_true__ = __webpack_require__("fa57e0f3eff56c889d5c"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__CollectionSettingMini_vue_vue_type_script_lang_js__ = __webpack_require__("8331155e0d42503bdbc5"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__CollectionSettingMini_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__CollectionSettingMini_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__CollectionSettingMini_vue_vue_type_style_index_0_id_1a72083a_scoped_true_lang_less__ = __webpack_require__("5a880c5f097cde8712aa"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__CollectionSettingMini_vue_vue_type_script_lang_js__["default"], __WEBPACK_IMPORTED_MODULE_0__CollectionSettingMini_vue_vue_type_template_id_1a72083a_scoped_true__["render"], __WEBPACK_IMPORTED_MODULE_0__CollectionSettingMini_vue_vue_type_template_id_1a72083a_scoped_true__["staticRenderFns"], false, null, "1a72083a", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('1a72083a')) { api.createRecord('1a72083a', component.options) } else { api.reload('1a72083a', component.options) } module.hot.accept("./CollectionSettingMini.vue?vue&type=template&id=1a72083a&scoped=true", function () { api.rerender('1a72083a', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/CollectionSettingMini.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "0f10f0b54cd641a49a27": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var request = __webpack_require__("91f250ebeb8d5987491c"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var getPromoInfo = function getPromoInfo(callback) { var other_info = userData.get('other_info'); var class_id = other_info['code-server'] && other_info['code-server'].class_id || '00000000'; var dp_id = other_info.now.dp_id; var title = encodeURIComponent(G.dp.name); var href = encodeURIComponent(location.href); var sbrand = encodeURIComponent(other_info.exact_arr.sbrand); var keyword = encodeURIComponent(other_info.now.coreword); var url = G.server + '/brwext/promo_brand?pg=1&ps=30&order=0&class_id=' + class_id + '&dp_id=' + dp_id + '&title=' + title + '&url=' + href + '&sbrand=' + sbrand + '&keyword=' + keyword; request.get(url).done(function (data) { if (data && data.length !== 0) { callback(data); } }); }; var render = function render(data) { if (data.products.length === 0) { return; }; var html = __webpack_require__("17a16eaf712df4a3b6fa"); /* 1:减 2:返 3:赠9:手机 10:惠 11多买多减 */ var promokey = { '1': '促', '2': '折', '3': '赠', '4': '减', '5': '赠', '6': '返' }; data.products = data.products.slice(0, 4); if (data.products.length < 4) { return; } for (var i = 0; i < data.products.length; i++) { if (promokey[data.products[i].promo_type]) data.products[i].promokeys = promokey[data.products[i].promo_type];else //if (data.products[i].promo_type != 7) 7是特殊优惠 先按促显示 data.products[i].promokeys = '促'; } $('#promo_box').append(template.compile(html)({ data: data.products })); $('#promo_box').css('display', 'block'); cnzz.log('track:mini:promo'); log('track:mini:promo'); $('#promo_box').on('click', 'a', function (e) { cnzz.log('click:mini:promo'); log('click:mini:promo'); if (G.site === 'suning' && $(this).attr('href')) { window.open($(this).attr('href')); e.preventDefault(); } }); }; module.exports.init = function () { var permanent = userData.get('permanent'); if (permanent.setShowPromo === '0' || permanent.setShowPromo === 0) { return; }; if (G.site === '360buy-re') return; getPromoInfo(render); }; /* 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"))) /***/ }), /***/ "0f7a81ce41351a035292": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['site', 'siteMap', 'error', 'errorDetail'], data: function data() { return { verifyLink: 'https://world.taobao.com/wow/tmg-fc/tmw/search_image?spm=a2141.241046-global.d_1_0.1.3acc5adbZx9B6y&similarItemId=650001079385&picSearchUrl=https%3A%2F%2Fimg.alicdn.com%2Fbao%2Fuploaded%2Fi3%2F2081957625%2FO1CN01SdvaIp26CIgmFR0nd_!!0-item_pic.jpg' }; }, methods: { index: function index(site) { switch (site) { case 'jd': return 'https://www.jd.com/'; case 'tb': return 'https://www.taobao.com/'; case '1688': return 'https://www.1688.com/'; } return ''; }, login: function login() { switch (this.site) { case 'jd': window.open('https://passport.jd.com/new/login.aspx?ReturnUrl=https%3A%2F%2Fwww.jd.com%2F'); break; case 'tb': window.open('https://login.taobao.com/member/login.jhtml'); break; case 'pdd': window.open('https://mobile.yangkeduo.com/login.html'); break; } }, retry: function retry() { this.$emit('retry'); } }, mounted: function mounted() { var _this = this; __webpack_require__("9c38beef5ff283e15bd2").met('GwdConfig').then(function (config) { if (config.tbImgVerifyLink) { _this.verifyLink = config.tbImgVerifyLink; } }); } }; module.exports = exports['default']; /***/ }), /***/ "12020911dbadcccd7660": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) {var __WEBPACK_AMD_DEFINE_RESULT__;/* * 从底部版移植过来的底部版的天猫淘宝,原来的chrome_old没有独立的顶部版的天猫淘宝模块 */ !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var $ = __webpack_require__("e081b2491b5c9b12b9da"); var request = __webpack_require__("91f250ebeb8d5987491c"); var specialFilter = __webpack_require__("ce5673fceec6522bf6f5"); var showTaobaoProducts = __webpack_require__("cae84e5667e41452a15d"); return { /** * taobao 比价模块 * 目前仅包括底部版样式 * @author:mllong(mllong0925@gmail.com) * @since:2013-10-22 * @version:1.0.0 */ //初始化,根据数据的类型确定展示什么样式 init: function init(data, style) { if (G.saveTbResData != null) { this.renderTaobaoUI(G.saveTbResData); return; } var code_server = '1'; var code = data['code-server']; var msg = data.exact_arr; var price = data.now.price * 100; if (!price) { price = G.dp.price * 100; } if (!code) { code = {}; code_server = '0'; } var sitearr = ['amazon', '6pm', 'ebay']; if (sitearr.indexOf(G.site) > -1) { price = G.dp.price * 100; } /*日亚 美亚 德亚 在没有品牌的情况下 不请求淘宝客*/ if (G.site == 'amazon' && !msg.brand && data.now.site_id !== '1') return; var url = G.server + '/brwext/tbres?union=' + G.union + '&url=' + encodeURIComponent(msg.url) + '&site=' + msg.site + '&isbn=' + msg.isbn + '&keywords=' + encodeURIComponent(msg.keywords) + '&brand=' + encodeURIComponent(msg.brand) + '&type=' + encodeURIComponent(msg.type) + '&price=' + price + '&class_id=' + msg.class_id + '&name=' + encodeURIComponent(G.dp.name) + '&code_brand_id=' + code.brand_id + '&code_clean_title=' + encodeURIComponent(code.clean_title) + '&code_code=' + code.code + '&code_display_brand=' + encodeURIComponent(code.display_brand) + '&code_brand=' + encodeURIComponent(code.brand) + '&code_class_id=' + encodeURIComponent(code.class_id) + '&code_price=' + encodeURIComponent(code.price) + '&code_spec=' + encodeURIComponent(code.spec) + '&code-server=' + code_server; request.get(url).done(function (mm) { if (G.site == 'taobao' || G.site == 'tmall') { showTaobaoProducts.getUniqPid(mm, function (mm) { G.saveTbResData = mm; // $this.renderTaobaoUI(mm); __webpack_require__("73e5d235bd431b446c03").renderBt(mm); }); } else { showTaobaoProducts.getImgSearch(mm, function (mm) { G.saveTbResData = mm; // $this.renderTaobaoUI(mm); __webpack_require__("73e5d235bd431b446c03").renderBt(mm); }); } }); }, //渲染请求淘宝接口后的界面 renderTaobaoUI: function renderTaobaoUI(mm) { var $this = this; var perPageMaxNumber = G.getFixedShowProductNum(); $this.showBottomView("tmall", mm); $this.showBottomView("taobao", mm); G.setPageArgs(G.extBrand + '-compare-tmall', perPageMaxNumber); G.setPageArgs(G.extBrand + '-compare-taobao', perPageMaxNumber); $this.setBottomViewOffset(); //重新适应宽度 G.autoFixWidth(); if (mm.search.keywords == '' && G.dp.isbn != '') { $('.' + G.extBrand + '-search-input').val(G.dp.isbn); } if (mm.search.keywords != '') { $('.' + G.extBrand + '-search-input').val(mm.search.keywords); } if (G.site === 'vipshop') { $('.' + G.extBrand + '-search-input').val(G.dp.cat_name); } $(window).bind("reDrawTaobaoBanner", function () { var perPageMaxNumber = G.getFixedShowProductNum(); $this.showBottomView("tmall", mm); $this.showBottomView("taobao", mm); G.setPageArgs(G.extBrand + '-compare-tmall', perPageMaxNumber); G.setPageArgs(G.extBrand + '-compare-taobao', perPageMaxNumber); $this.setBottomViewOffset(); }); //淘宝天猫异步加载太慢,有可能还没加载出来,所以再这里再屏蔽一次 if (G.p_fold == 1) { $('.' + G.extBrand + '-close-module').hide(); } }, showBottomView: function showBottomView(subsite, data) { var perPageMaxNumber = G.getFixedShowProductNum(); var site_name = ""; if (subsite == 'tmall') { site_name = '天猫商城'; } else if (subsite == 'taobao') { site_name = '淘宝网'; } if (data.site) { site_name = "同类热卖"; } if (data[subsite] && data[subsite].min_price) { if (data[subsite].product.length > 0) { var store = specialFilter.tb(data[subsite]); if (store instanceof Array) return; if (store.product.length === 0) return; var dp = store.product[0]; var len = parseInt(store.product.length); var pages = len % perPageMaxNumber == 0 ? parseInt(len / perPageMaxNumber) : parseInt(len / perPageMaxNumber) + 1; var li = $('<li>'); li.append($('<span>', { 'class': G.extBrand + '-compare-item', 'href': dp.url, 'target': "_blank" }).append($('<p>', { 'style': "height:10px;display:none;", 'class': G.extBrand + '-iszwf' }).html(' ')).append($('<p>', { 'class': G.extBrand + '-price' }).html("¥" + store.min_price + (store.max_price != store.min_price ? "~" + store.max_price : ""))).append($('<p>', { 'class': G.extBrand + '-store' }).text(site_name)).append($('<p>', { 'style': "height:10px;display:none;", 'class': G.extBrand + '-iszwf' }).html(' '))); var detail = $('<div>', { 'class': G.extBrand + '-compare-item-detail re-' + G.extBrand + '-compare-item-detail ' + G.extBrand + '-compare-item-detail-fixed', 'style': 'display:none;' }); detail.append($('<p>', { 'class': G.extBrand + '-compare-item-detail-title ' + G.extBrand + '-height-auto ' + G.extBrand + '-compare-item-detail-title-fixed' }).append($('<span>', { 'class': G.extBrand + '-compare-item-detail-title-desc' }).text(site_name + ':不同卖家运费不同'))); var itemList = $('<ul>', { 'class': G.extBrand + '-item-list' }); for (var k = 0; k < len; k++) { var item = store.product[k]; itemList.append($('<li>', { 'class': G.extBrand + '-list-item ' + (k % perPageMaxNumber == perPageMaxNumber - 1 || k == len - 1 ? G.extBrand + '-last' : ""), 'style': "display: " + (k >= perPageMaxNumber ? "none" : "block") }).append($('<a>', { 'class': G.extBrand + '-pic', 'href': item.url, 'target': "_blank" }).append($('<img>', { 'src': G.s_server + "/images/dp_default.jpg", 'data-original': item.pic_url, 'title': item.title }))).append($('<a>', { 'class': G.extBrand + '-product-title', 'href': item.url, 'target': "_blank", 'title': item.title }).text(item.title)).append($('<a>', { 'class': G.extBrand + '-price', 'href': item.url, 'target': "_blank" }).html('¥' + item.price))); } var tb_tm_PageView = $('<div>', { 'class': G.extBrand + '-tb-tm-PageView ' + G.extBrand + '-b2c-PageView-fixed' }); tb_tm_PageView.append($('<p>', { 'class': G.extBrand + '-compare-item-detail-title', 'style': 'height:auto;' }).append($('<span>', { 'style': 'float:none;padding-left:10px;', 'class': G.extBrand + '-compare-item-detail-pages' }).append($('<em>', { 'id': 'page-now-' + subsite, 'class': 'page-now' }).text('1')).append('/').append($('<em>', { 'id': 'page-total-' + subsite, 'class': 'page-total' }).text('1')))); detail.append($("<div>", { 'class': G.extBrand + '-compare-prev-page ' + G.extBrand + '-left' }).append($('<div>', { 'class': G.extBrand + '-bg page-arrow' }))).append(itemList).append($("<div>", { 'class': G.extBrand + '-compare-next-page ' + G.extBrand + '-right' }).append($('<div>', { 'class': G.extBrand + '-bg page-arrow' }))).append(tb_tm_PageView); li.append(detail); $('#' + G.extBrand + '-compare-' + subsite).html("").append(li); if (pages == 1) { li.find('.' + G.extBrand + '-compare-prev-page').hide(); li.find('.' + G.extBrand + '-compare-next-page').hide(); li.find('.' + G.extBrand + '-b2c-PageView-fixed').hide(); li.attr("pages", 1); li.attr("len", len); var bannerWidth = len * 200; li.children('div.' + G.extBrand + '-compare-item-detail-fixed').css('width', bannerWidth + 2); } else { //contains border li.children('div.' + G.extBrand + '-compare-item-detail-fixed').css('width', G.width - 2); } $('#page-total-' + subsite).text(pages); } $('#' + G.extBrand + '-compare-' + subsite).css("display", "block"); } //添加 noreferrer $('#' + G.extBrand + '-compare-tmall,#' + G.extBrand + '-compare-taobao').each(function () { $(this).find('a.' + G.extBrand + '-compare-item,a.' + G.extBrand + '-pic,a.' + G.extBrand + '-product-title,a.' + G.extBrand + '-price').each(function () { $(this).attr('rel', 'noreferrer').attr('href', $(this).attr('href') + G.ut); }); }); }, setBottomViewOffset: function setBottomViewOffset() { $('#' + G.extBrand + '-compare-tmall li,#' + G.extBrand + '-compare-taobao li').each(function () { var menu_li = $(this); if (menu_li.attr("pages") == '1') { //尽量根据菜单的位置居中,实在不能居中的,就靠右 var menu_li_left = menu_li.offset().left; var menu_li_width = menu_li.width(); var bannerWidth = parseInt(menu_li.attr("len")) * 200; var target_left = menu_li_left - (bannerWidth / 2 - menu_li_width / 2); if (target_left < 0) { target_left = 0; } var remainWidth = G.width - target_left; if (G.IE6) { target_left = menu_li_width / 2 - bannerWidth / 2; if (target_left + menu_li_left < 0) { target_left = -menu_li_left; } menu_li.children('div.' + G.extBrand + '-compare-item-detail-fixed').css('position', 'absolute').css('left', target_left); menu_li.find('.' + G.extBrand + '-compare-item-detail-title-fixed').css('left', 0); } else { if (bannerWidth < remainWidth) { menu_li.children('div.' + G.extBrand + '-compare-item-detail-fixed').css('left', target_left); menu_li.find('.' + G.extBrand + '-compare-item-detail-title-fixed').css('left', target_left); } else { menu_li.children('div.' + G.extBrand + '-compare-item-detail-fixed').css('left', G.width - bannerWidth); menu_li.find('.' + G.extBrand + '-compare-item-detail-title-fixed').css('left', G.width - bannerWidth); } } } else { //非ie版本的压根不需要调整,这里的ie6版本需要进行调整。 if (G.IE6) { var menu_li_left = menu_li.offset().left; var target_left = 0 - menu_li_left; menu_li.children('div.' + G.extBrand + '-compare-item-detail-fixed').css('position', 'absolute').css('left', target_left); menu_li.find('.' + G.extBrand + '-compare-item-detail-title-fixed').css('left', 0); } } }); } }; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "120cc7baa53b9ecc5802": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); var countryConfig = __webpack_require__("9bf6d059e9a265559f0c"); exports['default'] = { props: ['data'], computed: { unit: function unit() { var r = countryConfig.getSymbol(this.data[0].currency); return r[1] + ('(' + r[0] + ')'); } } }; module.exports = exports['default']; /***/ }), /***/ "12938de4708bdcf3c014": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return _c("div", { staticClass: "minibar-tab", "class": { bjg: _vm.isBjg, "gwd-fake-tr": _vm.position.top }, staticStyle: { flex: "1", display: "inline-block" }, style: _vm.style, attrs: { id: "gwd_mini_compare" }, on: { mouseover: _vm.mouseover, mouseleave: _vm.mouseleave, "~hover": function hover($event) { return _vm.logHover.apply(null, arguments); } } }, [!_vm.position.top ? _c("div", { staticClass: "minibar-btn-box" }, [_c("em", { staticClass: "setting-bg mini-compare-icon" }), _vm._v(" "), _vm.data.length && _vm.data[0].view_price < _vm.pri ? _c("span", { staticStyle: { float: "none" } }, [_vm._v(_vm._s(_vm.transText("更低价")) + ":¥" + _vm._s(_vm.data[0].view_price))]) : _vm.data.length === 0 ? _c("span", { staticStyle: { float: "none" } }, [_vm._v(_vm._s(_vm.transText("暂无结果")))]) : _c("span", { staticStyle: { float: "none" } }, [_vm._v(_vm._s(_vm.transText("其他")) + _vm._s(_vm.data.length) + _vm._s(_vm.transText("家报价")))])]) : _vm._e(), _vm._v(" "), _vm.position.top ? _c("div") : _vm._e(), _vm._v(" "), _c("div", { staticClass: "minibar-detail", attrs: { id: "gwd_mini_compare_detail" } }, [_c("ul", _vm._l(_vm.data, function (item) { return _c("li", { key: item.nid }, [_c("a", { attrs: { href: item.url, target: "_blank" }, on: { click: function click($event) { return _vm.logLink(); } } }, [_c("img", { attrs: { src: "https://cdn.gwdang.com/images/favicon/" + item.site + ".png" } }), _vm._v(" "), _c("span", { staticClass: "m-item-sitename" }, [_vm._v(_vm._s(item.shopName))]), _vm._v(" "), _c("span", { staticClass: "m-item-price prifontf" }, [_vm._v("¥" + _vm._s(item.view_price))])])]); }), 0)])]); }; var staticRenderFns = []; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "12b7b9e20848299010bc": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return _c("div", { staticClass: "gwd-row gwd-align" }, [_c("a", { staticClass: "gwd-row gwd-align", attrs: { href: _vm.addLink("https://tb.gwdang.com/extension/qrpage?dp_id=" + _vm.dpId + "&tag=" + _vm.tag + "&limit=" + _vm.coupon.limit + "&discount=" + _vm.coupon.discount), title: "点击领取", target: "_blank" } }, [_c("span", { staticClass: "gwd-content", staticStyle: { flex: "1" } }, [_vm._v("\n 当前商品可领" + _vm._s(_vm.couponTypeText) + " "), _vm.coupon ? [_vm._v("满" + _vm._s(_vm.coupon.limit) + "减" + _vm._s(_vm.coupon.discount))] : _vm._e()], 2), _vm._v(" "), _c("span", { staticClass: "gwd-take" }, [_vm._v("点击领取")])]), _vm._v(" "), _c("img", { attrs: { src: __webpack_require__("7dd623a3756f546cc3f6"), alt: "" } })]); }; var staticRenderFns = []; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "1308b397f8f511c97254": /***/ (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__("a3b88c5c394763515501"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("bd80368a", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./PriceInput.vue?vue&type=style&index=0&id=3ed325cb&scoped=true&lang=less", function() { var newContent = require("!!../../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./PriceInput.vue?vue&type=style&index=0&id=3ed325cb&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "13f5eda5b48484e8d6db": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, ".gwd-jd-self[data-v-38276ded] {\n display: inline-block;\n width: 30px;\n height: 16px;\n line-height: 16px;\n text-align: center;\n border-radius: 2px;\n background: #ff4449;\n color: #fff;\n font-size: 12px;\n margin-right: 4px;\n}\n.gwd-img-same-item[data-v-38276ded] {\n transition: all 0.3s;\n width: 220px;\n padding: 10px;\n box-sizing: border-box;\n background: #ffffff;\n border-radius: 8px;\n margin-left: 20px;\n margin-bottom: 20px;\n}\n.gwd-img-same-item img[data-v-38276ded] {\n width: 200px;\n height: 200px;\n border-radius: 8px;\n}\n.gwd-img-same-item .gwd-sales[data-v-38276ded] {\n color: #999;\n font-size: 12px;\n}\n.gwd-img-same-item .gwd-title[data-v-38276ded] {\n font-size: 14px;\n color: #3c4c54;\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n word-break: break-all;\n height: 40px;\n line-height: 20px;\n}\n.gwd-img-same-item .gwd-shop-name[data-v-38276ded] {\n color: #999;\n font-size: 12px;\n white-space: nowrap;\n}\n.gwd-img-same-item .gwd-shop-name span[data-v-38276ded] {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.gwd-img-same-item .gwd-item-promos[data-v-38276ded] {\n margin-top: 10px;\n margin-bottom: 12px;\n height: 16px;\n overflow: hidden;\n}\n.gwd-img-same-item .gwd-item-promos span[data-v-38276ded] {\n color: #ff4449;\n font-size: 12px;\n display: inline-block;\n margin-right: 4px;\n border: 1px solid #ff4449;\n padding-left: 4px;\n padding-right: 4px;\n height: 16px;\n box-sizing: border-box;\n line-height: 14px;\n}\n.gwd-img-same-item .gwd-favicon[data-v-38276ded] {\n width: 13px;\n height: 13px;\n border-radius: 100%;\n margin-right: 4px;\n}\n.gwd-img-same-item[data-v-38276ded]:hover {\n box-shadow: 0px 8px 14px 0px rgba(0, 0, 0, 0.06);\n}\n", ""]); // exports /***/ }), /***/ "14b79612eff26f2e8cbc": /***/ (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__("c93f77716b87968cd991"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("163e9396", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./TopMainBar.vue?vue&type=style&index=0&id=12b5b164&lang=less", function() { var newContent = require("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./TopMainBar.vue?vue&type=style&index=0&id=12b5b164&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "14bb9c48784de37e292a": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return _c("div", { staticClass: "gwd-stamp-bg gwd-row gwd-align" }, [_c("div", { staticClass: "gwd-text" }, [_vm._v("再送"), _c("br"), _vm._v(_vm._s(_vm.value) + "元红包")])]); }; var staticRenderFns = []; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "15263ba00782535c8f1d": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, ".gwd-quest[data-v-39a606fa] {\n display: inline-block;\n width: 24px;\n height: 24px;\n position: relative;\n background: url(" + __webpack_require__("3a50d0be2c0f32e863f6") + ");\n background-size: contain;\n cursor: pointer;\n box-sizing: border-box;\n white-space: normal;\n}\n.gwd-hint-text[data-v-39a606fa] {\n display: none;\n position: absolute;\n left: 50%;\n margin-left: -97px;\n bottom: 31px;\n width: 194px;\n height: 77px;\n text-align: left;\n box-sizing: border-box !important;\n border-radius: 2px;\n z-index: 9;\n line-height: 16px;\n color: white;\n padding: 6px 9px;\n background: rgba(0, 0, 0, 0.65);\n}\n.gwd-hint-text .gwd-hint-2x[data-v-39a606fa] {\n font-size: 22px;\n width: 356px;\n transform: scale(0.5);\n transform-origin: top left;\n line-height: 32px;\n display: inline-block;\n}\n.gwd-hint-text[data-v-39a606fa]::after {\n content: '';\n position: absolute;\n top: 100%;\n left: 55%;\n margin-left: -84px;\n width: 168px;\n height: 7px;\n background: url(" + __webpack_require__("7d75626e356ae3afa6ac") + ");\n background-size: contain;\n}\n.gwd-quest:hover .gwd-hint-text[data-v-39a606fa] {\n display: block;\n}\n", ""]); // exports /***/ }), /***/ "15588eb95b4fb9c0fef6": /***/ (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"]; /***/ }), /***/ "15f9b07a5eb543be381a": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Stamp_vue_vue_type_style_index_0_id_a70db998_scoped_true_lang_less__ = __webpack_require__("c6f9e5cc4428b8077526"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Stamp_vue_vue_type_style_index_0_id_a70db998_scoped_true_lang_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Stamp_vue_vue_type_style_index_0_id_a70db998_scoped_true_lang_less__); /* unused harmony reexport namespace */ /***/ }), /***/ "16a5f67f011344d796e6": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, regeneratorRuntime, G, Vue) { function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _componentsAliMobilePriceNotifierVue = __webpack_require__("f00f12f28f8282e72a49"); var _componentsAliMobilePriceNotifierVue2 = _interopRequireDefault(_componentsAliMobilePriceNotifierVue); var _commonLog = __webpack_require__("03dd60018ce5ed1344a1"); var _commonLog2 = _interopRequireDefault(_commonLog); var appNode = undefined, observer = undefined; var minAllowedWidth = 280; var getMiniPriceWidth = function getMiniPriceWidth(originPriceSelector, extraPriceSelector) { var originPriceEl = $(originPriceSelector)[0]; var extraPriceEl = $(extraPriceSelector)[0]; var totalWidth = 0; if (originPriceEl) { totalWidth += originPriceEl.offsetWidth; } if (extraPriceEl) { totalWidth += extraPriceEl.offsetWidth; } return totalWidth; }; var hide = false; module.exports = { init: function init() { var nowPrice, pagePrice, selectorConfig, originPriceEl, extraPriceEl, totalWidth, needHideWhenScrollDown, div, priceRootEl, normalText, hintText, app, lastRecover, config, _totalWidth2; return regeneratorRuntime.async(function init$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: hide = false; if (G.aliSite) { context$1$0.next = 3; break; } return context$1$0.abrupt('return'); case 3: if (observer) { observer.disconnect(); } if (appNode) { appNode.remove(); } context$1$0.next = 7; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('NowPrice')); case 7: nowPrice = context$1$0.sent; pagePrice = G.dp.onPagePrice || G.dp.price; if (G.dp.mobilePrice) { nowPrice = G.dp.mobilePrice; } context$1$0.next = 12; return regeneratorRuntime.awrap(__webpack_require__("629a8cb1e8f3321eec0b").get()); case 12: selectorConfig = context$1$0.sent; originPriceEl = $(selectorConfig.priceOrigin)[0]; extraPriceEl = $(selectorConfig.priceExtra)[0]; totalWidth = 0; if (originPriceEl) { totalWidth += originPriceEl.offsetWidth; } if (extraPriceEl) { totalWidth += extraPriceEl.offsetWidth; } if (!(totalWidth >= 265)) { context$1$0.next = 20; break; } return context$1$0.abrupt('return'); case 20: needHideWhenScrollDown = false; if (totalWidth >= 230 && false) { // change this when ui version older than 0.2.49 needHideWhenScrollDown = true; } div = document.createElement('div'); div.id = 'gwd_mobile_price_notifier'; priceRootEl = $(selectorConfig.priceRoot)[0]; if (!window.tbOwnQr) { context$1$0.next = 27; break; } return context$1$0.abrupt('return'); case 27: if (!(priceRootEl && (priceRootEl.innerHTML.includes('前往手淘查看更多优惠') || priceRootEl.innerHTML.includes('前往手淘查看大促优惠') || priceRootEl.innerHTML.includes('加入购物车查看更多优惠')))) { context$1$0.next = 30; break; } window.tbOwnQr = true; return context$1$0.abrupt('return'); case 30: normalText = '前往手淘查看更多优惠'; hintText = nowPrice <= pagePrice * 0.95 ? '手淘购买可能更优惠' : normalText; if (__webpack_require__("3e983ecbff4e1a29654c").checkButie(document.title)) { hintText = '手淘APP扫码领取补贴'; } (0, _commonLog2['default'])('mobilePriceNotifier:' + (nowPrice <= pagePrice * 0.95 ? '手淘购买可能更优惠' : normalText)); app = new Vue({ el: div, render: function render(h) { return h(_componentsAliMobilePriceNotifierVue2['default'], { props: { hintText: hintText, tag: 13, hideInMini: needHideWhenScrollDown } }); } }); G.priceNotifierApp = app; appNode = app.$el; lastRecover = Date.now(); // 创建一个观察器实例 observer = new MutationObserver(function (mutationsList, observer) { // 如果priceRootEl被移除或者重新添加进DOM中,重新添加div var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = mutationsList[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var mutation = _step.value; if (mutation.type === 'childList') { var _priceRootEl = $(selectorConfig.priceRoot)[0]; if (!_priceRootEl) { _priceRootEl = $(selectorConfig.priceRootMini)[0]; } if (_priceRootEl && !_priceRootEl.contains(appNode)) { // priceRootEl.appendChild(div); var now = Date.now(); if (now - lastRecover < 500) { __webpack_require__("316f9c352c6202560d16").warn('aliPriceNotifier: recover too fast'); return; } lastRecover = now; if ($(selectorConfig.priceWrap).length) { $(selectorConfig.priceWrap).append(appNode); } else if ($(selectorConfig.priceTextMini).length) { // 新版滚到下面,带图片 $(selectorConfig.priceRootMini).append(appNode); } else { var _totalWidth = getMiniPriceWidth(selectorConfig.priceOriginMini, selectorConfig.priceExtraMini); if (_totalWidth <= minAllowedWidth && !hide) { $(selectorConfig.priceOriginMini).after(appNode); hide = false; } else { hide = true; } } } } } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator['return']) { _iterator['return'](); } } finally { if (_didIteratorError) { throw _iteratorError; } } } }); // 配置观察器:观察子节点和后代的变化 config = { childList: true, subtree: true }; if ($(selectorConfig.panel).length) { // 传入目标节点,以及观察选项 observer.observe($(selectorConfig.panel)[0], config); if ($(selectorConfig.priceWrap).length) { $(selectorConfig.priceWrap).append(appNode); } else { _totalWidth2 = getMiniPriceWidth(selectorConfig.priceOriginMini, selectorConfig.priceExtraMini); if (!$(selectorConfig.priceOriginMini).length) { console.error('aliPriceNotifier: mini price not found'); } if (_totalWidth2 <= minAllowedWidth) { $(selectorConfig.priceOriginMini).after(appNode); } else { console.warn('aliPriceNotifier: mini price width is too large', _totalWidth2); } } } else { console.warn('aliPriceNotifier: pannel not found'); $(selectorConfig.priceWrap).append(appNode); } // 稍后,你可以停止观察 // observer.disconnect(); case 41: case 'end': return context$1$0.stop(); } }, null, this); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("6a0e4ebb57bf6aac1f2d"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("b2848b041c3d11faa242")["default"])) /***/ }), /***/ "16acf4fab2b52f58a82a": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbButieQR_vue_vue_type_script_lang_js__ = __webpack_require__("0bf4480c726f03c36d33"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbButieQR_vue_vue_type_script_lang_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbButieQR_vue_vue_type_script_lang_js__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbButieQR_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbButieQR_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbButieQR_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__("f0153521768f4d44e305"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__MemberCouponBottomBjg_vue_vue_type_script_lang_js__ = __webpack_require__("6ec9c994a621be8c18ca"); /* 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__("ad702ac4c32cf7d14a45"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_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__["render"], __WEBPACK_IMPORTED_MODULE_0__MemberCouponBottomBjg_vue_vue_type_template_id_44c0e93e_scoped_true__["staticRenderFns"], false, null, "44c0e93e", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@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); /***/ }), /***/ "194374659351ecad7f35": /***/ (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__("981bfa64787691c6ac10"); if(typeof content === 'string') content = [[module.i, content, '']]; // add the styles to the DOM var update = __webpack_require__("10fdb983c061c1343439")(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/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./AliMobilePriceNotifier.vue?vue&type=style&index=1&id=1b4bff6e&lang=css", function() { var newContent = require("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./AliMobilePriceNotifier.vue?vue&type=style&index=1&id=1b4bff6e&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(); }); } /***/ }), /***/ "1a0065c5463b7de9f11b": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_PriceInput_vue_vue_type_template_id_3ed325cb_scoped_true__ = __webpack_require__("377a18f798265462b80f"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_PriceInput_vue_vue_type_template_id_3ed325cb_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_PriceInput_vue_vue_type_template_id_3ed325cb_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_PriceInput_vue_vue_type_template_id_3ed325cb_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_PriceInput_vue_vue_type_template_id_3ed325cb_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_PriceInput_vue_vue_type_template_id_3ed325cb_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_PriceInput_vue_vue_type_template_id_3ed325cb_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "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__("afc6c70075934f0b88fb"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__JdRankList_vue_vue_type_script_lang_js__ = __webpack_require__("5cd0325b5f8425a1a3d8"); /* 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__("de1737087f89b92941a7"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_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__["render"], __WEBPACK_IMPORTED_MODULE_0__JdRankList_vue_vue_type_template_id_a48d90ba_scoped_true__["staticRenderFns"], false, null, "a48d90ba", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@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); /***/ }), /***/ "1ac2ed95b12009d81ec2": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, ".gwd-bt-qr[data-v-5d6078e1] {\n position: fixed;\n width: 152px;\n height: 176px;\n background: #FF6200;\n box-shadow: 0px 6px 12px 0px rgba(50, 85, 104, 0.1);\n border-radius: 12px 12px 12px 12px;\n border: 1px solid #FF9851;\n right: 46px;\n top: 20%;\n}\n", ""]); // exports /***/ }), /***/ "1c3640a0c2d82fc079cb": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, "#gwd_mini_compare[data-v-caa5e08c] {\n width: 155px;\n cursor: default;\n text-align: center;\n font-family: 'Microsoft YaHei', Arial, SimSun !important;\n}\n#gwd_mini_compare[data-v-caa5e08c]:hover {\n background-color: #edf1f2;\n}\n#gwd_mini_compare.gwd-fake-tr[data-v-caa5e08c]:hover {\n background-color: transparent;\n}\n#gwd_mini_compare.bjg[data-v-caa5e08c] {\n border-right: 1px solid #e6e9eb;\n}\n.setting-bg[data-v-caa5e08c] {\n background: url('https://cdn.gwdang.com/images/extensions/xbt/new_wishlist_pg5_2.png') no-repeat;\n width: 18px;\n height: 18px;\n vertical-align: middle;\n float: left;\n margin-right: 8px;\n margin-top: 0px;\n}\n.mini-compare-icon[data-v-caa5e08c] {\n background-position: -93px -134px;\n}\n.minibar-btn-box[data-v-caa5e08c] {\n display: inline-flex;\n align-items: center;\n margin: 0 auto;\n float: none;\n height: 100%;\n}\n.minibar-btn-box *[data-v-caa5e08c] {\n float: left;\n}\n.minibar-btn-box span[data-v-caa5e08c] {\n color: #404547;\n font-size: 13px;\n}\n.minibar-btn-box span em[data-v-caa5e08c] {\n font-style: normal;\n line-height: 36px;\n}\n.minibar-btn-box span .price-em[data-v-caa5e08c] {\n margin-left: 2px;\n line-height: 37px;\n}\n#gwd_mini_compare_detail[data-v-caa5e08c] {\n display: none;\n}\n#gwd_mini_compare:hover #gwd_mini_compare_detail[data-v-caa5e08c] {\n display: block;\n}\n", ""]); // exports /***/ }), /***/ "1c640a99db9f6f8a16c2": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var b2cCompare = __webpack_require__("c912948d535762b7172f"); var tbCompare2 = __webpack_require__("a8d04aabebd76e8bb3f7"); var amazonGlobal = __webpack_require__("b222cbd907f0b4aea97f"); var calWidth = __webpack_require__("54be372a53153922dc13"); var utils = __webpack_require__("d54879e983a83d07f093"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var runDp = {}; var moduleControl = function moduleControl(id) { log('track:' + id); switch (id) { case 'b2c_compare': b2cCompare.renderTopDetail(); break; case 'tb_compare': tbCompare2.renderTopDetail2('taobao'); break; case 'tm_compare': tbCompare2.renderTopDetail2('tmall'); break; case 'amazon_compare': amazonGlobal.renderTopDetail('tmall'); break; } }; var checkImage = function checkImage(dom, src) { var image = new Image(); image.onload = function () { $(dom).attr('src', src); }; image.onerror = function () { $(dom).attr('src', G.noImg); }; image.src = src; }; var turnPage = function turnPage(type, dom, id) { var widthObj = calWidth.init(); var list = dom.find('.all-products li'); var totalP = Number(dom.find('.page-num').text()); var curentP = Number(dom.find('.current-page').text()); var sNum = widthObj.b2cShowListNum; if (id.indexOf('b2c') === -1) { sNum = widthObj.showListNum; } list.hide(); if (type === 1) { if (curentP === totalP) curentP = 0; module.exports.loadImg(sNum * curentP, sNum * (curentP + 1), dom.find('.all-products li img')); for (var i = sNum * curentP; i < sNum * (curentP + 1); i++) { list.eq(i).show(); } curentP++; } else { if (curentP === 1) curentP = totalP + 1; module.exports.loadImg(sNum * (curentP - 2), sNum * (curentP - 1), dom.find('.all-products li img')); for (var i = sNum * (curentP - 2); i < sNum * (curentP - 1); i++) { list.eq(i).show(); } curentP--; } dom.find('.current-page').text(curentP); }; module.exports.loadImg = function (start, end, dom) { for (var i = start; i < end; i++) { var itemimg = $(dom).eq(i)[0]; if (!itemimg) return; var src = itemimg.getAttribute('data-original'); var defaultsrc = itemimg.src; if (src !== defaultsrc) checkImage(itemimg, src); } }; var autoFixWidth = function autoFixWidth() { var reset = arguments.length <= 0 || arguments[0] === undefined ? true : arguments[0]; var barW = $(window).width(); if (reset) { $('.gwd-hidden').removeClass('gwd-hidden'); } var feedW = $('#gwdang-feed-close').outerWidth(); var history = $('#gwd_history').outerWidth(); var searchW = $('.search-mod').outerWidth(); var lowW = $('#gwd_lowpri').outerWidth(); var leftW = $('.gwd-topbar-left').outerWidth(); var logoW = $('.gwd-topbar-logo').outerWidth(); var promoW = $('#promo_quan_btn').outerWidth(); var adWidth = $('#gwdang-banner-ad').outerWidth(); var adWidth2 = $('#gwdang-banner-ad2').outerWidth(); var shareBtn = $('.shareExt').outerWidth(); var suggestW = $('.gwdang-suggest').outerWidth(); //let freeW = barW - (feedW + history + searchW + lowW + leftW + logoW + adWidth + adWidth2 + shareBtn); //if (freeW < -1000) return; var freeW = $('#gwd-space').outerWidth(); if ($('#gwd-space').outerWidth() > 10) { return; } var list = ['.shareExt', '.gwdang-suggest', '.search-mod', '#gwd_history', '#gwdang-favor']; if (freeW < 5) { for (var i = 0; i < list.length; i++) { var toCheck = list[i]; if (!$(toCheck)[0]) continue; if (!$(toCheck).hasClass('gwd-hidden')) { $(toCheck).addClass('gwd-hidden'); setTimeout(function () { autoFixWidth(false); }, 0); return; } } } if (freeW < 50) { $('.shareExt').addClass('gwd-hidden'); freeW += searchW; } if (freeW < 50) { $('.gwdang-suggest').addClass('gwd-hidden'); freeW += searchW; } if (freeW < 50) { $('.search-mod').addClass('gwd-hidden'); freeW += searchW; } if (freeW < 50) { $('#gwd_history').addClass('gwd-hidden'); freeW += history; } if (freeW < 50) { $('#gwdang-banner-ad2').addClass('gwd-hidden'); freeW += adWidth2; } if (freeW < 50) { $('#gwd_lowpri').addClass('gwd-hidden'); $('.gwd-topbar-right').css('min-width', 'auto'); freeW += lowW; } if (freeW < 50) { $('#promo_quan_btn').addClass('gwd-hidden'); freeW += promoW; } if ($('.gwd-topbar-right').outerWidth() === 400) { $('.gwd-topbar-right').css('min-width', 'auto'); } }; module.exports.autoFixWidth = autoFixWidth; module.exports.clearRunDp = function () { runDp = {}; }; module.exports.listenBar = function (style) { runDp = {}; var renderSetting = undefined; if (style === 'top') { $(G.dval).on('mouseenter', '.gwdang-tab', function () { var id = $(this).attr('id'); if (!runDp[id] && id !== 'gwdang-trend') { runDp[id] = true; moduleControl(id); } else { //$(this).find('.top-bar-detail').show() $(document).trigger('renderAgain'); } $(this).addClass('tab-hover'); }); $(G.dval).on('mouseleave', '.gwdang-tab', function () { var id = $(this).attr('id'); // 价格走势的展开框因为有特殊情况, 所以不在这里隐藏, 单独添加事件监控 if (id === 'gwdang-trend') return false; //$('.top-bar-detail').hide() $(this).removeClass('tab-hover'); }); $(G.dval).on('click', '.turn-page a', function () { var id = $(this).attr('id'); var dom = $(this).parent().parent(); if (id.match(/(?:b2c|taobao|tmall|fuzzy)-prev-page/)) { turnPage(-1, dom, id); } else if (id.match(/(?:b2c|taobao|tmall|fuzzy)-next-page/)) { turnPage(1, dom, id); } }); $('.gwd_close').on('click', function () { $('#gwdang_main').hide(); $('#gwdang-mini').show(); utils.setLocal('fold', '1'); utils.settings('set_p_fold', 'p_fold', '1'); $('body').css('padding-top', '0px').removeClass('gwd_unfold'); }); $('#gwd_fold_pointer').on('click', function () { $('#gwdang_main').show(); $('#gwdang-mini').hide(); utils.setLocal('fold', '0'); utils.settings('set_p_fold', 'p_fold', '0'); $('body').css('padding-top', '36px').addClass('gwd_unfold'); autoFixWidth(); }); } else { $('#bjd_bottom_detail').on('mouseenter', '.btm-tab', function () { $(this).find('.gwd-btn-detail').show(); }); $('#bjd_bottom_detail').on('mouseleave', '.btm-tab', function () { $(this).find('.gwd-btn-detail').hide(); }); } var resizeT = undefined; $(window).resize(function () { clearTimeout(resizeT); resizeT = setTimeout(function () { autoFixWidth(); }, 500); }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "1f2fc6d8a8045863aace": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { if ("ActiveXObject" in window) { G.browser = { engine: "trident", agent: "msie", ver: window.XMLHttpRequest ? document.querySelector ? document.addEventListener ? window.atob ? window.execScript ? 10 : 11 : 9 : 8 : 7 : 6 }; } // G.browser.version = G.browser.ver; // if (G.browser.agent === 'msie') // G.browser.msie = true; // G.IE6 = G.browser.agent == "msie" && G.browser.ver === 6; // G.IE7 = G.browser.agent == "msie" && G.browser.ver === 7; // G.IE8 = G.browser.agent == "msie" && G.browser.ver === 8; // G.IE9 = G.browser.agent == "msie" && G.browser.ver === 9; // G.IE10 = G.browser.agent == "msie" && G.browser.ver === 10; // G.IE11 = G.browser.agent == "msie" && G.browser.ver === 11; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "1f4da8a1c70a441549a4": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipViewBar_vue_vue_type_script_lang_js__ = __webpack_require__("ec46c5995643eec7aadc"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipViewBar_vue_vue_type_script_lang_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipViewBar_vue_vue_type_script_lang_js__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipViewBar_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipViewBar_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipViewBar_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "2082021d74aa03f4ed69": /***/ (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__("5ededc36e367d9d07351"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("7159f9b7", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./EpicTrend.vue?vue&type=style&index=0&id=bc2362ee&scoped=true&lang=less", function() { var newContent = require("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./EpicTrend.vue?vue&type=style&index=0&id=bc2362ee&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "20b1aff0e24730e2fdc0": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Switch_vue_vue_type_style_index_0_id_222e987e_scoped_true_lang_less__ = __webpack_require__("03e267a1b1b1361ab9ca"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Switch_vue_vue_type_style_index_0_id_222e987e_scoped_true_lang_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Switch_vue_vue_type_style_index_0_id_222e987e_scoped_true_lang_less__); /* unused harmony reexport namespace */ /***/ }), /***/ "21183281c2320c4dea97": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TopMainBar_vue_vue_type_template_id_12b5b164__ = __webpack_require__("8463d75a48f2a06d30df"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__TopMainBar_vue_vue_type_script_lang_js__ = __webpack_require__("69aae4b8ea58b9418187"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__TopMainBar_vue_vue_type_script_lang_js__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__TopMainBar_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__TopMainBar_vue_vue_type_style_index_0_id_12b5b164_lang_less__ = __webpack_require__("e10d60a7f5fd6bbef3a9"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__TopMainBar_vue_vue_type_script_lang_js__["default"], __WEBPACK_IMPORTED_MODULE_0__TopMainBar_vue_vue_type_template_id_12b5b164__["render"], __WEBPACK_IMPORTED_MODULE_0__TopMainBar_vue_vue_type_template_id_12b5b164__["staticRenderFns"], false, null, null, null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('12b5b164')) { api.createRecord('12b5b164', component.options) } else { api.reload('12b5b164', component.options) } module.hot.accept("./TopMainBar.vue?vue&type=template&id=12b5b164", function () { api.rerender('12b5b164', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/TopMainBar.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "21a23fb5ce47a7748fec": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, Vue) { function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _componentsJdSearchEnhance = __webpack_require__("7859427bcc5abd1573eb"); var _componentsJdSearchEnhance2 = _interopRequireDefault(_componentsJdSearchEnhance); module.exports = { init: function init() { // let list = $('ul.gl-warp li.gl-item').toArray().map(item => item.dataset.sku) // require('common/request').post(`${G.server}/extension/ProductFilter?is_self=1&has_coupon=1`, { // dp_ids: list.map(x => `${x}-3`).join(',') // }, true).then(r => { // console.log(r) // }) // let win = window.open() // win.document.write('test data') // list.join(',') setInterval(function () { var w1 = parseInt($('.f-line').css('width')); var wStore = parseInt($('.f-store').css('width')); var wFeature = parseInt($('.f-feature').css('width')); var w = w1 - wStore - wFeature; if (!$('#gwd-filter').length && w > 200) { $('.f-line:eq(1) #J_feature').after('\n <div class="f-feature" id="gwd-filter"></div>\n '); new Vue({ el: '#gwd-filter', render: function render(h) { return h(_componentsJdSearchEnhance2['default']); } }); } }, 2000); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("b2848b041c3d11faa242")["default"])) /***/ }), /***/ "2641a8513b2d543f8ce5": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // 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 /***/ }), /***/ "264ae7798a4614311102": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, "\na[data-v-9f16b84a] {\n text-decoration: none;\n}\n", ""]); // exports /***/ }), /***/ "26685b918a033d7f9a97": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__AmazonSameLinks_vue_vue_type_template_id_e09aa000_scoped_true__ = __webpack_require__("bd4d4071c616b55e5971"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AmazonSameLinks_vue_vue_type_script_lang_js__ = __webpack_require__("7e85b3fd016f5a9fdafc"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__AmazonSameLinks_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__AmazonSameLinks_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__AmazonSameLinks_vue_vue_type_style_index_0_id_e09aa000_scoped_true_lang_less__ = __webpack_require__("0080ecb3f259e8da1a80"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__AmazonSameLinks_vue_vue_type_script_lang_js__["default"], __WEBPACK_IMPORTED_MODULE_0__AmazonSameLinks_vue_vue_type_template_id_e09aa000_scoped_true__["render"], __WEBPACK_IMPORTED_MODULE_0__AmazonSameLinks_vue_vue_type_template_id_e09aa000_scoped_true__["staticRenderFns"], false, null, "e09aa000", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('e09aa000')) { api.createRecord('e09aa000', component.options) } else { api.reload('e09aa000', component.options) } module.hot.accept("./AmazonSameLinks.vue?vue&type=template&id=e09aa000&scoped=true", function () { api.rerender('e09aa000', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/AmazonSameLinks.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "26f1ae8e37c15f64817a": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TbQrBtContent_vue_vue_type_template_id_c5e8106e_scoped_true__ = __webpack_require__("76bee2cfe6ba244b6403"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__TbQrBtContent_vue_vue_type_script_lang_js__ = __webpack_require__("311dbd035f4b7911932e"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__TbQrBtContent_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__TbQrBtContent_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__TbQrBtContent_vue_vue_type_style_index_0_id_c5e8106e_scoped_true_lang_css__ = __webpack_require__("ad9e2e57a7ab7b1edffe"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__TbQrBtContent_vue_vue_type_script_lang_js__["default"], __WEBPACK_IMPORTED_MODULE_0__TbQrBtContent_vue_vue_type_template_id_c5e8106e_scoped_true__["render"], __WEBPACK_IMPORTED_MODULE_0__TbQrBtContent_vue_vue_type_template_id_c5e8106e_scoped_true__["staticRenderFns"], false, null, "c5e8106e", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('c5e8106e')) { api.createRecord('c5e8106e', component.options) } else { api.reload('c5e8106e', component.options) } module.hot.accept("./TbQrBtContent.vue?vue&type=template&id=c5e8106e&scoped=true", function () { api.rerender('c5e8106e', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/TbQrBtContent.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "276eb2c15e06ca8092be": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_JdSearchEnhance_vue_vue_type_template_id_209e5606_scoped_true__ = __webpack_require__("f098297cd5700292c99b"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_JdSearchEnhance_vue_vue_type_template_id_209e5606_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_JdSearchEnhance_vue_vue_type_template_id_209e5606_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_JdSearchEnhance_vue_vue_type_template_id_209e5606_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_JdSearchEnhance_vue_vue_type_template_id_209e5606_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_JdSearchEnhance_vue_vue_type_template_id_209e5606_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_JdSearchEnhance_vue_vue_type_template_id_209e5606_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "2838cdbf02d1c3b95e34": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return _c("div", { staticClass: "gwd-bt-qr-hint gwd-inline-row gwd-align gwd-jcc", on: { mouseover: _vm.hover, mouseleave: _vm.leave } }, [_c("img", { staticStyle: { width: "15px", height: "15.5px" }, attrs: { src: __webpack_require__("7b461f7ee963422a2ecc"), alt: "" } }), _vm._v(" "), _c("span", { staticStyle: { "margin-left": "2px", "font-size": "12px", color: "#ef6701", top: "1px", position: "relative" } }, [_vm._v("手淘APP扫码领取补贴")])]); }; var staticRenderFns = []; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "2b0c91964b1eb4217b80": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__QRLinkTbV3_vue_vue_type_template_id_263c4225_scoped_true__ = __webpack_require__("75129aa80c697b8b93a3"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QRLinkTbV3_vue_vue_type_script_lang_js__ = __webpack_require__("8cb39c511782f7a9e4b9"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__QRLinkTbV3_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__QRLinkTbV3_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__QRLinkTbV3_vue_vue_type_style_index_0_id_263c4225_scoped_true_lang_less__ = __webpack_require__("fa3073c3279239ad0dff"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__QRLinkTbV3_vue_vue_type_script_lang_js__["default"], __WEBPACK_IMPORTED_MODULE_0__QRLinkTbV3_vue_vue_type_template_id_263c4225_scoped_true__["render"], __WEBPACK_IMPORTED_MODULE_0__QRLinkTbV3_vue_vue_type_template_id_263c4225_scoped_true__["staticRenderFns"], false, null, "263c4225", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('263c4225')) { api.createRecord('263c4225', component.options) } else { api.reload('263c4225', component.options) } module.hot.accept("./QRLinkTbV3.vue?vue&type=template&id=263c4225&scoped=true", function () { api.rerender('263c4225', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/QRLinkTbV3.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "2b188aa330e4cb5f39f0": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, "\ndiv.shareExt[data-v-3489a5d0] {\n display: inline-block;\n position: relative;\n /* border-left: none!important; */\n}\n.shareExt .btn-tab-sp em[data-v-3489a5d0] {\n height: 22px;\n width: 22px;\n margin-top: 7px !important;\n background: url(\"https://cdn.gwdang.com/images/extensions/newbar/sshareext.png\") 0px 0px no-repeat;\n}\n.shareExt:hover .share-detail[data-v-3489a5d0] {\n display: block;\n}\n.share-detail[data-v-3489a5d0] {\n width: 300px;\n /*height:184px;*/\n height: auto !important;\n /* left: -47px; */\n right: -81px;\n top: 36px;\n background-color: #fff;\n border: 1px solid rgba(237, 241, 242, 1);\n box-shadow: 0px 1px 6px 0px rgba(135, 135, 135, 0.49);\n}\n.share-sp1[data-v-3489a5d0] {\n float: left;\n margin-top: 16px;\n margin-left: 16px;\n margin-right: 19px;\n /*height: 20px;*/\n /*width: 168px;*/\n line-height: 20px;\n color: #48BEFE;\n font-size: 16px;\n}\n.share-sp2[data-v-3489a5d0] {\n /*float: left;*/\n display: block;\n margin-left: 16px;\n margin-top: 16px;\n margin-right: 19px;\n /*width:192px;*/\n font-size: 12px;\n line-height: 16px;\n color: #333333;\n word-break: break-all;\n}\n.share-sp2 a[data-v-3489a5d0] {\n text-decoration: underline;\n color: #333333;\n}\n.share-sp2 a[data-v-3489a5d0]:hover {\n color: #48befe;\n}\n.share-sp3[data-v-3489a5d0] {\n width: 116px;\n height: 34px;\n background: rgba(72, 190, 254, 1);\n border-radius: 2px;\n margin-top: 20px;\n /*margin-left: 75px;*/\n font-size: 12px;\n color: #fff;\n text-align: center;\n line-height: 34px;\n font-weight: bold;\n cursor: pointer;\n display: inline-block;\n}\n.gwd-share-title[data-v-3489a5d0] {\n display: -webkit-box;\n text-overflow: ellipsis;\n -webkit-line-clamp: 2;\n overflow: hidden;\n -webkit-box-orient: vertical;\n}\n#copy-input[data-v-3489a5d0] {\n position: fixed;\n bottom: -1px;\n right: -1px;\n float: left;\n opacity: 0;\n width: 10px;\n height: 10px;\n}\n#copy-btn.copyss[data-v-3489a5d0] {\n background-color: #2FCE98;\n}\n", ""]); // exports /***/ }), /***/ "2b5802bacfae029c4994": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_script_lang_js__ = __webpack_require__("55aabee0ecb6e5edbc88"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "2b6ed47fb40018872f18": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function (l) { var x = "0123456789qwertyuioplkjhgfdsazxcvbnm"; var tmp = ""; for (var i = 0; i < l; i++) { tmp += x.charAt(Math.ceil(Math.random() * 100000000) % x.length); } return tmp; }; /***/ }), /***/ "2bbf2ea1838e2cf8f33e": /***/ (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"]; /***/ }), /***/ "2d18688ad14d308da9a4": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Price_vue_vue_type_template_id_26424954_scoped_true__ = __webpack_require__("9f7015d6bfaf10bffa83"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Price_vue_vue_type_template_id_26424954_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Price_vue_vue_type_template_id_26424954_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Price_vue_vue_type_template_id_26424954_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Price_vue_vue_type_template_id_26424954_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Price_vue_vue_type_template_id_26424954_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Price_vue_vue_type_template_id_26424954_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "2d50d6936e965843625b": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, ".gwd-head-item[data-v-3f03717c] {\n line-height: 14px;\n height: 14px;\n width: 100%;\n}\n.gwd-head-item span[data-v-3f03717c] {\n float: left;\n}\n.gwd-head-item[data-v-3f03717c]:after {\n display: block;\n content: \"\";\n clear: both;\n}\n.gwd-re-strong[data-v-3f03717c] {\n font-weight: bold;\n}\n", ""]); // exports /***/ }), /***/ "2da1f7bba007ce7d6057": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($) { Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { data: function data() { return { coupon: false, self: false, html: 'abcde', initialType: '', debugMode: window.GwdToolkit ? true : false, search: $('#key').val() }; }, methods: { open: function open(type) { var data = this.getData(); console.log(data); this.html = JSON.stringify(data); this.initialType = type; this.search = $('#key').val(); this.$nextTick(function () { $('#gwd-jdsearch-submit').click(); }); // require('../jdSearchEnhancePage').open(data, 'coupon') }, getData: function getData() { return $('#J_goodsList ul:eq(0) .gl-item').toArray().map(function (item) { var commentText = $(item).find('.p-commit strong a:eq(0)').text(); var commentNum = parseInt(commentText); if (commentText.includes('万')) { commentNum *= 10000; } var shopName = $(item).find('.p-shop a:eq(0)').text(); if (!shopName) { shopName = $(item).find('.hd-shopname:eq(0)').text(); } return { id: $(item).attr('data-sku'), dpId: $(item).attr('data-sku') + '-3', key: $(item).attr('data-sku') + '-3-' + parseInt(Math.random() * 1000), title: $(item).find('.p-name a em').html(), img: $(item).find('.p-img img').attr('src'), price: $(item).find('.p-price i:eq(0)').text(), self: $(item).find('.p-icons i').text().indexOf('自营') > -1, coupon: $(item).find('.search_coupon_tip').text(), couponUrl: $(item).find('.search_coupon_tip').attr('href'), url: 'https://u.gwdang.com/union/go/?site_id=3&union=union_gwdang&column=jd_enhance&crc64=1&target_url=' + encodeURIComponent('https://item.jd.com/' + $(item).attr('data-sku') + '.html'), commentNum: commentNum, commentText: commentText, shop: shopName, shopImg: $(item).find('.p-shop .shop-tag').attr('src'), hover: false, plus: $(item).find('.price-plus-1').text(), icons: $(item).find('.p-icons i').toArray().map(function (x) { return { text: x.innerText, 'class': x.className, style: $(x).attr('style') }; }) }; }); }, processLazyLoad: function processLazyLoad() { $('img').not('[data-lazy-img=done]').toArray().map(function (item) { if (!$(item).attr('src')) { $(item).attr('src', $(item).attr('data-lazy-img')); } }); } }, computed: { hasSelect: function hasSelect() { return this.coupon || this.self; } }, watch: { hasSelect: function hasSelect(newVal) { if (newVal) { $('body').addClass('gwd-filter-jd-product'); } else { $('body').removeClass('gwd-filter-jd-product'); } this.processLazyLoad(); }, coupon: function coupon(newVal) { if (newVal) { $('body').addClass('gwd-show-coupon'); } else { $('body').removeClass('gwd-show-coupon'); } this.processLazyLoad(); }, self: function self(newVal) { if (newVal) { $('body').addClass('gwd-show-self'); } else { $('body').removeClass('gwd-show-self'); } this.processLazyLoad(); } }, mounted: function mounted() { var _this = this; setTimeout(function () { _this.html = JSON.stringify({ id: 123, 'fooo': 'ok' }); }, 2000); console.log(this); setInterval(function () { _this.processLazyLoad(); }, 1000); } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "2da79097fdc184b40ede": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var utils = __webpack_require__("d54879e983a83d07f093"); var deviceEncode = __webpack_require__("57981fc895e0110a4346"); // const productMonitor = require('productMonitor') var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); // var vipSearch = require('vipSearch') var template = __webpack_require__("274e32dfd54a6b0d18a9"); // let log = require('log') // let cnzz = require('cnzz') var renderBottomBar = function renderBottomBar() { var perinfo = userData.get('permanent'); var hideClass = ''; if (perinfo.fold === '1') hideClass = 'b-hidden'; var html = __webpack_require__("011d1707a6de5ac3263d"); var refer = encodeURIComponent(document.location.href); var feedbackUrl = 'https://www.gwdang.com/brwext/suggest?refer=' + refer + '&from_device=' + deviceEncode(G.from_device); var settingUrl = undefined; if (!perinfo.setPage) { settingUrl = G.server + '/brwext/setting?from=' + deviceEncode(G.from_device) + '&btype=' + (G.btype ? G.btype : ''); } $('body').append(template.compile(html)({ hidemod: hideClass, settingUrl: settingUrl, detailW: $(window).width(), f_url: feedbackUrl })); // if (G.site == 'lenovo') { // if ($('#container_buygroup').length > 0 && $('#container_buygroup').css('position') == 'fixed') { // $('#bjd_bottom_detail').css('bottom', '80px') // } // } }; var addBtBarEvent = function addBtBarEvent() { var perinfo = userData.get('permanent'); $('#gwdang-trend').on('mouseenter', function () { $('#gwdang-trend-detail').css('display', 'flex'); $('#gwdang-trend-detail .panel-wrap').css('flex', 1); $(document).trigger('renderAgain'); $(this).addClass('mshover'); }); $('#gwdang-trend, #gwdang-trend-detail').on('mouseleave', function () { // $('#gwdang-trend-detail').hide() $(this).removeClass('mshover'); }); $('#gwdang-setting').on('click', function () { utils.openTab(); }); $('.nbt-close-btn').on('click', function () { if (perinfo.fold !== '1') { $('.close-module').addClass('b-hidden'); $(this).addClass('b-hidden'); $('#bjd_bottom_detail').css('width', '94px'); $('.right-info').css('display', 'none'); perinfo.fold = '1'; } else { $('.close-module').removeClass('b-hidden'); $(this).removeClass('b-hidden'); $('#bjd_bottom_detail').css('width', 'auto'); $('.right-info').css('display', 'flex'); perinfo.fold = '0'; } // 用户设置插件之后需要保存 utils.setLocal('fold', perinfo.fold); utils.settings('set_p_fold', 'p_fold', perinfo.fold); }); }; module.exports.init2 = function (data) { if (G.IE6 && G.site == 'ccb') { return; } if (G.site === 'smzdm') { return; } // 加载本地插件UI renderBottomBar(); // require('lowestPrice').init(data.now) // // require('haoym').init() // // require('zhidemai').init(data.now.site_id) // require('compare').init(data) // require('topFavor').init() // 加载底部设置 __webpack_require__("7ffda7d29dfea4a64d16").init(); addBtBarEvent(); // priceTrend.init(G.where_buy_dps, G.now_dp_id, "bottom"); // taobaoCompare.init(data, "bottom"); // wishlist.init(data.share_good, data.now); // //加载促销活动 // promo.addPromo(promo.getPromoData(data)); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "2df0b134893c265e4168": /***/ (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__("4a1347a9704534db1101"); if(typeof content === 'string') content = [[module.i, content, '']]; // add the styles to the DOM var update = __webpack_require__("10fdb983c061c1343439")(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/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./CollectionSettingTop.vue?vue&type=style&index=0&id=3f03717c&scoped=true&lang=css", function() { var newContent = require("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./CollectionSettingTop.vue?vue&type=style&index=0&id=3f03717c&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(); }); } /***/ }), /***/ "3091f30132f4300f4300": /***/ (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__("95b214135d100bffbf6d"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("20fe238b", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./CommonCouponBarMini.vue?vue&type=style&index=1&id=3fdd510a&lang=less", function() { var newContent = require("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./CommonCouponBarMini.vue?vue&type=style&index=1&id=3fdd510a&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "30bdf3a83fb68bf3db95": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TipCenter_vue_vue_type_template_id_9f16b84a_scoped_true__ = __webpack_require__("86de65bd1e518eeb7e4e"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TipCenter_vue_vue_type_template_id_9f16b84a_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TipCenter_vue_vue_type_template_id_9f16b84a_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TipCenter_vue_vue_type_template_id_9f16b84a_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TipCenter_vue_vue_type_template_id_9f16b84a_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TipCenter_vue_vue_type_template_id_9f16b84a_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TipCenter_vue_vue_type_template_id_9f16b84a_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "311dbd035f4b7911932e": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbQrBtContent_vue_vue_type_script_lang_js__ = __webpack_require__("3fefe4c192d0e2eeac7d"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbQrBtContent_vue_vue_type_script_lang_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbQrBtContent_vue_vue_type_script_lang_js__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbQrBtContent_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbQrBtContent_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbQrBtContent_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "312e8d7a4905c8b99a77": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; 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; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "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 white-space: nowrap;\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>\n'; return $$out; }; /***/ }), /***/ "3331c90409771733bf9d": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Price_vue_vue_type_style_index_0_id_26424954_scoped_true_lang_less__ = __webpack_require__("6922c844cd253134c1ab"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Price_vue_vue_type_style_index_0_id_26424954_scoped_true_lang_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Price_vue_vue_type_style_index_0_id_26424954_scoped_true_lang_less__); /* unused harmony reexport namespace */ /***/ }), /***/ "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":"到手價(多件)"}} /***/ }), /***/ "336e80ac81371c311885": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return _c("div", { staticClass: "gwd-column gwd-align", staticStyle: { flex: "1" } }, [_c("img", { staticStyle: { width: "150px", "margin-top": "172px" }, attrs: { src: __webpack_require__("a83ce54edb753f513731"), alt: "" } }), _vm._v(" "), _vm.error === "needLogin" ? _c("span", { staticStyle: { color: "#3c4c54", "font-size": "12px", "margin-top": "6px" } }, [_vm._v("请先访问【"), _c("a", { staticStyle: { color: "blue", "text-decoration": "underline" }, attrs: { href: _vm.index(_vm.site), target: "_blank" } }, [_vm._v(_vm._s(_vm.siteMap[_vm.site]) + "首页")]), _vm._v("】,重新"), _c("span", { staticStyle: { color: "red" } }, [_vm._v("登录帐号")]), _vm._v(",然后回来重试。")]) : _vm.errorDetail.includes("FAIL_SYS_USER_VALIDATE") ? _c("span", { staticStyle: { color: "#3c4c54", "font-size": "12px", "margin-top": "6px" } }, [_vm._v("请先去【"), _c("a", { staticStyle: { color: "blue", "text-decoration": "underline" }, attrs: { href: _vm.verifyLink, target: "_blank" } }, [_vm._v("这里")]), _vm._v("】进行滑块验证后再回来重试。")]) : _vm.error === "needVisit" ? _c("span", { staticStyle: { color: "#3c4c54", "font-size": "12px", "margin-top": "6px" } }, [_vm._v("加载失败,请先访问【"), _c("a", { attrs: { target: "_blank", href: _vm.index(_vm.site) } }, [_vm._v(_vm._s(_vm.siteMap[_vm.site]) + "首页")]), _vm._v("】,再回来重试")]) : _vm.errorDetail.includes("-FAILSYS::trace") ? _c("span", { staticStyle: { color: "#3c4c54", "font-size": "12px", "margin-top": "6px" } }, [_vm._v("\n 加载失败," + _vm._s(_vm.siteMap[_vm.site]) + "接口故障,请稍后再试\n ")]) : _vm.errorDetail.includes("-") ? _c("span", { staticStyle: { color: "#3c4c54", "font-size": "12px", "margin-top": "6px" } }, [_vm._v("请先访问【"), _c("a", { staticStyle: { color: "blue", "text-decoration": "underline" }, attrs: { href: _vm.index(_vm.site), target: "_blank" } }, [_vm._v(_vm._s(_vm.siteMap[_vm.site]) + "首页")]), _vm._v("】,重新"), _c("span", { staticStyle: { color: "red" } }, [_vm._v("登录帐号")]), _vm._v(",然后回来重试。")]) : _c("span", { staticStyle: { color: "#3c4c54", "font-size": "12px", "margin-top": "6px" } }, [_vm._v(_vm._s(_vm.error) + ",请重试一次")]), _vm._v(" "), _c("div", { staticClass: "gwd-row gwd-align", staticStyle: { "margin-top": "41px" } }, [false ? _c("button", { staticClass: "gwd-red", on: { click: _vm.login } }, [_vm._v("去登录")]) : _vm._e(), _vm._v(" "), _c("button", { on: { click: _vm.retry } }, [_vm._v("再试一次")])])]); }; var staticRenderFns = []; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "3536da3294b06a62fb1f": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbButieQR_vue_vue_type_style_index_0_id_5d6078e1_scoped_true_lang_less__ = __webpack_require__("e95fb8a119b5e2e1fc01"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbButieQR_vue_vue_type_style_index_0_id_5d6078e1_scoped_true_lang_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbButieQR_vue_vue_type_style_index_0_id_5d6078e1_scoped_true_lang_less__); /* unused harmony reexport namespace */ /***/ }), /***/ "361f084c3e35f2fe9ea2": /***/ (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__("3d768f8f8b53ff97346b"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("761ab916", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@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/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./QRLink.vue?vue&type=style&index=1&id=673c66fa&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "3690f6d076b37bda66b7": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, $, Vue) { var _this = this; var deviceEncode = __webpack_require__("57981fc895e0110a4346"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var util = __webpack_require__("d54879e983a83d07f093"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); var request = __webpack_require__("91f250ebeb8d5987491c"); var renderBar = function renderBar(permanent) { var fold, domName, showAd, showJHS, noCoupon, settingUrl, feedbackUrl, TopMainBar, jdadUrl, el, config, c, t, jdadImg; return regeneratorRuntime.async(function renderBar$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: fold = permanent.fold; domName = G.dval.replace('#', ''); showAd = undefined, showJHS = undefined, noCoupon = undefined; if (G.site.indexOf('360buy') > -1 || G.site == 'zol' || G.site == 'douban') { showAd = true; } if (G.site.indexOf('taobao') > -1 || G.site == 'zol' || G.site == 'douban' || G.site == 'tmall') { showJHS = true; } if (G.site == 'zol' || G.site == 'douban') { noCoupon = true; } settingUrl = undefined; if (!permanent.setPage) { settingUrl = G.server + '/brwext/setting?from=' + deviceEncode(G.from_device) + '&btype=' + (G.btype ? G.btype : ''); } feedbackUrl = 'https://www.' + G.extName + '.com/brwext/suggest?refer=' + encodeURIComponent(document.location.href) + '&from_device=' + deviceEncode(G.from_device) + '&btype=' + (G.btype ? G.btype : ''); TopMainBar = __webpack_require__("21183281c2320c4dea97")['default']; jdadUrl = "https://search.jd.com/Search?keyword=%E7%99%BE%E4%BA%BF%E8%A1%A5%E8%B4%B4&qrst=1&shop=1&cod=1"; el = document.createElement('DIV'); $('body').append(el); new Vue({ el: el, render: function render(h) { return h(TopMainBar, { props: { domName: domName, s_url: settingUrl, f_url: feedbackUrl, showAd: showAd, jdadUrl: jdadUrl, noCoupon: noCoupon, showJHS: showJHS, fold: fold } }); } }); $('.top-bar-setting').on('click', function () { util.openTab(); }); if (fold !== '1') { $('body').css('padding-top', '36px').addClass('gwd_unfold'); } __webpack_require__("cf8f469df8ae6c96f344")(); // 分享插件 __webpack_require__("98e571e6ad843edfcada").init(); if (!showAd) { context$1$0.next = 26; break; } context$1$0.next = 21; return regeneratorRuntime.awrap($.getJSON('https://cdn.gwdang.com/js/configs/activity-online.json')); case 21: config = context$1$0.sent; c = config.jdActivity; t = new Date(); jdadImg = 'https://cdn.bijiago.com/images/extensions/ad1111/bijiago_go.png'; if (t < new Date(c.end) && t > new Date(c.start)) { jdadUrl = c.top.link; jdadImg = c.top.img; $('#gwdang-banner-ad').attr('href', jdadUrl); $('#gwdang-banner-ad img:eq(0)').attr('src', jdadImg); $('#gwdang-banner-ad img:eq(0)').css('height', '32px'); $('#gwdang-banner-ad img:eq(1)').css('display', 'none'); } case 26: return context$1$0.abrupt('return', new Promise(function (resolve) { return resolve(); })); case 27: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports.init = function callee$0$0() { var permanent, count, t; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: permanent = userData.get('permanent'); if (!(location.hostname.indexOf('smzdm.com') > -1)) { context$1$0.next = 3; break; } return context$1$0.abrupt('return'); case 3: context$1$0.next = 5; return regeneratorRuntime.awrap(renderBar(permanent)); case 5: count = 0; t = setInterval(function () { // 加载完成之后 做一个自动适配 避免屏幕宽度不够出现错位现象 __webpack_require__("1c640a99db9f6f8a16c2").autoFixWidth(); window.fixWidth = __webpack_require__("1c640a99db9f6f8a16c2").autoFixWidth; count++; if (count > 5) { clearInterval(t); } }, 1000); case 7: case 'end': return context$1$0.stop(); } }, null, _this); }; // 工具条上展示小banner AD // let redpack = await $.getJSON(`https://cdn.gwdang.com/js/configs/jdRedpack.json`) // if (redpack.url) { // jdadUrl = redpack.url // $('#gwdang-banner-ad').attr('href', jdadUrl) // } // 获取配置信息 比如插件是否折叠 /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("6a0e4ebb57bf6aac1f2d"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("b2848b041c3d11faa242")["default"])) /***/ }), /***/ "3771af99caa12f4d701a": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_script_lang_js__ = __webpack_require__("cb220d1428c0f3944af1"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "377a18f798265462b80f": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return _c("div", { staticClass: "gwd-inline-row gwd-price-input gwd-align" }, [_c("span", [_vm._v(_vm._s(_vm.currency))]), _vm._v(" "), _c("input", { attrs: { type: "text" }, domProps: { value: _vm.value }, on: { keypress: _vm.numberInputHandler, input: function input($event) { return _vm.$emit("input", $event.target.value); } } })]); }; var staticRenderFns = []; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "391d3e38e155e1dd99c6": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, ".gwd-row[data-v-222e987e] {\n display: flex;\n flex-direction: row;\n}\n.gwd-inline-row[data-v-222e987e] {\n display: inline-flex;\n flex-direction: row;\n}\n.gwd-column[data-v-222e987e] {\n display: flex;\n flex-direction: column;\n}\n.gwd-inline-column[data-v-222e987e] {\n display: inline-flex;\n flex-direction: column;\n}\n.gwd-align[data-v-222e987e] {\n align-content: center;\n align-items: center;\n}\n.gwd-jcc[data-v-222e987e] {\n justify-content: center;\n}\n.gwd-jic[data-v-222e987e] {\n justify-items: center;\n}\n.gwd-button[data-v-222e987e] {\n outline: none;\n border: none;\n}\n.bjg-bar-button[data-v-222e987e] {\n font-size: 0;\n}\n.bjg-hover-bg[data-v-222e987e] {\n background: #fffbef;\n}\n.bjg-bar-button[data-v-222e987e]:hover {\n background: #fffbef;\n cursor: pointer;\n}\n.bjg-bar-button:hover .bjg-window[data-v-222e987e] {\n display: block;\n}\n.mainbar-fold .bjg-bar-button[data-v-222e987e],\n.mainbar-fold #top_coupon_btn[data-v-222e987e],\n.mainbar-fold .rinfo-btn[data-v-222e987e],\n.mainbar-fold .gwd-bottom-tmall[data-v-222e987e] {\n display: none!important;\n}\n.gwd-font12[data-v-222e987e] {\n font-size: 12px;\n}\n.gwd-font14[data-v-222e987e] {\n font-size: 14px;\n}\n.gwd-red[data-v-222e987e] {\n color: #ff3532;\n}\n.gwd-red-bg[data-v-222e987e] {\n background: #ff3532;\n}\n.gwd-hui333[data-v-222e987e] {\n color: #333333;\n}\n.gwd-hui999[data-v-222e987e] {\n color: #999999;\n}\n.gwd-font10[data-v-222e987e] {\n font-size: 12px;\n transform: scale(0.8333);\n transform-origin: bottom center;\n}\n.gwd-font11[data-v-222e987e] {\n font-size: 12px;\n transform: scale(0.91666);\n transform-origin: bottom center;\n}\n.gwd-font9[data-v-222e987e] {\n font-size: 12px;\n transform: scale(0.75);\n transform-origin: bottom center;\n}\n.gwd-hoverable[data-v-222e987e]:hover {\n background: #edf1f2;\n}\n.right-info > *[data-v-222e987e] {\n border-left: 1px solid #edf1f2;\n}\n.gwd-red-after-visit[data-v-222e987e]:hover {\n color: #e03024 !important;\n}\n.gwd-button[data-v-222e987e]:hover {\n filter: brightness(1.1);\n}\n.gwd-button[data-v-222e987e] {\n padding-top: 1px;\n padding-bottom: 1px;\n}\n.gwd-button[data-v-222e987e]:active {\n filter: brightness(0.9);\n}\n.gwd-fadeout-5s[data-v-222e987e] {\n opacity: 0;\n transition: opacity 5s;\n}\n.gwd-scrollbar[data-v-222e987e]::-webkit-scrollbar {\n width: 6px;\n border-radius: 17px;\n}\n.gwd-scrollbar[data-v-222e987e]::-webkit-scrollbar-thumb {\n border-radius: 17px;\n background: #999;\n}\n#gwdang_main[data-v-222e987e],\n.gwdang-main[data-v-222e987e],\n.bjgext-detail[data-v-222e987e] {\n font-size: 12px;\n}\n#gwdang_main button[data-v-222e987e],\n.gwdang-main button[data-v-222e987e],\n.bjgext-detail button[data-v-222e987e] {\n text-align: center;\n}\n.gwd-width-100[data-v-222e987e] {\n width: 100%;\n}\n.gwd-overlay[data-v-222e987e] {\n font-family: \"Microsoft YaHei\", \"Arial\", \"SimSun\", serif;\n font-size: 0;\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n background: rgba(0, 0, 0, 0.35);\n z-index: 999999999;\n}\n.gwd-switch[data-v-222e987e] {\n position: relative;\n display: inline-block;\n width: 40px;\n height: 22px;\n box-sizing: border-box !important;\n}\n.gwd-switch input[data-v-222e987e] {\n opacity: 0;\n width: 0;\n height: 0;\n}\n.gwd-switch .gwd-slider[data-v-222e987e] {\n position: absolute;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: #bfbfbf;\n border-radius: 16px;\n}\n.gwd-switch .gwd-slider[data-v-222e987e]::before {\n position: absolute;\n content: \"\";\n height: 18px;\n width: 18px;\n left: 2px;\n bottom: 2px;\n background-color: white;\n border-radius: 50%;\n}\n.gwd-switch input:checked + .gwd-slider[data-v-222e987e] {\n background-color: #48befe;\n}\n.gwd-switch input:checked + .gwd-slider[data-v-222e987e]::before {\n -webkit-transform: translateX(18px);\n -ms-transform: translateX(18px);\n transform: translateX(18px);\n}\n.gwd-allow-animation .gwd-slider[data-v-222e987e],\n.gwd-allow-animation .gwd-slider[data-v-222e987e]::before {\n -webkit-transition: 0.2s;\n transition: 0.2s;\n}\n", ""]); // exports /***/ }), /***/ "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 _commonCommonUtil = __webpack_require__("3e983ecbff4e1a29654c"); 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 _componentsQRLinkTbV3 = __webpack_require__("2b0c91964b1eb4217b80"); var _componentsQRLinkTbV32 = _interopRequireDefault(_componentsQRLinkTbV3); var _componentsQRLinkButie = __webpack_require__("a17d68795e51ab49d223"); var _componentsQRLinkButie2 = _interopRequireDefault(_componentsQRLinkButie); var QRLink = __webpack_require__("041f80fea3d67bf79b22")['default']; var extConsole = __webpack_require__("316f9c352c6202560d16"); 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: __webpack_require__("3e983ecbff4e1a29654c").appendCss('\n .ui-dialog #summary-mbuy .qrcode img { display: none }\n '); __webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return $('.ui-dialog #summary-mbuy .qrcode').length; }).then(function () { __webpack_require__("f02e7d39b343f92cf387").get('huanxin').then(function (r) { setInterval(function () { $('.ui-dialog #summary-mbuy .qrcode img').attr('src', r).css('display', 'block').css('width', '145px'); }, 300); }); }); context$1$0.next = 4; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return $('.mobile-only.J-mobile-only .qrcode.fl img').length; }, 300, 20)); case 4: 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; width: 105px" src="https://cdn.gwdang.com/images/extensions/' + (G.lang === 'zh-tr' ? 'jdScanHintTr.png' : 'jdScanHint.svg') + '">'); $('.qrcode.fl img').attr('src', r).css('width', '80px'); }); } case 5: case 'end': return context$1$0.stop(); } }, null, _this); }; var qrReplaceTaobao = function qrReplaceTaobao() { var s, s2, imgSrc, loadQr, imgSrcRight, loadQrRight, taoScanQr, className, hoverLoad, selectorConfig; return regeneratorRuntime.async(function qrReplaceTaobao$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!window.gwd_qr_replaced) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: s = document.createElement('STYLE'); s.innerHTML = '\n .tk-qr-wrapper > canvas, .tk-qr-wrapper > 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 = 14; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return $('.tk-qr-wrapper').length || $('.tb-qrcode-tool').length || $('.toolkit-item-qrcode').length; })); case 14: $('[class^=Promotion--trigger]').hover(loadQr); $('.tb-qrcode-tool').hover(loadQr); $('.toolkit-item-qrcode').hover(loadQrRight); window.gwd_qr_replaced = true; __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' }); }); __webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { // return $('.tk-qr-wrapper > img').length && imgSrcRight !== '' return imgSrcRight !== ''; }).then(function () { // $('.tk-qr-wrapper > img').attr('src', imgSrcRight).css('width', '100px') $('.tk-qr-inner canvas').hide(); $('.tk-qr-inner > img').remove(); $('.tk-qr-inner').prepend('<img src="' + imgSrcRight + '" style="width: 100px">'); s.remove(); }); taoScanQr = ''; className = $('[class^=Price--tooltipImage]').attr('class'); if (className) { (0, _commonCommonUtil.appendCss)('.' + className + ' { visibility: hidden } .gwd-qrlink-force-display { visibility: visible!important }'); } hoverLoad = function hoverLoad() { if (taoScanQr) return; __webpack_require__("f02e7d39b343f92cf387").get(13).then(function (r) { taoScanQr = r; }); }; $('[class^=Price--priceAction]').hover(hoverLoad); context$1$0.next = 27; return regeneratorRuntime.awrap(__webpack_require__("629a8cb1e8f3321eec0b").get()); case 27: selectorConfig = context$1$0.sent; // 淘宝滑下去时可能会删除 Price--priceAction __webpack_require__("2995c4cdfa33d52c0bc3").observe(selectorConfig.panel, function (mutations) { var addedNodes = mutations.map(function (x) { return x.addedNodes; }).filter(function (x) { return x.length > 0; }); if (addedNodes.some(function (item) { return $(item).find('[class^=Price--tooltipImage]').length; })) { $('[class^=Price--priceAction]').hover(hoverLoad); } if ($('.gwd-qrlink-force-display').length || !taoScanQr) { return; } $('[class^=Price--tooltipImage]').attr('src', taoScanQr).css('margin', '10px').css('width', '80px').css('height', '80px').addClass('gwd-qrlink-force-display'); $('[class^=Price--priceTooltip]').css('z-index', '999'); }, { childList: true }); __webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return taoScanQr; }).then(function () { if ($('[class^=Price--tooltipImage]').length) { $('[class^=Price--tooltipImage]').attr('src', taoScanQr).css('margin', '10px').css('width', '80px').css('height', '80px').addClass('gwd-qrlink-force-display'); $('[class^=Price--priceTooltip]').css('z-index', '999'); } }); case 30: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports.init = function callee$0$0() { var e, tag, isNewStyle, _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: extConsole.log('qrlink init'); window.gwd_qr_replaced = false; e = document.createElement('DIV'); if (G.site === '360buy') { $('.preview-wrap').append(e); qrReplaceJd(); } else { qrReplaceTaobao(); // await require('standard/module/util').waitForConditionFn(() => { // return $('#cptklbox').length > 0 // }) // if ($('#cptklbox').length) { // $('#cptklbox').after(e) // } else { // $('.tb-gallery').append(e) // } } 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) { context$1$0.next = 12; break; } context$1$0.next = 12; return regeneratorRuntime.awrap((function callee$1$0() { var e2, left, bottom, style, className, fixedEl; return regeneratorRuntime.async(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: $('.gwd-qrlink-left').remove(); e2 = document.createElement('DIV'); left = -113; bottom = undefined; style = {}; className = 'gwd-normal'; if ($('[class^=Item2024--root--]').length) { // await require('common/commonUtil').sleep(0) // const position = require('common/commonUtil').getBodyOffset('.gwd-bottom-img-area-placeholder') // $('body').append(`<div class="gwd-bottom-img-area" style="position: absolute; left: ${position.left}px; top: ${position.top}px; width: ${position.width}px; height: ${position.height}px"></div>`) $('.gwd-bottom-img-area').append(e2); left = 0; bottom = '0'; className = 'gwd-tb-v3'; } else if ($('[class^=PicGallery--mainPicWrap]').length) { $('[class^=PicGallery--mainPicWrap]').append(e2); left = -125; bottom = '0'; } else { $('.tb-item-info-l').append(e2); } extConsole.log('qrlink butie check'); context$2$0.next = 10; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return document.title !== '商品详情'; })); case 10: if (__webpack_require__("3e983ecbff4e1a29654c").checkButie(document.title)) { // $('.BasicContent--neLyCouC').append(e2) // get position of .gwd-bottom-img-area // const offset = require('common/commonUtil').getBodyOffset('.gwd-bottom-img-area') extConsole.log('qrlink append'); __webpack_require__("9c38beef5ff283e15bd2").met('tklBarReady').then(function () { // if ($('.gwd-bt-qr-hint').length) { // extConsole.warn('qrlink exist') // return // } extConsole.log('qrlink tklBar ready'); if (!$('.gwd-bt-qr-hint').length) { $('.gwd-bottom-img-area').append(e2); var c = new Vue({ el: e2, render: function render(h) { return h(_componentsQRLinkButie2['default'], { props: { tag: tag } }); } }); extConsole.log('qrlink added', c); } extConsole.log('qrlink -----------------'); __webpack_require__("9c38beef5ff283e15bd2").setMet('butie', 'https://tb.gwdang.com/extension/qrpagebt?tag=' + tag + '&dp_id=' + G.dp.dpId + '&butie=1'); }); } else { extConsole.log('qrlink butie not found', document.title); __webpack_require__("9c38beef5ff283e15bd2").setMet('butie', false); } fixedEl = document.createElement('div'); document.body.appendChild(fixedEl); new Vue({ el: fixedEl, render: function render(h) { return h(_componentsQRLinkLeft2['default'], { props: { tag: tag, left: 0, bottom: 0 }, style: style, 'class': className }); } }); // new Vue({ // el: e2, // render: h => h(className === 'gwd-tb-v3' ? QRLinkTbV3 : QRLinkLeft, { // props: { // tag: tag, // left: left, // bottom: bottom // }, // style: style, // class: className // }) // }) case 14: case 'end': return context$2$0.stop(); } }, null, _this2); })()); case 12: __webpack_require__("9c38beef5ff283e15bd2").setMet('QRLinkReady'); isNewStyle = true; if (!isNewStyle) { context$1$0.next = 20; break; } context$1$0.next = 17; return regeneratorRuntime.awrap((function callee$1$0() { var div, globalConfig, dom; return regeneratorRuntime.async(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: $('.gwd-contact-link').remove(); div = document.createElement('DIV'); if (isNewStyle) { $('.gwd-fake').remove(); $('#purchasePanel > [class^=Actions--]').append('<div class="Actions--divider--2U8scvj gwd-fake"></div>'); $('#purchasePanel > [class^=Actions--]').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 } }); } }); context$2$0.next = 6; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('GwdConfig')); case 6: globalConfig = context$2$0.sent; dom = undefined; context$2$0.next = 10; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { dom = globalConfig.aliBuyQr.find(function (item) { return $(item).length; }); return !!dom; })); case 10: $(dom).append('\n <dl class="gwd-qrlink" style="overflow: visible; width: 0; white-space: nowrap; line-height: 48px;">\n <dd style="overflow: initial; display: inline-flex; align-items: center; position: relative; top: -1px;">\n <div class="ww-light ww-static" style="display: inline-block; vertical-align: middle; overflow: inherit; width: 20px; height: 22px; line-height: 0; margin-left: 12px; margin-right: 4px">\n <img src="https://cdn.gwdang.com/images/extensions/wangwang@2x.png" alt="" style="width: 24px; height: 24px;"/>\n </div>\n <div id="gwd-link" style="display: inline-block; vertical-align: middle"></div>\n </dd>\n </dl>\n '); globalConfig.aliFloatPanel.forEach(function (config) { __webpack_require__("3e983ecbff4e1a29654c").appendCss('\n ' + config.float + ' .gwd-qrlink { display: none!important }\n ' + config.panel + ' { overflow: visible }\n '); }); __webpack_require__("3e983ecbff4e1a29654c").appendCss('\n .gwd-qrlink { display: inline-block }\n .PurchasePanel--floatShow--1p-8tE4 .gwd-qrlink { display: none!important }\n .miniPanel .gwd-qrlink { display: none }\n\n .Actions--root--hwEujgc .gwd-qrlink { position: relative; top: 15px; line-height: 0!important }\n '); if ($('#gwd-link').length) { context$2$0.next = 15; break; } return context$2$0.abrupt('return', { v: undefined }); case 15: new Vue({ el: '#gwd-link', render: function render(h) { return h(_componentsQRLinkContact2['default'], { props: { tag: '' } }); } }); case 16: case 'end': return context$2$0.stop(); } }, null, _this2); })()); case 17: _ret2 = context$1$0.sent; if (!(typeof _ret2 === 'object')) { context$1$0.next = 20; break; } return context$1$0.abrupt('return', _ret2.v); case 20: case 'end': return context$1$0.stop(); } }, null, _this); }; // 天猫顶部联系客服 /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("6a0e4ebb57bf6aac1f2d"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("b2848b041c3d11faa242")["default"])) /***/ }), /***/ "3b0ab762811795684788": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_script_lang_js__ = __webpack_require__("2bbf2ea1838e2cf8f33e"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "3b20e893040e45bc8dd9": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) {var __WEBPACK_AMD_DEFINE_RESULT__;/** * b2c 比价模块 * 包括普通的样式和模糊搜索的样式 * @author:mllong(mllong0925@gmail.com) * @since:2013-07-24 * @version:1.0.0 */ !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var $ = __webpack_require__("e081b2491b5c9b12b9da"); var exports = {}; var template = __webpack_require__("274e32dfd54a6b0d18a9"); var viewB2cStore = __webpack_require__("34940f6a02a4ac82b47c"); var specialFilter = __webpack_require__("ce5673fceec6522bf6f5"); var calWidth = __webpack_require__("54be372a53153922dc13"); var rateSite = { '228': 'USD', '229': 'JPY', '238': 'USD', '246': 'EUR' }; var priceSite = { '228': '$', '238': '$', '229': '日元', '246': 'EUR' }; var fixedPrice = function fixedPrice(price) { if (!price) return price; try { var priarr = price.split('.'); price = priarr[0].replace(',', ''); if (Number(price) > 99999) { price = priarr[0]; } else { price = priarr[0] + '.' + priarr[1]; } } catch (e) { __webpack_require__("03dd60018ce5ed1344a1")('b2cCompare:fixedPrice:error'); return price; } return price; }; var transRate = function transRate(dp) { if (dp.price_rmb) return dp; var parseprice = __webpack_require__("cb0906562effcf1b0e6c"); if (!dp.dp_id) return dp; var site_id = dp.dp_id.split('-')[1]; var type = site_id && rateSite[site_id]; if (!type) return dp; var price2 = parseprice(dp.price, type); var price3 = fixedPrice(dp.price); if (site_id == '229') { dp.price_rmb = price2 + ('(' + price3 + priceSite[site_id] + ')'); } else { dp.price_rmb = price2 + ('(' + priceSite[site_id] + price3 + ')'); } dp.price = price2; return dp; }; function showExactView(data) { var widthObj = calWidth.init(); data.b2c.product = specialFilter(data.b2c.product); if (data.b2c.product.length === 0) return; data.b2c.product[0] = transRate(data.b2c.product[0]); data.b2c.min_price = data.b2c.product[0].price.replace(',', ''); //var dp_ids = '0-0';//统计当前有售的商家编号们 //顶栏商城比价模块 var b2cdom = '<a href="javascript:" id="' + G.extName + '-b2c-dp" class="' + G.extName + '-tab" >\n <span class="b2c-icon"></span>\n <span class="b2c-store-n">商城</span>\n <span class="lowest ' + G.extBrand + '-price">¥' + data.b2c.min_price + '</span>\n </a>'; $('#' + G.extName + '-main-contents').append(b2cdom); function editData() { var len = data.b2c.store.length; for (var i = 0; i < data.b2c.store.length; i++) { data.b2c.store[i].price = data.b2c.store[i].price.replace(',', ''); if (data.b2c.store[i].promo.length > 3) { data.b2c.store[i].promo2 = data.b2c.store[i].promo.slice(0, 3); } } data.b2c.store2 = data.b2c.store.slice(0, 6); return len; } for (var i = 0; i < data.b2c.product.length; i++) { var dp = data.b2c.product[i]; dp = transRate(dp); //添加商品的促销活动信息 dp.promo = editPromoIcon(dp.promo); if (dp.promo && dp.promo.length > 0) { dp.promodom = ''; for (var p = 0, plen = dp.promo.length; p < 3 && p < plen; p++) { var pinfo = dp.promo[p]; if (pinfo.hasSame) continue; dp.promodom += '<span title="' + (pinfo.hasSameTitle ? pinfo.hasSameTitle : pinfo.desc) + '" class="promo_icon promo_icon_' + pinfo.type + '"></span>'; } } } //商城比价模块详情模块 var len = editData(); $('#' + G.extName + '-main').append(viewB2cStore({ data: data, len: len, extName: G.extName, width: widthObj.b2cTurnpW, productW: widthObj.b2cProductW })); $('#' + G.extName + '-b2c-dp-detail li img.store').on('error', function () { if (!G.new_extension) $(this).attr('src', G.c_server + '/favicon.ico'); }); $('#b2c-prev-page').click(function () { G.change_page('b2c', -1); }); $('#b2c-next-page').click(function () { G.change_page('b2c', 1); }); } function showFuzzyView(data) { var widthObj = calWidth.init(); data.b2c_fuzzy.product = specialFilter(data.b2c_fuzzy.product); if (data.b2c_fuzzy.product.length === 0) return; data.b2c_fuzzy.product[0] = transRate(data.b2c_fuzzy.product[0]); data.b2c_fuzzy.min_price = data.b2c_fuzzy.product[0].price; var fuzzdom = '<a href="javascript:" id="' + G.extName + '-b2c_fuzzy-dp" class="' + G.extName + '-tab">\n <span class="b2c-icon gwd_bg"></span>\n <span class="b2c-store-n">商城相似款</span>\n <span class="lowest ' + G.extBrand + '-price">¥' + data.b2c_fuzzy.min_price + '</span>\n </a>'; $('#' + G.extName + '-main-contents').append(fuzzdom); for (var i = 0; i < data.b2c_fuzzy.product.length; i++) { var dp = data.b2c_fuzzy.product[i]; dp = transRate(dp); //添加商品的促销活动信息 dp.promo = editPromoIcon(dp.promo); if (dp.promo && dp.promo.length > 0) { dp.promodom = ''; for (var p = 0, plen = dp.promo.length; p < 3 && p < plen; p++) { var pinfo = dp.promo[p]; if (pinfo.hasSame) continue; dp.promodom += '<span title="' + (pinfo.hasSameTitle ? pinfo.hasSameTitle : pinfo.desc) + '" class="promo_icon promo_icon_' + pinfo.type + '"></span>'; } } } var fuzzyDetail = __webpack_require__("2c1ea873863bf1e70ae3"); $('#' + G.extName + '-main').append(fuzzyDetail({ data: data.b2c_fuzzy.product, s_server: G.s_server, width: widthObj.turnpW, productW: widthObj.allProductW })); $('#b2c_fuzzy-prev-page').on('click', function (e) { e.preventDefault(); G.change_page('b2c_fuzzy', -1); }); $('#b2c_fuzzy-next-page').on('click', function (e) { e.preventDefault(); G.change_page('b2c_fuzzy', 1); }); $('#' + G.extName + '-b2c_fuzzy-dp-detail').append('<div class="panel-shadow"></div>'); } function showBottomExactView(data) { var b2c = data.b2c; if (data.b2c2) b2c = data.b2c2; var perPageMaxNumber = G.getFixedShowProductNum(); if (b2c.store.length > 0) { //G.where_buy_dps = data.where_buy_dp_ids || '';\ $('#' + G.extBrand + '-compare').html(""); try { for (var i = 0; i < b2c.store.length; i++) { var store = b2c.store[i]; var dp = store.product[0]; dp = transRate(dp); var len = parseInt(store.product.length); var pages = len % perPageMaxNumber == 0 ? parseInt(len / perPageMaxNumber) : parseInt(len / perPageMaxNumber) + 1; var li = $('<li>'); li.append($('<span>', { 'class': G.extBrand + '-compare-item', 'href': dp.url, 'target': '_blank' }).append($('<p>', { 'class': G.extBrand + '-price' }).html('¥' + dp.price)).append($('<p>', { 'class': G.extBrand + '-store' }).text(dp.site_name))); var detail = $('<div>', { 'class': G.extBrand + '-compare-item-detail re-' + G.extBrand + '-compare-item-detail ' + G.extBrand + '-compare-item-detail-fixed', 'style': 'display:none;' }); detail.append($('<p>', { 'class': G.extBrand + '-compare-item-detail-title ' + G.extBrand + '-height-auto ' + G.extBrand + '-compare-item-detail-title-fixed' }).append($('<span>', { 'class': G.extBrand + '-compare-item-detail-title-desc' }).text(dp.site_name + ':' + store.fee))); var itemList = $('<ul>', { 'class': G.extBrand + '-item-list' }); for (var k = 0; k < len; k++) { var item = store.product[k]; item = transRate(item); if (item.site_name.indexOf('微信端') > -1 || item.site_name.indexOf('移动端') > -1) item.isOtherClient = true; var rev_cnt = item.rev_cnt ? item.rev_cnt : 0; //添加商品的促销活动信息 var promoHtml = ''; item.promo = editPromoIcon(item.promo); if (item.promo && item.promo.length > 0) { for (var p = 0, plen = item.promo.length; p < perPageMaxNumber && p < plen; p++) { if (item.promo[p].hasSame) continue; var desc = item.promo[p].hasSameTitle ? item.promo[p].hasSameTitle : item.promo[p].desc; promoHtml += '<span class="' + G.extBrand + '-bg promo_icon promo_icon_' + item.promo[p].type + '" title="' + desc + '"> </span>'; } } itemList.append($('<li>', { 'class': G.extBrand + '-list-item ' + (k % perPageMaxNumber == perPageMaxNumber - 1 || k == len - 1 ? G.extBrand + '-last' : ''), 'style': "display: " + (k >= perPageMaxNumber ? "none" : "block") }).append($('<a>', { 'class': G.extBrand + '-pic', 'href': item.url, 'target': '_blank' }).append($('<img>', { 'src': G.s_server + '/images/dp_default.jpg', 'data-original': item.img_url, 'title': item.title }))).append($('<a>', { 'class': G.extBrand + '-product-title', 'href': item.url, 'target': "_blank", 'title': item.title }).append($('<div>').text(item.title))).append($("<div>").append($('<a>', { 'class': G.extBrand + '-price', 'href': item.url, 'target': '_blank' }).html('¥' + (item.price_rmb ? item.price_rmb : item.price)).append(promoHtml))).append($('<div>', { 'class': G.extBrand + '_rev_cnt' }).append($('<a>', { 'class': G.extBrand + '_product_comment_amount', 'href': item.url, 'target': '_blank', 'title': item.isOtherClient ? item.site_name : '商品评论数' }).append($('<span>').text(item.isOtherClient ? item.site_name : rev_cnt != 0 ? '评论数:' + item.rev_cnt : ''))))); } var b2c_PageView = $('<div>', { 'class': G.extBrand + '-b2c-PageView ' + G.extBrand + '-b2c-PageView-fixed' }); b2c_PageView.append($('<p>', { 'class': G.extBrand + '-compare-item-detail-title', 'style': 'height:auto;' }).append($('<span>', { 'style': 'float:none;padding-left:10px;', 'class': G.extBrand + '-compare-item-detail-pages' }).append($('<em>', { 'id': 'page-now-' + i, 'class': 'page-now' }).text('1')).append('/').append($('<em>', { 'id': 'page-total-' + i, 'class': 'page-total' }).text('1')))); detail.append($("<div>", { 'class': G.extBrand + '-compare-prev-page ' + G.extBrand + '-left' }).append($('<div>', { 'class': G.extBrand + '-bg page-arrow' }))).append(itemList).append($("<div>", { 'class': G.extBrand + '-compare-next-page ' + G.extBrand + '-right' }).append($('<div>', { 'class': G.extBrand + '-bg page-arrow' }))).append(b2c_PageView); li.append(detail); if (pages == 1) { li.find('.' + G.extBrand + '-compare-prev-page').hide(); li.find('.' + G.extBrand + '-compare-next-page').hide(); li.find('.' + G.extBrand + '-b2c-PageView-fixed').hide(); li.attr("pages", 1); li.attr("len", len); var bannerWidth = len * 200; //border li.children('div.' + G.extBrand + '-compare-item-detail-fixed').css("width", bannerWidth + 2); } else { //还要考虑到边框的border,必须减去两个像素 li.children('div.' + G.extBrand + '-compare-item-detail-fixed').css("width", G.width - 2); } $('#' + G.extBrand + '-compare').append(li); $('#page-total-' + i).text(pages); } } catch (e) { if (G.debug) { throw e; } } } $('#' + G.extBrand + '-compare').show(); } function editPromoIcon(promo) { /*把相同的促销活动放一起, 避免显示多个相同图标, 但是不能直接改原来的内容, 会影响其他地方的价格计算*/ if (!promo || promo && !promo.length) return promo; for (var i = 0, len = promo.length; i < len; i++) { if (!promo[i]) continue; for (var j = 1; j < len; j++) { if (!promo[i + j]) continue; if (promo[i].type == promo[i + j].type) { if (promo[i].hasSame) continue; promo[i].hasSameTitle = (promo[i].hasSameTitle ? promo[i].hasSameTitle : promo[i].desc) + ' ' + promo[i + j].desc; promo[i + j].hasSame = true; } } } return promo; } //把模糊匹配的b2c转化成正规的b2c商城内容 function exchangeDataFormat(b2cFuzzy) { var b2c = {}; var fuzzy = b2cFuzzy.product; fuzzy = specialFilter(fuzzy); for (var fuzzyIndex in fuzzy) { if (fuzzy[fuzzyIndex].more == '1') { var product = fuzzy[fuzzyIndex].all; for (var productIndex in product) { var site_name = product[productIndex].site_name; if (b2c[site_name] == null) { b2c[site_name] = []; } b2c[site_name].push(product[productIndex]); } } else { var site_name = fuzzy[fuzzyIndex].site_name; if (b2c[site_name] == null) { b2c[site_name] = []; } b2c[site_name].push(fuzzy[fuzzyIndex]); } } var returnB2c = { 'store': [] }; for (var b2cIndex in b2c) { if (typeof b2c[b2cIndex][0].fee != 'undefined') { var store = { 'product': b2c[b2cIndex], 'fee': b2c[b2cIndex][0].fee }; returnB2c.store.push(store); } } return returnB2c; } //初始化,根据数据的类型确定展示什么样式 exports.init = function (data, type) { if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) { return; } if (type == "bottom") { if (data.b2c && data.b2c.min_price) { showBottomExactView(data); G.setPageArgs(G.extBrand + '-compare', G.getFixedShowProductNum()); this.setBottomViewOffset(); } else if (data.b2c_fuzzy) { var obj = {}; obj.b2c2 = exchangeDataFormat(data.b2c_fuzzy); showBottomExactView(obj); G.setPageArgs(G.extBrand + '-compare', G.getFixedShowProductNum()); this.setBottomViewOffset(); $('.' + G.extBrand + '-bi').addClass(G.extBrand + '-bi-bg'); } //小红点提示 G.circleNotice(data.quan, data.promotion); } else { if (data.b2c && data.b2c.min_price) { showExactView(data); } else if (data.b2c_fuzzy) { showFuzzyView(data); } } }; //设定底部版的详情页的偏移位置 exports.setBottomViewOffset = function () { $('ul.' + G.extBrand + '-item-list').each(function () { var menu_li = $(this).parent().parent().eq(0); if (menu_li.attr("pages") == '1') { //尽量根据菜单的位置居中,实在不能居中的,就靠右 var menu_li_left = menu_li.offset().left; var menu_li_width = menu_li.width(); var bannerWidth = parseInt(menu_li.attr("len")) * 200; var target_left = menu_li_left - (bannerWidth / 2 - menu_li_width / 2); if (target_left < 0) { target_left = 0; } var remainWidth = G.width - target_left; if (bannerWidth < remainWidth) { menu_li.children('div.' + G.extBrand + '-compare-item-detail-fixed').css('left', target_left); menu_li.find('.' + G.extBrand + '-compare-item-detail-title-fixed').css('left', target_left); } else { menu_li.children('div.' + G.extBrand + '-compare-item-detail-fixed').css('left', G.width - bannerWidth); menu_li.find('.' + G.extBrand + '-compare-item-detail-title-fixed').css('left', G.width - bannerWidth); } } }); }; 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"))) /***/ }), /***/ "3b577d009bbc954f4f7c": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipViewBar_vue_vue_type_style_index_0_id_da945952_scoped_true_lang_css__ = __webpack_require__("ed989676e86f2d179ae1"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipViewBar_vue_vue_type_style_index_0_id_da945952_scoped_true_lang_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipViewBar_vue_vue_type_style_index_0_id_da945952_scoped_true_lang_css__); /* unused harmony reexport namespace */ /***/ }), /***/ "3cc063a6cebebf64b958": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Stamp_vue_vue_type_template_id_a70db998_scoped_true__ = __webpack_require__("14bb9c48784de37e292a"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Stamp_vue_vue_type_template_id_a70db998_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Stamp_vue_vue_type_template_id_a70db998_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Stamp_vue_vue_type_template_id_a70db998_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Stamp_vue_vue_type_template_id_a70db998_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Stamp_vue_vue_type_template_id_a70db998_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Stamp_vue_vue_type_template_id_a70db998_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "3cd1d8e0961acbb3ac12": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, $, G, Vue) { var request = __webpack_require__("91f250ebeb8d5987491c"); module.exports = { init: function init() { var EpicTrend; return regeneratorRuntime.async(function init$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { var t = $('[data-component=PurchaseButton] button')[0].innerText; return t === '立即购买' || t === '预购'; })); case 2: EpicTrend = __webpack_require__("04a1e812dbb979983ae6")['default']; setTimeout(function () { var list = $('[data-component=ProductCard]'); console.log(list); var r = list.toArray().map(function (item) { var link = $(item).find('a').attr('href'); if (!link) { link = location.href; } else { link = 'https://' + location.hostname + link; } var el = $(item).find('[data-component=ProductCardBottomRowLayout]'); return { mountPoint: el, link: link }; }); console.log(r); r.forEach(function (item) { request.get(G.server + '/extension/price_towards?url=' + item.link + '&ver=1', true).then(function (res) { var e = document.createElement('div'); if (!res.store.length || !res.store[0].all_line.length) { return; } e.classList.add('gwd-tag'); $(item.mountPoint).after(e); new Vue({ el: e, render: function render(h) { return h(EpicTrend, { props: { data: res } }); } }); // debugger $(e).on('DOMNodeRemoved', function () { debugger; }); }); }); var mountPoint = $('[data-component=PurchaseButton]'); if (!mountPoint.length) { return; } if ($(mountPoint[0]).parents('[data-component=ProductCard]').length) { return; } // let priceText = $('[data-component=Price]')[0].innerText.replace('US$', '') * 100 request.get(G.server + '/extension/price_towards?url=' + location.href + '&ver=1', true).then(function (res) { var e = document.createElement('div'); if (!res.store.length || !res.store[0].all_line.length) { return; } $(mountPoint[0]).after(e); new Vue({ el: e, render: function render(h) { return h(EpicTrend, { props: { data: res, type: 'top' } }); } }); }); }, 2000); case 4: case 'end': return context$1$0.stop(); } }, null, this); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("6a0e4ebb57bf6aac1f2d"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("b2848b041c3d11faa242")["default"])) /***/ }), /***/ "3d768f8f8b53ff97346b": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // 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: 24px;\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-pro-jd .site-360buy[data-v-673c66fa] {\n position: fixed;\n right: 0;\n top: 300px;\n z-index: 99999;\n}\n.gwd-pro-jd .site-360buy .gwd-qr-hint[data-v-673c66fa] {\n display: none;\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 /***/ }), /***/ "3db0075f47802954174f": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_template_id_bc2362ee_scoped_true__ = __webpack_require__("df3f32c84e4728f0ac94"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_template_id_bc2362ee_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_template_id_bc2362ee_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_template_id_bc2362ee_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_template_id_bc2362ee_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_template_id_bc2362ee_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_template_id_bc2362ee_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "3dfa44ded0e2a0f68e0a": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // 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: 4px;\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 /***/ }), /***/ "3e1eece978e4756459f9": /***/ (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.lang === 'zh-tr') { 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"))) /***/ }), /***/ "3e216db2331af9a3d857": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return _vm.data.time ? _c("div", [_c("div", { staticClass: "prifontf tip-time" }, [_vm._v(_vm._s(_vm.data.time))]), _vm._v(" "), _c("div", { staticClass: "pri-right-info", "class": _vm.domclass }, [_vm.data.pagePrice && _vm.domclass === "" ? _c("div", { staticClass: "tip-item tip-pagepri tip-pagepri2" }, [_c("em"), _vm._v(" "), !_vm.aliSite ? [_c("span", { staticClass: "tip-item-sp1", staticStyle: { width: "120px" } }, [_vm._v("到手价(单件) / 页面价")]), _vm._v(" "), _c("span", { staticClass: "tip-item-sp2" }, [_vm._v(":")])] : _vm._e(), _vm._v(" "), _c("span", { staticClass: "tip-item-sp3 prifontf" }, [_vm._v(_vm._s(_vm.data.pagePrice))])], 2) : _vm.data.pagePrice ? _c("div", { staticClass: "tip-item tip-pagepri" }, [_c("em"), _vm._v(" "), _c("span", { staticClass: "tip-item-sp1" }, [_vm._v("页面价")]), _vm._v(" "), _c("span", { staticClass: "tip-item-sp2" }, [_vm._v(":")]), _vm._v(" "), _c("span", { staticClass: "tip-item-sp3 prifontf" }, [_vm._v(_vm._s(_vm.data.pagePrice))])]) : _vm._e(), _vm._v(" "), _vm.data.directpro ? _c("div", { staticClass: "tip-item tip-directpro" }, [_c("em"), _vm._v(" "), _c("span", { staticClass: "tip-item-sp1" }, [_vm._v("到手价(单件)")]), _vm._v(" "), _c("span", { staticClass: "tip-item-sp2" }, [_vm._v(":")]), _vm._v(" "), _c("span", { staticClass: "tip-item-sp3 prifontf" }, [_vm._v("¥" + _vm._s(_vm.data.directpro))]), _vm._v(" "), _c("span", { staticClass: "tip-item-sp4", domProps: { innerHTML: _vm._s(_vm.data.promo2) } })]) : _vm._e(), _vm._v(" "), _vm.data.addpro ? _c("div", { staticClass: "tip-item tip-addpro" }, [_c("em"), _vm._v(" "), _c("span", { staticClass: "tip-item-sp1" }, [_vm._v("到手价(多件)")]), _vm._v(" "), _c("span", { staticClass: "tip-item-sp2" }, [_vm._v(":")]), _vm._v(" "), _c("span", { staticClass: "tip-item-sp3 prifontf" }, [_vm._v("¥" + _vm._s(_vm.data.addpro))]), _vm._v(" "), _c("span", { staticClass: "tip-item-sp4", domProps: { innerHTML: _vm._s(_vm.data.promo1) } })]) : _vm._e()])]) : _vm._e(); }; var staticRenderFns = []; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "3f9fcc169280fbf7f1fa": /***/ (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__("48172294727e8072ce42"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("0876174a", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./Error.vue?vue&type=style&index=0&id=8eca1ada&scoped=true&lang=less", function() { var newContent = require("!!../../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./Error.vue?vue&type=style&index=0&id=8eca1ada&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "3fefe4c192d0e2eeac7d": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['qr', 'cstyle', 'show'] }; module.exports = exports['default']; /***/ }), /***/ "3ff3fad760a3783c0d76": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, "\n.big_tooltip_box .tip-item[data-v-4c623068] {\n display: flex;\n}\n.big_tooltip_box .tip-item-sp4[data-v-4c623068] {\n flex: 1;\n}\n", ""]); // exports /***/ }), /***/ "406009834f8be5c43aad": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, "\n.gwdang-trend-detail .orign-pri-info[data-v-79b5dd44] {\n margin-top: 12px;\n}\n.gwdang-trend-detail .promo-pri-info[data-v-79b5dd44] {\n margin-top: 8px;\n}\n#gwdang-trend-detail .opi-sp1[data-v-79b5dd44], #gwdang-trend-detail .ppi-sp1[data-v-79b5dd44], #gwdang-trend-detail .ppi-sp2[data-v-79b5dd44] {\n margin-left: 0px;\n}\n#gwdang-trend-detail .ppi-sp1+.ppi-sp2[data-v-79b5dd44], .opi-sp3[data-v-79b5dd44] {\n margin-left: 0px;\n}\n#gwdang-trend-detail .promo-history-link[data-v-79b5dd44] {\n margin-left: 20px;\n float: left!important;\n}\n", ""]); // exports /***/ }), /***/ "40b8421bdc68cb5bf3e5": /***/ (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__("08264866aa6af42b979d"); if(typeof content === 'string') content = [[module.i, content, '']]; // add the styles to the DOM var update = __webpack_require__("10fdb983c061c1343439")(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/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./MiniSameList.vue?vue&type=style&index=1&id=caa5e08c&scoped=true&lang=css", function() { var newContent = require("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./MiniSameList.vue?vue&type=style&index=1&id=caa5e08c&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(); }); } /***/ }), /***/ "410d278ea1d5df2d6a7a": /***/ (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__("264ae7798a4614311102"); if(typeof content === 'string') content = [[module.i, content, '']]; // add the styles to the DOM var update = __webpack_require__("10fdb983c061c1343439")(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/_css-loader@0.20.2@css-loader/index.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./TipCenter.vue?vue&type=style&index=0&id=9f16b84a&scoped=true&lang=css", function() { var newContent = require("!!../../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./TipCenter.vue?vue&type=style&index=0&id=9f16b84a&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(); }); } /***/ }), /***/ "41529bbb1f91bcf2fda1": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkButie_vue_vue_type_style_index_1_id_7c398433_lang_less__ = __webpack_require__("4e7e5c694f3a1bccb4a9"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkButie_vue_vue_type_style_index_1_id_7c398433_lang_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkButie_vue_vue_type_style_index_1_id_7c398433_lang_less__); /* unused harmony reexport namespace */ /***/ }), /***/ "41f3212d438ef1f8599c": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TbButieQR_vue_vue_type_template_id_5d6078e1_scoped_true__ = __webpack_require__("afcc358f2258139166a4"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__TbButieQR_vue_vue_type_script_lang_js__ = __webpack_require__("16acf4fab2b52f58a82a"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__TbButieQR_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__TbButieQR_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__TbButieQR_vue_vue_type_style_index_0_id_5d6078e1_scoped_true_lang_less__ = __webpack_require__("3536da3294b06a62fb1f"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__TbButieQR_vue_vue_type_script_lang_js__["default"], __WEBPACK_IMPORTED_MODULE_0__TbButieQR_vue_vue_type_template_id_5d6078e1_scoped_true__["render"], __WEBPACK_IMPORTED_MODULE_0__TbButieQR_vue_vue_type_template_id_5d6078e1_scoped_true__["staticRenderFns"], false, null, "5d6078e1", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('5d6078e1')) { api.createRecord('5d6078e1', component.options) } else { api.reload('5d6078e1', component.options) } module.hot.accept("./TbButieQR.vue?vue&type=template&id=5d6078e1&scoped=true", function () { api.rerender('5d6078e1', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/TbButieQR.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "421ee28f7d04bda24ce1": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // 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: 18px;\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 top: 0px;\n display: inline-block;\n font-size: 14px;\n color: #11192d;\n text-decoration: underline;\n cursor: pointer;\n position: relative;\n z-index: 9999;\n line-height: 22px;\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: -28px;\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 /***/ }), /***/ "42766189c13c28f1ca44": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_script_lang_js__ = __webpack_require__("91a7fc70a0681e4a72a2"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_script_lang_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_script_lang_js__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_script_lang_js__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "42a81646d6557310ad4c": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, "a[data-v-74d4d45d]:hover {\n text-decoration: none!important;\n}\n.gwd-scrollbar[data-v-74d4d45d] {\n height: 100%;\n z-index: 3;\n position: relative;\n overscroll-behavior-y: contain;\n scrollbar-width: thin;\n}\n.gwd-overlay[data-v-74d4d45d] {\n overscroll-behavior-y: contain;\n}\n.gwd-overlay .gwd-1688.gwd-app-window[data-v-74d4d45d] {\n top: 0;\n}\n.gwd-overlay .gwd-app-window[data-v-74d4d45d] {\n padding: 10px;\n position: absolute;\n top: 42px;\n bottom: 0;\n left: 0;\n background: #f4f5f5;\n width: 735px;\n border-top-right-radius: 8px;\n border-bottom-right-radius: 8px;\n box-sizing: border-box;\n transition: all 0.3s ease-in-out;\n}\n.gwd-overlay .gwd-app-window .gwd-window-close[data-v-74d4d45d] {\n position: absolute;\n top: 0;\n right: -32px;\n width: 24px;\n height: 24px;\n}\n.gwd-overlay .gwd-app-window .gwd-window-close img[data-v-74d4d45d] {\n width: 24px;\n height: 24px;\n}\n.gwd-overlay .gwd-app-window .gwd-window-expand[data-v-74d4d45d] {\n position: absolute;\n right: -18px;\n width: 36px;\n height: 36px;\n top: 50%;\n background: #f4f5f5;\n border-radius: 18px;\n transform: translateY(-50%);\n}\n.gwd-overlay .gwd-app-window .gwd-window-expand img[data-v-74d4d45d] {\n transition: all 0.3s ease;\n width: 16px;\n height: 16px;\n transform: rotate(180deg) translate(-5px);\n}\n.gwd-overlay .gwd-app-window .gwd-window-left[data-v-74d4d45d] {\n width: 220px;\n background: white;\n border-radius: 8px;\n}\n.gwd-overlay .gwd-app-window.gwd-expanded[data-v-74d4d45d] {\n width: 1455px;\n}\n.gwd-overlay .gwd-app-window.gwd-expanded .gwd-window-expand img[data-v-74d4d45d] {\n transform: rotate(0);\n}\n.gwd-overlay-bottom .gwd-app-window[data-v-74d4d45d] {\n top: 0;\n bottom: 60px;\n}\n.gwd-site-select[data-v-74d4d45d] {\n width: 180px;\n height: 40px;\n line-height: 40px;\n text-align: left;\n border-radius: 8px;\n font-size: 14px;\n padding-left: 20px;\n box-sizing: border-box;\n color: #3c4c54;\n}\n.gwd-site-select.gwd-active[data-v-74d4d45d] {\n background: #48bef3;\n color: white;\n text-decoration: none;\n font-weight: bold;\n}\n.gwd-sort[data-v-74d4d45d] {\n width: 100%;\n box-sizing: border-box;\n align-items: flex-start;\n}\n.gwd-sort span[data-v-74d4d45d] {\n color: #999;\n font-size: 13px;\n}\n.gwd-sort .gwd-sort-item[data-v-74d4d45d] {\n display: inline-block;\n background: white;\n color: #3c4c54;\n font-size: 13px;\n height: 20px;\n padding-left: 8px;\n padding-right: 8px;\n border-radius: 10px;\n margin-top: 23px;\n}\n.gwd-sort .gwd-sort-item.gwd-active[data-v-74d4d45d],\n.gwd-sort .gwd-sort-item[data-v-74d4d45d]:hover {\n background: rgba(72, 190, 243, 0.1);\n color: #38b4ee;\n text-decoration: none;\n}\nhr[data-v-74d4d45d] {\n width: 172px;\n border-top: 1px solid #e6e9eb;\n border-bottom: none;\n}\n", ""]); // exports /***/ }), /***/ "430c85750878bcaa7f85": /***/ (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__("6b6778642ca576c8a252"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("4479ce27", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./LongCoupon.vue?vue&type=style&index=0&id=5ccff421&scoped=true&lang=less", function() { var newContent = require("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./LongCoupon.vue?vue&type=style&index=0&id=5ccff421&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "438532846047d75ca37f": /***/ (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.lang === 'zh-tr') { 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"))) /***/ }), /***/ "44239e28538215cb3189": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G, Vue) { var TbScrollLink = __webpack_require__("90df592ad9428c8190fb")['default']; module.exports = { reset: function reset() { $('#gwd-tb-mini-coupon').remove(); }, add: function add(text, icon, link, mainColor, secondColor, showStampBg, rebate) { if (!G.aliSite) { return; } var div = document.createElement('div'); $('.gwd-minibar-bg').after(div); __webpack_require__("316f9c352c6202560d16").log('tbScrollLink init', text); new Vue({ el: div, render: function render(h) { return h(TbScrollLink, { props: { text: text, icon: icon, link: link, mainColor: mainColor, secondColor: secondColor, showStampBg: showStampBg, rebate: rebate } }); } }); __webpack_require__("6b5f3f4c7b5f37c1088e").recoverMiniBar(); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("b2848b041c3d11faa242")["default"])) /***/ }), /***/ "44d09f71f5a81924a94e": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Share_vue_vue_type_script_lang_js__ = __webpack_require__("616b7851dc427243893b"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Share_vue_vue_type_script_lang_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Share_vue_vue_type_script_lang_js__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Share_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Share_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Share_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__("f3073cc408efdcdc3430"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__MemberCouponMiniBjg_vue_vue_type_script_lang_js__ = __webpack_require__("6b517f1a19558569c7df"); /* 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__("bfb4cc86279f38be6f8c"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_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__["render"], __WEBPACK_IMPORTED_MODULE_0__MemberCouponMiniBjg_vue_vue_type_template_id_c1c2cbdc_scoped_true__["staticRenderFns"], false, null, "c1c2cbdc", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@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); /***/ }), /***/ "472c3193857af11233c9": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, $, Vue) { var _this = this; var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var userCenter = __webpack_require__("69afa85b8d7929dd88c5"); var request = __webpack_require__("91f250ebeb8d5987491c"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var utils = __webpack_require__("d54879e983a83d07f093"); var price_remind = __webpack_require__("51aadd1e1b65f329a862"); var globalFavor = {}, reqCallbacks = [], hasReq = undefined; var getRemindStyle = function getRemindStyle(callback) { var dp_id; return regeneratorRuntime.async(function getRemindStyle$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!G.remindInfo) { context$1$0.next = 3; break; } callback(G.remindInfo); return context$1$0.abrupt('return'); case 3: if (!hasReq) { context$1$0.next = 6; break; } reqCallbacks.push(callback); return context$1$0.abrupt('return'); case 6: hasReq = true; // let dp_id = G.now_dp_id; // if (dp_id.indexOf('-') === -1) { // dp_id = dp_id + '-' + G.site_id; // } dp_id = G.dp.itemId; context$1$0.next = 10; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('collectionDetailAllowed')); case 10: userCenter.detail(dp_id).then(function (res) { setTimeout(function () { if ($('#gwd_mini_remind').is(':hover')) { onHoverContent(); } }); if (!res.data) { callback({}); G.remindInfo = {}; if (reqCallbacks.length > 0) { for (var i = 0; i < reqCallbacks.length; i++) { reqCallbacks[i]({}); } } return; } else { var msg = { remind_price: res.data.notifier.threshold, is_collected: res.data.id, has_remind_type: res.data.notifier.type, remind_type: res.data.notifier.type, notify_site: res.data.notifier.site }; G.remindInfo = msg; console.log('remindInfo got'); callback(msg); if (reqCallbacks.length > 0) { for (var i = 0; i < reqCallbacks.length; i++) { reqCallbacks[i](msg); } } } }); // callback(G.productChecked) // let url = `${G.c_server}/api/remind_setting?action=get&email=${G.email}&dp_id=${dp_id}`; // request.get(url).done((msg) => { // G.remindInfo = msg; // if (msg.remind_price) { // msg.remind_price = msg.remind_price / 100 // } // callback(msg) // if (reqCallbacks.length > 0) { // for (let i = 0; i < reqCallbacks.length; i++) { // reqCallbacks[i](msg) // } // } // }) case 11: case 'end': return context$1$0.stop(); } }, null, _this); }; var check_favor = function check_favor(id) { return regeneratorRuntime.async(function check_favor$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!(!G.userLogin || !id)) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: context$1$0.next = 4; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('checked_data_got')); case 4: if (G.productChecked && G.productChecked.collected) { $('#gwd_mini_remind .minibar-btn-box span').text('已添加提醒'); $('#gwd_mini_remind .minibar-btn-box em').addClass('favored'); $('#topfavor_detail .topf-head .sp-col').text('收藏成功').addClass('collected'); $('#ht_favor').text('收藏成功').addClass('collected'); } // }) case 5: case 'end': return context$1$0.stop(); } }, null, _this); }; var loginAfterRender = function loginAfterRender() { $('.bjd-login-box, .login-content').hide(); $('.gwd-common-login').hide(); $('.bjd-jiangjia-re').show(); check_favor(G.now_dp_id); __webpack_require__("51aadd1e1b65f329a862").renderAgain(); getRemindStyle(function (msg) { if (msg) { globalFavor.is_collected = msg.is_collected; if (msg.has_remind_type) { $('.select-item').removeClass('selected'); $('#bjd_minifavor_content').addClass('bjd_choosed'); $('#favor_box').addClass('favor_choosed'); $('.jj-style .select-item[data-type="' + msg.remind_type + '"]').addClass('selected'); $('.gwd-del-collection').css('display', 'block'); } else { $('.jj-style .select-item[data-type="1"]').addClass('selected'); } //msg.notify_site = msg.notify_site; $('.jj-remind .select-item[data-type="' + msg.notify_site + '"]').addClass('selected'); if (msg.remind_price) $('.jj-remind .select-item[data-type="' + msg.notify_site + '"]').parent().find('input').val(msg.remind_price); $('.jj-style .re-mail').val(G.email); } }); $('#gwd-topText').css('display', 'none'); $('.gwd-not-login').removeClass('gwd-not-login'); $('#plotArea_' + G.from_device).removeClass('gwd-blurLayer'); }; $('body').on('gwd-login-complete', function (c) { var e = c.originalEvent; console.log(e); // G.email = e.detail.uid; // G.userLogin = true; utils.setLocal('email', e.detail.uid); loginAfterRender(); }); var userLogin = function userLogin() {}; var hasLoginRender = undefined; var onHoverContent = function onHoverContent() { price_remind.getQRcode(); if (G.userLogin && !hasLoginRender) { loginAfterRender(); hasLoginRender = true; } $('#gwd_mini_remind').addClass('mshover'); $('#gwd_mini_remind em').addClass('collect_hover'); $('html').addClass('bjd-favor-show'); $('#bjd_minifavor_content').show(); }; var miniFavorEvent = function miniFavorEvent() { var forbidHide = undefined; var msStyle = 'click'; if (G.userLogin) msStyle = 'mouseenter'; $('.remindHint').hide(); $('#gwd_mini_remind').on(msStyle, function () { onHoverContent(); }).on('mouseleave', function (e) { if (forbidHide) return; setTimeout(function () { $('#gwd_mini_remind').removeClass('mshover'); $('#gwd_mini_remind em').removeClass('collect_hover'); $('html').removeClass('bjd-favor-show'); $('#bjd_minifavor_content').hide(); }, 200); }); // $('#bjd_minifavor_content').on('mouseenter', () => { // clearTimeout(mTime1); // clearTimeout(mTime2); // }) // $('#bjd_minifavor_content').on('mouseleave', (e) => { // if (forbidHide) return; // mTime2 = setTimeout(function() { // $(`#gwd_mini_remind`).removeClass('mshover') // $(`#gwd_mini_remind em`).removeClass('collect_hover') // $('html').removeClass('bjd-favor-show') // $('#bjd_minifavor_content').hide() // }, 200) // }) $('#bjd_minifavor_content input').on('focus', function () { forbidHide = true; setTimeout(function () { forbidHide = false; }, 300); }); $('.jiangjia-left .select-item').on('click', function () { $(this).parent().parent().find('.select-item').removeClass('selected'); $(this).addClass('selected'); }); $('#edit_re_style').on('click', function () { $('#bjd_minifavor_content').removeClass('bjd_choosed'); }); $('#loginClickBtn').on('click', function () { var userN = $('#bjd_minifavor_content .username').val(); var psd = $('#bjd_minifavor_content .password').val(); if (userN && psd) { price_remind.loginRenderTop(); userLogin(userN, psd); } else { $('#login_remind_tle').css('display', 'block').fadeOut(5000); return; } }); $('#subbtn').on('click', function () { var ischoosed = $('#bjd_minifavor_content').hasClass('bjd_choosed'); if (!ischoosed) { var remind_email = undefined; var remind_type = $('.jj-style .select-item.selected').attr('data-type'); if (remind_type === '1') { remind_email = $('.jj-style .re-mail').val(); if (!remind_email) { $('#error_remind_tle').text('请输入正确的邮箱地址').css('display', 'block').fadeOut(5000); return; } } } var dom = $('.jj-remind .select-item.selected'); var notify_site = dom.attr('data-type'); var price = dom.parent().find('input').val(); if (price === '') { $('#error_remind_tle').text('请输入商品期望价格').css('display', 'block').fadeOut(5000); return; } else if (Number(price) <= 0 || !price.match(/(?:^\d+$|^\d+\.\d{1,2}$)/)) { $('#error_remind_tle').text('请输入正确格式的价格').css('display', 'block').fadeOut(5000); return; } else if (globalFavor.nowprice && Number(price) > globalFavor.nowprice) { $('#error_remind_tle').text('价格不能高于当前商品价格').css('display', 'block').fadeOut(5000); return; } log('mini-favor-detail-btn-click'); cnzz.log('mini-favor-detail-btn-click'); /*notify_site => 0 全网 1 当前网站*/ add_favor(notify_site, price); // $('#bjd_minifavor_content').hide().addClass('bjd_choosed') }); $('.jj-remind-logo').on('click', function () { log('allsite-lowpri-click'); cnzz.log('allsite-lowpri-click'); }); $('.gwd-del-collection').on('click', function () { delFavor(); }); }; var setNotifyPrice = function setNotifyPrice(notify_site, notify_price) { var allAddClass = function allAddClass(selector, className) { $(selector).each(function () { $(this).addClass(className); }); }; var allVal = function allVal(selector, value) { $(selector).each(function () { $(this).val(value); }); }; G.collectionChanged = true; // $(`#${G.extBrand}_add_favor`).text('收藏成功').show().fadeout(2000); /*收起价格走势*/ // $(`#${G.extName}-trend-detail`).hide() $('.remindHint').show().fadeOut(2000); //设置嵌入页面的内容同步变化 $('#gwd_mini_remind .minibar-btn-box span').text('已添加提醒'); $('#gwd_mini_remind .minibar-btn-box em').addClass('favored'); $('.remind-item.current-selected').removeClass('current-selected'); $('.remind-item .select-item').removeClass('selected'); var n = parseInt(notify_site); if (n) { allAddClass('.remind-item-snd', 'current-selected'); allAddClass('.remind-item-snd .select-item', 'selected'); allVal('.remind-item-snd input', notify_price); } else { allAddClass('.remind-item-fst', 'current-selected'); allAddClass('.remind-item-fst .select-item', 'selected'); allVal('.remind-item-fst input', notify_price); } }; var delFavor = function delFavor() { userCenter['delete']().then(function (res) { if (res.code !== 1) return; $('.remind-item.current-selected').removeClass('current-selected'); $('#gwd_mini_remind .minibar-btn-box em').removeClass('favored'); $('#gwd_mini_remind .minibar-btn-box span').text('降价提醒'); $('.gwd-del-collection').css('display', 'none'); G.remindInfo = {}; userCenter.clearCurrent(); }); }; var add_favor = function add_favor(notify_site, notify_price) { notify_site = notify_site || ''; notify_price = notify_price || ''; var dp_id = globalFavor['dp_query'].dp.dp_id; var site_id = globalFavor['dp_query'].dp.site_id; var dp = globalFavor['dp_query'].dp; var price = G.dp.oldPrice; var title = G.dp.name || $('title').html(); $('#' + G.extBrand + '_add_favor').text('正在收藏'); if (price == "" || price <= 0) { var nprice = G.price; price = nprice; } var is_collected = '0'; if (globalFavor.is_collected) { is_collected = '1'; } if (G.site_id == '83' || G.site_id === '123') dp.dp_id = dp.dp_id + '-' + G.site_id; __webpack_require__("69afa85b8d7929dd88c5").add(notify_price, notify_site).then(function (msg) { $('#' + G.extBrand + '_add_favor').text('收藏该商品'); if (msg.code === 100 || msg.code <= 0) { $('#' + G.extBrand + '_add_favor').hide(); $('#' + G.extBrand + '_favor_item_list').empty().hide(); //$('#${G.extBrand}_favor_num').text(' N') $('#' + G.extBrand + '-favor-detail .' + G.extBrand + '-login-info').show(); } else if (msg.code === 1) { setNotifyPrice(notify_site, notify_price); if (!msg.data) { G.remindInfo.remind_price = notify_price; G.remindInfo.notify_site = notify_site; } else { var data = { remind_price: msg.data.notifier.threshold, is_collected: msg.data.id, has_remind_type: msg.data.notifier.type, remind_type: msg.data.notifier.type, notify_site: msg.data.notifier.site }; G.remindInfo = data; $('.gwd-del-collection').css('display', 'block'); } // 更新本地收藏存储 // utils.addFavorCheck() } else if (msg.code === 2) { $('#gwd_mini_remind .minibar-btn-box span').text('已添加提醒'); $('#gwd_mini_remind .minibar-btn-box em').addClass('favored'); } })['catch'](function () { $('#' + G.extBrand + '_add_favor').text('收藏商品'); }); }; var updateTimes = 0; var updatePrice = function updatePrice() { var nowPrice; return regeneratorRuntime.async(function updatePrice$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!globalFavor.nowprice) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: if (!(updateTimes > 5)) { context$1$0.next = 4; break; } return context$1$0.abrupt('return'); case 4: updateTimes++; context$1$0.next = 7; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('NowPrice')); case 7: nowPrice = context$1$0.sent; if (nowPrice && nowPrice > 0 && Number($('.jj-remind .remind-item-snd input').val())) { globalFavor.nowprice = nowPrice; if (!globalFavor.allprice) { globalFavor.allprice = nowPrice; $('.jj-remind .remind-item input').val(nowPrice); } $('.jj-remind .remind-item-snd input').val(nowPrice); } case 9: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports.init = function callee$0$0() { var dp_query, other_info, minidom, choosed, remind_type, lowestUrl, emailvalue, url, nowprice, allprice, html; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('dp_query_set')); case 2: context$1$0.next = 4; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('GwdDpIdGot')); case 4: dp_query = userData.get('dp_query'); other_info = userData.get('other_info'); globalFavor['other_info'] = other_info; globalFavor['dp_query'] = dp_query; minidom = '#gwd_mini_remind'; choosed = undefined, remind_type = undefined, lowestUrl = undefined; emailvalue = G.email; if (other_info.now.dp_id) { context$1$0.next = 13; break; } return context$1$0.abrupt('return'); case 13: url = encodeURIComponent(location.href); context$1$0.next = 16; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('NowPrice')); case 16: nowprice = context$1$0.sent; if (G.aliSite && G.dp.price) nowprice = G.dp.price; allprice = dp_query.b2c.min_price || nowprice; if (!allprice) allprice = nowprice; nowprice = Number(nowprice.toString().replace(',', '')); allprice = Number(allprice.toString().replace(',', '')); if (dp_query.b2c.product && dp_query.b2c.product.length !== 0) { lowestUrl = dp_query.b2c.product[0].url; log('allsite-lowpri-show'); cnzz.log('allsite-lowpri-show'); } // else if (dp_query.b2c.store && dp_query.b2c.store.length !== 0) { // lowestUrl = dp_query.b2c.store[0].product[0].url; // log('allsite-lowpri-show'); // cnzz.log('allsite-lowpri-show') // } globalFavor.nowprice = nowprice; if (G.userLogin) { setTimeout(function () { $('#gwdang-trend').hover(function () { __webpack_require__("9c38beef5ff283e15bd2").setMet('collectionDetailAllowed'); }); }, 0); } html = __webpack_require__("1fc62944e8baa8950638"); context$1$0.next = 28; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return $('#mini_price_history').length; })); case 28: if (G.userLogin) { check_favor(other_info.now.dp_id); setTimeout(function () { $('#gwd_mini_remind').hover(function () { __webpack_require__("9c38beef5ff283e15bd2").setMet('collectionDetailAllowed'); }); }, 0); getRemindStyle(function (msg) { if (msg.has_remind_type) { choosed = true; } if (msg.is_collected) { globalFavor.is_collected = msg.is_collected; if (parseInt(msg.notify_site) === 1) nowprice = msg.remind_price;else allprice = msg.remind_price; } if (!allprice) allprice = nowprice; globalFavor.notify_site = msg.notify_site; globalFavor.allprice = allprice; remind_type = msg.remind_type || '0'; // if (G.email.indexOf(`${G.extName}.com`) > -1) // emailvalue = ''; if (G.userLogin) { G.email = 1; } var config = __webpack_require__("9bf6d059e9a265559f0c").getMoneyInfo(G.logsite); var currency = '元'; if (config) { currency = config[1]; } var dom = template.compile(html)({ choosed: choosed, email: G.email, emailvalue: emailvalue, url: url, lowestUrl: lowestUrl, notify_site: globalFavor.notify_site, nowprice: nowprice, allprice: allprice, remind_type: remind_type, extName: G.extName, currency: currency }); if (globalFavor.notify_site === undefined) { setTimeout(function () { $('.remind-item-snd .select-item').addClass('selected'); }, 1000); } $(minidom).append(dom); check_favor(other_info.now.dp_id); miniFavorEvent(); }); } else { (function () { var dom = template.compile(html)({ choosed: choosed, email: G.userLogin, emailvalue: emailvalue, url: url, lowestUrl: lowestUrl, notify_site: globalFavor.notify_site, nowprice: nowprice, allprice: allprice, remind_type: remind_type, extName: G.extName }); $(minidom).append(dom); miniFavorEvent(); var CommonLogin = __webpack_require__("2d53f53e0179317f1fdf")['default']; new Vue({ el: '#gwd-login-mini', render: function render(h) { return h(CommonLogin, { props: { position: 'gwd-mini', showAlterLogin: true, alterLoginPosition: 'row' } }); } }); })(); } // let dom = template.compile(html)({ // choosed: choosed, // email: '', // emailvalue: '', // url: url, // lowestUrl: lowestUrl, // notify_site: G.remindInfo.remind_type, // nowprice: nowprice, // allprice: allprice, // remind_type: remind_type, // extName: G.extName // }) // $(minidom).append(dom) // miniFavorEvent() updatePrice(); case 30: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports.getRemindStyle = getRemindStyle; module.exports.add_favor = add_favor; module.exports.setNotifyPrice = setNotifyPrice; // debugger // let url = `${G.c_server}/brwext/check_collected?email=${G.email}&dp_id=${id}` // request.get(url).done((data) => { //let nowprice = other_info['code-server'] && other_info['code-server'].price || G.dp.price; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("6a0e4ebb57bf6aac1f2d"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("b2848b041c3d11faa242")["default"])) /***/ }), /***/ "48172294727e8072ce42": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, "a[data-v-8eca1ada] {\n color: #ff4449;\n}\nbutton[data-v-8eca1ada] {\n width: 94px;\n height: 32px;\n border-radius: 29px;\n opacity: 1;\n border: 1px solid rgba(64, 69, 81, 0.3);\n background-color: none;\n font-size: 14px;\n text-align: center;\n color: #3c4c54;\n cursor: pointer;\n margin-left: 28px;\n margin-right: 28px;\n}\n.gwd-red[data-v-8eca1ada] {\n border: 1px solid #ff4449;\n color: #ff4449;\n}\n", ""]); // exports /***/ }), /***/ "4849c6a660d6f2d7dba4": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CollectionSettingTop_vue_vue_type_template_id_3f03717c_scoped_true__ = __webpack_require__("4cdd265e2fa92d3b55c4"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__CollectionSettingTop_vue_vue_type_script_lang_js__ = __webpack_require__("51f6045841389d5bb0a5"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__CollectionSettingTop_vue_vue_type_script_lang_js__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__CollectionSettingTop_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__CollectionSettingTop_vue_vue_type_style_index_0_id_3f03717c_scoped_true_lang_css__ = __webpack_require__("f2f8665a9efe5d001c12"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__CollectionSettingTop_vue_vue_type_style_index_1_id_3f03717c_scoped_true_lang_less__ = __webpack_require__("cd3db2b4c92557e798b9"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__CollectionSettingTop_vue_vue_type_style_index_2_id_3f03717c_scoped_true_lang_less__ = __webpack_require__("dff05e381c5d333c2349"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_5__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__CollectionSettingTop_vue_vue_type_script_lang_js__["default"], __WEBPACK_IMPORTED_MODULE_0__CollectionSettingTop_vue_vue_type_template_id_3f03717c_scoped_true__["render"], __WEBPACK_IMPORTED_MODULE_0__CollectionSettingTop_vue_vue_type_template_id_3f03717c_scoped_true__["staticRenderFns"], false, null, "3f03717c", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('3f03717c')) { api.createRecord('3f03717c', component.options) } else { api.reload('3f03717c', component.options) } module.hot.accept("./CollectionSettingTop.vue?vue&type=template&id=3f03717c&scoped=true", function () { api.rerender('3f03717c', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/CollectionSettingTop.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "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"))) /***/ }), /***/ "4a1347a9704534db1101": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, "\n.gwd-main-login button[data-v-3f03717c] {\n width: 200px!important;\n}\n.gwd-remind-qr:hover #gwd-remind-qrcode_img[data-v-3f03717c] {\n display: block;\n}\n#gwd-remind-qrcode[data-v-3f03717c] {\n /*position: absolute;*/\n /*bottom: 14px;*/\n /*right: 14px;*/\n font-size: 12px;\n cursor: pointer;\n -moz-user-select: -moz-none;\n -khtml-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.favor_choosed #gwd-remind-qrcode[data-v-3f03717c] {\n bottom: 14px;\n right: 14px;\n z-index: 99999999;\n}\n#gwd-remind-qrcode_img[data-v-3f03717c] {\n position: absolute;\n right: 15px;\n height: 134px;\n width: 120px;\n bottom: 29px;\n display: none;\n border: 1px solid #e1e1e1;\n background-color: #fff;\n box-shadow: 0px 5px 15px 0 rgba(23,25,27,0.15);\n}\n#gwd-remind-qrcode_img img[data-v-3f03717c] {\n width: 100%;\n}\n#gwd-remind-qrcode_img[data-v-3f03717c]:before {\n display: block;\n content: \"\";\n height: 0px;\n width: 0px;\n border: 8px solid transparent;\n border-top-color: #999;\n border-right-width: 7px;\n border-left-width: 7px;\n top: 135px;\n right: 52px;\n position: absolute;\n}\n#gwd-remind-qrcode_img[data-v-3f03717c]:after {\n display: block;\n content: \"\";\n height: 0px;\n width: 0px;\n border: 8px solid transparent;\n border-top-color: #fff;\n border-right-width: 8px;\n border-left-width: 8px;\n top: 134px;\n right: 51px;\n position: absolute;\n}\n#gwd-remind-qrcode_img p[data-v-3f03717c] {\n text-align: justify;\n margin: 0px;\n padding: 0px 6px;\n height: 20px;\n font-size: 12px;\n color: #8d8d8d;\n position: relative;\n white-space: normal;\n top: -8px;\n}\n#gwd-remind-qrcode_img p[data-v-3f03717c]:after{\n content:\".\";\n display: inline-block;\n width:100%;\n overflow:hidden;\n height:0;\n}\n", ""]); // exports /***/ }), /***/ "4a9c4f6e6782ff2acbfb": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AliMobilePriceNotifier_vue_vue_type_style_index_0_id_1b4bff6e_scoped_true_lang_less__ = __webpack_require__("64404deff3f781235a69"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AliMobilePriceNotifier_vue_vue_type_style_index_0_id_1b4bff6e_scoped_true_lang_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AliMobilePriceNotifier_vue_vue_type_style_index_0_id_1b4bff6e_scoped_true_lang_less__); /* unused harmony reexport namespace */ /***/ }), /***/ "4b0daa953481b86e6349": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, regeneratorRuntime, G) { var _this = this; var template = __webpack_require__("274e32dfd54a6b0d18a9"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var isShow, totalPages, nowPage; var renderB2c = function renderB2c(data) { var linkAll = undefined; var info = userData.get('other_info'); if (data.length >= 15) { data = data.slice(0, 15); linkAll = 'https://www.gwdang.com/dp' + info.now.dp_id + '/where_buy/?from=browser&crc64=1&m=b2c#tabs'; } else { var s = parseInt(data.length / 3); data = data.slice(0, s * 3); } totalPages = Math.ceil(data.length / 3); nowPage = 1; renderTab("商城相似款", "mini-b2c-com"); var html = __webpack_require__("63ea074ed6dbdb5967e7"); var views = template.compile(html)({ data: data, totalPages: totalPages, linkAll: linkAll }); $('#gwd_mini_compare').append(views).css('display', 'block'); addEvent('#gwd_mini_compare ul'); }; var lock = undefined, linkhide = 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 (!linkhide) { linkhide = true; $('.linkAll').hide(); $('.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) { $('.linkAll').show(); linkhide = false; $('.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 addEvent = function addEvent(id) { var uldom = $(id); $('.mini-com-foot').on('click', function (e) { var type = $(e.target).attr('data-type'); if (!lock && e.target.nodeName !== 'A') { turnPage(type, uldom); } }); $('#gwd_mini_compare').on('mouseenter', function () { $('.mini-compare-detail').show(); }); $('#gwd_mini_compare').on('mouseleave', function () { $('.mini-compare-detail').hide(); }); }; var renderTab = function renderTab(tle, bclass) { var t = '<div class="minibar-btn-box">\n <em class="setting-bg mini-compare-icon"></em>\n <span >' + tle + '</span>\n </div>'; $('#gwd_mini_compare').append($(t)).show().addClass(bclass); }; var renderLowest = function renderLowest(data, linkAll) { totalPages = Math.ceil(data.length / 3); nowPage = 1; renderTab("同类历史低价", "mini-lowest"); var html = __webpack_require__("d2a1306d6b572b6e7cc9"); var views = template.compile(html)({ data: data, linkAll: linkAll, totalPages: totalPages, ulWidth: 150 * data.length }); $('#gwd_mini_compare').append(views); addEvent('#mini_lowest_ul'); }; var renderTime = 0; var renderNoinfo = function renderNoinfo() { renderTime++; if (renderTime === 2) { var bclass = 'no-com-info'; var t = '<div class="minibar-btn-box">\n <em class="setting-bg mini-compare-icon "></em>\n <span >暂无商城比价</span>\n </div>'; $('#gwd_mini_compare').append($(t)).show().addClass(bclass); } }; var readyLowest = function readyLowest(data) { var info = userData.get('other_info'); var keyword = encodeURIComponent(info.now.coreword || ""); var class_id = info['code-server'].class_id || '00000000'; class_id = class_id.trim(); var linkAll = undefined; if (data) { if (data.length >= 15) { data = data.slice(0, 15); linkAll = 'https://www.gwdang.com/promotion/price?keyword=' + keyword + '&ext=1&class_id=' + class_id; } else { var s = parseInt(data.length / 3); data = data.slice(0, s * 3); } renderLowest(data, linkAll); isShow = true; } else { renderNoinfo(); } }; // 判断b2c lowest 是否执行,因为显示逻辑上优先b2c 接口上lowest有可能领先,需要等待。 var runB2c = undefined, runLowest = undefined; module.exports.init = function callee$0$0(type, data) { return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('dp_query_latest_complete')); case 2: if (!isShow) { context$1$0.next = 4; break; } return context$1$0.abrupt('return'); case 4: if (!G.aliSite) { context$1$0.next = 8; break; } return context$1$0.abrupt('return'); case 8: if (type === 'b2c') { runB2c = true; if (!data) { renderNoinfo(); } else if (!(data.b2c instanceof Array) && (data.b2c.product || data.b2c.store) && data.b2c.store.length > 0) { __webpack_require__("6b5f3f4c7b5f37c1088e").renderMiniCom(data); isShow = true; } else if (!(data.b2c_fuzzy instanceof Array) && data.b2c_fuzzy.product.length > 2 && Number(data.b2c_fuzzy.min_price)) { renderB2c(data.b2c_fuzzy.product); isShow = true; } else if (runLowest) { renderNoinfo(); $(document).trigger('lowestready'); } else { renderNoinfo(); } // if (G.site === 'suning' && !G.isMonkey) { // setTimeout(() => { // $('#gwd_mini_compare').on('click', 'a', function(e) { // let url = $(this).attr('href'); // if (url && url.indexOf('http') > -1) { // window.open($(this).attr('href')) // e.preventDefault() // } // }) // }, 500) // } } else if (type === 'lowest') { runLowest = true; if (!data) { renderNoinfo(); } else if (runB2c) { readyLowest(data); } else { $(document).on('lowestready', function () { readyLowest(data); }); } } case 9: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("6a0e4ebb57bf6aac1f2d"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "4b647662eb7a02ae91f0": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_style_index_0_id_6179ab9e_scoped_true_lang_less__ = __webpack_require__("b7eb5a1e7c501c0bd2ec"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_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_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_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 */ /***/ }), /***/ "4bba8f5be4566b4d98b3": /***/ (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"))) /***/ }), /***/ "4c7c6d83576b13289fc8": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_style_index_0_id_caa5e08c_scoped_true_lang_less__ = __webpack_require__("0722aee0c96778afe838"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_style_index_0_id_caa5e08c_scoped_true_lang_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_style_index_0_id_caa5e08c_scoped_true_lang_less__); /* unused harmony reexport namespace */ /***/ }), /***/ "4cdd265e2fa92d3b55c4": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_template_id_3f03717c_scoped_true__ = __webpack_require__("fc107155a37ad6be64ed"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_template_id_3f03717c_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_template_id_3f03717c_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_template_id_3f03717c_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_template_id_3f03717c_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_template_id_3f03717c_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_template_id_3f03717c_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "4cf616db82ec2a749336": /***/ (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__("421ee28f7d04bda24ce1"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("4a524d76", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@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/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./QRLinkContact.vue?vue&type=style&index=0&id=9a793014&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "4d77a2b5adb4af2775a0": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G) { Object.defineProperty(exports, "__esModule", { value: true }); var _this = this; var request = __webpack_require__("91f250ebeb8d5987491c"); var extConsole = __webpack_require__("316f9c352c6202560d16"); var fillPriceAndPromo = function fillPriceAndPromo(list) { var dpIds, priceInfos; return regeneratorRuntime.async(function fillPriceAndPromo$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: dpIds = list.map(function (item) { return item.dpId; }).join(','); context$1$0.next = 3; return regeneratorRuntime.awrap(request.post(G.server + "/extension/ProductFilter?scene=img ", { dp_ids: dpIds }, true)); case 3: priceInfos = context$1$0.sent.list; extConsole.log('priceInfos', priceInfos); return context$1$0.abrupt("return", list.map(function (item) { var itemDpId = item.dpId.replace('-123', '-83'); if (!item.price) { item.price = priceInfos[itemDpId] ? priceInfos[itemDpId].pri / 100 : ''; } item.promos = priceInfos[itemDpId] && priceInfos[itemDpId].promo && priceInfos[itemDpId].promo.promo_list || []; return item; }).filter(function (x) { return x.price; })); case 6: case "end": return context$1$0.stop(); } }, null, _this); }; exports["default"] = fillPriceAndPromo; module.exports = exports["default"]; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("6a0e4ebb57bf6aac1f2d"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "4e7e5c694f3a1bccb4a9": /***/ (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__("fc963a38e3d83ed87767"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("5bf920a2", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./QRLinkButie.vue?vue&type=style&index=1&id=7c398433&lang=less", function() { var newContent = require("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./QRLinkButie.vue?vue&type=style&index=1&id=7c398433&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "4eab65e36f53b5ee0531": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return _c(_vm.type === "link" ? "a" : "div", { tag: "component", staticClass: "gwd-row gwd-align gwd-coupon-bar", "class": { "gwd-butie": _vm.text.includes("补贴") && _vm.mainColor === "#11a14e" }, attrs: { href: _vm.alterHref, target: "_blank", title: _vm.type === "link" ? "点击领取" : "" }, on: { mouseenter: function mouseenter($event) { return _vm.over(); } } }, [_vm.showStampBg ? _c("div", { staticClass: "gwd-coupon-color-bg gwd-tl" }) : _vm._e(), _vm._v(" "), _vm.showStampBg ? _c("div", { staticClass: "gwd-coupon-color-bg gwd-br" }) : _vm._e(), _vm._v(" "), _c("img", { staticStyle: { "margin-left": "12px", "margin-right": "8px", "max-height": "20px", "z-index": "1" }, attrs: { src: _vm.icon, alt: "" } }), _vm._v(" "), _c("span", { style: "color: " + _vm.mainColor + "; font-size: 14px", domProps: { innerHTML: _vm._s(_vm.text) } }), _vm._v(" "), _c("div", { staticStyle: { flex: "1" } }, [_vm.rebate ? _c("Stamp", { staticStyle: { right: "109px", top: "0", position: "absolute" }, attrs: { value: _vm.rebate } }) : _vm._e()], 1), _vm._v(" "), _vm.type === "link" ? _c("span", { staticClass: "gwd-round-click", style: "background: linear-gradient(180deg, " + _vm.secondColor + " 0%, " + _vm.mainColor + " 100%); z-index: 1" }, [_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()]); }; var staticRenderFns = []; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "5117a0aa56b6df4259bd": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_script_lang_js__ = __webpack_require__("663e45ac78aa7ee1d7e7"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_script_lang_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_script_lang_js__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_script_lang_js__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "5191a5e58d59502fc5ec": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_style_index_2_id_caa5e08c_scoped_true_lang_less__ = __webpack_require__("e9f44c28a6f102c5294f"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_style_index_2_id_caa5e08c_scoped_true_lang_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_style_index_2_id_caa5e08c_scoped_true_lang_less__); /* unused harmony reexport namespace */ /***/ }), /***/ "51aadd1e1b65f329a862": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G, regeneratorRuntime, Vue) { var _this = this; var html = __webpack_require__("64e1a389fd0528c4f565"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var miniFavor = __webpack_require__("472c3193857af11233c9"); var request = __webpack_require__("91f250ebeb8d5987491c"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); var globalFavor = {}; var isRender = undefined, firstRender = undefined; var QRrendered = undefined; var addLoginBeforeEvent = function addLoginBeforeEvent() { $('#login-remind p').css('color', '#E4393C'); }; var settingRemind = function settingRemind(type, email) { var setting_type = type; var setting_email = email || ''; var url = G.c_server + '/api/remind_setting?action=set&email=' + G.email + '&setting_type=' + setting_type + '&remind_email=' + setting_email; request.get(url); }; var addRemindEvent = function addRemindEvent() { var qrcodeShow = undefined; // $('#favor_box .bar-jiangjia-re .select-item').off('click', addLoginBeforeEvent) $('.remindHint').hide(); $('#favor_box .bar-jiangjia-re .select-item').on('click', function () { $(this).parent().parent().find('.select-item').removeClass('selected'); $(this).addClass('selected'); if ($(this).hasClass('qrcode-item')) { $('#remind_qrcode_img').show(); } else if ($(this).hasClass('email-item')) { $('#remind_qrcode_img').hide(); } }); $('#bar_subbtn').on('click', function () { var ischoosed = $('#favor_box').hasClass('favor_choosed'); var dom = $('#favor_box .jj-remind .select-item.selected'); var notify_site = dom.attr('data-type'); var price = dom.parent().find('input').val(); var hasDot = price.split('.').length > 1; if (!/^[\d\.]+$/.test(price) || price < 0 || hasDot && price.split('.')[1].length > 2 || isNaN(parseFloat(price))) { $('.error_remind').text('请输入正确格式的价格').show().fadeOut(2000); return; } if (price > allowedMinPrice) { $('.error_remind').text('价格不能高于当前商品价格').show().fadeOut(2000); return; } if (!price || price === '0' || price.match(/[a-zA-Z]/)) { $('.error_remind').text('请输入商品期望价格').show().fadeOut(2000); return; } if (!ischoosed) { var remind_email = undefined; var remind_type = $('#favor_box .jj-style .select-item.selected').attr('data-type'); if (remind_type === '1') { remind_email = $('#favor_box .jj-style .re-mail').val(); } settingRemind(remind_type, remind_email); $('#favor_box').addClass('favor_choosed'); $('#edit_remind_style, #remind_qrcode').show(); } /*notify_site => 0 全网 1 当前网站*/ // $(`#${G.extName}-trend-detail`).hide() $('#remind_qrcode_img').hide(); qrcodeShow = false; miniFavor.add_favor(notify_site, price); }); $('#remind_qrcode').on('click', function () { QRrendered = $('#remind_qrcode_img img').attr('src'); if (!qrcodeShow) { if (!QRrendered) { getQRcode(function () { $('#remind_qrcode_img').show(); qrcodeShow = true; }); } else { $('#remind_qrcode_img').show(); qrcodeShow = true; } } else { $('#remind_qrcode_img').hide(); qrcodeShow = false; } }); $('#edit_remind_style').on('click', function () { $('#favor_box').removeClass('favor_choosed'); $('#edit_remind_style').hide(); }); }; module.exports.loginRenderTop = function () { $('#login-remind').hide(); addRemindEvent(); }; var addEvent = function addEvent() { $('#login-remind .go_login_btn').on('click', function () { // $('#login-remind p').css('color', '#9b9b9b') // $('#login-remind').hide() // $('.login-content').show().animate({ // right: '0px' // }, 500) var url = encodeURIComponent(location.href); location.href = 'https://www.gwdang.com/user/login?ext=1&from_url=' + url; }); $('body').on('gwd-login-complete', function (e) { G.userLogin = true; addRemindEvent(); }); $('#loginClickBtnBar').on('click', function () { var userN = $('#barusername').val(); var psd = $('#barpassword').val(); if (userN && psd) { miniFavor.userLogin(userN, psd, function () { addRemindEvent(); }); } else { $('#login_remind_tle, #login_remind_tle_bar').css('display', 'block').fadeOut(5000); } }); $('#favor_box').on('mouseenter', function () { getQRcode(); }); $('#log_back_btn').on('click', function () { $('#login-remind').show(); $('.login-content').animate({ right: '-292px' }, 500, function () { $('.login-content').hide(); }); }); }; var getQRcode = function getQRcode(callback) { var force = arguments.length <= 1 || arguments[1] === undefined ? false : arguments[1]; var url; return regeneratorRuntime.async(function getQRcode$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(globalCondition.met('userLoginChecked')); case 2: if (QRrendered) { $('#remind_qrcode_img img').attr('src', QRrendered); $('.qrcode-jj img').attr('src', QRrendered); $('.sk-qrcode img').attr('src', QRrendered); } if (!((QRrendered || !G.userLogin) && !force)) { context$1$0.next = 5; break; } return context$1$0.abrupt('return'); case 5: url = 'https://www.gwdang.com/collect/get_qrcode/'; if (G.qrApi && G.qrApi !== 'default') { url = G.qrApi; } request.rawGet(url, true).then(function (data) { QRrendered = data.img_url; $('#remind_qrcode_img img').attr('src', data.img_url); $('.qrcode-jj img').attr('src', data.img_url); $('.sk-qrcode img').attr('src', data.img_url); if (callback) { callback(); } $('#remind_qrcode').show(); }); case 8: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports.getQRcode = getQRcode; var allowedMinPrice = 0; // 渲染登录下的降价提醒 var renderTop2 = function renderTop2(msg) { var oinfo = userData.get('other_info'); if (!oinfo) return; var dp_query = userData.get('dp_query'); var choosed = undefined, remind_type = undefined, lowestUrl = undefined; var now = oinfo.now; if (!now.dp_id && now.url_crc && now.site_id) { now.dp_id = now.url_crc + '-' + now.site_id; } if (!now.dp_id) return; var url = encodeURIComponent(location.href); var nowprice = oinfo['code-server'] && oinfo['code-server'].price || G.dp.price; allowedMinPrice = nowprice; if (G.aliSite) nowprice = G.dp.price; if (!allowedMinPrice) { allowedMinPrice = globalFavor['nowprice']; } var allprice = dp_query && dp_query.b2c.min_price || nowprice; nowprice = Number(nowprice.toString().replace(',', '')); allprice = Number(allprice.toString().replace(',', '')); if (dp_query && dp_query.b2c.product && dp_query.b2c.product.length !== 0) { lowestUrl = dp_query.b2c.product[0].url; } if (G.aliSite) { lowestUrl = 'javascript:'; } if (msg.has_remind_type) { choosed = true; } if (msg.is_collected) { globalFavor.is_collected = msg.is_collected; if (parseInt(msg.notify_site) === 1) nowprice = msg.remind_price;else allprice = msg.remind_price; } nowprice = nowprice || globalFavor['nowprice']; allprice = allprice || nowprice; globalFavor.notify_site = msg.notify_site; remind_type = msg.remind_type || '0'; var imgHost = G.imgHost; if (G.from_device === 'firefox') { imgHost = G.localImg; } var riyuan = ""; if (location.host === 'www.amazon.co.jp') { riyuan = "日元"; } var views = template.compile(html)({ choosed: choosed, islogin: true, email: '', emailvalue: '', url: url, aliSite: G.aliSite, imgHost: imgHost, lowestUrl: lowestUrl, notify_site: globalFavor.notify_site, nowprice: nowprice, allprice: allprice, remind_type: remind_type, extName: G.extName, money: globalFavor['money'], riyuan: riyuan, lastprice: Number(globalFavor['nowprice']).toFixed(2), price_range: globalFavor['price_range'] }); if (globalFavor.notify_site === undefined) { setTimeout(function () { $('.remind-item-snd .select-item').addClass('selected'); }, 1000); } $('#favor_box').remove(); $(globalFavor['dom']).append(views); addRemindEvent(); }; // 未登录 var renderTop = function renderTop(dom, money) { var lowestUrl, dp_query, allprice, nowprice, imgHost, riyuan, url, view, CommonLogin; return regeneratorRuntime.async(function renderTop$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: __webpack_require__("316f9c352c6202560d16").log('login remind render top'); context$1$0.next = 3; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('dp_query_set')); case 3: $('#favor_box').remove(); lowestUrl = undefined; dp_query = userData.get('dp_query'); if (dp_query && dp_query.b2c.product) { lowestUrl = dp_query.b2c.product[0].url; } allprice = dp_query && dp_query.b2c.min_price; if (!allprice && dp_query && dp_query.b2c && dp_query.b2c.store) { allprice = Math.min.apply(null, dp_query.b2c.store.map(function (store) { return Math.min.apply(null, store.product.map(function (x) { return parseFloat(x.price); })); })); } context$1$0.next = 11; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('NowPrice')); case 11: nowprice = context$1$0.sent; if (!allprice) { allprice = nowprice; } allprice = parseFloat(allprice); imgHost = G.imgHost; if (G.from_device === 'firefox') { imgHost = G.localImg; } riyuan = ""; if (location.host === 'www.amazon.co.jp') { riyuan = "日元"; } url = encodeURIComponent(location.href); view = template.compile(html)({ email: G.email, emailvalue: '', lowestUrl: lowestUrl, notify_site: '0', nowprice: globalFavor['nowprice'], allprice: allprice, remind_type: '0', url: url, imgHost: imgHost, extName: G.extName, money: money, riyuan: riyuan, aliSite: G.aliSite, lastprice: Number(globalFavor['nowprice']).toFixed(2), price_range: globalFavor['price_range'] }); $(dom).append(view); CommonLogin = __webpack_require__("2d53f53e0179317f1fdf")['default']; new Vue({ el: '#gwd-login-remind', render: function render(h) { return h(CommonLogin, { props: { position: 'gwd-remind', showAlterLogin: true, alterLoginPosition: 'row' } }); } }); addEvent(); $('#favor_box .bar-jiangjia-re .select-item').on('click', addLoginBeforeEvent); case 25: case 'end': return context$1$0.stop(); } }, null, _this); }; var renderAgain = function renderAgain() { if (!firstRender) return; //if (isRender) return; isRender = true; $('#favor_box').remove(); // 加载之前需要获取到提醒方式 __webpack_require__("472c3193857af11233c9").getRemindStyle(renderTop2); }; module.exports.init = function (dom, money, info) { firstRender = true; if (!info.store) { return; } globalFavor['nowprice'] = Number(info['store'][0].current_price); var price_ranges = info['store'][0].price_range.split('-'); globalFavor['price_range'] = Number(price_ranges[0]).toFixed(2) + ' ~ ' + Number(price_ranges[1]).toFixed(2); globalFavor['dom'] = dom; globalFavor['money'] = money; if (G.userLogin) { // 如果已经登录,让用户触发加载,因为需要请求网站接口 $(document).on('renderAgain', function () { renderAgain(); }); } else { // if ($('#favor_box').length) { // renderAgain() // } else { // renderTop(dom, money) // } renderTop(dom, money); } }; module.exports.renderAgain = renderAgain; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("6a0e4ebb57bf6aac1f2d"), __webpack_require__("b2848b041c3d11faa242")["default"])) /***/ }), /***/ "51f6045841389d5bb0a5": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_script_lang_js__ = __webpack_require__("ee66179a13f9a6089ac5"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_script_lang_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_script_lang_js__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_script_lang_js__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "52f3d79ba97fecbf5764": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return _c("div", { staticClass: "gwd-mobile-notifier", "class": { "gwd-hide-mini": _vm.hideInMini } }, [_c("span", { staticClass: "gwd-hint-text Price--priceAction--1dlgkv-", on: { mouseover: _vm.over } }, [_c("span", { domProps: { innerHTML: _vm._s(_vm.hintText) } }), _vm._v(">\n "), _c("div", { staticClass: "Price--priceTooltip--2-4CBaB", staticStyle: { "z-index": "999" } }, [_c("img", { staticClass: "Price--tooltipImage--EZ4sWHN", staticStyle: { margin: "10px", width: "80px", height: "80px" }, style: { visibility: _vm.qr ? "visible" : "hidden" }, attrs: { src: _vm.qr } }), _vm._v(" "), _c("p", { staticClass: "Price--tooltipText--2K8wbpT" }, [_vm._v("扫一扫看更多")])])])]); }; var staticRenderFns = []; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "530514ce41a695c4ead4": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['value'] }; module.exports = exports['default']; /***/ }), /***/ "53133e3ae4f3b4312627": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return _c("div", { staticClass: "gwd-row gwd-collection-comp", staticStyle: { flex: "1" } }, [_vm.user.login && _vm.allPrice.toString().length ? _c("div", { staticClass: "gwd-column gwd-collection-detail", staticStyle: { flex: "1" } }, [_c("div", { staticClass: "gwd-row", staticStyle: { height: "20px" } }, [_c("img", { staticStyle: { width: "128px", height: "18px" }, attrs: { src: __webpack_require__("966daf1ea9d8fc09cfe7"), alt: "" } }), _vm._v(" "), _c("div", { staticStyle: { flex: "1" } }), _vm._v(" "), _vm.settedNotifySite !== null ? _c("button", { staticClass: "gwd-button gwd-btn-del" }, [_c("span", { staticClass: "gwd-font11", staticStyle: { "transform-origin": "center center" }, on: { click: function click($event) { return _vm.cancel(); } } }, [_vm._v("取消提醒")])]) : _vm._e()]), _vm._v(" "), _c("div", { staticClass: "gwd-row", staticStyle: { "margin-top": "13px" } }, [_c("div", { staticClass: "gwd-column", staticStyle: { position: "relative" } }, [_c("div", { staticClass: "gwd-container gwd-column", "class": { "gwd-ht": _vm.haitao } }, [_c("div", { staticClass: "gwd-row gwd-align gwd-remind-option" }, [_c("span", [_vm._v("当价格低于")]), _vm._v(" "), _c("PriceInput", { staticStyle: { flex: "1" }, attrs: { currency: _vm.currency }, model: { value: _vm.currentPrice, callback: function callback($$v) { _vm.currentPrice = $$v; }, expression: "currentPrice" } }), _vm._v(" "), _c("span", [_vm._v("时提醒我")])], 1)]), _vm._v(" "), _c("div", { staticClass: "gwd-container gwd-row gwd-align", staticStyle: { "margin-top": "8px" }, style: { visibility: _vm.priceRemind.showMPromo ? "visible" : "hidden" } }, [_vm._m(0), _vm._v(" "), _c("SwitchBtn", { attrs: { allowAnimation: _vm.allowAnimation }, model: { value: _vm.mPromo, callback: function callback($$v) { _vm.mPromo = $$v; }, expression: "mPromo" } })], 1), _vm._v(" "), _c("div", { staticClass: "gwd-row gwd-align", staticStyle: { "line-height": "13px", "margin-top": "12px" } }), _vm._v(" "), _c("div", { staticStyle: { "margin-top": "12px" } }, [_c("button", { staticClass: "gwd-btn-submit gwd-button", on: { click: _vm.submit } }, [_vm._v("提交")])]), _vm._v(" "), _vm.errorText ? _c("div", { staticClass: "gwd-remind-error-text", "class": { "gwd-fadeout-5s": _vm.errorFadeClass } }, [_vm._v("\n " + _vm._s(_vm.errorText) + "\n ")]) : _vm._e(), _vm._v(" "), _vm.hintText ? _c("div", { staticClass: "gwd-remind-hint-text", "class": { "gwd-fadeout-5s": _vm.hintFadeClass } }, [_vm._v("\n " + _vm._s(_vm.hintText) + "\n ")]) : _vm._e()]), _vm._v(" "), _c("div", { staticClass: "gwd-vline" }), _vm._v(" "), _c("div", { staticClass: "gwd-column gwd-align gwd-qr-area", staticStyle: { width: "84px", height: "100%" } }, [_c("span", { staticStyle: { "font-size": "13px", color: "#404547", "line-height": "20px", "margin-top": "3px" } }, [_vm._v("微信提醒")]), _vm._v(" "), _c("img", { directives: [{ name: "show", rawName: "v-show", value: _vm.user.wxQr, expression: "user.wxQr" }], staticStyle: { "margin-top": "18px", width: "84px", height: "84px" }, attrs: { src: _vm.user.wxQr, alt: "" } }), _vm._v(" "), _vm._m(1)])])]) : _vm._e(), _vm._v(" "), !_vm.user.login ? _c("div", { staticClass: "gwd-row gwd-align", staticStyle: { flex: "1" } }, [_c("CommonLogin", { staticStyle: { flex: "1" }, attrs: { position: "gwd-mini", "show-alter-login": "true", "alter-login-position": "row" } })], 1) : _vm._e()]); }; var staticRenderFns = [function () { var _vm = this, _c = _vm._self._c; return _c("div", { staticClass: "gwd-column", staticStyle: { flex: "1", "align-items": "flex-start" } }, [_c("span", { staticStyle: { color: "#404547", "font-size": "13px", "line-height": "18px" } }, [_vm._v("多件优惠时提醒我")]), _vm._v(" "), _c("span", { staticClass: "gwd-font11", staticStyle: { "transform-origin": "left center", color: "#999999", "line-height": "14px", "margin-top": "4px" } }, [_vm._v("同一商品,购买多件才能享受优惠")])]); }, function () { var _vm = this, _c = _vm._self._c; return _c("span", { staticClass: "gwd-font11", staticStyle: { "margin-top": "12px", "line-height": "16px", color: "#969899", "white-space": "nowrap" } }, [_vm._v("\n 扫码关注公众号"), _c("br"), _vm._v("商品降价自动提醒\n ")]); }]; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "532d385edca13e0d7dc5": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // 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 /***/ }), /***/ "532fb0f3345f73fa6cd9": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, ".gwd-mobile-notifier[data-v-1b4bff6e] {\n display: inline-block;\n vertical-align: top;\n}\n.gwd-mobile-notifier .gwd-hint-text[data-v-1b4bff6e] {\n color: #ff4f00;\n position: relative;\n top: 11px;\n cursor: pointer;\n margin-left: 5px;\n font-size: 12px;\n}\n.gwd-mobile-notifier .gwd-hint-text p.Price--tooltipText--2K8wbpT[data-v-1b4bff6e] {\n color: #333;\n}\n.Price--priceAction--1dlgkv-:hover .Price--priceTooltip--2-4CBaB[data-v-1b4bff6e] {\n display: block;\n}\n.Price--priceAction--1dlgkv- .Price--priceTooltip--2-4CBaB[data-v-1b4bff6e] {\n position: absolute;\n left: 100%;\n margin-left: 0;\n top: 50%;\n -webkit-transform: translateY(-50%);\n -moz-transform: translateY(-50%);\n -ms-transform: translateY(-50%);\n -o-transform: translateY(-50%);\n transform: translateY(-50%);\n display: none;\n background-color: #fff;\n border-radius: 12px;\n border: 1px solid rgba(0, 0, 0, 0.08);\n padding: 2px;\n text-align: center;\n}\n.miniPanel .gwd-hide-mini[data-v-1b4bff6e] {\n display: none;\n}\n.miniPanel .gwd-mobile-notifier .gwd-hint-text[data-v-1b4bff6e] {\n top: 0;\n margin-left: 0px;\n}\n", ""]); // exports /***/ }), /***/ "539d837f9588aedaf492": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G) { var _this = this; module.exports.init = function callee$0$0() { var id, now_url; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: id = location.href.split('product/')[1]; if (id) { context$1$0.next = 6; break; } context$1$0.next = 4; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('GwdDpIdGot')); case 4: id = context$1$0.sent; id = id.replace('-3', '.html'); case 6: now_url = 'https://item.jd.com/' + id; location.href = G.u_server + '/union/go?site_id=3&target_url=' + encodeURI(now_url) + '&union=' + G.union + '&column=h5_to_pc'; case 8: case 'end': return context$1$0.stop(); } }, null, _this); }; // 获取当前页面的url中的id // const id = require('common/commonUtil').getParameterByName('id') /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("6a0e4ebb57bf6aac1f2d"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "53b414728be70dc244d4": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QuestHint_vue_vue_type_script_lang_js__ = __webpack_require__("7eed15c7853456372abb"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QuestHint_vue_vue_type_script_lang_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QuestHint_vue_vue_type_script_lang_js__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QuestHint_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QuestHint_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QuestHint_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "53da54ab4245066652b0": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbScrollLink_vue_vue_type_template_id_0ac72494_scoped_true__ = __webpack_require__("f3270bf23366a7b33637"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbScrollLink_vue_vue_type_template_id_0ac72494_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbScrollLink_vue_vue_type_template_id_0ac72494_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbScrollLink_vue_vue_type_template_id_0ac72494_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbScrollLink_vue_vue_type_template_id_0ac72494_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbScrollLink_vue_vue_type_template_id_0ac72494_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbScrollLink_vue_vue_type_template_id_0ac72494_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "55aabee0ecb6e5edbc88": /***/ (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 _qrcode = __webpack_require__("a1729abd6d93839b4430"); 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, url: String }, data: function data() { return { site: this.mode ? '360buy' : G.site, qr: '', loading: false, hasBuyButton: true, closed: false, isButie: false }; }, mounted: function mounted() { var _this = this; setTimeout(function () { if ($('#J_ButtonWaitWrap').length) { _this.hasBuyButton = false; } }, 500); if (location.href.includes('item.jd.com')) { this.checkButie(); } }, computed: { actionText: function actionText() { if (this.dpId !== '1-3') { return '领' + (this.mode.includes('gift') ? '红包' : '券') + (this.mode.includes('cfe') ? ',无需验证' : ''); } return '参加活动'; } }, methods: { checkButie: function checkButie() { var link, toCheck, i, u; return regeneratorRuntime.async(function checkButie$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(Promise.race([__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return $('#activity_header a').length || $('#J-detail-pop-tpl-top-new a').length || $('.itemInfo-wrap .news a').length; }), new Promise(function (resolve) { return setTimeout(resolve, 5000); })])); case 2: link = false; toCheck = ['#activity_header a', '.itemInfo-wrap .news a', '#J-detail-pop-tpl-top-new a']; i = 0; case 5: if (!(i < toCheck.length)) { context$1$0.next = 13; break; } u = $(toCheck[i]).attr('href'); if (!(u && (u.includes('pro.m.jd.com') || u.includes('pro.jd.com')))) { context$1$0.next = 10; break; } link = u; return context$1$0.abrupt('break', 13); case 10: i++; context$1$0.next = 5; break; case 13: if (link) { this.isButie = link; link = link.replace('pro.m.jd.com', 'pro.jd.com'); if (!link.startsWith('http')) { link = 'https:' + link; } link = G.u_server + '/union/go/?site_id=3&target_url=' + encodeURIComponent(link) + '&union=union_gwdang&column=butie&crc64=1'; // jdbt jdbtarr $('.preview-info .shieldShopInfo').append('\n <a class="gwd-inline-row gwd-align" href="' + link + '" target="_blank" style="color: #E3393C; margin-left: 20px; position: relative; top: 2px">\n <img style="width: 14px; margin-right: 3px" src="https://cdn.gwdang.com/images/extensions/jdbt@2x.png">\n 补贴领取入口\n <img style="width: 14px; margin-right: 2px" src="https://cdn.gwdang.com/images/extensions/jdbtarr@2x.png">\n </a>\n '); __webpack_require__("9c38beef5ff283e15bd2").setMet('butie', link); } __webpack_require__("9c38beef5ff283e15bd2").setMet('butie', false); case 15: case 'end': return context$1$0.stop(); } }, null, this); }, close: function close() { this.closed = true; localStorage.setItem('gwd-act-qr-link', Date.now()); }, transText: function transText(text) { var map = { '扫码联系客服': '掃碼聯繫客服', '淘宝APP': '淘寶APP', '天猫APP': '天貓APP', '京东': '京東', '京东APP': '京東APP', '用': '用', '扫码': '掃碼', '联系客服': '聯繫客服', '在': '在', '内': '內', '浏览该商品': '瀏覽該商品', '查看商品': '查看商品' }; if (G.lang === 'zh-tr' && map[text]) { return map[text]; } return text; }, over: function over() { var _this2 = this; if (!this.qr && !this.loading) { this.loading = true; if (this.mode && this.mode.includes && this.mode.includes('cfe')) { var link1 = _commonCommonUtil2['default'].getParameterByName('returnurl'); // let link2 = util.getParameterByName('returnurl', link1) // console.log(link2) _qrcode2['default'].toDataURL(link1.replace('&isMainBack=1&loginback=1', ''), {}, function (err, url) { if (err) { //require('common/extConsole').error(err) return; } _this2.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.isButie ? 'app_butie' : this.tag : 1) : '') + '&dp_id=') + (this.dpId ? this.dpId : G.dp.dpId) + (this.dpId === '1-3' ? '&url=' + encodeURIComponent(this.url) : '')).then(function (res) { console.log(res); if (typeof res === 'string') { res = JSON.parse(res); } _this2.qr = res.data.qrImgStr; }); } } } }; module.exports = exports['default']; // if (require('common/commonUtil').checkButie(document.title)) { // this.isButie = true // return // } /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("6a0e4ebb57bf6aac1f2d"))) /***/ }), /***/ "56262097465b6a570d40": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // 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 /***/ }), /***/ "5632ccfc7463a4bc9012": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) {var __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var originPrice = 0; var originPricePattern = { '360buy': '#page_maprice', 'suning': ['del.small-price', 'del', '#itemPrice>del'], 'amazon': ['.digital-list-price>td>.a-text-strike', '.a-span12.a-color-secondary.a-size-base', '.a-text-strike'], 'yougou': 'del:eq(0)', 'dangdang': ['.price_m:eq(0)', '.d15_price_info .price_pc .price_m'], 'vipshop': '.J-mPrice', 'keede': '.message_price_kd', 'feiniu': 'del.fn-rmb-num:eq(0)', 'kaola': '#js_marketPrice', '111': 'del', 'jiuxian': 'del', 'yintai': '.mk-num', 'beibei': '.strike[op-value="originPrice"]', 'bookschina': 'td:eq(19)', 'tmall': ['.tb-rmb-num', '.tm-tagPrice-panel .tm-price', '.tm-price-panel .tm-price'], 'taobao': '#J_StrPrice>em.tb-rmb-num', 'taobao-95095': '.tm-price-panel .tm-price:eq(0)', 'lefeng': '.marketPrice-s' }; //let all_equal_short = false; var patternUsed = ''; if (originPricePattern[G.site] != undefined) { var pattern = originPricePattern[G.site]; if (pattern instanceof Array) { pattern.forEach(function (i) { var element = $(i); var len = $(i).toArray().length; if (len > 1) { element = $(i + (':eq(' + (len - 1) + ')')); } if (originPrice) return; if (!element || !element.text()) return; var priceText = element.text(); if (priceText.trim) { priceText = priceText.trim(); } var price = parseFloat(priceText.replace(',', '').replace('¥', '').replace('¥', '').replace('$', '').replace(',', '')); originPrice = price; patternUsed = i; }); } else { var element = $(pattern); if (element && element.text().length > 0) { var priceText = element.text(); if (priceText.trim) { priceText = priceText.trim(); } var price = parseFloat(priceText.replace(',', '').replace('¥', '').replace('¥', '').replace(',', '')); // originPrice = price; patternUsed = pattern; } } } // tmall.hk if (location.host === 'detail.tmall.hk') { originPrice = $('span.tm-price:eq(0)').text(); var unitText = $('em.tm-yen:eq(0)').text(); if (unitText === '₩' || unitText === 'NT$' || $('span.tm-price:eq(0)').css('text-decoration') && $('span.tm-price:eq(0)').css('text-decoration').indexOf('line-through') === -1) { originPrice = null; } var try2 = $('.wrtoriginprice .tm-price').text(); if (try2) { originPrice = try2; } } // 淘宝需特殊处理 var jstrprice = $('#J_StrPrice').text() && $('#J_StrPrice').css('text-decoration').toString().indexOf('line-through') === -1; if ((G.site === 'taobao' || G.site === 'tmall' || G.site === 'taobao-95095') && (jstrprice || G.site === 'tmall' && $('#J_StrPriceModBox').css('display') === 'none')) { if (patternUsed === '.tm-price-panel .tm-price' || patternUsed === '#J_StrPrice>em.tb-rmb-num') { originPrice = null; } } if (G.site === 'taobao' || G.site === 'tmall' || G.site === 'taobao-95095') { var e = $(patternUsed); if (e.css('text-decoration') && e.css('text-decoration').toString().indexOf('line-through') === -1) { if (G.site === 'taobao') { if (e.parent().css('text-decoration').toString().indexOf('line-through') === -1) { originPrice = null; } } else { originPrice = null; } } } if (G.site === 'bookschina') { var s = $('td').toArray().map(function (i) { return i.innerText; }); var pos = s.indexOf('定 价:'); originPrice = s[pos + 1]; } var type = null; if (location.host === 'www.amazon.co.jp') { type = 'JPY'; } originPrice = __webpack_require__("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"))) /***/ }), /***/ "5734378f1cd687957070": /***/ (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__("d8c0ea5e8bf298de69f5"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("3ad53961", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./AmazonSameLinks.vue?vue&type=style&index=0&id=e09aa000&scoped=true&lang=less", function() { var newContent = require("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./AmazonSameLinks.vue?vue&type=style&index=0&id=e09aa000&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "575aa4974b1cd4464c7e": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_template_id_b671e2be_scoped_true__ = __webpack_require__("981ccb7a622da38d89e0"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_template_id_b671e2be_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_template_id_b671e2be_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_template_id_b671e2be_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_template_id_b671e2be_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_template_id_b671e2be_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_template_id_b671e2be_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "5768ec46ee3de6456ae0": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_style_index_0_id_bc2362ee_scoped_true_lang_less__ = __webpack_require__("2082021d74aa03f4ed69"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_style_index_0_id_bc2362ee_scoped_true_lang_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_style_index_0_id_bc2362ee_scoped_true_lang_less__); /* unused harmony reexport namespace */ /***/ }), /***/ "5864b02248792e9a51fc": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G, regeneratorRuntime, Vue) { var _this = this; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _componentsAmazonSameLinks = __webpack_require__("26685b918a033d7f9a97"); var _componentsAmazonSameLinks2 = _interopRequireDefault(_componentsAmazonSameLinks); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var request = __webpack_require__("91f250ebeb8d5987491c"); var newtrend = __webpack_require__("d0de61a729123238553b"); var detect = __webpack_require__("60624e018be49fb2d959"); var priceParser = __webpack_require__("e29ce4c2a4af273fcade"); var parse_price = __webpack_require__("cb0906562effcf1b0e6c"); var countryConfig = __webpack_require__("9bf6d059e9a265559f0c"); var util = __webpack_require__("d54879e983a83d07f093"); __webpack_require__("0b4163e217e4ff33f7c4"); var getText = function getText(selector) { if ($(selector).length) { return parseFloat($(selector).text().trim()); } return ''; }; var getAliPrice = function getAliPrice(oriPrice) { var price = oriPrice; var promoPrice = getText('[class^=Price--extraPrice] span[class^=Price--priceText]'); var pagePrice = G.dp.ori_price; if (pagePrice) price = pagePrice; if (promoPrice) price = promoPrice; if (isNaN(parseFloat(price))) { return oriPrice; } return parseFloat(price); }; var oneHour = 3600000; var oneDay = 24 * oneHour; var currentCurrency = undefined; var c_width = document.documentElement.clientWidth > 0 ? document.documentElement.clientWidth : document.body.clientWidth; var isForeignSite = undefined; var priceTle = { 'pri-t1': "价格上涨", 'pri-t0': "价格平稳", 'pri-t-1': "价格下降", 'pri-t-2': "历史最低" }; 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 noTrendAddTrendData = function noTrendAddTrendData(data) { var host = location.host; var site_name = undefined; if (host.indexOf('taobao') === -1 && host.indexOf('tmall') === -1) { if (data.store && data.store[0].name) { site_name = data.store[0].name; data.store = null; } else { return data; } } var price = parseFloat(G.dp.price); if (G.aliSite) { price = getAliPrice(price); } if (!price) return data; var date = util.getTimeNumber(new Date().getTime() - 86400000 * 179, "5"); var date2 = util.getTimeNumber(new Date().getTime(), "5"); var arr = []; for (var i = 0; i < 180; i++) { arr.push(price); } date = new Date(date).getTime(); var str = '淘宝'; if (host.indexOf('tmall') > -1) str = '天猫'; str = site_name || str; var noTrendObj = { all_line: arr, all_line_begin_time: date, first_price: price, current_price: price, highest: price, last_price: price, lowest: price, lowest_date: new Date(date2).getTime(), name: str, price_range: price + '-' + price, price_status: 0 }; data.price_status = 0; data.store = [noTrendObj]; data.taobaoNoTrend = true; return data; }; var getCommonInfo = function getCommonInfo(callback) { var pageUrl = location.href; if (G.site === 'taobao-ju') { var id = pageUrl.match(/item_id=(\d+)/)[1]; pageUrl = 'https://detail.tmall.com/item.htm?id=' + id; } var url = encodeURIComponent(pageUrl); var price = G.dp.price; price = parseFloat(price); if (price) { if (isForeignSite) { price = G.dp.oldPrice; } price = parseInt(parseFloat(price * 100).toFixed(2)); price = price.toFixed(2); } else { price = ''; } if (G.aliSite) { price = getAliPrice(price); } getPriceHistoryDataAndRender(url, price, callback); if (G.site === 'taobao' || G.site === 'tmall') { var origin = window.removeEventListener; 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: // eslint-disable // let map = {} // if (G.site === 'taobao') { // map = Hub.config.get("sku").valItemInfo.skuMap; // eslint-disable-line // } else { // let valItemInfo = await require('common/infoCollect/aliSku').getValItemInfo() // map = valItemInfo.skuMap // } $('li').on('click', function (e) { if (!$(e.target).parents('.tb-key-sku').length) { console.log($(e.target).parents('.tb-key-sku')); return; } try { setTimeout(function () { window.extNeedReload = true; }, 0); } catch (e) { __webpack_require__("316f9c352c6202560d16").warn(e); } }); // $('li').on('click', function(e) { // //console.log(e) // setTimeout(() => { // let selected = $('.tb-selected').toArray().map(item => $(item).attr('data-value')).join(';') // let skuKey = ';' + selected + ';'; // skuKey = skuKey.replace(';;', ';').replace(';;', ''); // // console.log('skuKey',skuKey) // // console.log(map) // require('common/globalCondition').clear('lastPointPos') // if (!map[skuKey]) { // getPriceHistoryDataAndRender(encodeURIComponent(location.href), price, callback) // return ; // } // let skuId = map[skuKey].skuId; // //console.log('skuId', skuId) // getPriceHistoryDataAndRender(encodeURIComponent(`https://sku-taobao.com/item.htm?id=${G.dp.itemId.replace('-83', '')}-${skuId}`), null, callback) // //console.log('selected', skuId) // }, 0) // }) case 1: case 'end': return context$2$0.stop(); } }, null, _this); }, 0); } }; var reqId = 0; var getPriceHistoryDataAndRender = function getPriceHistoryDataAndRender(url, price, callback) { reqId++; var currentReq = reqId; if (url.indexOf('skuId') > -1) { var skuId = __webpack_require__("3e983ecbff4e1a29654c").getParameterByName('skuId', location.href); var dp = __webpack_require__("3e983ecbff4e1a29654c").getParameterByName('id', location.href); if (dp && skuId) { url = 'https://sku-taobao.com/item.htm?id=' + dp + '-' + skuId; } } else { try { var sku = Hub.config.get('sku'); var skuId = sku.skuId; var dp = __webpack_require__("3e983ecbff4e1a29654c").getParameterByName('id', location.href); if (skuId && dp) { url = 'https://sku-taobao.com/item.htm?id=' + dp + '-' + skuId; } } catch (e) { __webpack_require__("316f9c352c6202560d16").warn(e); } } // url = 'http://www.kede.com/candymagic51.html'; request.get(G.server + '/extension/price_towards?url=' + url + '&price=' + price + '&ver=1', true).then(function (data) { if (data.itemQr) { __webpack_require__("9c38beef5ff283e15bd2").setMet('qrApiReady', data.itemQr); } if (currentReq !== reqId) { console.warn('reqId mismatch ' + currentReq + ': ' + reqId); return; } try { if (data.is_ban && data.action && data.action.method === 'redirect' && data.action.to) { yanzhengma(data.action.to); return; } if (data.amazons && location.hostname.includes('amazon.cn') && !$('.gwd-amazon-link').length) { (function () { var el = document.createElement('DIV'); if ($('#gwd-space').length) { $('#gwd-space').before(el); } else { $('.search-mod').before(el); } var siteName = $('#merchant-info .a-link-normal span').text(); if (!siteName) { siteName = $('#sellerProfileTriggerId').text(); } new Vue({ el: el, render: function render(h) { return h(_componentsAmazonSameLinks2['default'], { props: { data: data.amazons.filter(function (x) { return x.title === siteName; }) } }); } }); })(); } if (data.nopuzzle_promo && data.nopuzzle_promo.length > 0) { edit_nopuzzle_promo(data.nopuzzle_promo); } if (data.store && data.store.length > 0 && data.store[0].all_line.length) { G.dp.storeInfo = data.store; if (data.store[0].mobile_price) { G.dp.mobilePrice = data.store[0].mobile_price; } __webpack_require__("9c38beef5ff283e15bd2").setMet('GwdPriceTrendLoaded'); __webpack_require__("9c38beef5ff283e15bd2").setMet('NowPrice', data.store[0].current_price); var store = data.store[0]; var allLine = store.all_line; var nowPriceWithPromo = allLine[allLine.length - 1]; __webpack_require__("9c38beef5ff283e15bd2").setMet('NowPriceWithPromo', nowPriceWithPromo); } else { __webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return G.dp.price && !isNaN(parseFloat(G.dp.price)); }).then(function () { if (G.dp.price) { if (isNaN(parseFloat(G.dp.price))) { return; } __webpack_require__("9c38beef5ff283e15bd2").setMet('NowPrice', G.dp.price); } }); } 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 (currentCurrency && data && data.store) { data.store[0].currency = currentCurrency; } if (!data.store || data.store[0].all_line.length === 0) { 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; } else if (data.store && data.store.length && data.store[0].last_price) { G.dp.price = data.store[0].last_price / 100; } data = noTrendAddTrendData(data); callback(data); }); } else { callback(data); } } catch (e) { callback(data); } }); }; // 一淘数据, 也就是淘宝天猫以前使用的别人的数据 此处是处理数据 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 = []; var startTime = msg.startTime; currentTime = new Date(msg.curTime).getTime(); lowest = highest = msg.list[0].price; var lowestTime = undefined; 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; } if (i > 0 && lowest == item.price && item.price != msg.list[i - 1].price) { lowestTime = item.time; } } trenddata.unshift([new Date(startTime).getTime(), msg.list[0].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(), "startTime": startTime, "lowestTime": lowestTime, "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": G.site === 'tmall' ? '天猫' : '淘宝', "price_range": price_range, "promo": [], "all_equal_short": false }] }; callback(price_trend); }, 500); //return price_trend } catch (e) {} }; 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 tryTimes = 0; var getContentFromDiv = function getContentFromDiv(fn) { if (tryTimes >= 9 && G.site == 'amazon' && location.host.indexOf('cn') != -1) return fn(false);else if (tryTimes >= 6) return fn(false); var msg = $('#' + G.extBrand + '_myDiv').text(); if (msg) fn(msg);else { tryTimes++; setTimeout(function () { getContentFromDiv(fn); }, 1000); } }; var getPriceInfo = function getPriceInfo(callback) { if (G.site === 'amazon' && location.host != 'www.amazon.cn') { isForeignSite = true; 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'; getCommonInfo(callback); } else if (G.site === 'tmall' || G.site === 'taobao-95095' || G.site === 'ai-taobao' || G.site === 'taobao') { // require('common/getTaobaoTrend').getTrend(function(trenddata) { // if (!trenddata || trenddata.nodata === true) { // getCommonInfo(callback); // } else { // dealWithEtaoData(trenddata, function(data) { // if (data) callback(data) // else getCommonInfo(callback); // }); // } // }) /*以前因为我们价格走势对淘宝天猫的支持不好 所以使用了别人的数据, 现在基本上都使用了自己的数据, 所以上面也被注释了*/ setTimeout(function () { getCommonInfo(callback); }, 200); // 避开lint js 检测 if (false) dealWithEtaoData(); } else if (G.site === 'aliexpress') { __webpack_require__("fa297f213d29eb497c63").getTrendData(function (data) { if (data) callback(data); }); } else { getCommonInfo(callback); } }; 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; price_status = -2; } break; } } return { price_status: price_status, islowest: islowest, price_last: price_last }; }; var topRendered = false; var renderBtnTop = function renderBtnTop(data) { if (!data.store || data.store[0].all_line.length < 2) return; var w1 = c_width - 321; var status = data.price_status; status = 'pri-t' + status; var tle = priceTle[status]; if (topRendered) { $('#gwdang-trend .btn-tab-sp').html('\n <em class="gwd_bg ' + status + '"></em>\n <span class="tab-sp1 blkcolor1">' + tle + '</span>\n '); return; } var t = '<span class="btn-tab-sp">\n <em class="gwd_bg ' + status + '"></em>\n <span class="tab-sp1 blkcolor1">' + tle + '</span>\n </span>\n <div id="gwdang-trend-detail" class="gwdang-trend-detail top-bar-detail" style="white-space: nowrap">\n <div id="gwdang-pri-trend-chart" style="flex: 1; height:260px;" class="chart">\n <div id="big_tooltip_top" class="big_tooltip_box"></div>\n <div id="bar_trend_legend_btn" class="legend-btn-box">\n <span class="price-trend-sp pt-sp1 " data-id="days180">\n <em></em>\n <span>到手价(单件)</span>\n </span>\n <span class="review-trend-sp" data-id="plotSpecial">\n <em></em>\n <span>到手价(多件)</span>\n </span>\n </div>\n </div>\n <div class="gwd-collection-trend-content"></div>\n </div>\n '; topRendered = true; $('#gwdang-trend').append(t).css("display", "block"); __webpack_require__("1c640a99db9f6f8a16c2").autoFixWidth(); }; var renderBtnBtm = function renderBtnBtm(data) { if (!data.store || data.store[0].all_line.length < 2) return; var w1 = c_width - 321; var status = data.price_status; status = 'pri-t' + status; var tle = priceTle[status]; for (var key in priceTle) { $('#gwdang-trend .trend-box-dev span').removeClass(key); $('#gwdang-trend .trend-box-dev em').removeClass(key); } $('#gwdang-trend .trend-box-dev span').text(tle).addClass(status); $('#gwdang-trend .trend-box-dev em').addClass(status); // $('#gwdang-pri-trend-chart').css('width', w1 + 'px') $('#gwdang-trend').css("display", "block"); }; var renderMini = function renderMini(data) { var no_price, settbg, status, tle, t; return regeneratorRuntime.async(function renderMini$(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 $('#mini_price_history').length; })); case 2: no_price = '', settbg = 'setting-bg'; status = data.price_status; status = 'pri-t' + status; tle = priceTle[status]; if (!data.store || data.store[0].all_line.length < 2) { no_price = 'no-price'; tle = '暂无价格走势'; status = ''; settbg = ''; $('.gwd-collection-mini').remove(); } if (G.site == 'amazon' || G.site == '6pm') { settbg = 'ht-bg'; } t = '<div class="minibar-btn-box ' + no_price + '">\n <em class="' + settbg + ' pri-history-icon ' + status + '"></em>\n <span class="' + status + '">' + tle + '</span>\n </div>'; if (!data.store || data.store[0].all_line.length < 2) { $('#mini_price_history').addClass('no_price').off(); $('#mini_price_history_detail').remove(); $('#ht_minitrend_detail').remove(); } $('#mini_price_history').append(t).css("display", "block"); __webpack_require__("316f9c352c6202560d16").log('render mini trend'); case 12: case 'end': return context$1$0.stop(); } }, null, _this); }; var yanzhengma = function yanzhengma(url) { __webpack_require__("83271c7588396d2d5e59").log('验证码', '弹出'); if (G.site === 'steampowered') { renderYanzhengmaSteam(url); return; } var style = userData.get('permanent').style; if (style === 'top') { renderyanzhengmaTop(url); } else if (style === 'bottom') { renderyanzhengmaBtm(url); } renderyanzhengmaMini(url); setTimeout(function () { $('a.error-sp').on('click', function (e) { e.preventDefault(); __webpack_require__("83271c7588396d2d5e59").log('验证码', '点击'); location.href = url; }); }, 0); }; var renderYanzhengmaSteam = function renderYanzhengmaSteam(url) { 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 html = __webpack_require__("f5ab9f9bfeb8fa69f374"); var btntxt = '<span class="blkcolor1">访问异常</span>'; dom.eq(0).prepend(template.compile(html)({ url: url })); dom.parents('.game_area_purchase_game_wrapper').css('z-index', '999999'); dom.parents('.game_area_purchase_game').css('z-index', '9999999'); }; var renderyanzhengmaBtm = function renderyanzhengmaBtm(url) { var w1 = c_width - 321; var html = __webpack_require__("7421c06e78929496e5b0"); var btntxt = '<span class="blkcolor1">访问异常</span>'; $('#gwdang-trend').append($(btntxt)); $('.trend-box-dev').remove(); // $('#gwdang-pri-trend-chart').css('width', w1 + 'px') $('#gwdang-trend-detail').empty().append(template.compile(html)({ url: url })); $('#gwdang-trend').css("display", "block"); }; var renderyanzhengmaTop = function renderyanzhengmaTop(url) { var html = __webpack_require__("6603a2c5ef0a65a7b3f8"); var btntxt = '<span class="blkcolor1">访问异常</span>'; $('#gwdang-trend').append($(btntxt)); $('#gwdang-trend').append(template.compile(html)({ url: url })).css('display', 'block'); $('#gwdang-trend').on('mouseleave', function (e) { $('#gwdang-trend').removeClass('tab-hover'); }); }; var renderyanzhengmaMini = function renderyanzhengmaMini(url) { // 中间部分访问异常情况 var html = __webpack_require__("613b1a45bb5eb6fb87df"); var btntxt = '<span class="blkcolor1">访问异常</span>'; $('#mini_price_history').append($(btntxt)); $('#mini_price_history').append(template.compile(html)({ url: url })).css('display', 'block'); }; var renderMiniDetail = function renderMiniDetail(data) { var dpdata, showapp, html, MiniPromoHistory, promoCopy, storeCopy, promoData; return regeneratorRuntime.async(function renderMiniDetail$(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 $('#mini_price_history').length; })); case 2: dpdata = userData.get('dp_query'); showapp = 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; } if (G.aliSite) { showapp = false; } html = __webpack_require__("8a3a5667b12a2fbf66e3"); $('#mini_price_history').append(html({ showapp: showapp })); MiniPromoHistory = __webpack_require__("fc176595ad8aaf9fdb19")['default']; promoCopy = data.nopuzzle_promo ? JSON.parse(JSON.stringify(data.nopuzzle_promo)) : ''; storeCopy = data.store ? JSON.parse(JSON.stringify(data.store)) : ''; promoData = __webpack_require__("6973d6984a148bf8a638").editData(data.promo, promoCopy, storeCopy); data.promoShow = promoData; if (data.analysis && !(G.site == 'amazon' || G.site == '6pm')) { $('#mini_price_history_detail').css('width', '690px'); } else { $('#mini_price_history_detail').css('width', '460px'); } if (!(G.site == 'amazon' || G.site == '6pm')) { window.rightPromo = new Vue({ el: '#gwd-mini-promo-history', render: function render(h) { return h(MiniPromoHistory, { props: { promoHistory: data } }); } }); } if (showapp) { $('#mini_price_history').addClass('showapp'); } setTimeout(function () { if (!$('#mini_price_history').is(':visible')) { $('#mini_price_history').show(); } }, 100); case 19: case 'end': return context$1$0.stop(); } }, null, _this); }; var renderBtn = function renderBtn(data) { //$('#gwdang-trend').html('') var style = userData.get('permanent').style; if (style === 'top') { renderBtnTop(data); } else if (style === 'bottom') { renderBtnBtm(data); } $('#mini_price_history').html(''); renderMini(data); if (!data.store || data.store[0].all_line.length < 2) return; renderMiniDetail(data); $('#gwdang-trend').on('mouseleave', function (e) { setTimeout(function () { var arrs = $(e.target).parents(); for (var i = 0; i < arrs.length; i++) { var id = $(arrs[i]).attr('id'); if (id === 'favor_box') { return; } } //$('#gwdang-trend-detail').hide() $('#gwdang-trend').removeClass('tab-hover'); }, 150); }); }; var renderRemind = function renderRemind(data) { var money = '¥'; var site = G.logsite; var moneyInfo = countryConfig.getMoneyInfo(site); if (moneyInfo) money = moneyInfo[0]; 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('PriceRemindSetted')); case 2: __webpack_require__("d80601251d793aa54a67").setPriceData(money, data); //require('./price_remind').init(`#gwdang-trend-detail`, money, data) case 3: case 'end': return context$2$0.stop(); } }, null, this); }, 400); }; var addPriceStatus = function addPriceStatus(data) { if (data.price_status === -1 && data.store.length > 0) { var lastPrice = data.store[0].last_price / 100; var lowestP = data.store[0].lowest; if (lastPrice === lowestP) { data.price_status = -2; } } return data; }; module.exports.init = function callee$0$0() { var urlBeforeRequest, d; 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: topRendered = false; __webpack_require__("d0de61a729123238553b").resetBind(); if (!(G.site === 'epic')) { context$1$0.next = 5; break; } __webpack_require__("3cd1d8e0961acbb3ac12").init(); return context$1$0.abrupt('return'); case 5: context$1$0.next = 7; return regeneratorRuntime.awrap(__webpack_require__("3e983ecbff4e1a29654c").sleep(1000)); case 7: urlBeforeRequest = location.href; window.gwd_trend_request_id = Date.now(); d = window.gwd_trend_request_id; getPriceInfo(function callee$1$0(data) { var oldId, currentId, oldSku, currentSku, permanent, dpId; return regeneratorRuntime.async(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: if (!(d !== window.gwd_trend_request_id)) { context$2$0.next = 2; break; } return context$2$0.abrupt('return'); case 2: if (!(location.href !== urlBeforeRequest)) { context$2$0.next = 17; break; } if (!G.aliSite) { context$2$0.next = 15; break; } oldId = __webpack_require__("3e983ecbff4e1a29654c").getParameterByName('id', urlBeforeRequest); currentId = __webpack_require__("3e983ecbff4e1a29654c").getParameterByName('id'); oldSku = __webpack_require__("3e983ecbff4e1a29654c").getParameterByName('skuId', urlBeforeRequest); currentSku = __webpack_require__("3e983ecbff4e1a29654c").getParameterByName('skuId'); __webpack_require__("316f9c352c6202560d16").log('situation 1'); if (!(oldId !== currentId || oldSku !== currentSku)) { context$2$0.next = 13; break; } __webpack_require__("316f9c352c6202560d16").warn('url mismatch tb', { old: urlBeforeRequest, current: location.href }); if (!oldSku) { context$2$0.next = 13; break; } return context$2$0.abrupt('return'); case 13: context$2$0.next = 17; break; case 15: __webpack_require__("316f9c352c6202560d16").warn('url mismatch 2', { old: urlBeforeRequest, current: location.href }); return context$2$0.abrupt('return'); case 17: if (!(G.site === 'steampowered')) { context$2$0.next = 21; break; } permanent = userData.get('permanent'); if (permanent && permanent.setsteam !== '0') { __webpack_require__("0f62f0fb3b5cc89beb7a").init(data); } return context$2$0.abrupt('return'); case 21: // 判断是否是历史最低价 data = addPriceStatus(data); // 加载价格走势标签 renderBtn(data); // 加载价格走势里面的降价提醒 renderRemind(data); // renderDetail() context$2$0.next = 26; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('GwdDpIdGot')); case 26: dpId = context$2$0.sent; if (!(!data.store || data.store[0].all_line.length < 2)) { context$2$0.next = 29; break; } return context$2$0.abrupt('return'); case 29: $('#biggraph_' + G.from_device).remove(); __webpack_require__("316f9c352c6202560d16").log(data.store); __webpack_require__("d0de61a729123238553b").init(data, 'dpPage', false, { top: false, middle: false, bottom: false, baidu: false }); //let img = await require('common/request').get(`${G.server}/extension/QrCode?tag=PromoDetail&dp_id=${dpId}`) if (data.promo && data.promo.length > 0) { //$('#trend_com_detail').remove(); //G.promoTrendRendered = true //$('.app-tuiguang').remove() //$('#mini_price_history').removeClass('showapp') //require('./promoHistory').init(data.promo, data.nopuzzle_promo, data.store, '') } case 33: case 'end': return context$2$0.stop(); } }, null, _this2); }); case 11: case 'end': return context$1$0.stop(); } }, null, _this); }; // 加载中间展开部分 // if (G.site == 'amazon' || G.site == '6pm') return; // 获取价格走势数据 // 如果当前页面是steam网站 就加载steam价格走势 /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("6a0e4ebb57bf6aac1f2d"), __webpack_require__("b2848b041c3d11faa242")["default"])) /***/ }), /***/ "5a2d7325a9fa17d367de": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_JdSearchEnhance_vue_vue_type_script_lang_js__ = __webpack_require__("2da1f7bba007ce7d6057"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_JdSearchEnhance_vue_vue_type_script_lang_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_JdSearchEnhance_vue_vue_type_script_lang_js__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_JdSearchEnhance_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_JdSearchEnhance_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_JdSearchEnhance_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "5a880c5f097cde8712aa": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingMini_vue_vue_type_style_index_0_id_1a72083a_scoped_true_lang_less__ = __webpack_require__("882f3f6939d110dfaf41"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingMini_vue_vue_type_style_index_0_id_1a72083a_scoped_true_lang_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingMini_vue_vue_type_style_index_0_id_1a72083a_scoped_true_lang_less__); /* unused harmony reexport namespace */ /***/ }), /***/ "5b365eae6e242124044b": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Stamp_vue_vue_type_script_lang_js__ = __webpack_require__("530514ce41a695c4ead4"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Stamp_vue_vue_type_script_lang_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Stamp_vue_vue_type_script_lang_js__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Stamp_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Stamp_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Stamp_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "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__("6a0e4ebb57bf6aac1f2d"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("b2848b041c3d11faa242")["default"])) /***/ }), /***/ "5cd0325b5f8425a1a3d8": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_script_lang_js__ = __webpack_require__("c687c749d090e6790a48"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "5d01ce30b0cd4328ba33": /***/ (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 _PriceVue = __webpack_require__("b47266ebcd57075b6e88"); var _PriceVue2 = _interopRequireDefault(_PriceVue); var _ProductItemVue = __webpack_require__("c9e01ad51ac6ceee72ea"); var _ProductItemVue2 = _interopRequireDefault(_ProductItemVue); var _ErrorVue = __webpack_require__("e63627d6fd452331a10e"); var _ErrorVue2 = _interopRequireDefault(_ErrorVue); var extConsole = __webpack_require__("316f9c352c6202560d16"); var util = __webpack_require__("d54879e983a83d07f093"); var siteMap = { tb: '淘宝', jd: '京东', pdd: '拼多多', 1688: '1688', amazon: '亚马逊' }; var sortMap = { 'default': '相似度', price: '价格从低到高', sales: '销量从高到低' }; var SiteStatus = { pending: 'pending', finish: 'finish', loading: '加载中...', empty: '暂无同款', error: '加载失败', needLogin: 'needLogin', needVisit: 'needVisit' }; var apis = { tb: __webpack_require__("755d062f26066bcd1e27"), jd: __webpack_require__("4d7ef6d8879aae39d580"), 1688: __webpack_require__("f582538ae16974477675"), amazon: __webpack_require__("1f6981bf7281bed6494c") }; var makeDefaultStatus = function makeDefaultStatus() { return { status: SiteStatus.pending, list: [], statusDetail: '' }; }; if (window.gwd_G.apiReplace) { Object.keys(window.gwd_G.apiReplace).forEach(function (key) { apis[key] = window.gwd_G.apiReplace[key]; }); } exports['default'] = { components: { Price: _PriceVue2['default'], ProductItem: _ProductItemVue2['default'], Error: _ErrorVue2['default'] }, props: ['img', 'price'], data: function data() { return { is1688: location.hostname.includes('.1688.com'), firefox: navigator.userAgent.indexOf('Firefox') > -1, siteMap: siteMap, SiteStatus: SiteStatus, show: true, style: G.style, expanded: false, sites: G.aliSite ? ['tb', 'jd'] : ['jd', 'tb'], currentViewing: location.hostname.includes('.1688.com') ? '1688' : G.aliSite ? 'tb' : 'jd', currentSort: 'default', sortOptions: ['default', 'price', 'sales'], products: { tb: makeDefaultStatus(), jd: makeDefaultStatus(), pdd: makeDefaultStatus(), 1688: makeDefaultStatus(), amazon: makeDefaultStatus() } }; }, methods: { overlayClick: function overlayClick(e) { if (e.target === this.$refs.overlay) { this.close(); } }, getSiteName: function getSiteName(site) { return siteMap[site]; }, getSortName: function getSortName(sort) { if ((this.currentViewing === 'jd' || this.currentViewing === 'amazon') && sort === 'sales') { return '评论数从高到低'; } return sortMap[sort]; }, close: function close() { this.show = false; document.body.style.overflow = 'auto'; }, open: function open() { this.show = true; document.body.style.overflow = 'hidden'; }, doSearch: function doSearch(site) { var _this = this; var canRetry = arguments.length <= 1 || arguments[1] === undefined ? true : arguments[1]; if (this.products[site].status === SiteStatus.loading) { return; } this.products[site].status = SiteStatus.loading; apis[site].get(this.img).then(function (res) { extConsole.log(res); if (res instanceof Array) { _this.products[site].list = res; _this.products[site].status = res.length ? SiteStatus.finish : SiteStatus.empty; } else if (res === 'needLogin') { _this.products[site].status = SiteStatus.needLogin; } else if (res === 'needVisit') { _this.products[site].status = SiteStatus.needVisit; } else { if (canRetry && res.includes('fail-')) { setTimeout(function () { _this.products[site].status = SiteStatus.pending; _this.doSearch(site, false); }, 200); return; } _this.products[site].status = SiteStatus.error; _this.products[site].statusDetail = res; console.error('imgSearch', res); } })['catch'](function (err) { extConsole.error('imgSearch', err); _this.products[site].status = SiteStatus.error; }); } }, computed: { unit: function unit() { return G.site === 'amazon' ? '$' : '¥'; }, currentSiteResult: function currentSiteResult() { if (!this.products[this.currentViewing]) { console.error('imgSearch not found', this.currentViewing); console.log(this.products[this.currentViewing]); return makeDefaultStatus(); } return this.products[this.currentViewing]; }, sortedList: function sortedList() { var _this2 = this; this.$nextTick(function () { _this2.$refs.list.scrollTop = 0; }); return JSON.parse(JSON.stringify(this.currentSiteResult.list)).sort(function (a, b) { if (_this2.currentSort === 'default') { return 0; } else if (_this2.currentSort === 'price') { return parseFloat(a.price) - parseFloat(b.price); } else if (_this2.currentSort === 'sales') { return util.stringToNumber(b.salesAmount) - util.stringToNumber(a.salesAmount); } }); } }, watch: { currentViewing: function currentViewing(newVal) { extConsole.log('site load start', newVal); this.currentSort = 'default'; if (this.currentSiteResult.status === SiteStatus.pending) { this.doSearch(newVal); } } }, mounted: function mounted() { this.currentViewing = this.is1688 ? '1688' : G.aliSite ? 'tb' : 'jd'; if (this.is1688) { this.sites.unshift('1688'); } if (G.site === 'amazon') { this.sites = this.sites.filter(function (site) { return site === 'tb'; }); this.sites.unshift('1688'); this.sites.unshift('amazon'); this.currentViewing = 'amazon'; } this.doSearch(this.currentViewing); } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "5d4f0e584bd9a3a675b3": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = { modules: {}, version: 1732690058055, mv3: true, browser: {}, // debug: /gwdebug/.test(window ? window.location.href: ''), extend: function extend(obj) { for (var i in obj) { this[i] = obj[i]; } } }; /***/ }), /***/ "5d5a32f7c414a996ad86": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Error_vue_vue_type_script_lang_js__ = __webpack_require__("0f7a81ce41351a035292"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Error_vue_vue_type_script_lang_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Error_vue_vue_type_script_lang_js__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Error_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Error_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Error_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "5ededc36e367d9d07351": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, ".gwd-epic-bar-container[data-v-bc2362ee] {\n position: relative;\n z-index: 2;\n margin-top: -10px;\n height: 45px;\n justify-content: flex-end;\n}\n.gwd-epic-bar-container .gwd-epic-price[data-v-bc2362ee] {\n width: 262px;\n height: 32px;\n background: #007feb;\n border-radius: 3px;\n color: white;\n justify-content: center;\n margin-right: 32px;\n position: relative;\n font-size: 12px;\n cursor: pointer;\n}\n.gwd-epic-bar-container .gwd-epic-price .gwd-price-trend-panel[data-v-bc2362ee] {\n position: absolute;\n width: 400px;\n height: 260px;\n background: #1E1E1E;\n box-shadow: 0px 4px 9px 0px #030303;\n border-radius: 2px 0px 0px 2px;\n overflow: hidden;\n top: 32px;\n right: 0;\n z-index: 3;\n display: none;\n}\n.gwd-epic-bar-container .gwd-epic-price[data-v-bc2362ee]:hover {\n background: #1e94f8;\n}\n.gwd-epic-bar-container .gwd-epic-price:hover .gwd-price-trend-panel[data-v-bc2362ee] {\n z-index: 3;\n display: block;\n}\n.gwd-epic-bar-container .gwd-top-price[data-v-bc2362ee] {\n margin-top: 18px;\n justify-content: center;\n position: relative;\n z-index: 3;\n}\n.gwd-epic-bar-container .gwd-top-price .gwd-price-text[data-v-bc2362ee] {\n display: inline-block;\n min-width: 88px;\n height: 26px;\n margin-left: 18px;\n margin-right: 18px;\n text-align: center;\n border-width: 1px;\n border-style: solid;\n line-height: 24px;\n}\n.ttip-discount[data-v-bc2362ee] {\n background: #000000;\n color: #aaaaaa;\n width: 110px;\n height: 52px;\n}\n", ""]); // exports /***/ }), /***/ "60ae9a98ff0ad20eff60": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AliMobilePriceNotifier_vue_vue_type_template_id_1b4bff6e_scoped_true__ = __webpack_require__("52f3d79ba97fecbf5764"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AliMobilePriceNotifier_vue_vue_type_template_id_1b4bff6e_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AliMobilePriceNotifier_vue_vue_type_template_id_1b4bff6e_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AliMobilePriceNotifier_vue_vue_type_template_id_1b4bff6e_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AliMobilePriceNotifier_vue_vue_type_template_id_1b4bff6e_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AliMobilePriceNotifier_vue_vue_type_template_id_1b4bff6e_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AliMobilePriceNotifier_vue_vue_type_template_id_1b4bff6e_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "610940846b75cebc83ab": /***/ (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__("406009834f8be5c43aad"); if(typeof content === 'string') content = [[module.i, content, '']]; // add the styles to the DOM var update = __webpack_require__("10fdb983c061c1343439")(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/_css-loader@0.20.2@css-loader/index.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./BarTrendInfo.vue?vue&type=style&index=0&id=79b5dd44&scoped=true&lang=css", function() { var newContent = require("!!../../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./BarTrendInfo.vue?vue&type=style&index=0&id=79b5dd44&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(); }); } /***/ }), /***/ "6131b214d8cca1f7dad1": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Error_vue_vue_type_style_index_0_id_8eca1ada_scoped_true_lang_less__ = __webpack_require__("3f9fcc169280fbf7f1fa"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Error_vue_vue_type_style_index_0_id_8eca1ada_scoped_true_lang_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Error_vue_vue_type_style_index_0_id_8eca1ada_scoped_true_lang_less__); /* unused harmony reexport namespace */ /***/ }), /***/ "616b7851dc427243893b": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['title', 'priceInfo', 'priceInfoCopy', 'link'] }; module.exports = exports['default']; /***/ }), /***/ "619449bdf2ece9ea8a2b": /***/ (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, text = $data.text, qr = $data.qr, qrText = $data.qrText; $$out += '<div style="display: inline-flex; position: relative; vertical-align: middle;" class="gwd-middle-tmall '; $$out += $escape(extClass); $$out += '">\n <img '; $$out += 'src="https://cdn.bijiago.com/images/extensions/activity/tmall-redpack-middle.png"'; $$out += ' alt="" style="width: 17px; height: 19px;">\n <span style="font-size: 13px; color: #ff471a; margin-left: 3px; font-weight: 600; font-family: \'Microsoft YaHei\', \'Arial\', \'SimSun\'; white-space: nowrap">'; $$out += $escape(text); $$out += '</span>\n <div class="gwd-qr-act">\n <img class="gwd-act-qr-img" loading="lazy" src="'; $$out += $escape(qr); $$out += '" alt="" style="width: 130px; height: 130px; margin-top: 7px">\n <div style="margin-top: 5px; vertical-align: middle; font-size: 0; height: 14px; line-height: 14px; text-align: center; white-space: nowrap">\n <span style="font-size: 12px; color: #ff1a78; font-weight: bold; margin-left: 15px">微信扫码</span>\n <span style="margin-left: 3px; color: #070707; font-size: 12px; transform-origin: center left; transform: scale(0.8333); display: inline-block; white-space: nowrap">'; $$out += $escape(qrText); $$out += '</span>\n </div>\n </div>\n</div>\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 white-space: nowrap;\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: 999;\n }\n\n .gwd-middle-tmall:hover .gwd-qr-act {\n display: flex;\n }\n</style>\n'; return $$out; }; /***/ }), /***/ "62c6a2ac147e5e91da46": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, ".gwd-qrlink-left[data-v-263c4225] {\n width: 165px;\n height: 36px;\n background: white;\n border-radius: 4px;\n border: 1px solid #dadde0;\n position: absolute;\n top: 10px;\n right: 0;\n cursor: pointer;\n box-sizing: border-box;\n}\n.gwd-qrlink-left .gwd-qr-content[data-v-263c4225] {\n position: absolute;\n width: 109px;\n height: 108px;\n border: 1px solid #eaeaea;\n padding-top: 5px;\n display: none;\n top: 0px;\n left: -109px;\n box-sizing: border-box;\n z-index: 9999;\n background: white;\n}\n.gwd-qrlink-left:hover .gwd-qr-content[data-v-263c4225] {\n display: flex;\n}\n", ""]); // exports /***/ }), /***/ "64404deff3f781235a69": /***/ (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__("532fb0f3345f73fa6cd9"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("7c077192", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./AliMobilePriceNotifier.vue?vue&type=style&index=0&id=1b4bff6e&scoped=true&lang=less", function() { var newContent = require("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./AliMobilePriceNotifier.vue?vue&type=style&index=0&id=1b4bff6e&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "6551eb75655b14df2b7e": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, ".gwd-favor-icon[data-v-1e4a0206] {\n display: inline-block;\n width: 24px;\n height: 24px;\n background: url(" + __webpack_require__("0a1ed4ce9cfe0674cd93") + ") no-repeat;\n}\n.gwd-favor-icon.gwd-favored[data-v-1e4a0206] {\n background: url(" + __webpack_require__("8e58f013a9e9162fc829") + ") no-repeat;\n}\n.ms-tab-enter .gwd-favor-icon[data-v-1e4a0206] {\n background: url(" + __webpack_require__("8e58f013a9e9162fc829") + ") no-repeat;\n}\n", ""]); // exports /***/ }), /***/ "657c0ad1dbccc9ce96eb": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, ".gwd-price[data-v-26424954] {\n color: #ff4449;\n height: 24px;\n line-height: 24px;\n font-weight: 500;\n font-family: \"PingFang SC-Medium\", \"PingFang SC\";\n}\n", ""]); // exports /***/ }), /***/ "65cb632859494beda768": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $, regeneratorRuntime, Vue) { var _this = this; var template = __webpack_require__("274e32dfd54a6b0d18a9"); var request = __webpack_require__("91f250ebeb8d5987491c"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var store = __webpack_require__("e41a11f7982e4aab1ce6"); var _require = __webpack_require__("966caf0f29e39a633494"); var MiniBarCollectionButton = _require['default']; var country = 'us'; var timer, timer2; var HOST; var htX, htY, mouseDownX; var sizeDict = { '米': 3000, '厘米': 30, '毫米': 3, '英尺': 914.4, '英寸': 76.2, '码': 2743.2, '尺': 1000, '寸': 100, '分': 10, '厘': 1 }; 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': ['#corePriceDisplay_desktop_feature_div', '#price_feature_div', '#unifiedPrice_feature_div', '#tmmSwatches'], 'position': 'after' }, 'www.amazon.co.jp': { 'coun': 'jp', 'dom': ['#corePriceDisplay_desktop_feature_div', '#price_feature_div', '#unifiedPrice_feature_div'], 'position': 'after' }, 'www.amazon.fr': { 'coun': 'fr', 'dom': ['#corePriceDisplay_desktop_feature_div', '#price_feature_div', '#unifiedPrice_feature_div'], 'position': 'after' }, 'www.amazon.de': { 'coun': 'uk', 'dom': ['#corePriceDisplay_desktop_feature_div', '#price_feature_div', '#unifiedPrice_feature_div'], 'position': 'after' }, 'www.amazon.co.uk': { 'coun': 'uk', 'dom': ['#corePriceDisplay_desktop_feature_div', '#price_feature_div', '#unifiedPrice_feature_div'], 'position': 'after' }, 'www.amazon.ca': { 'coun': 'uk', 'dom': ['#corePriceDisplay_desktop_feature_div', '#price_feature_div', '#unifiedPrice_feature_div'], 'position': 'after' }, 'www.6pm.com': { 'coun': 'us', 'dom': ['.mGIQz', '#itemInformation'], 'position': 'before' } }; var insertSize = 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 })); }; var calDetailPos = function calDetailPos() { var wWeight = ($(window).width() - 595) / 2; var wHeight = ($(window).height() - 420) / 2; return { 'posx': wWeight, 'posy': wHeight }; }; var render_size_detail = function render_size_detail() { var html = __webpack_require__("0989198e96b0f7f0a831"); $('body').append(template.compile(html)({ pos: calDetailPos() })); }; var getClothes = 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']; } }; var addSizeEvent = function addSizeEvent() { /*添加尺码部分事件*/ $('.closebar').on('click', function () { $(this).parent().hide(); }); $('.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'); }); /*尺寸转换*/ $('.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(); }); }; var conversionSize = 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); }; var getCountry = function getCountry() { /*获取页面所属地区*/ var host = location.host; for (var pattern in sitePattern) { if (pattern == host) { country = sitePattern[pattern]['coun']; HOST = pattern; } } }; var getContainer = function getContainer() { var host = location.host; var patterns = sitePattern[host]; if (!patterns) return false; return new Promise(function callee$1$0(resolve) { var found, testTimes, dom; return regeneratorRuntime.async(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: found = false, testTimes = 0; case 1: if (!(!found && testTimes < 10)) { context$2$0.next = 15; break; } dom = patterns.dom.find(function (dom) { return $(dom).length > 0; }); if (!dom) { context$2$0.next = 9; break; } found = true; console.log('dom found', dom); resolve(dom); context$2$0.next = 13; break; case 9: testTimes++; console.log('waiting for dom', testTimes); context$2$0.next = 13; return regeneratorRuntime.awrap(new Promise(function (resolve) { return setTimeout(resolve, 1000); })); case 13: context$2$0.next = 1; break; case 15: case 'end': return context$2$0.stop(); } }, null, _this); }); // for (let i = 0; i < patterns.dom.length; i++) { // if ($(patterns.dom[i]).length > 0) { // return patterns.dom[i]; // } // } // return false; }; var addCommonEvent = function addCommonEvent() { var href = location.href; $('#gwd_website_icon').on('click', function (e) { e.preventDefault(); __webpack_require__("d54879e983a83d07f093").openTab(); }); $('#gwd_minibar').on('click', function (e) { if ($(e.target).hasClass('sizehelp') || $(e.target).parent().hasClass('sizehelp')) { $('#size_detail').show(); } }); $('#ht_favor').on('click', function () { if (!G.email) { window.location.href = G.c_server + "/user/login?from_url=" + encodeURIComponent(href); } else { __webpack_require__("6b8303d96ee13d08f335").addFavor(function () { window.location.href = G.c_server + "/user/login?from_url=" + encodeURIComponent(href); }); } }); $('.gwd-minibar-bg').on('mouseenter', '.minibar-tab', function () { $('#gwd_minibar').addClass('ms_enter'); $(this).addClass('ms-tab-enter'); var id = $(this).attr('id'); $('#' + id + '_detail').show(); if (id === "mini_price_history") { log("minitrend-show"); __webpack_require__("6973d6984a148bf8a638").calLineHeight(); } }); $('.gwd-minibar-bg').on('mouseleave', '.minibar-tab', function () { $('#gwd_minibar').removeClass('ms_enter'); $(this).removeClass('ms-tab-enter'); $(this).removeClass('ms-tab-enter'); var id = $(this).attr('id'); $('#' + id + '_detail').hide(); }); }; var renderMini = function renderMini(dom) { $('body').addClass('ht_site'); var host = location.host; var html = __webpack_require__("a818577df08cb685e920"); var t = template.compile(html)({}); switch (sitePattern[host]['position']) { case 'before': $(dom).before(t); break; case 'after': $(dom).after(t); break; } addCommonEvent(); var store = __webpack_require__("e41a11f7982e4aab1ce6").getStore(); new Vue({ el: '#gwd_mini_remind .minibar-btn-box', store: store, render: function render(h) { return h(MiniBarCollectionButton); } }); }; 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 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); }); } 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'; } module.exports.init = function callee$0$0() { var permanent, pattern; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: permanent = userData.get('permanent'); // if (permanent.sethaitao === "0") return; __webpack_require__("fb2d125acf2943378dcc"); context$1$0.next = 4; return regeneratorRuntime.awrap(getContainer()); case 4: pattern = context$1$0.sent; getCountry(); if (pattern) { context$1$0.next = 8; break; } return context$1$0.abrupt('return'); case 8: renderMini(pattern); getSelect(); render_size_detail(); try { insertSize(clothesDict['shangyi'][country]['man'][0], clothesDict['shangyi'][country]['man'][1]); addSizeEvent(); } catch (e) { console.error(e); } setTimeout(function () { // check_favor() }, 1000); case 13: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports.getHtInfo = function () { var obj = {}; obj.HOST = HOST; obj.protype = isZiying(); return obj; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("6a0e4ebb57bf6aac1f2d"), __webpack_require__("b2848b041c3d11faa242")["default"])) /***/ }), /***/ "663e45ac78aa7ee1d7e7": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['data', 'type'], data: function data() { return { rendered: false }; }, methods: { draw: function draw() { if (this.rendered) return; this.rendered = true; __webpack_require__("7bc264230157b5cefc24")({ el: this.$refs.plotArea, msg: this.data.store[0], unit: ' ', bg: '#1e1e1e' }); } }, mounted: function mounted() { console.log(this.data); }, computed: { priceStatusText: function priceStatusText() { return ['历史最低', '价格下降', '价格平稳', '价格上涨'][this.data.price_status + 2]; }, priceTrendIcon: function priceTrendIcon() { return [G.s_server + '/images/extensions/newbar/fall@2x.png', G.s_server + '/images/extensions/newbar/fall@2x.png', G.s_server + '/images/extensions/newbar/stable@2x.png', G.s_server + '/images/extensions/newbar/rise@2x.png'][this.data.price_status + 2]; } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "6922c844cd253134c1ab": /***/ (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__("657c0ad1dbccc9ce96eb"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("195de4e2", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./Price.vue?vue&type=style&index=0&id=26424954&scoped=true&lang=less", function() { var newContent = require("!!../../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./Price.vue?vue&type=style&index=0&id=26424954&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "6973d6984a148bf8a638": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var util = __webpack_require__("d54879e983a83d07f093"); var lowestIndex = undefined, showFold = undefined; module.exports.init = function (data, nop_data, store, img) { render(data, nop_data, store, img); }; var editData = function editData(originData, nop_data, store) { if (!originData) return undefined; var data = JSON.parse(JSON.stringify(originData)); var lowestp = store[0].lowest; var storesize = store[0].all_line.length; if (storesize > 180) { var all_line2 = store[0].all_line.slice(storesize - 180); lowestp = Math.min.apply(null, all_line2); } nop_data = nop_data || []; var datal = data.length; if (!datal) return undefined; var lowest = data[datal - 1].price, lowIndex = datal - 1; for (var i = datal - 1; i >= 0; i--) { for (var j = 0; j < nop_data.length; j++) { if (data[i].time === nop_data[j].time) { if (data[i].price === nop_data[j].price) { data[i] = JSON.parse(JSON.stringify(nop_data[j])); data[i].isDSJ = true; } else { data.splice(i + 1, 0, JSON.parse(JSON.stringify(nop_data[j]))); data[i + 1].isDSJ = true; } } } } for (var i = 0; i < data.length; i++) { if (data[i].price <= lowest) { lowest = data[i].price; lowIndex = i; } if (data[i].msg.coupon) { var str = data[i].msg.coupon; if (str.match(/\d+-\d+/)) { var arr = str.split('-'); data[i].coupon = '券: ' + '满' + arr[0] + '减' + arr[1]; } else { data[i].coupon = '券: ' + data[i].msg.coupon; } } if (data[i].msg.promotion) { data[i].promotion = '促: ' + data[i].msg.promotion; } var time = data[i].time * 1000; var month = new Date(time).getMonth() + 1; var day = new Date(time).getDate(); if (month < 10) { month = '0' + month.toString(); } if (day < 10) day = '0' + day.toString(); data[i].time2 = month + '-' + day; // data[i].price = (data[i].price / 100).toFixed(2) // data[i].ori_price = (data[i].ori_price / 100).toFixed(2) } if (lowest / 100 < lowestp) { data[lowIndex].isLowest = true; } data.sort(function (v1, v2) { return v2.time - v1.time; }); var lowIndex2 = undefined; for (var i = 0; i < data.length; i++) { if (data[i].isLowest) { lowIndex2 = i; data[i].mark = "lowest_now"; } if (!lowIndex2 && lowIndex2 !== 0) { data[i].mark = "lowest_before"; } else if (i > lowIndex2) { data[i].mark = "lowest_after"; } } lowestIndex = lowIndex2; var timestr = util.getTimeNumber(new Date().getTime(), '2'); if (timestr === data[0].time2) { data[0].isnowDay = true; } return data; }; module.exports.editData = editData; var addEvent = function addEvent() { $('.show_fold .fold-bar').on('click', function () { $('.history-content').removeClass('show_fold'); showFold = false; calLineHeight(); }); }; var render = function render(originData, nop_data, store, img) { var data = editData(originData, nop_data, store); if (data.length > 3 && lowestIndex > 1) { showFold = true; } var html = __webpack_require__("54f6a19b72006d359bae"); $('#mini_price_history_detail').append(template.compile(html)({ data: data, showFold: showFold, img: img })); addEvent(); }; var calLineHeight = function calLineHeight() { setTimeout(function () { var mH = 0; var doms = $('.history-content>ul li'); for (var i = 0; i < doms.length - 1; i++) { var h = doms.eq(i).height(); if (h > 0 && doms.eq(i).is(':visible')) { mH = mH + h + 22; } } if (showFold) { mH += 32; } $('.history-line').css('height', mH + 'px'); var firstH = $('.history-content>ul li').eq(0).outerHeight() + 26; $('.show_fold .fold-bar').css('top', firstH + 'px'); }, 10); }; module.exports.calLineHeight = calLineHeight; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "697c3c62b588ebd6f1b3": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); module.exports.ready = function () { var arr = ['www.amazon.com', 'www.amazon.de', 'www.amazon.co.jp']; if (arr.indexOf(location.host) == -1) return; var info = { 'name': G.dp.name || '', 'price': G.dp.oldPrice || '0' }; communicate.trigger({ type: 'getAmazonPriceTrend', 'info': JSON.stringify(info) }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "69aae4b8ea58b9418187": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_script_lang_js__ = __webpack_require__("c5d0b24d31354944d275"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_script_lang_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_script_lang_js__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_script_lang_js__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "69f5719fde0c1382bdeb": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Stamp_vue_vue_type_template_id_a70db998_scoped_true__ = __webpack_require__("3cc063a6cebebf64b958"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Stamp_vue_vue_type_script_lang_js__ = __webpack_require__("5b365eae6e242124044b"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__Stamp_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__Stamp_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Stamp_vue_vue_type_style_index_0_id_a70db998_scoped_true_lang_less__ = __webpack_require__("15f9b07a5eb543be381a"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__Stamp_vue_vue_type_script_lang_js__["default"], __WEBPACK_IMPORTED_MODULE_0__Stamp_vue_vue_type_template_id_a70db998_scoped_true__["render"], __WEBPACK_IMPORTED_MODULE_0__Stamp_vue_vue_type_template_id_a70db998_scoped_true__["staticRenderFns"], false, null, "a70db998", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('a70db998')) { api.createRecord('a70db998', component.options) } else { api.reload('a70db998', component.options) } module.hot.accept("./Stamp.vue?vue&type=template&id=a70db998&scoped=true", function () { api.rerender('a70db998', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/Widgets/Stamp.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "6a6d60b5e4dc52d8b1ea": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {//添加基本的参数配置和函数 __webpack_require__("caeb48377dbdbfe42966"); G.extend({ crc64: true, union: "union_gwdang", show_tip: 1, show_wishlist: 1, show_guess: 1, show_mainbar: 1, show_promo: 1, set_force: false, default_style: 'top', ut: '&trans=1', from_device: '360server', extBrand: 'gwd', extName: 'gwdang', go_union: 'http://u.gwdang.com/union/go', p_id: '', is_open: 0, position: 0, style: '', notice: 0, first: 0, fold: 0, p_fold: 0, pop_share: 1, email: '', subsite_id: '', force: [], on_building: true, built_counter: 0, collectionChanged: true, gwd_browser_type: 1, gwd_cnzz: location.protocol + '//s11.cnzz.com/z_stat.php?id=1256793290&web_id=1256793290', is_site_page: null, href: window.location ? window.location.href : '', collectInfo: { dp_id: "", title: "", site_id: 0, url: "", img: "", price: "", comment: "" }, now_dp_id: '', where_buy_dps: '', width: document.documentElement.clientWidth > 0 ? document.documentElement.clientWidth : document.body.clientWidth, timer: null, timer2: null, timer3: null, timer4: null, timer5: null, //fix suning timer5_mutex: true, //mutex height: 0, scrollTop: 0, page_size: 6, page_size_mini: 4, page_now: { b2c: 1, taobao: 1, tmall: 1, also_buy: 1, promotion: 1, b2c_fuzzy: 1 }, page_total: { b2c: 1, taobao: 1, tmall: 1, also_buy: 1, promotion: 1, b2c_fuzzy: 1 }, total_num: { b2c: 6, taobao: 6, tmall: 6, also_buy: 6, promotion: 6, b2c_fuzzy: 6 }, module_name: ["b2c", "taobao", "tmall", "also_buy", "promotion", "b2c_fuzzy"], dpIsBook: false, hiddenFavorButton: false, save_tbres_data: null, save_promo_len: 0, save_price_trend_data: null, save_promo_data: null, topResizeTimer: null, bottomResizeTimer: null }); var ua = navigator.userAgent; if (ua.indexOf('Firefox') > -1) { G.gwd_cnzz = ''; } /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "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; }; /***/ }), /***/ "6b517f1a19558569c7df": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MemberCouponMiniBjg_vue_vue_type_script_lang_js__ = __webpack_require__("a919e1b39b9298b52ffb"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MemberCouponMiniBjg_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "6b5f3f4c7b5f37c1088e": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $, regeneratorRuntime, Vue) { var _this3 = this; var template = __webpack_require__("274e32dfd54a6b0d18a9"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var store = __webpack_require__("e41a11f7982e4aab1ce6"); var extConsole = __webpack_require__("316f9c352c6202560d16"); var _require = __webpack_require__("966caf0f29e39a633494"); var MiniBarCollectionButton = _require['default']; //嵌入位置设置 var sitePattern = { 'ymatou': ['.price-panel'], 'hihonor': ['.product-price'], 'amazon': ['#price_feature_div', '#unifiedPrice_feature_div'], 'vmall': ['.product-info .product-info-list', '.pro-right .pro-meta-area', '.pro-price'], 'yougou': ['#ygprice_area'], 'gome': ['.prdprice', '#bargain', '.prd-price-1'], 'vipshop': ['.pi-price-box'], '360buy': ['#summary-price', '.summary-price', '#surplus-time', '#product-intro #price'], '360buy-book': ['#summary-price'], '360buy-re': ['.shop_intro .shop_intro_a'], 'taobao': ['.tm-fcs-panel', '#J_PromoPrice', '#J_StrPriceModBox', '[class^=MiniHead--miniPanelHead--]', { selector: '[class^=PurchasePanel--contentWrap--] > [class^=CouponInfo--couponInfo]', position: 'after' }, { selector: '[class^=Price--root]', position: 'after' }, '[class^=SecurityPrice--securityPrice]', { selector: '[class^=MiniHead--miniPanelHead--]', position: 'after' }, { selector: '[class^=Address--MCDelivery--]', position: 'before' }], 'taobao-ju': ['.J_BuySubForm', '[class^=MiniHead--miniPanelHead--]'], 'taobao-95095': ['.tm-fcs-panel', '#J_PromoPrice', '#J_StrPriceModBox', '[class^=MiniHead--miniPanelHead--]'], 'tmall': ['.tm-fcs-panel', '#J_PromoPrice', '#J_StrPriceModBox', '[class^=MiniHead--miniPanelHead--]', // { // selector: '[class^=CouponInfo--couponInfo]', // position: 'before' // }, { selector: '[class^=PurchasePanel--contentWrap--] > [class^=CouponInfo--couponInfo]', position: 'after' }, { selector: '[class^=Price--root]', position: 'after' }, '[class^=SecurityPrice--securityPrice]', { selector: '[class^=MiniHead--miniPanelHead--]', position: 'after' }, { selector: '[class^=Address--MCDelivery--]', position: 'before' }], '51buy': ['.xbase_item:contains("促销价")', '.xbase_item:contains("易迅价")', '#goods_detail_mate .item_icson', '.xbase_row2', '#promotePrice', '#shopprice', '#promotePriceArea'], 'suning': ['#noPrice', '#_main_price', '#existPrice', '#netPriceBox', '#hasPrice', '#mainPrice', '#priceDom'], 'dangdang': ['.price_time', '.d15_price_info', '.price_qiang', '.price_info', '.show_info .sale>p', '.sale_box:first'], 'yihaodian': ['#point_productPrice', '.price_array', '#currentPriceArea'], 'vancl': ['#pricearea .cuxiaoPrice'], 'newegg': ['.neweggPrice', '.goods_price_now'], 'kaola': ['.m-price-wrap .m-price'], 'lenovo': ['#div_product_dec', '#span_product_name'], 'microsoftstore': ['.priceAndRank'], 'bookuu': ['.bc-e5.pd-15'], 'xiaomi': ['.J_saleWrap.sale-wrap', '.pro-time.J_proSeckill', '.goods-info-head-price', '.pro-time.J_proOrder', '.price-info'], "youpin-mi": [".sku-container .price-line"], 'okbuy': ['.prodPriceLiJ .prodPrice'], 'banggo': ['.mbshop_detail_baseinfo'], 'you163': ['.price>.f-clearfix'], 'colipu': ['.product-price'], 'nbdeli': ['#pomotion_befor'], '3c2p': ['#goodsPrice'], 'comix': ['.price-panel'] }; var getContainer = function getContainer() { var site = G.site; var patterns = sitePattern[site]; if (!patterns || patterns && patterns.length === 0) return false; for (var i = 0; i < patterns.length; i++) { var selector = patterns[i].selector || patterns[i]; var position = patterns[i].position || 'after'; if ($(selector).length > 0) { return { selector: selector, position: position }; } } return false; }; var renderMiniBar = function renderMiniBar(container) { __webpack_require__("316f9c352c6202560d16").log('render minibar begin', G.instanceId); var newTime = __webpack_require__("7026a4b5462dc6da5555").getNewTime(); if (newTime - new Date().getTime() < 300000) { newTime = false; } var href = encodeURIComponent(document.location.href); var html = __webpack_require__("89ea19c6f77aeaf47846"); var setUrl = G.server + '/brwext/setting?from=' + G.from_device; var feedbackUrl = 'https://www.' + G.extName + '.com/brwext/suggest?refer=' + href + '&from_device=' + G.from_device; var priceContainer = html({ 'setUrl': setUrl, 'aliSite': G.aliSite, 'feedbackUrl': feedbackUrl, newTime: false, minidom: G.wishdom2, wishdom: G.wishdom }); // if (location.host === 'goods.kaola.com.hk') { // let dom = `<div id="kaolaHkRepair" style="display:none;"><span></span></div>` // $('body').append($(dom)) // let newContainer = container; // container = '#kaolaHkRepair>span' // kaolaHkRepair(newContainer) // } if (container.position === 'append') { $(container.selector).append(priceContainer); } else if (container.position === 'before') { $(container.selector).eq(0).before(priceContainer); } else { $(container.selector).eq(0).after(priceContainer); } __webpack_require__("316f9c352c6202560d16").log('render minibar end', G.instanceId); }; var times = 0; var kaolaHkRepair = function kaolaHkRepair(dom) { if (times >= 10) { return; } times++; if ($('.m-price-wrap .m-price .currentPrice').text().match(/\d/)) { $(dom).eq(0).after($('#kaolaHkRepair>span').next()); $('#kaolaHkRepair').remove(); return; } setTimeout(function () { kaolaHkRepair(dom); }, 1000); }; var parsePrice = function parsePrice(price) { if (parseInt(price) > 999999) { return parseInt(price); } else { return price; } }; var addEvent = function addEvent() { $('.gwd-minibar-bg').on('mouseenter', '.minibar-tab', function () { $('#gwd_minibar').addClass('ms_enter'); $(this).addClass('ms-tab-enter'); var id = $(this).attr('id'); $('#' + id + '_detail').show(); if (id === "mini_price_history") { log("minitrend-show"); __webpack_require__("6973d6984a148bf8a638").calLineHeight(); } }); $('.gwd-minibar-bg').on('mouseleave', '.minibar-tab', function () { $('#gwd_minibar').removeClass('ms_enter'); $(this).removeClass('ms-tab-enter'); $(this).removeClass('ms-tab-enter'); var id = $(this).attr('id'); $('#' + id + '_detail').hide(); }); $('#gwd_website_icon').on('click', function (e) { e.preventDefault(); __webpack_require__("d54879e983a83d07f093").openTab(); }); }; module.exports.renderMiniCom = function (data) { var nowprice = undefined; try { nowprice = userData.get('other_info')['code-server'].price; } catch (e) { nowprice = G.dp.price; } if (!nowprice) nowprice = G.dp.price; if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) { return; } var store = undefined; if (!data.b2c || data.b2c.length === 0) { store = []; } else { store = data.b2c.store; } var newData = []; var storeSize = store.length; //这几个网站做了新的图标 var new_icon_site_ids = [1, 103, 108, 123, 124, 126, 129, 134, 136, 14, 141, 15, 167, 168, 19, 2, 21, 25, 26, 28, 3, 31, 34, 35, 41, 6, 66, 7, 86, 93, 9]; for (var i = 0; i < store.length && i < 6; i++) { var product = store[i].product && store[i].product[0] || store[i]; var dp_id = product.dp_id || ''; var site_id = product.site_id; if (parseInt(site_id) === 3003) { site_id = 3; } var icon_format = new_icon_site_ids.indexOf(Number(site_id)) > -1 ? '.png' : '.ico'; if (!site_id) continue; product.price = parsePrice(product.price.replace(/,/g, "")); product.icourl = G.s_server + '/images/favicon/' + site_id + icon_format; newData.push(product); } var tle = '其他' + storeSize + '家报价'; var bclass = ''; if (newData.length === 0) { tle = '暂无商城比价'; bclass = 'no-com-info'; } else if (newData[0].price < Number(nowprice)) { tle = '<em>更低价:</em><em class="prifontf price-em">' + newData[0].price + '</em>'; } var t = '<div class="minibar-btn-box">\n <em class="setting-bg mini-compare-icon "></em>\n <span >' + tle + '</span>\n </div>'; $('#gwd_mini_compare').append($(t)).css("display", "block").addClass(bclass); if (newData.length > 0) { var html = __webpack_require__("c45e5daa2cf575babe3f"); var allLink = G.c_server + '/dp' + data.dp.dp_id; var obj = { data: newData, allLink: allLink, storeSize: storeSize }; $('#gwd_mini_compare').append(html(obj)); userData.set('minicom', obj); // if ($('#mini_price_history_detail').length > 0) { // renderTrendCompare(newData, storeSize, allLink) // } else { // setTimeout(function() { // renderTrendCompare(newData, storeSize, allLink) // }, 400) // } } else { $('#gwd_mini_compare').off(); } }; var renderTrendCompare = function renderTrendCompare(data, storeSize, allLink) { if (G.promoTrendRendered) { return; } var html = __webpack_require__("e20eddb8c3d59ac76a75"); $('.app-tuiguang').remove(); $('#mini_price_history').removeClass('showapp'); $('#mini_price_history_detail').append(html({ data: data, allLink: allLink, storeSize: storeSize })); }; function recoverMiniBar() { var globalConfig, recoverConfig, i, selector, position, target; return regeneratorRuntime.async(function recoverMiniBar$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!$('.miniPanel').length) { context$1$0.next = 3; break; } if ($('#gwd-tb-mini-coupon').length) { $('#gwd-tb-mini-coupon').insertAfter($('[class^=miniPanelHead--]')); } return context$1$0.abrupt('return'); case 3: context$1$0.next = 5; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('GwdConfig')); case 5: globalConfig = context$1$0.sent; if (!(globalConfig && globalConfig.gwdMiniBarRecoverConfig)) { context$1$0.next = 19; break; } recoverConfig = globalConfig.gwdMiniBarRecoverConfig.aliSite; i = 0; case 9: if (!(i < recoverConfig.length)) { context$1$0.next = 19; break; } selector = recoverConfig[i].selector; position = recoverConfig[i].position; target = $(selector); if (!target.length) { context$1$0.next = 16; break; } if (position === 'before') { $('.gwd-minibar-bg').insertBefore(target); } else { $('.gwd-minibar-bg').insertAfter(target); } return context$1$0.abrupt('return'); case 16: i++; context$1$0.next = 9; break; case 19: case 'end': return context$1$0.stop(); } }, null, this); } module.exports.recoverMiniBar = recoverMiniBar; module.exports.init = function () { __webpack_require__("316f9c352c6202560d16").log('minibar init'); // 获取配置信息, 看是否需要展示中间部分 var permanent = userData.get('permanent'); // if (G.forbidMinibar) return; if (permanent.setWishlist === '0' || permanent.setWishlist === 0) return; if (G.site == 'amazon' || G.site == '6pm') { __webpack_require__("65cb632859494beda768").init(); return; } renderCon(); }; var renderDom = undefined; var delaySite = ['kaola']; var renderCon = function renderCon() { var instanceId, globalConfig, panel, container, store, el; return regeneratorRuntime.async(function renderCon$(context$1$0) { var _this2 = this; while (1) switch (context$1$0.prev = context$1$0.next) { case 0: instanceId = G.instanceId; if (!(delaySite.indexOf(G.site) > -1)) { context$1$0.next = 4; break; } context$1$0.next = 4; return regeneratorRuntime.awrap(__webpack_require__("3e983ecbff4e1a29654c").sleep(5000)); case 4: context$1$0.next = 6; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('GwdConfig')); case 6: globalConfig = context$1$0.sent; if (G.aliSite) { panel = globalConfig.aliMobileNotifierConfig.map(function (i) { return i.panel; }).find(function (item) { if ($(item).length) { return $(item)[0]; } return false; }); if (panel) { __webpack_require__("2995c4cdfa33d52c0bc3").observe(panel, function callee$1$0(mutations) { return regeneratorRuntime.async(function callee$1$0$(context$2$0) { var _this = this; while (1) switch (context$2$0.prev = context$2$0.next) { case 0: extConsole.log('mutations:', mutations); if (!(globalConfig && globalConfig.gwdMiniBarRecoverConfig)) { context$2$0.next = 6; break; } context$2$0.next = 4; return regeneratorRuntime.awrap((function callee$2$0() { var config; return regeneratorRuntime.async(function callee$2$0$(context$3$0) { while (1) switch (context$3$0.prev = context$3$0.next) { case 0: config = globalConfig.gwdMiniBarRecoverConfig.aliSite; context$3$0.next = 3; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { for (var i = 0; i < config.length; i++) { var selector = config[i].selector; if ($(selector).length) { return true; } } return false; })); case 3: case 'end': return context$3$0.stop(); } }, null, _this); })()); case 4: context$2$0.next = 8; break; case 6: context$2$0.next = 8; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return $('[class^=ActiveInfo--root--]').length || $('[class^=CouponInfo--couponInfo]').length || $('[class^=Price--root]').length; })); case 8: // 仅在panel的class发生变化时重新渲染minibar recoverMiniBar(); case 9: case 'end': return context$2$0.stop(); } }, null, _this2); }, { attributes: true, attributeFilter: ['class'] }); } } if (globalConfig && globalConfig.gwdMiniBarPositions) { if (G.aliSite) { sitePattern['taobao'] = globalConfig.gwdMiniBarPositions.aliSite; sitePattern['tmall'] = globalConfig.gwdMiniBarPositions.aliSite; } else { if (globalConfig.gwdMiniBarPositions[G.site]) { sitePattern[G.site] = globalConfig.gwdMiniBarPositions[G.site]; } } } container = getContainer(); __webpack_require__("316f9c352c6202560d16").log('container:', container); context$1$0.next = 13; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { if (container) return true; container = getContainer(); return false; })); case 13: if (!(window.gwd_G && window.gwd_G.instanceId !== instanceId)) { context$1$0.next = 16; break; } __webpack_require__("316f9c352c6202560d16").warn('instanceId不一致,不渲染minibar'); return context$1$0.abrupt('return'); case 16: renderMiniBar(container); store = __webpack_require__("e41a11f7982e4aab1ce6").getStore(); new Vue({ el: '#gwd_mini_remind .minibar-btn-box', store: store, render: function render(h) { return h(MiniBarCollectionButton); } }); addEvent(); el = $('.gwd-minibar-bg')[0]; G.miniBar = el; // 网页可能会移除minibar, if (el) { __webpack_require__("2995c4cdfa33d52c0bc3").observe(el, function (mutations) { mutations.forEach(function (mutation) { if (mutation.removedNodes.length) { __webpack_require__("316f9c352c6202560d16").log('minibar被移除'); if (G.instanceId === $('html').attr('data-gwd-id')) { recoverMiniBar(); } } }); }); } case 23: case 'end': return context$1$0.stop(); } }, null, _this3); }; // 确保.gwd-minibar-bg在.ActiveInfo上方 // 获取页面上的插入节点 // const panel = $('#purchasePanel')[0] /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("6a0e4ebb57bf6aac1f2d"), __webpack_require__("b2848b041c3d11faa242")["default"])) /***/ }), /***/ "6b6778642ca576c8a252": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, "a[data-v-5ccff421] {\n background: url(" + __webpack_require__("7085b088614fbdb590cb") + ");\n width: 256px;\n height: 30px;\n}\na span[data-v-5ccff421] {\n text-align: center;\n}\na .gwd-content[data-v-5ccff421] {\n color: white;\n font-size: 12px;\n}\na .gwd-take[data-v-5ccff421] {\n display: inline-block;\n font-size: 12px;\n color: white;\n width: 70px;\n}\na[data-v-5ccff421]:hover {\n text-decoration: none!important;\n}\n", ""]); // exports /***/ }), /***/ "6b8303d96ee13d08f335": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G, Vue, regeneratorRuntime) { var _this = this; var template = __webpack_require__("274e32dfd54a6b0d18a9"); var request = __webpack_require__("91f250ebeb8d5987491c"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var golbal2 = __webpack_require__("1c640a99db9f6f8a16c2"); var util = __webpack_require__("d54879e983a83d07f093"); var miniFavor = __webpack_require__("472c3193857af11233c9"); var userCenter = __webpack_require__("69afa85b8d7929dd88c5"); var siteInfo = __webpack_require__("5e05e6f5fe79ccf5d009"); var permanent = undefined, oinfo = undefined; var siteidArr = ['228', '266', '246', '229', '365', '366', '1', '238', '230']; var showListPrice = function showListPrice(price, dp_id, originUrl) { var pattern = dp_id.split('-'); var siteId = pattern[pattern.length - 1]; if (price < 0) return '暂时缺货';else { if (siteidArr.indexOf(siteId) > -1) { var site = siteInfo.isProductPage(originUrl); var cur = __webpack_require__("9bf6d059e9a265559f0c").getMoneyInfo(site)[0]; return cur + price.toString().replace(',', ''); } else { return '¥' + price.toString().replace(',', ''); } } }; var addEvent = function addEvent() { $('#topfavor_detail').on('click', '.item_close_btn', function () { var id = $(this).attr('data-id'); delFavor(id); }); $('.favor-list a').on('click', function () { console.log($(this)); if ($(this).attr('data-id')) { delFavor($(this).attr('data-id')); return false; } if (!$(this).attr('href')) { return false; } window.open($(this).attr('href')); return false; }); }; var delFavor = function delFavor(id) { id = id.trim(); oinfo = userData.get('other_info'); // let url = `${G.c_server}/collect/aj_del?dp_id=${id}`; // request.get(url).done((data) => { if (id === oinfo.id) { store.dispatch('priceRemind/cancel').then(function () { $('#topfavor_detail .sp-del').show().fadeOut(3000); getFavor(renderList); }); } else { userCenter['delete'](id).then(function (data) { // -1 失败 1 处理成功 100 未登录 if (data.code === 1) { // if (id == oinfo.now.dp_id) { // $('#topfavor_detail .topf-head .sp-col').text('收藏商品').removeClass('collected') // } $('#topfavor_detail .sp-del').show().fadeOut(3000); getFavor(renderList); } }); } }; var addFavor = function addFavor(callback) { var store = __webpack_require__("e41a11f7982e4aab1ce6").getStore(); var pagedp = G.dp; var dp = oinfo.now; store.dispatch('priceRemind/submit', { notifySite: '', price: '', mode: '' }).then(function (res) { // getFavor(renderList) // $('#topfavor_detail .topf-head .sp-col').text('收藏成功').addClass('collected') }); // userCenter.add('', '').then(data => { // if (Number(data.code) === 1 || data.error_code === '1') { // getFavor(renderList) // $('#topfavor_detail .topf-head .sp-col').text('收藏成功').addClass('collected') // $('#ht_favor').text('收藏成功').addClass('collected') // $(`#gwd_mini_remind .minibar-btn-box span`).text(`已添加提醒`); // $('#gwd_mini_remind .minibar-btn-box em').addClass('favored') // // if (data.data) { // G.remindInfo = { // remind_price: data.data.notifier.threshold, // is_collected: data.data.id, // has_remind_type: data.data.notifier.type, // remind_type: data.data.notifier.type, // notify_site: data.data.notifier.site // }; // // miniFavor.setNotifyPrice(data.data.notifier.site, data.data.notifier.threshold) // } // // // 更新本地收藏存储 // // util.addFavorCheck() // } else if (data.code === '2') { // $('#topfavor_detail .topf-head .sp-col').text('收藏过了').addClass('collected') // $('#ht_favor').text('收藏过了').addClass('collected') // $(`#gwd_mini_remind .minibar-btn-box span`).text(`已添加提醒`); // $('#gwd_mini_remind .minibar-btn-box em').addClass('favored') // } else if (data.code === 100) { // if (callback) callback() // } else { // // } // }) }; var renderList = function renderList(data) { if (typeof data === 'string') { data = JSON.parse(data); } var datasize = data.products.length; for (var i = 0; i < datasize; i++) { var siteId = data.products[i].dp_id.split('-')[1]; data.products[i].site_id = siteId; data.products[i].newPrice = showListPrice(data.products[i].now_price, data.products[i].dp_id, data.products[i].origin_url); } var html = __webpack_require__("c68c5b8c44eda1259060"); $('#topfavor_detail .favor-list').empty().append(template.compile(html)({ data: data.products, imgLoad: G.imgLoad, s_server: G.s_server })); $('.see-all-favor em').text(data.cnt); $('.see-all-favor').attr('href', 'https://www.gwdang.com/mine/collection'); addEvent(); golbal2.loadImg(0, datasize, $('#topfavor_detail li .item_img img')); if (!$('#topfavor_detail').hasClass('islogin')) $('#topfavor_detail').addClass('islogin'); }; var getFavor = function getFavor(callback) { userCenter.getList('default', 1, 3).then(function (res) { var data = res; if (!data.data.list) { callback({ products: [], cnt: 0 }); return; } callback({ products: data.data.list.map(function (item) { item.now_price = item.price.last; return item; }), cnt: data.data.cnt }); }); }; var userLogin = function userLogin(u, p, callback) { $.ajax({ type: "post", url: 'https://www.' + G.extName + '.com/user/aj_login', xhrFields: { withCredentials: true }, crossDomain: true, data: { email: u, password: p, t: "check", host: location.protocol + '//' + location.host }, success: function success(data) { callback(data); __webpack_require__("51aadd1e1b65f329a862").renderAgain(); } }); }; var addDetailEvent = function addDetailEvent() { var stime = undefined, isRender = undefined, setLeft = undefined; $('#topfavor_detail .topf-head span').on('click', function () { addFavor(); }); $('#topfavor_detail .login_click').on('click', function () { var username = $('#topfavor_detail .username').val(); var psd = $('#topfavor_detail .password').val(); if (!username || !psd) { $('#topfavor_detail .login_remind').show().fadeOut(5000); return; } userLogin(username, psd, function (data) { if (data === '1') { G.email = username; getFavor(renderList); } else { $('#topfavor_detail .login_remind').show().fadeOut(5000); } }); }); $('body').on('gwd-login-complete', function (e) { console.log('fired'); getFavor(renderList); }); $('#gwdang-favor').on('mouseenter', function () { if (G.userLogin && !isRender) { isRender = true; $('#topfavor_detail').addClass('islogin'); getFavor(renderList); } if (permanent.style === 'bottom') { setLeft = true; util.setSimplePagePos($('#gwdang-favor'), $('#topfavor_detail'), 279); } $('#topfavor_detail').show(); $(this).addClass('msHover'); }); $('#gwdang-favor').on('mouseleave', function () { var that = this; stime = setTimeout(function () { $('#topfavor_detail').hide(); $(that).removeClass('msHover'); }, 100); }); $('#topfavor_detail').on('mouseenter', function () { clearTimeout(stime); }); $('#topfavor_detail').on('mouseleave', function () { $('#topfavor_detail').hide(); $('#gwdang-favor').removeClass('msHover'); }); }; var renderDetail = function renderDetail(dp_id) { var store = __webpack_require__("e41a11f7982e4aab1ce6").getStore(); var hidebtn = undefined; var dom = '#gwdang_main'; var style = 'top:37px;'; if (permanent.style === 'bottom') { dom = '#bjd_bottom_detail'; style = 'bottom: 60px;right: 40px;'; } // 改商品没有抓取数据的时候 不能收藏商品 if (!dp_id || dp_id.match(/^0-\d+$/)) { hidebtn = true; } var imgHost = G.imgHost; if (G.from_device === 'firefox') { imgHost = G.localImg; } var homeU = 'https://www.gwdang.com/user/wechat_oauth/?pl=9&op=login&from_url=' + encodeURIComponent(location.href); homeU = encodeURIComponent(homeU); var wxUrl = 'https://open.weixin.qq.com/connect/qrconnect?appid=wx34006c141f9daa3a&response_type=code&scope=snsapi_login&state=2ced970d5b97680e95670a48d1102611&redirect_uri=' + homeU; var html = __webpack_require__("2193b4ca85bf7e5cb16d"); $(dom).append(template.compile(html)({ email: G.email, userLogin: G.userLogin, hidebtn: hidebtn, imgHost: imgHost, wxUrl: wxUrl, pageurl: encodeURIComponent(location.href), style: style })); var CommonLogin = __webpack_require__("2d53f53e0179317f1fdf")['default']; new Vue({ el: '#gwd-login-favor', render: function render(h) { return h(CommonLogin, { props: { position: 'gwd-favor', showAlterLogin: true, alterLoginPosition: 'column' } }); } }); addDetailEvent(permanent); var setCollectedStatus = function setCollectedStatus(newVal) { __webpack_require__("316f9c352c6202560d16").log('watch triggered', newVal); if (newVal) { // 已收藏 $('#topfavor_detail .topf-head .sp-col').text('收藏成功').addClass('collected'); } else { // 未收藏 $('#topfavor_detail .topf-head .sp-col').text('收藏商品').removeClass('collected'); } }; setCollectedStatus(store.state.priceRemind.collected); store.watch(function (state) { return state.priceRemind.collected; }, setCollectedStatus); }; module.exports.init = function callee$0$0() { return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('GwdDpIdGot')); case 2: permanent = userData.get('permanent'); oinfo = userData.get('other_info'); renderDetail(oinfo.now.dp_id); case 5: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports.addFavor = addFavor; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("b2848b041c3d11faa242")["default"], __webpack_require__("6a0e4ebb57bf6aac1f2d"))) /***/ }), /***/ "6c100eb2e82ec7ba3bad": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_template_id_4f0f1e98__ = __webpack_require__("cb0dfe1e02b8c7145c67"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_template_id_4f0f1e98___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_template_id_4f0f1e98__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_template_id_4f0f1e98__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_template_id_4f0f1e98__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_template_id_4f0f1e98__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_template_id_4f0f1e98__["staticRenderFns"]; }); /***/ }), /***/ "6c31184bc61f80e4776c": /***/ (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__("2641a8513b2d543f8ce5"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("5c7c4157", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../node_modules/_vue-loader@15.11.1@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/_css-loader@0.20.2@css-loader/index.js!../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./MemberCouponMiniBjg.vue?vue&type=style&index=0&id=c1c2cbdc&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "6eb6300b1093d4b652fb": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $, regeneratorRuntime, 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.lang == 'zh-tr') { 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/, /cfe\.m\.jd\.com/, /1688\.com/, /plogin\.m\.jd\.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; }; var inited = false; exports.init = function () { if (inited) return; if (!inited) { inited = true; } // 获取价格符号 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>' + (G.lang === 'zh-tr' ? '比價' : '比价') + '</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, elList, parent, id, parentEl, a; return regeneratorRuntime.async(function dpMouseOver$(context$3$0) { while (1) switch (context$3$0.prev = context$3$0.next) { case 0: img = e.target; if (G.site === '360buy' && img.tagName !== 'IMG' && $(img).parents('.more2_img')) { elList = $(img).parents('.more2_img').find('img'); if (elList.length) { img = elList[0]; } if (img.tagName !== 'IMG') { img = $(e.target).parents('.more2_item').find('.more2_img img')[0]; } } if (img.tagName !== 'IMG' && !isNewTb) { img = $(img).find('img')[0]; } if (!img) { img = $(e.target).parents('.item-link').find('.img-wrapper')[0]; } if (img) { context$3$0.next = 6; break; } return context$3$0.abrupt('return'); case 6: if (!img.parentElement.getAttribute('data-tip')) { context$3$0.next = 8; break; } return context$3$0.abrupt('return', false); case 8: if (!(img.tagName === 'A' || $(img).parents('.item-link').length || img.className.includes('MainPic--mask') || img.width > 50 && img.height > 50)) { context$3$0.next = 37; break; } parent = img.tagName === 'A' ? img : img.parentElement; if (!(parent.href && parent.href.includes('.gwdang.com'))) { context$3$0.next = 12; break; } return context$3$0.abrupt('return'); case 12: if (!(parent.href && parent.href.includes('store.taobao.com'))) { context$3$0.next = 14; break; } return context$3$0.abrupt('return'); case 14: if (!$(parent).parents('[class^=ShopInfo--shopInfo--]').length) { context$3$0.next = 16; break; } return context$3$0.abrupt('return'); case 16: nowTipDom = parent; if (!(G.site === 'taobao' && parent.tagName === 'A' && /^https?:\/\//.test(parent.href))) { context$3$0.next = 36; break; } 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)/)) { context$3$0.next = 25; break; } nowUrl = parent.href; context$3$0.next = 32; break; case 25: if (!id) { context$3$0.next = 29; break; } nowUrl = 'https://item.taobao.com/item.htm?id=' + id; context$3$0.next = 32; break; case 29: nowUrl = parent.href; if (nowUrl.includes('click.simba.taobao.com')) { context$3$0.next = 32; break; } return context$3$0.abrupt('return'); case 32: // 加载小标签 renderTip(parent); bindDpEvent2(parent); context$3$0.next = 37; break; case 36: if (isNewTb) { parentEl = $(parent).parents('[class^=Card--doubleCard--]'); if (!parentEl.length) { parentEl = $(parent).parents('[class^=Card--listCard--]'); } if (parentEl.length) { nowPrice = parentEl.find('.Card--price').text(); // let nowId = parentEl.find('.ww-light.ww-small').attr('data-item') // nowUrl = `https://item.taobao.com/item.htm?id=${nowId}` nowUrl = parentEl.parents('a').attr('href'); 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) { 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) } case 37: case 'end': return context$3$0.stop(); } }, null, this); }; $('body').on('mouseover', 'img, .pd_pic_wrap', dpMouseOver); $('body').on('mouseover', '[class^=Card--doubleCard--]', dpMouseOver); $('body').on('mouseover', '[class^=Card--listCard--]', dpMouseOver); $('body').on('mouseover', '.item-link', dpMouseOver); $('body').on('mouseover', '.more2_item', dpMouseOver); $('body').on('mouseover', '.pic.imglink', 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() { var res, url; return regeneratorRuntime.async(function render$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: 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]) { context$2$0.next = 13; break; } if (!nowUrl.includes('click.simba.taobao.com')) { context$2$0.next = 9; break; } context$2$0.next = 7; return regeneratorRuntime.awrap(__webpack_require__("660610db8f6e89357da9").get('/remoteAddress', { url: nowUrl })); case 7: res = context$2$0.sent; nowUrl = res; case 9: url = G.server + '/brwext/tip_new?days=180&ver=1&site=' + G.site + '&price=' + nowPrice + '&url=' + encodeURIComponent(nowUrl) + newId; request.getOnce(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(); }); context$2$0.next = 14; break; case 13: render2(tipResult[nowUrl]); case 14: case 'end': return context$2$0.stop(); } }, null, this); } 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(G.lang === 'zh-tr' ? '<div>抱歉,當前商品暫無價格走勢~</div>' : '<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__)); // console.log('[img]', img) // console.log('[img] use last a element') /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("6a0e4ebb57bf6aac1f2d"), __webpack_require__("ff50e367dd130fa205e3"))) /***/ }), /***/ "6ec9c994a621be8c18ca": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_script_lang_js__ = __webpack_require__("4bba8f5be4566b4d98b3"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "6f4c811ebd44cd52dd2c": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, ".gwd-stamp-bg[data-v-a70db998] {\n background: url(https://cdn.gwdang.com/images/extensions/middle-stamp@2x.png) no-repeat;\n background-size: contain;\n width: 112px;\n height: 38px;\n justify-content: center;\n}\n.gwd-stamp-bg .gwd-text[data-v-a70db998] {\n font-size: 12px;\n color: #f53867;\n line-height: 14px;\n transform: rotate(-17deg);\n text-align: center;\n}\n", ""]); // exports /***/ }), /***/ "7026a4b5462dc6da5555": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, $, G, Vue) { var _this = this; var timeUtil = __webpack_require__("6868b03b94b90a856624"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var price_remind = __webpack_require__("51aadd1e1b65f329a862"); var request = __webpack_require__("91f250ebeb8d5987491c"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var globalTime = undefined, retry = 0; var hasGetTime = undefined; Date.prototype.format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) { fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); } for (var k in o) { if (new RegExp("(" + k + ")").test(fmt)) { fmt = fmt.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length)); } } return fmt; }; // 最接近的半小时时间 // 12:31 -> 12:30 // 12:29 -> 12:30 Date.prototype.toHalfHourTime = function () { var original = this.getTime(); return new Date(Math.round(original / (30 * 60000)) * (30 * 60000)); }; var userInfo = {}; module.exports.init = function callee$0$0() { return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: // let res = await $.ajax({ // url: 'https://www.gwdang.com/user/info', // dataType: 'jsonp', // jsonp: 'callback', // xhrFields: { // withCredentials: true // } // }) getSeckill(); case 1: case 'end': return context$1$0.stop(); } }, null, _this); }; var seckillRule = { "360buy": [{ "secDom": "#yuyue-banner", "timeType": "t11", "secDom2": "#yuyue-banner .activity-type:contains('预约抢购')", "secTime": "#yuyue-banner .activity-message .J-time" }, { "secDom": "#banner-miaosha", "timeType": "M月D日H时M分", "secDom2": "#banner-miaosha .activity-type:contains('秒杀预告')", "secTime": "#banner-miaosha .activity-price strong" }, { "secDom": "#banner-miaosha", "timeType": "t12", "secDom2": "#banner-miaosha .activity-type:contains('京东秒杀')", "secTime": "#banner-miaosha .activity-message" }, { "secDom": "#pingou-banner", "timeType": "t13", "secDom2": "#pingou-banner .activity-type:contains('预售')", "secTime": "#pingou-banner .activity-message .J-time" }, { "secDom": "#banner-shangou .activity-type:contains('京东闪购')", //"timeType": "t14", "timeType": "t12", "secDom2": "#banner-shangou .activity-message:contains('预计')", "secTime": "#banner-shangou .activity-message" }, { // 预售商品,还没开始付定金 "secDom": "#pingou-banner .activity-message:contains('距预售还需')", "timeType": "timeRangeSplitBy`-`", "secDom2": "#pingou-process dt:contains('支付定金')", "secTime": "#pingou-process .J-presale-time" }, { // 预售商品,使用尾款时间 "secDom": "#pingou-process .J-balance-time", "timeType": "timeRangeSplitBy`-`", "secDom2": "#pingou-process dt:contains('支付尾款')", "secTime": "#pingou-process .J-balance-time" }, { // 预售商品,使用尾款时间 "secDom": "#yuyue-process .J-step4", "timeType": "timeRangeSplitBy`-`", "secDom2": "#yuyue-process dt:contains('抢购中')", "secTime": "#yuyue-process .J-step4" }], "taobao-ju": [{ "secDom": ".buyaction.J_JuSMSRemind", "timeType": "t21", "secDom2": ".ju-clock.J_juItemTimer>p:contains('开抢')", "secTime": ".ju-clock.J_juItemTimer>p" }], "taobao": [{ "secDom": "#J_TaoQiangGou", "timeType": "t21", "secDom2": "#J_TaoQiangGou:contains('开始抢购')", "secTime": "#J_TaoQiangGou" }], "tmall": [{ "secDom": "#tm-yushou-process-banner", "timeType": "t31", "secDom2": "#tm-yushou-process-banner .tm-yushou-process-title.tm-ys-title-one-row:contains('天猫预售')", "secTime": "#tm-yushou-process-banner .J_step2Time" }, { "secDom": ".tm-countdown .tb-btn-wait:contains('即将开始')", "timeType": "t32", "secDom2": ".tm-countdown .tm-countdown-notice:contains('距开售')", "secTime": ".tm-countdown .tm-countdown-timer" }], "suning": [{ "secDom": "#timePanel", "timeType": "t41", "secDom2": "#timePanel .djh-title:contains('预定')", "secTime": "#timePanel .proinfo-cd" }, { "secDom": ".snqg-logo", "timeType": "M月D日 H时M分", "secDom2": ".djh-cd", "secTime": "#bigPolyTime" }, { "secDom": "#buyTime", "timeType": "X月X日X时X分X秒", "secDom2": ".step-4", "secTime": "#buyTime dd:contains('开始')" }], "xiaomi": [{ "secDom": ".pro-time.J_proBook", "timeType": "t51", "secDom2": ".pro-time.J_proBook .pro-time-head:contains('预售')", "secTime": ".pro-time.J_proBook .time.J_bookTime" }], "kaola": [{ "secDom": ".m-promotionbar", "timeType": "t61", "secDom2": ".m-promotionbar .prelimit .txt:contains('开抢')", "secTime": ".m-promotionbar .prelimit .txt" }], "dangdang": [{ "secDom": "#count-down", "timeType": "t71", "secDom2": "#count-down .J-time-text:contains('尚未开始')", "secTime": "#count-down .J-time" }], "vmall": [{ "secDom": "#buyProcessIDD", "timeType": "t81", "secDom2": "#buyProcessIDD ul li:first-child:contains('支付订金')", "secTime": "#startDateIDD" }] }; var getSeckillTime = function getSeckillTime(type, ori_str) { if (ori_str.length < 3) { return false; } var str = undefined; if (type !== "t81") { str = ori_str.replace(/\s/g, ""); } else { str = ori_str; } var arr = undefined, newtime = undefined; var nowTime = undefined; var month = undefined, d = undefined, h = undefined, m = undefined, ss = undefined, ms = undefined; var year = new Date().getFullYear(); switch (type) { case "X月X日X时X分X秒": arr = ori_str.match(/开始:(\d+)月(\d+)日(\d+)时(\d+)分(\d+)秒/); if (!arr) return false; nowTime = new Date(); newtime = nowTime.getFullYear() + '/' + arr[1] + '/' + arr[2] + '/' + arr[3] + ':' + arr[4]; break; case 'M月D日 H时M分': arr = ori_str.match(/(\d+)月(\d+)日 (\d+):(\d+)/); if (!arr) return false; nowTime = new Date(); newtime = nowTime.getFullYear() + '/' + arr[1] + '/' + arr[2] + '/' + arr[3] + ':' + arr[4]; break; case 'M月D日H时M分': arr = ori_str.match(/(\d+)月(\d+)日(\d+):(\d+)/); if (!arr) return false; nowTime = new Date(); newtime = nowTime.getFullYear() + '/' + arr[1] + '/' + arr[2] + '/' + arr[3] + ':' + arr[4]; break; case "timeRangeSplitBy`-`": // eg: 2019-07-0300:00-2019-07-0700:00 var date = ori_str.split(' ')[0].replace(/-/g, '/'); newtime = date + '/' + ori_str.split(' ')[1].split('-')[0]; break; case "t11": nowTime = new Date().getTime(); arr = str.match(/(?:(\d+)|)(?:天|日|)(\d+)小时(\d+)分(\d+)秒/); if (!arr) return false; if ($('#yuyue-banner .activity-message .J-text').text() === '抢购剩余') { return false; } if ($('#pingou-banner .activity-message .J-text').text() === '距预售还需') { return false; } d = arr[1] || 0; h = arr[2] || 0; m = arr[3] || 0; ss = arr[4] || 0; ms = d * 86400000 + h * 3600 * 1000 + m * 60 * 1000 + ss * 1000; newtime = timeUtil(nowTime + ms, "6"); break; case "t12": nowTime = new Date().getTime(); arr = str.match(/预计([0-9:月日]+)开始/); if (!arr) return false; var htime = arr[1]; newtime = timeUtil(nowTime, "5"); if (htime.indexOf('日') > -1) { var _month = htime.split('月')[0]; var day = htime.split('日')[0].split('月')[1]; newtime = newtime.split('/')[0] + ('/' + _month + '/' + day); htime = htime.split('日')[1]; } newtime = newtime + '/' + htime; break; case "t13": nowTime = new Date().getTime(); arr = str.match(/(?:(\d+)|)(?:天|日|)(\d+)小?时(\d+)分(\d+)秒/); if (!arr) return false; if ($('.activity-message .J-text').text() === '预售剩余') { return false; } d = arr[1] || 0; h = arr[2] || 0; m = arr[3] || 0; ss = arr[4] || 0; ms = d * 86400000 + h * 3600 * 1000 + m * 60 * 1000 + ss * 1000; newtime = timeUtil(nowTime + ms, "6"); break; case "t14": arr = str.match(/(\d+)月(\d+)日(\d+)\:(\d+)/); if (!arr) return false; month = Number(arr[1]) || 0; if (month < 10) month = "0" + month.toString(); d = Number(arr[2]) || 0; if (d < 10) d = "0" + d.toString(); h = arr[3] || 0; m = arr[4] || 0; // ms = month + d * 86400000 + h * 3600 * 1000 + m * 60 * 1000; newtime = year + '/' + month + '/' + d + '/' + h + ':' + m; break; case "t21": arr = str.match(/(\d+)月(\d+)日(\d+)\:(\d+)/); if (!arr) return false; month = Number(arr[1]) || 0; if (month < 10) month = "0" + month.toString(); d = Number(arr[2]) || 0; if (d < 10) d = "0" + d.toString(); h = arr[3] || 0; m = arr[4] || 0; // ms = month + d * 86400000 + h * 3600 * 1000 + m * 60 * 1000; newtime = year + '/' + month + '/' + d + '/' + h + ':' + m; break; case "t31": arr = ori_str.split("~"); if (!arr) return false; newtime = arr[0].replace(/(?:\.|\s)/g, "/"); break; case "t32": nowTime = new Date().getTime(); arr = str.match(/(?:(\d+)|)(?:天|日|)(\d+)小?时(\d+)分/); if (arr && arr.length) { d = Number(arr[1]) || 0; if (d < 10) d = "0" + d.toString(); h = arr[2] || 0; m = arr[3] || 0; } else { arr = str.match(/(\d+)分(\d+)秒/); d = 0; h = 0; m = arr[1]; } ms = d * 86400000 + h * 3600 * 1000 + m * 60 * 1000; newtime = timeUtil(nowTime + ms, "6"); break; case "t41": //苏宁 nowTime = new Date().getTime(); arr = str.match(/(?:(\d+)|)(?:天|日|)(\d+)小?时(\d+)分([0-9.]+)秒/); if (!arr) return false; d = parseInt(arr[1]) || 0; h = parseInt(arr[2]) || 0; m = parseInt(arr[3]) || 0; ss = parseInt(arr[4]) || 0; ms = d * 86400000 + h * 3600 * 1000 + m * 60 * 1000 + ss * 1000; newtime = timeUtil(nowTime + ms, "6"); break; case "t51": nowTime = new Date().getTime(); arr = str.match(/\s?(?:(\d+)|)\s?(?:天|日|)\s?(\d+)\s?小?时\s?(\d+)\s?分\s?(\d+)\s?秒/); if (!arr) return false; d = arr[1] || 0; h = arr[2] || 0; m = arr[3] || 0; ss = arr[4] || 0; ms = d * 86400000 + h * 3600 * 1000 + m * 60 * 1000 + ss * 1000; newtime = timeUtil(nowTime + ms, "6"); break; case "t61": //kaola arr = str.match(/(\d+)月(\d+)日(\d+)\:(\d+)/); if (!arr) return false; month = Number(arr[1]) || 0; if (month < 10) month = "0" + month.toString(); d = Number(arr[2]) || 0; if (d < 10) d = "0" + d.toString(); h = arr[3] || 0; m = arr[4] || 0; // ms = month + d * 86400000 + h * 3600 * 1000 + m * 60 * 1000; newtime = year + '/' + month + '/' + d + '/' + h + ':' + m; break; case "t71": //dangdang nowTime = new Date().getTime(); arr = str.match(/(?:(\d+)(?:天|日)|)(\d+)时(\d+)分(\d+)秒/); if (!arr) return; d = arr[1] || 0; h = arr[2] || 0; m = arr[3] || 0; ss = arr[4] || 0; ms = d * 86400000 + h * 3600 * 1000 + m * 60 * 1000 + ss * 1000; newtime = timeUtil(nowTime + ms, "6"); break; case "t81": arr = str.split("~"); if (!arr) return; newtime = arr[1].trim(); newtime = newtime.replace(/[\s\.]/g, "/"); break; } return newtime; }; var getSeckill = function getSeckill() { var seckillItem = seckillRule[G.site]; if (!seckillItem) return; for (var i = 0; i < seckillItem.length; i++) { var sitem = seckillItem[i]; if ($(sitem["secDom"]).length > 0 && $(sitem["secDom2"]).length > 0) { var newtime = getSeckillTime(sitem["timeType"], $(sitem["secTime"]).text()); if (newtime) { globalTime = newtime; //console.log('newtime:', newtime) var strTime = newtime.split('/'); var d = new Date(strTime[0] + '/' + strTime[1] + '/' + strTime[2] + ' ' + strTime[3]); if (d.getTime() - new Date().getTime() < 300000) { continue; } renderSeckill(); break; } } } if (!globalTime && retry < 5) { retry++; setTimeout(getSeckill, 500); } }; var needLog = false; var renderSeckill = function renderSeckill() { var res, html, CommonLogin, dp_query, currentStatus; return regeneratorRuntime.async(function renderSeckill$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(request.get('https://www.gwdang.com/user/info')); case 2: res = context$1$0.sent; userInfo = res.data; html = __webpack_require__("ad8ae94903f4d23c516c"); $('#gwd_mini_remind').remove(); $('#gwd_mini_compare').after(html); CommonLogin = __webpack_require__("2d53f53e0179317f1fdf")['default']; new Vue({ el: '#gwd-bjd-login-box', render: function render(h) { return h(CommonLogin, { props: { position: 'gwd-mini', showAlterLogin: true, alterLoginPosition: 'row' } }); } }); // 获取当前提醒状态 dp_query = userData.get('dp_query'); context$1$0.next = 12; return regeneratorRuntime.awrap(request.get(G.c_server + '/brwext/remind_intime?opt=get&id=' + dp_query.dp.dp_id)); case 12: currentStatus = context$1$0.sent; addEvent(); if (currentStatus.msg === "未收藏" || currentStatus.msg === "用户未登录") { log('detected:seckillRemind'); cnzz.log('抢购提醒', '监测到页面抢购'); needLog = true; SeckillSetState(false); } else { SeckillSetState(true); } case 15: case 'end': return context$1$0.stop(); } }, null, _this); }; var secKillState = undefined; var SeckillSetState = function SeckillSetState(state) { secKillState = state; if (state) { $('.sk-remind-btn').hide(); if (userInfo.wx == "1") { $('.sk-remind-state1').show(); } else { $('.sk-remind-state1').hide(); } $('#gwd_mini_seckill').addClass('seckillSet'); $('#gwd_mini_seckill .minibar-btn-box>span').text("已设抢购提醒"); if (needLog) {} } else { //$('.sk-remind-btn').hide() } }; var socketSet = false; var showedOnce = false; // 抢购提醒是否展示过一次 var addEvent = function addEvent() { price_remind.getQRcode(); window.refQRCode = price_remind.getQRcode; $('#gwd_mini_seckill').on('mouseenter', function () { if (G.email) { $('.seckill-detail').show(); $('.seckill-detail').css('width', '205px'); if (!socketSet && userInfo.wx == "0") { // 未绑定微信的情况,不显示提醒按钮 // 同时打开websocket log('notBind:seckillRemind'); cnzz.log('抢购提醒', '未绑定'); $('.sk-remind-state0').show(); if (!secKillState) { $('.sk-remind-state1').hide(); } $('.sk-remind-btn').hide(); renderWebsocket(); } if (needLog) { if ($('.sk-remind-btn').css('display') !== 'none') { if (!showedOnce) { log('showButton:seckillRemind'); cnzz.log('抢购提醒', '显示设置提醒按钮'); } } } showedOnce = true; } else { $('.login-detail').show(); } }); $('#gwd_mini_seckill').on('mouseleave', function () { $('.seckill-common-detail').hide(); }); $('.sk-remind-btn').on('click', function callee$1$0() { var dp, time, title, res; return regeneratorRuntime.async(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: log('click:seckillRemind'); cnzz.log('抢购提醒', '设置按钮点击'); dp = userData.get('dp_query'); time = new Date(globalTime).toHalfHourTime().format("yyyy-MM-dd hh:mm:ss"); title = G.dp.name.replace(' ', ''); context$2$0.next = 7; return regeneratorRuntime.awrap(request.get(G.c_server + '/brwext/remind_intime?opt=add&id=' + dp.dp.dp_id + '&title=' + encodeURIComponent(title) + '&stime=' + time + '&url=' + encodeURIComponent(location.href))); case 7: res = context$2$0.sent; if (res.code === 1 || res.msg === '重复收藏') { if (res.code === 1) { log('setComplete:seckillRemind'); cnzz.log('抢购提醒', '设置成功'); } SeckillSetState(true); } case 9: case 'end': return context$2$0.stop(); } }, null, _this); }); //price_remind.init() $('#loginClickBtn').on('click', function () { var userN = $('.bjd-login-box .username').val(); var psd = $('.bjd-login-box .password').val(); if (userN && psd) { price_remind.loginRenderTop(); __webpack_require__("472c3193857af11233c9").userLogin(userN, psd, function () { location.reload(); }); } else { $('#login_remind_tle').css('display', 'block').fadeOut(5000); return; } }); }; var heartInterval = 0; var renderWebsocket = function renderWebsocket() { // $.ajax({ // url: 'https://www.gwdang.com/user/info', // xhrFields: { // withCredentials: true // }, // //crossDomain: true // }) var socket = new WebSocket("wss://www.gwdang.com/sck"); socket.onopen = function () {}; socket.onmessage = function (evt) { var res = JSON.parse(evt.data); if (res.msg == "Bind") { userInfo.wx = "1"; $('.sk-remind-state0').hide(); if (secKillState) { $('.sk-remind-state1').show(); } else { $('.sk-remind-btn').show(); } if (needLog) { cnzz.log('抢购提醒', '用户已绑定'); log('userBindComplete:seckillRemind'); } window.clearInterval(heartInterval); socket.close(); } }; socket.onclose = function () {}; socket.addEventListener('open', function callee$1$0(evt) { var accountInfo; return regeneratorRuntime.async(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: socketSet = true; accountInfo = { action: 'bindWechatExt', msg: { uid: userInfo.uid } }; socket.send(JSON.stringify(accountInfo)); heartInterval = setInterval(function () { socket.send('{"ping": "pong"}'); }, 10000); case 4: case 'end': return context$2$0.stop(); } }, null, this); }); }; module.exports.getNewTime = function () { hasGetTime = true; return globalTime; }; //return /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("6a0e4ebb57bf6aac1f2d"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("b2848b041c3d11faa242")["default"])) /***/ }), /***/ "70e158a156872cdab517": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_template_id_caa5e08c_scoped_true__ = __webpack_require__("12938de4708bdcf3c014"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_template_id_caa5e08c_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_template_id_caa5e08c_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_template_id_caa5e08c_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_template_id_caa5e08c_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_template_id_caa5e08c_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_template_id_caa5e08c_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "711adf6419b834e0c72d": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return _c("div", { staticClass: "gwd-row gwd-align", staticStyle: { height: "100%", "flex-wrap": "nowrap", overflow: "hidden" } }, _vm._l(_vm.data, function (item) { return _c("a", { key: item.url, staticClass: "gwd-amazon-link", attrs: { href: item.url, target: "_blank" } }, [_vm._v("\n " + _vm._s(item.title) + "售价" + _vm._s((item.pri / 100).toFixed(2)) + _vm._s(_vm.unit) + "\n ")]); }), 0); }; var staticRenderFns = []; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "71c9fcfb64f73134b8a1": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_PriceInput_vue_vue_type_script_lang_js__ = __webpack_require__("e19ba9738df123c78c95"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_PriceInput_vue_vue_type_script_lang_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_PriceInput_vue_vue_type_script_lang_js__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_PriceInput_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_PriceInput_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_PriceInput_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "7338afc4231a4884439d": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_script_lang_js__ = __webpack_require__("0a4a37e7f6d37c5f205c"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "73e5d235bd431b446c03": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G, regeneratorRuntime) { var _this = this; var template = __webpack_require__("274e32dfd54a6b0d18a9"); var calWidth = __webpack_require__("54be372a53153922dc13"); // const replaceHref = require('common/replaceHref') var cnzz = __webpack_require__("83271c7588396d2d5e59"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var pInfo = {}, proInfo = {}; var widthInfo = undefined, allink_tb = undefined, allink_tm = undefined; var skipEventAdd = false; var addEvent = function addEvent() { $('.compare-list').off(); $('.main-compare .tright, .main-compare .tleft').off(); $('.compare-box').off(); $('.main-compare .tright').on('click', function () { if (pInfo.nowpage + 1 === pInfo.pages) { return; } pInfo.nowpage++; $('.compare-list>li').hide(); for (var i = pInfo.pageNum * pInfo.nowpage; i < pInfo.pageNum * (pInfo.nowpage + 1); i++) { $('.compare-list>li').eq(i).show(); } }); $('.main-compare .tleft').on('click', function () { if (pInfo.nowpage === 0) { return; } pInfo.nowpage--; $('.compare-list>li').hide(); for (var i = pInfo.pageNum * pInfo.nowpage; i < pInfo.pageNum * (pInfo.nowpage + 1); i++) { $('.compare-list>li').eq(i).show(); } }); $('.compare-list').on('mouseenter', 'li', function (e) { $('.compare-list>li').removeClass('bar-item-hover'); var id = $(this).attr('data-id'); if ($(this).find('.btcom-detail').length > 0) { $(this).find('.btcom-detail').show(); } else { if (id) { renderDetail(id, $(this)); } } $(this).addClass('bar-item-hover'); }); if (G.site === 'suning') { $('.compare-list').on('click', 'a', function (e) { if ($(this).attr('href')) { window.open($(this).attr('href')); e.preventDefault(); } }); } $('.compare-list').on('mouseleave', 'li', function (e) { var that = this; $(that).removeClass('bar-item-hover'); $(that).find('.btcom-detail').hide(); }); $('.compare-box').on('click', function (e) { if (skipEventAdd) { return; } if ($(e.target).hasClass('turnleft')) { runTurnPage($(e.target), -1); } else if ($(e.target).hasClass('turnright')) { runTurnPage($(e.target), 1); } else { var url = ''; if (e.target.nodeName === 'A') { url = e.target.href; } else if (e.target.parentNode.nodeName === 'A') { url = e.target.parentNode.href; } else if (e.target.parentNode.parentNode.nodeName === 'A') { url = e.target.parentNode.parentNode.href; } if (url.indexOf('uland.taobao.com/coupon') > -1) { cnzz.log('click:dpcoupon'); log('click:dpcoupon'); } } }); }; var runTurnPage = function runTurnPage(dom, type) { var parentDom = $(dom).parent().parent(); var lists = parentDom.find('.all-products .btcom-list li'); var size = lists.length; var curpg = Number(parentDom.find('.bjd-pages .current-page').text()); var totalp = Number(parentDom.find('.bjd-pages .page-num').text()); parentDom.find('.all-products .btcom-list li').hide(); if (type === 1) curpg++;else if (type === -1) curpg--; if (curpg === 0) curpg = totalp; if (curpg === totalp + 1) curpg = 1; var end = curpg * widthInfo.showListNum > size ? size : curpg * widthInfo.showListNum; for (var i = (curpg - 1) * widthInfo.showListNum; i < end; i++) { lists.eq(i).show(); var img = lists.eq(i).find('.com-item-img img'); replaceSrc(img); } parentDom.find('.bjd-pages .current-page').text(curpg); }; var replaceSrc = function replaceSrc(img) { var src = img.attr('data-src'); if (!src) return; var imgObj = new Image(); imgObj.onload = function () { if (imgObj.complete == true) { $(img).attr('src', src).attr('data-src', null); } }; imgObj.onerror = function (e) { var obj = $(img)[0]; if (!$(img)[0]) return; obj.src = G.s_server + '/images/extensions/newbar/no_img.png'; obj.setAttribute("data-src", G.s_server + '/images/extensions/newbar/no_img.png'); }; imgObj.src = src; }; var editData = function editData(data, tb, tbsite) { for (var i = 0; i < data.length; i++) { if (data[i].price) { data[i].price = Number(data[i].price.toString().replace(',', '')).toFixed(2); } if (!data[i].img_url) data[i].img_url = data[i].pic_url; if (tbsite) { data[i].nick2 = data[i].item_location; } if (!data[i].site_name) data[i].site_name = data[i].nick2 || data[i].nick; if (tb && data[i].img_url.match(/_\d+x\d+/)) { var match = data[i].img_url.match(/_(\d+)x\d+/); if (match) { match = Number(match[1]); if (match > 200) { data[i].img_url = data[i].img_url + '_100x100'; } } } else if (tb) { data[i].img_url = data[i].img_url + '_100x100'; } } return data; }; var renderDetail = function renderDetail(id, container) { var len, showpages, detailW, sale_tle, allink, pages, html, dom, i, img; return regeneratorRuntime.async(function renderDetail$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: len = proInfo[id].length; showpages = undefined; detailW = undefined; if (len > widthInfo.showListNum) { showpages = true; detailW = $(window).width(); } else { detailW = len * 268; } sale_tle = undefined, allink = undefined; if (id === 'tmcompare' || id === 'tbcompare') { sale_tle = "最近销量"; if (proInfo[id].from_self === true) sale_tle = "总销量"; } if (id === 'tmcompare') allink = allink_tm;else if (id === 'tbcompare') allink = allink_tb; pages = Math.ceil(len / widthInfo.showListNum); console.log('coupon ready got', proInfo); if (id === 'tmcompare' || id === 'tbcompare') { // await Promise.race([require('common/globalCondition').met('bottomCouponReady-' + id), require('common/commonUtil').sleep(600)]) } console.log('done', proInfo); html = __webpack_require__("949294b2c90e6f628204"); dom = template.compile(html)({ data: proInfo[id], sale_tle: sale_tle, showpages: showpages, prowidth: widthInfo.allProductW, turnpW: widthInfo.turnpW, detailW: detailW, link: allink, id: id, pages: pages }); $(container).append(dom); for (i = 0; i < Math.min(widthInfo.showListNum, len); i++) { img = $(container).find('.btcom-detail li .com-item-img img').eq(i); replaceSrc(img); } if (!showpages) { setSimplePagePos(len, container); } case 16: case 'end': return context$1$0.stop(); } }, null, _this); }; var renderCompareBar = function renderCompareBar(data) { if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) { return; } if (!data.store || !data.store[0] || data.store[0].product.length === 0) return; var turnpage = (13 + 18 + 20) * 2; var comArr = []; var totalSize = data.store.length; var freeW = calWidth.calBottomBar(); pInfo.pageNum = parseInt((freeW - turnpage) / 104); pInfo.mbarItemShowNum = totalSize > pInfo.pageNum ? pInfo.pageNum : totalSize; if (pInfo.pageNum <= 0) pInfo.pageNum = 1; for (var i = 0; i < data.store.length; i++) { comArr.push(data.store[i].product[0]); proInfo[data.store[i].product[0].dp_id] = editData(data.store[i].product); } var lens = $('.compare-list li').length; pInfo.pages = Math.ceil((totalSize + lens) / pInfo.pageNum); var html = __webpack_require__("11cd2e526b8cc31d3a13"); var views = template.compile(html)({ data: comArr, pageNum: pInfo.pageNum }); $('.compare-list').prepend(views); pInfo.nowpage = 0; pInfo.totalSize = totalSize; $('.compare-box').css('width', pInfo.mbarItemShowNum * 102 + 'px'); if (pInfo.pages === 1) { $('.mbar-turnpage').hide(); } else { $('.mbar-turnpage').show(); } addEvent(); }; var setSimplePagePos = function setSimplePagePos(size, dom) { var mainW = $(window).width(); var left = dom.offset().left; var domw = dom.outerWidth(); var detail = dom.find('.btcom-detail'); var width = 268 * size + 2; var dleft = left + domw / 2 - width / 2; if (dleft < 0) dleft = 0; if (dleft + width > mainW) dleft = mainW - width - 2; detail.css('left', dleft + 'px'); }; var exchangeData = function exchangeData(data) { if (!data.product || data.product && data.product.length === 0) return data; var b2c = [], obj = {}; for (var i = 0; i < data.product.length; i++) { if (!data.product[i].site_name2) { data.product[i].site_name2 = data.product[i].site_name; } if (!obj[data.product[i].site_name2]) { obj[data.product[i].site_name2] = { product: [data.product[i]] }; } else { obj[data.product[i].site_name2]['product'].push(data.product[i]); } } for (var pattern in obj) { if (pattern) { b2c.push(obj[pattern]); } } return { store: b2c }; }; var renderTbCompare = function renderTbCompare(data) { var html = __webpack_require__("11cd2e526b8cc31d3a13"); var insNum = 0; if (data.tmall && data.tmall.product) { var obj = { dp_id: 'tmcompare', site_name: '天猫商城', price: data.tmall.min_price }; // if (!G.aliSite && G.from_device !== '360') // replaceHref.init('tmall', data.tmall.product, '&column=b2c') proInfo['tmcompare'] = editData(data.tmall.product, true); var dom = $('.compare-list>li').eq(5); if (dom.length === 0) dom = $('.compare-list>li:last-child'); if (dom.length === 0) { $('.compare-list').append(template.compile(html)({ data: [obj] })); } else { dom.after(template.compile(html)({ data: [obj] })); } insNum++; } if (data.taobao && data.taobao.product) { var obj = { dp_id: 'tbcompare', site_name: '淘宝', price: data.taobao.min_price }; // if (!G.aliSite && G.from_device !== '360') // replaceHref.init('taobao', data.taobao.product, '&column=b2c') proInfo['tbcompare'] = editData(data.taobao.product, true, true); $('.compare-list').append(template.compile(html)({ data: [obj] })); insNum++; } pInfo.totalSize = pInfo.totalSize + insNum; var pages = Math.ceil(pInfo.totalSize / pInfo.pageNum); if (pInfo.pages === 1 || !pInfo.pages) { if (pages > 1) { $('.mbar-turnpage.tright').show(); pInfo.pages = pages; } pInfo.mbarItemShowNum = pInfo.totalSize > pInfo.pageNum ? pInfo.pageNum : pInfo.totalSize; $('.compare-box').css('width', pInfo.mbarItemShowNum * 102 + 'px'); $('.mbar-turnpage').hide(); } else { pInfo.pages = pages; } addEvent(); }; module.exports.renderBt = function (data) { var skipEvent = arguments.length <= 1 || arguments[1] === undefined ? false : arguments[1]; if (!(data.taobao instanceof Array) && data.taobao.more_link) allink_tb = data.taobao.more_link; if (!(data.tmall instanceof Array) && data.tmall.more_link) allink_tm = data.tmall.more_link; if (!widthInfo) widthInfo = calWidth.init(); if (skipEvent) { skipEventAdd = true; } renderTbCompare(data); if (G.from_device !== '360') { __webpack_require__("b8226e22112290600083").init(data.tmall.product, 'tmall', true, data.tmall.min_price); __webpack_require__("b8226e22112290600083").init(data.taobao.product, 'taobao', true, data.taobao.min_price); } }; module.exports.init = function (data) { if (data.b2c && data.b2c.store) { renderCompareBar(data.b2c); } else if (data.b2c_fuzzy) { data.b2c2 = exchangeData(data.b2c_fuzzy); renderCompareBar(data.b2c2); } widthInfo = calWidth.init(); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("6a0e4ebb57bf6aac1f2d"))) /***/ }), /***/ "74ae07799bc2fa48faa3": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbScrollLink_vue_vue_type_style_index_0_id_0ac72494_scoped_true_lang_less__ = __webpack_require__("8ba87ffaa518316e0f3e"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbScrollLink_vue_vue_type_style_index_0_id_0ac72494_scoped_true_lang_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbScrollLink_vue_vue_type_style_index_0_id_0ac72494_scoped_true_lang_less__); /* unused harmony reexport namespace */ /***/ }), /***/ "75129aa80c697b8b93a3": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkTbV3_vue_vue_type_template_id_263c4225_scoped_true__ = __webpack_require__("7f09b0889f107f80ec50"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkTbV3_vue_vue_type_template_id_263c4225_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkTbV3_vue_vue_type_template_id_263c4225_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkTbV3_vue_vue_type_template_id_263c4225_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkTbV3_vue_vue_type_template_id_263c4225_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkTbV3_vue_vue_type_template_id_263c4225_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkTbV3_vue_vue_type_template_id_263c4225_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "75d41ad7d5a1bceb52d2": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var request = __webpack_require__("91f250ebeb8d5987491c"); var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var buildTaobaoUrl = __webpack_require__("cc45d932d8dbdb86f2f3"); var globalData = undefined, callbacks = undefined; var hasrun = false; var timeOUT = 2500; var getuniqPid = function getuniqPid(id) { if (id == '') return; var url = G.server + '/extension?ac=getuniqpid&nid=' + id; request.get(url).done(function (data) { if (data && data.uniqid) { sendPid(id, data.uniqid); } else { requestTaobaoImgSearch(); } }); }; var sendPid = function sendPid(id, pid) { var info = { 'nid': id, 'uniqid': pid }; communicate.trigger({ 'type': 'getTaobaouniq', 'info': JSON.stringify(info) }); communicate.on(function (data) { if (typeof data === 'string') { data = JSON.parse(data); } if (data.type == 'getTaobaouniq') { var text = $('#gwd_uniq_info').text(); if (text != '') editData(text); } }); }; var sortData = function sortData(data) { if (!data.sort) return; data = data.sort(function (value1, value2) { if (Number(value1.price) > Number(value2.price)) return 1;else if (Number(value1.price) == Number(value2.price)) return 0;else return -1; }); return data; }; var editData = function editData(txt) { try { var data = JSON.parse(txt); data = data.mods.recitem.data.items; var taobaoarr = [], tmallarr = []; if (!data) return; for (var i = 0, len = data.length; i < len; i++) { var item = {}; var feeDesc = data[i].view_fee == '0.00' ? '包邮' : ''; item.nick = data[i].nick; item.num_iid = data[i].nid; item.title = data[i].title; item.price = data[i].view_price; item.item_location = data[i].item_loc; item.store_name = data[i].nick + feeDesc; item.pic_url = 'http:' + data[i].pic_url; item.volume = data[i].view_sales.replace('人付款', ''); item.same_style = true; var obj = { 'source': 'same_style', 'img_url': 'http:' + data[i].pic_url, 'title': data[i].title, 'price': data[i].view_price, 'shop_name': data[i].nick + feeDesc, 'sales': data[i].view_sales.replace('人付款', ''), 'id': data[i].nid, 'url': 'https:' + data[i].detail_url, 'discuss': data[i].comment_count, 'istaobao': data[i].detail_url.indexOf('detail.tmall.com') > -1 ? '0' : '1', 'dp_id': data[i].nid + '-' + (data[i].detail_url.indexOf('detail.tmall.com') > -1 ? '83' : '123'), 'site_id': data[i].detail_url.indexOf('detail.tmall.com') > -1 ? '83' : '123' }; item.url = buildTaobaoUrl(obj); if (data[i].detail_url.indexOf('detail.tmall.com') > -1) { tmallarr.push(item); } else { taobaoarr.push(item); } } taobaoarr = sortData(taobaoarr); tmallarr = sortData(tmallarr); globalData = { 'taobao': taobaoarr, 'tmall': tmallarr }; if (callbacks && !hasrun) { callbacks(globalData); hasrun = true; } } catch (e) {} }; var requestTaobaoImgSearch = function requestTaobaoImgSearch() { /*taobao root_id 筛选需要做图片检索的分类*/ var rootIdArr = ["50510002", "50012029", "50013864", "50011397", "50010404", "1625", "50006842", "50006843", "16", "50011740", "50011699", "50008165", "50008163", "30", "50020857", "50020808", "50013886", "50022517", "122852001", "21", "50468001", "122950001", "50007216"]; var root_id = G.dp.root_id; if (root_id && rootIdArr.indexOf(root_id) > -1) { __webpack_require__("ff881c8b15091819a13e").uniqPidGetImg(function (data) { if (callbacks) { callbacks(data); hasrun = true; } else { globalData = data; } }); timeOUT = 6000; } else { timeOUT = 1; } }; var getNid = function getNid() { if (location.host.indexOf('taobao') > -1 || location.host.indexOf('tmall') > -1) { var id = location.href.match(/[?&]id=([0-9]+)/); if (id && id.length) { id = id[1]; getuniqPid(id); } } }; module.exports.init = function () { /*淘宝价格走势*/ if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) { communicate.trigger({ type: 'get_etao_info' }); } if (G.site == 'taobao' || G.site == 'tmall') getNid(); }; module.exports.getTaobaouniqData = function (callback) { callback(null); // if (globalData) { // callback(globalData) // hasrun = true; // } else callbacks = callback; // setTimeout(() => { // if (callbacks && hasrun === false) { // callbacks(null) // hasrun = true; // } // }, timeOUT) }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "76bee2cfe6ba244b6403": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbQrBtContent_vue_vue_type_template_id_c5e8106e_scoped_true__ = __webpack_require__("cb996c094663b5eaf1c4"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbQrBtContent_vue_vue_type_template_id_c5e8106e_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbQrBtContent_vue_vue_type_template_id_c5e8106e_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbQrBtContent_vue_vue_type_template_id_c5e8106e_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbQrBtContent_vue_vue_type_template_id_c5e8106e_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbQrBtContent_vue_vue_type_template_id_c5e8106e_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbQrBtContent_vue_vue_type_template_id_c5e8106e_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "7859427bcc5abd1573eb": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__JdSearchEnhance_vue_vue_type_template_id_209e5606_scoped_true__ = __webpack_require__("276eb2c15e06ca8092be"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__JdSearchEnhance_vue_vue_type_script_lang_js__ = __webpack_require__("5a2d7325a9fa17d367de"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__JdSearchEnhance_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__JdSearchEnhance_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__JdSearchEnhance_vue_vue_type_style_index_0_id_209e5606_scoped_true_lang_css__ = __webpack_require__("e7647e448b8d550d841d"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__JdSearchEnhance_vue_vue_type_script_lang_js__["default"], __WEBPACK_IMPORTED_MODULE_0__JdSearchEnhance_vue_vue_type_template_id_209e5606_scoped_true__["render"], __WEBPACK_IMPORTED_MODULE_0__JdSearchEnhance_vue_vue_type_template_id_209e5606_scoped_true__["staticRenderFns"], false, null, "209e5606", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('209e5606')) { api.createRecord('209e5606', component.options) } else { api.reload('209e5606', component.options) } module.hot.accept("./JdSearchEnhance.vue?vue&type=template&id=209e5606&scoped=true", function () { api.rerender('209e5606', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/JdSearchEnhance.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "78627ea7983efdac8518": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_PriceInput_vue_vue_type_style_index_0_id_3ed325cb_scoped_true_lang_less__ = __webpack_require__("1308b397f8f511c97254"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_PriceInput_vue_vue_type_style_index_0_id_3ed325cb_scoped_true_lang_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_PriceInput_vue_vue_type_style_index_0_id_3ed325cb_scoped_true_lang_less__); /* unused harmony reexport namespace */ /***/ }), /***/ "791495145d3059f003ee": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return _c("div", { staticStyle: { display: "block !important", "z-index": "9999999999 !important" }, attrs: { id: _vm.domName } }, [_c("div", { staticClass: "gwdang-main", style: "display: " + (_vm.fold === "1" ? "none" : "flex") + ";", attrs: { id: "gwdang_main" } }, [_c("div", { staticClass: "gwd-topbar-logo" }, [_c("em", { staticClass: "gwd_bg" }), _vm._v(" "), _c("div", { attrs: { id: "gwd_setting_div" } }, [_c("div", { staticClass: "gwd-hover-helper" }), _vm._v(" "), _c("div", { staticClass: "gwd_setting_item gwd_setting_item_fst" }, [_c("div", { staticClass: "gwd_bg gwd_function_setting" }), _vm._v(" "), _c("a", { on: { click: function click($event) { return _vm.openTab(); } } }, [_vm._v("功能设置")])]), _vm._v(" "), _vm._m(0), _vm._v(" "), _vm._m(1), _vm._v(" "), _vm._m(2)])]), _vm._v(" "), _vm._m(3), _vm._v(" "), _vm.showAd ? _c("a", { staticStyle: { "line-height": "0" }, attrs: { id: "gwdang-banner-ad", title: "点击领取", target: "_blank", href: _vm.jdadUrl } }, [_c("img", { staticStyle: { height: "32px" }, attrs: { src: "https://cdn.gwdang.com/images/extensions/ad1111/gwdang_go.png" } })]) : _vm._e(), _vm._v(" "), _c("div", { staticStyle: { flex: "1" }, attrs: { id: "gwd-space" } }), _vm._v(" "), _c("div", { staticClass: "gwd-topbar-right" }, [_c("div", { staticClass: "search-mod" }), _vm._v(" "), _c("div", { staticClass: "feedback-close", attrs: { id: "gwdang-feed-close" } }, [_vm._m(4), _vm._v(" "), _c("a", { staticClass: "gwdang-suggest", attrs: { href: _vm.f_url, id: "gwdang-suggest", target: "_blank", title: "提建议或吐槽遇到的问题" } }, [_c("em", { staticClass: "gwd_bg" }), _vm._v(" "), _c("span", { staticClass: "blkcolor1" }, [_vm._v("反馈")])]), _vm._v(" "), _c("a", { staticClass: "top-bar-setting", attrs: { href: _vm.s_url, target: _vm.s_url ? "_blank" : "", title: "功能设置" } }, [_c("em", { staticClass: "gwd_bg" })]), _vm._v(" "), _vm._m(5)])])]), _vm._v(" "), _c("div", { staticClass: "gwdang-mini", style: "display: " + (_vm.fold === "1" ? "block" : "none"), attrs: { id: "gwdang-mini" } }, [_c("div", { staticClass: "gwdang-nav main", attrs: { id: "gwdang-main-nav" } }, [_c("a", { staticClass: "gwd_logo gwd_bg", attrs: { href: "#" }, on: { click: function click($event) { $event.preventDefault(); } } }, [_c("div", { attrs: { id: "gwd_setting_div" } }, [_c("div", { staticClass: "gwd-hover-helper" }), _vm._v(" "), _c("div", { staticClass: "gwd_setting_item gwd_setting_item_fst" }, [_c("div", { staticClass: "gwd_bg gwd_function_setting" }), _vm._v(" "), _c("a", { on: { click: function click($event) { return _vm.openTab(); } } }, [_vm._v("功能设置")])]), _vm._v(" "), _c("div", { staticClass: "gwd_setting_item" }, [_c("div", { staticClass: "gwd_bg gwd_opinion_feedback" }), _vm._v(" "), _c("a", { attrs: { target: "_blank" }, on: { click: function click($event) { return _vm.openLink("https://www.gwdang.com/brwext/suggest"); } } }, [_vm._v("意见反馈")])]), _vm._v(" "), _c("div", { staticClass: "gwd_setting_item" }, [_c("div", { staticClass: "gwd_bg gwd_use_help" }), _vm._v(" "), _c("a", { attrs: { target: "_blank" }, on: { click: function click($event) { return _vm.openLink("https://www.gwdang.com/v2/app/questions"); } } }, [_vm._v("使用帮助")])]), _vm._v(" "), _c("div", { staticClass: "gwd_setting_item" }, [_c("div", { staticClass: "gwd_bg gwd_homepage" }), _vm._v(" "), _c("a", { attrs: { target: "_blank" }, on: { click: function click($event) { return _vm.openLink("https://www.gwdang.com/"); } } }, [_vm._v("购物党首页")])])])]), _vm._v(" "), _c("a", { staticClass: "unfold_pointer gwd_bg", attrs: { href: "javascript:", title: "点击展开", id: "gwd_fold_pointer" } })])])]); }; var staticRenderFns = [function () { var _vm = this, _c = _vm._self._c; return _c("div", { staticClass: "gwd_setting_item" }, [_c("div", { staticClass: "gwd_bg gwd_opinion_feedback" }), _vm._v(" "), _c("a", { attrs: { href: "https://www.gwdang.com/brwext/suggest", target: "_blank" } }, [_vm._v("意见反馈")])]); }, function () { var _vm = this, _c = _vm._self._c; return _c("div", { staticClass: "gwd_setting_item" }, [_c("div", { staticClass: "gwd_bg gwd_use_help" }), _vm._v(" "), _c("a", { attrs: { href: "https://www.gwdang.com/v2/app/questions", target: "_blank" } }, [_vm._v("使用帮助")])]); }, function () { var _vm = this, _c = _vm._self._c; return _c("div", { staticClass: "gwd_setting_item" }, [_c("div", { staticClass: "gwd_bg gwd_homepage" }), _vm._v(" "), _c("a", { attrs: { href: "https://www.gwdang.com/", target: "_blank" } }, [_vm._v("购物党首页")])]); }, function () { var _vm = this, _c = _vm._self._c; return _c("div", { staticClass: "gwd-topbar-left" }, [_c("div", { staticClass: "gwdang-tab", attrs: { id: "amazon_compare" } }), _vm._v(" "), _c("div", { staticClass: "gwdang-tab", attrs: { id: "b2c_compare" } }), _vm._v(" "), _c("div", { staticClass: "gwdang-tab", attrs: { id: "tb_compare" } }), _vm._v(" "), _c("div", { staticClass: "gwdang-tab", attrs: { id: "tm_compare" } }), _vm._v(" "), _c("div", { staticClass: "gwdang-tab", attrs: { id: "gwdang-trend" } })]); }, function () { var _vm = this, _c = _vm._self._c; return _c("a", { staticClass: "gwdang-icon favor", attrs: { href: "javascript:", id: "gwdang-favor", title: "我的收藏夹", target: "_self" } }, [_c("em", { staticClass: "hasColor gwd_bg" }), _vm._v(" "), _c("span", { staticClass: "blkcolor1 favortle", attrs: { title: "收藏并获得降价提醒" } }, [_vm._v("我的收藏夹")])]); }, function () { var _vm = this, _c = _vm._self._c; return _c("a", { staticClass: "gwd_close", attrs: { href: "javascript:", target: "_self", title: "关闭购物党" } }, [_c("em", { staticClass: "gwd_bg" })]); }]; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "7a1db2518c2bd90bb66c": /***/ (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__("3ff3fad760a3783c0d76"); if(typeof content === 'string') content = [[module.i, content, '']]; // add the styles to the DOM var update = __webpack_require__("10fdb983c061c1343439")(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/_css-loader@0.20.2@css-loader/index.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./TooltipView.vue?vue&type=style&index=0&id=4c623068&scoped=true&lang=css", function() { var newContent = require("!!../../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./TooltipView.vue?vue&type=style&index=0&id=4c623068&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(); }); } /***/ }), /***/ "7b1eeb8df60301633e3b": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // 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 position: fixed;\n border-top-right-radius: 8px;\n border-bottom-right-radius: 8px;\n z-index: 999;\n top: 548px;\n left: 0px;\n cursor: pointer;\n box-sizing: border-box;\n box-shadow: 2px 2px 30px 0px rgba(97, 105, 119, 0.18);\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: 43px;\n left: -1px;\n box-sizing: border-box;\n z-index: 9999;\n background: white;\n border-radius: 8px;\n}\n.gwd-qrlink-left:hover .gwd-qr-content[data-v-b671e2be] {\n display: flex;\n}\n", ""]); // exports /***/ }), /***/ "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"))) /***/ }), /***/ "7d557cda33596653a501": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, "#gwd-tb-mini-coupon[data-v-0ac72494] {\n height: 40px;\n text-decoration: none;\n border: 1px solid #f0f3f5;\n border-radius: 4px;\n padding-right: 12px;\n box-sizing: border-box;\n margin-bottom: 10px;\n display: none;\n position: relative;\n}\n.miniPanel #gwd-tb-mini-coupon[data-v-0ac72494] {\n display: flex;\n}\n.gwd-rnd-btn-click[data-v-0ac72494] {\n display: inline-flex;\n width: 60px;\n height: 20px;\n border-radius: 4px;\n color: white;\n}\n.gwd-coupon-color-bg.gwd-br[data-v-0ac72494] {\n right: 0;\n}\n", ""]); // exports /***/ }), /***/ "7dc6126bae46e0f3fbd4": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; 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; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "7e4ad969a6619fec22be": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_template_id_4148f062_scoped_true__ = __webpack_require__("912cea275a61b4b47c0c"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_template_id_4148f062_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_template_id_4148f062_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_template_id_4148f062_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_template_id_4148f062_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_template_id_4148f062_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_template_id_4148f062_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "7e53940dd2c333f06a3a": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AliMobilePriceNotifier_vue_vue_type_style_index_1_id_1b4bff6e_lang_css__ = __webpack_require__("194374659351ecad7f35"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AliMobilePriceNotifier_vue_vue_type_style_index_1_id_1b4bff6e_lang_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AliMobilePriceNotifier_vue_vue_type_style_index_1_id_1b4bff6e_lang_css__); /* unused harmony reexport namespace */ /***/ }), /***/ "7e85b3fd016f5a9fdafc": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AmazonSameLinks_vue_vue_type_script_lang_js__ = __webpack_require__("120cc7baa53b9ecc5802"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AmazonSameLinks_vue_vue_type_script_lang_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AmazonSameLinks_vue_vue_type_script_lang_js__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AmazonSameLinks_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AmazonSameLinks_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AmazonSameLinks_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "7eaa736e8bb1c3454720": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return _c("div", { staticClass: "shareExt gwdang-tab" }, [_vm._m(0), _vm._v(" "), _c("div", { staticClass: "share-detail bjd-product-detail topdetail" }, [_c("span", { staticClass: "share-sp2 gwd-share-title" }, [_vm._v(_vm._s(_vm.title))]), _vm._v(" "), _c("div", { staticClass: "share-sp2" }, [_vm._v("\n " + _vm._s(_vm.priceInfo) + "\n ")]), _vm._v(" "), _c("span", { staticClass: "share-sp2" }, [_vm._v("\n 点击链接查看具体历史价格详情"), _c("a", { attrs: { href: _vm.link, target: "_blank" } }, [_vm._v(_vm._s(_vm.link))])]), _vm._v(" "), _vm._m(1), _vm._v(" "), _c("textarea", { attrs: { id: "copy-input", type: "", name: "" } }, [_vm._v(_vm._s(_vm.title) + "\n\n " + _vm._s(_vm.priceInfoCopy) + "\n\n 点击链接查看具体历史价格详情" + _vm._s(_vm.link) + "\n ")])])]); }; var staticRenderFns = [function () { var _vm = this, _c = _vm._self._c; return _c("span", { staticClass: "btn-tab-sp" }, [_c("em"), _vm._v(" "), _c("span", { staticClass: "tab-sp1 blkcolor1" }, [_vm._v("分享")])]); }, function () { var _vm = this, _c = _vm._self._c; return _c("div", { staticStyle: { "text-align": "center" } }, [_c("span", { staticClass: "share-sp3 share-btn", staticStyle: { "margin-bottom": "20px" }, attrs: { id: "copy-btn" } }, [_vm._v("复制去分享")])]); }]; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "7eed15c7853456372abb": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = {}; module.exports = exports["default"]; /***/ }), /***/ "7f09b0889f107f80ec50": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return _c("div", { staticClass: "gwd-qrlink-left gwd-row gwd-align", on: { mouseenter: _vm.over } }, [_c("img", { staticStyle: { width: "26px", height: "26px", "margin-left": "8px" }, attrs: { src: __webpack_require__("273dbda3cd8b9dbd1e10") } }), _vm._v(" "), _c("span", { staticStyle: { "margin-left": "4px", "font-size": "14px", color: "#11192d" } }, [_vm._v(_vm._s(_vm.transText("手淘扫码")) + " " + _vm._s(_vm.hasBuyButton ? _vm.transText("查看优惠") : _vm.transText("快捷购买")))]), _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; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "7ffda7d29dfea4a64d16": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var deviceEncode = __webpack_require__("57981fc895e0110a4346"); var util = __webpack_require__("d54879e983a83d07f093"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var addEvent = function addEvent() { var time1 = undefined; $('#bjd_logo').on('mouseenter', function () { $('#nbt_setting').show(); }); $('#bjd_logo').on('mouseleave', function () { time1 = setTimeout(function () { $('#nbt_setting').hide(); }, 200); }); $('#nbt_setting').on('mouseenter', function () { clearTimeout(time1); }); $('#nbt_setting').on('mouseleave', function () { $('#nbt_setting').hide(); }); $('#nbt_setting .setting-item').on('mouseenter', function () { $(this).addClass('setting_hover'); }); $('#nbt_setting .setting-item').on('mouseleave', function () { $(this).removeClass('setting_hover'); }); if (G.allowBackgroundRequest) { $('.main-setting').on('click', function () { util.openTab(); }); } }; var render = function render() { var perinfo = userData.get('permanent'); var href = document.location.href; var btype = G.btype ? G.btype : ''; var settingUrl = undefined; if (!perinfo.setPage) { settingUrl = G.server + '/brwext/setting?from=' + deviceEncode(G.from_device) + '&btype=' + (G.btype ? G.btype : ''); } var html = __webpack_require__("6a5667f7cd2a957c2e3a"); $('#bjd_bottom_detail').append(template.compile(html)({ mainset: G.server + '/brwext/setting?from=' + deviceEncode(G.from_device) + '&btype=' + btype, feedback: G.c_server + '/brwext/suggest?refer=' + encodeURIComponent(href) + '&from_device=' + G.from_device + '&btype=' + btype, help: G.c_server + '/v2/app/questions', settingUrl: settingUrl, webpage: G.c_server + '/' })); addEvent(); }; module.exports.init = function () { render(); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "803ca7dd7a34a5d378f9": /***/ (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__("6551eb75655b14df2b7e"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("37e128d4", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./MiniBarCollectionButton.vue?vue&type=style&index=0&id=1e4a0206&scoped=true&lang=less", function() { var newContent = require("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./MiniBarCollectionButton.vue?vue&type=style&index=0&id=1e4a0206&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "80d332e2e12df8b1a0ea": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, "\n.tip-item-sp3.prifontf[data-v-da945952] {\n position: relative;\n top: 1px;\n}\n", ""]); // exports /***/ }), /***/ "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; }; /***/ }), /***/ "830a4b1b5b0ed660267f": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Index_vue_vue_type_template_id_74d4d45d_scoped_true__ = __webpack_require__("8e781995957368f4e936"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Index_vue_vue_type_script_lang_js__ = __webpack_require__("9ea914c82396be5957fe"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__Index_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__Index_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Index_vue_vue_type_style_index_0_id_74d4d45d_scoped_true_lang_less__ = __webpack_require__("cbea4eed9d508fc276d9"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__Index_vue_vue_type_script_lang_js__["default"], __WEBPACK_IMPORTED_MODULE_0__Index_vue_vue_type_template_id_74d4d45d_scoped_true__["render"], __WEBPACK_IMPORTED_MODULE_0__Index_vue_vue_type_template_id_74d4d45d_scoped_true__["staticRenderFns"], false, null, "74d4d45d", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('74d4d45d')) { api.createRecord('74d4d45d', component.options) } else { api.reload('74d4d45d', component.options) } module.hot.accept("./Index.vue?vue&type=template&id=74d4d45d&scoped=true", function () { api.rerender('74d4d45d', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/ImgSame/Index.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "8331155e0d42503bdbc5": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingMini_vue_vue_type_script_lang_js__ = __webpack_require__("f3df65e0892fa07d9abe"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingMini_vue_vue_type_script_lang_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingMini_vue_vue_type_script_lang_js__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingMini_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingMini_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingMini_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "837af60e156ebab0c55e": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, "\n.gwd-qr-content[data-v-c5e8106e] {\n display: flex;\n flex-direction: column;\n align-items: center;\n position: absolute;\n width: 162px;\n height: 164px;\n background: #FFF3ED;\n border-radius: 4px;\n border: 1px solid #FF9851;\n top: 100px;\n left: 100px;\n z-index: 999999;\n}\n", ""]); // exports /***/ }), /***/ "8463d75a48f2a06d30df": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_template_id_12b5b164__ = __webpack_require__("791495145d3059f003ee"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_template_id_12b5b164___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_template_id_12b5b164__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_template_id_12b5b164__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_template_id_12b5b164__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_template_id_12b5b164__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_template_id_12b5b164__["staticRenderFns"]; }); /***/ }), /***/ "85f9e563e35dd4a4e51e": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var request = __webpack_require__("91f250ebeb8d5987491c"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var renderBtn = function renderBtn() { var t = '<div id="review_btn" class="gwdang-tab">\n <span class="btn-tab-sp">\n <em class="gwd_bg"></em>\n <span class="tab-sp1 blkcolor1">口碑</span>\n </span>\n </div>'; $('.gwd-topbar-left').append(t); $('#review_btn').css('display', 'block'); }; var addEvent = function addEvent() { var choosed = undefined, time = undefined; $('#review_btn').on('mouseenter', function () { if (!choosed) { var cls = $('.review-good').attr('data-d'); $('.' + cls).show(); } var left = $(this).offset().left; $('#review_detail').css('left', left + 'px'); $('#review_detail').show(); $(this).addClass('msenter'); if ($(window).width() - ($('#review_detail').offset().left + $('#review_detail').outerWidth() + 2) < 0) { $('#review_detail').css('right', '0px').css('left', 'auto'); } }); $('#review_btn').on('mouseleave', function () { var that = this; time = setTimeout(function () { $('#review_detail').hide(); $(that).removeClass('msenter'); }, 200); }); $('#review_detail').on('mouseenter', function () { clearTimeout(time); }); $('#review_detail').on('mouseleave', function () { $('#review_detail').hide(); $('#review_btn').removeClass('msenter'); }); $('#review_detail .review-tab').on('click', function () { choosed = true; var cls = $(this).attr('data-d'); $('#review_detail .review-tab').removeClass('selected'); $(this).addClass('selected'); $('.review-right>div').hide(); $('.' + cls).show(); }); }; var addUrls = function addUrls(data) { var other_info = userData.get('other_info'); var dpid = other_info && other_info.now.dp_id; if (!dpid) return data; if (data.bad && data.bad.length > 0) { for (var i = 0; i < data.bad.length; i++) { var href = G.c_server + '/crc64/dp' + dpid + '/reviews/?rword=' + encodeURIComponent(data.bad[i].label) + '&ext=1&rtype=2'; data.bad[i].url = href; } } if (data.good && data.good.length > 0) { for (var i = 0; i < data.good.length; i++) { var href = G.c_server + '/crc64/dp' + dpid + '/reviews/?rword=' + encodeURIComponent(data.good[i].label) + '&ext=1&rtype=1'; data.good[i].url = href; } } return data; }; var getInfo = function getInfo(callback) { var href = encodeURIComponent(location.href); var url = G.server + '/extension/review?url=' + href; request.get(url).done(function (data) { if (data && !(data instanceof Array)) { callback(data); // if (callback2) // callback2(data) // else // globalData = data; } }); }; var renderReview = function renderReview(data) { data.goodbox = 'review-r-good'; data.badbox = 'review-r-bad'; if (!data.good) data.goodbox = 'review-r-noinfo'; if (!data.bad) data.badbox = 'review-r-noinfo'; var html = __webpack_require__("94949e42013e4f5d5530"); data = addUrls(data); var dom = template.compile(html)({ data: data, s_server: G.s_server }); $('.gwd-topbar-left').append(dom); addEvent(); }; // module.exports.getReviewTrend = (callback) => { // if (globalData) callback(globalData) // else callback2 = callback // } module.exports.init = function (data) { getInfo(function (data) { if (data.reviews.length === 0) { __webpack_require__("9c38beef5ff283e15bd2").setMet('no_reviews'); return; } renderBtn(); renderReview(data.reviews); }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "86382bef702254f6385c": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, Vue, $) { var QRLink = __webpack_require__("041f80fea3d67bf79b22")['default']; var util = __webpack_require__("3e983ecbff4e1a29654c"); var getId = function getId(url) { var id = util.getParameterByName('wareId', url); if (id) { return id + '.html'; } else { return url.split('item.m.jd.com/product/')[1]; } }; module.exports = { init: function init() { var returnUrl, _ret, id, link, a, d, d2, img, giftMoney, dpId, e, tag, mode, app; return regeneratorRuntime.async(function init$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!(window.gwd_G && G.from_device === 'bijiago')) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: if (location.hostname.includes('.jd.com')) { context$1$0.next = 4; break; } return context$1$0.abrupt('return'); case 4: if (!location.hostname.includes('cfe.m.jd.com')) { context$1$0.next = 31; break; } returnUrl = util.getParameterByName('returnurl'); if (!returnUrl.includes('jingfen.jd.com')) { context$1$0.next = 10; break; } _ret = (function () { var e = document.createElement('DIV'); document.body.appendChild(e); var app = new Vue({ el: e, render: function render(h) { return h(QRLink, { ref: 'qr', props: { mode: 'gwd-mode-login gwd-cfe', dpId: dpId + '-3', tag: tag, url: d } }); } }); __webpack_require__("3e983ecbff4e1a29654c").appendCss('.gwd-qrlink { position: relative; margin-top: 95px; }'); setTimeout(function () { app.$refs.qr.over(); }, 0); return { v: undefined }; })(); if (!(typeof _ret === 'object')) { context$1$0.next = 10; break; } return context$1$0.abrupt('return', _ret.v); case 10: id = getId(returnUrl); if (!id) { context$1$0.next = 31; break; } context$1$0.next = 14; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return $('.main-wrap').length; })); case 14: link = 'https://item.jd.com/' + id; a = document.createElement('A'); a.href = G.u_server + '/union/go?site_id=3&target_url=' + encodeURIComponent(link) + '&union=' + G.union + '&column=h5_to_pc'; a.innerHTML = '无需验证,直达商品详情页'; a.style.width = '350px'; a.style.height = '46px'; a.style.lineHeight = '46px'; a.style.textAlign = 'center'; a.style.fontSize = '15px'; a.style.border = '1px solid #e23a3a'; a.style.borderRadius = '35px'; a.style.color = '#e23a3a'; a.style.display = 'inline-block'; a.style.position = 'relative'; a.style.top = '-36px'; location.href = a.href; $('.main-wrap').append(a); case 31: if (!(location.href.indexOf('plogin.m.jd.com') === -1)) { context$1$0.next = 33; break; } return context$1$0.abrupt('return'); case 33: setTimeout(function () { if (!document.querySelector('.policy_tip-checkbox')) { return; } if (!document.querySelector('.policy_tip-checkbox').checked) { document.querySelector('.policy_tip-checkbox').click(); } }, 2000); d = decodeURIComponent(util.getParameterByName('returnurl')); d2 = util.getParameterByName('returnurl', d); if (d2) { d = decodeURIComponent(d2); } if (d.includes('item.m.jd.com/product')) { id = d.split('item.m.jd.com/product/')[1]; link = 'https://item.jd.com/' + id; img = __webpack_require__("b578198bfa51eac13e46"); 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 // } giftMoney = false; if (location.href.indexOf('giftcoupon') > -1) { giftMoney = true; //return } dpId = util.getParameterByName('sku', d); if (!dpId) { dpId = '1'; } if (!d.includes('item.m.jd.com/product')) { context$1$0.next = 44; break; } return context$1$0.abrupt('return'); case 44: e = document.createElement('DIV'); document.body.appendChild(e); tag = 'login'; if ((G.from_device === 'bijiago' || G.from_device === 'biyibi') && dpId !== '1') { tag = 7; } mode = giftMoney ? 'gwd-mode-login gwd-giftMoney' : 'gwd-mode-login'; app = new Vue({ el: e, render: function render(h) { return h(QRLink, { ref: 'qr', props: { mode: mode, dpId: dpId + '-3', tag: tag, url: d } }); } }); setTimeout(function () { app.$refs.qr.over(); }, 0); case 51: case 'end': return context$1$0.stop(); } }, null, this); } }; //check if dpid contains character // if (dpId.match(/[a-zA-Z]/)) { // dpId = 'fake' // mode = 'gwd-mode-login gwd-fake-cfe' // } /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("6a0e4ebb57bf6aac1f2d"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("b2848b041c3d11faa242")["default"], __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "86de65bd1e518eeb7e4e": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return _c("a", { staticClass: "gwd-row gwd-align gwd-jcc minibar-tab", staticStyle: { display: "flex", flex: "1", cursor: "pointer" }, attrs: { title: "点击查看结果" }, on: { click: _vm.open } }, [_c("img", { staticStyle: { width: "24px", height: "24px" }, attrs: { src: __webpack_require__("762121e3f42703da6326"), alt: "" } }), _vm._v(" "), _c("span", { staticStyle: { "font-size": "13px", color: "#404547" } }, [_vm._v("图片找同款")])]); }; var staticRenderFns = []; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "86f818ca0ebde6d6af45": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_style_index_0_id_3fdd510a_scoped_true_lang_less__ = __webpack_require__("a0a7ad95ec992aa636e1"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_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_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_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 */ /***/ }), /***/ "882f3f6939d110dfaf41": /***/ (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__("a264eb5f29223f899f04"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("2eebe756", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./CollectionSettingMini.vue?vue&type=style&index=0&id=1a72083a&scoped=true&lang=less", function() { var newContent = require("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./CollectionSettingMini.vue?vue&type=style&index=0&id=1a72083a&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "893503d294226ea0dddf": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TooltipView_vue_vue_type_template_id_4c623068_scoped_true__ = __webpack_require__("b85dc73330c2d967d021"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__TooltipView_vue_vue_type_script_lang_js__ = __webpack_require__("d203188816acf95fc4be"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__TooltipView_vue_vue_type_script_lang_js__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__TooltipView_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__TooltipView_vue_vue_type_style_index_0_id_4c623068_scoped_true_lang_css__ = __webpack_require__("a71216ee4e4a120eb458"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__TooltipView_vue_vue_type_script_lang_js__["default"], __WEBPACK_IMPORTED_MODULE_0__TooltipView_vue_vue_type_template_id_4c623068_scoped_true__["render"], __WEBPACK_IMPORTED_MODULE_0__TooltipView_vue_vue_type_template_id_4c623068_scoped_true__["staticRenderFns"], false, null, "4c623068", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('4c623068')) { api.createRecord('4c623068', component.options) } else { api.reload('4c623068', component.options) } module.hot.accept("./TooltipView.vue?vue&type=template&id=4c623068&scoped=true", function () { api.rerender('4c623068', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/PriceTrend/TooltipView.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "8b17d07b04751133cc48": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_ProductItem_vue_vue_type_script_lang_js__ = __webpack_require__("a862a3ac04e10c4487eb"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_ProductItem_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "8ba87ffaa518316e0f3e": /***/ (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__("7d557cda33596653a501"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("6106cecb", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./TbScrollLink.vue?vue&type=style&index=0&id=0ac72494&scoped=true&lang=less", function() { var newContent = require("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./TbScrollLink.vue?vue&type=style&index=0&id=0ac72494&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "8c831397617ed0629df7": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Price_vue_vue_type_script_lang_js__ = __webpack_require__("08d7fb3ae934205c2175"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Price_vue_vue_type_script_lang_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Price_vue_vue_type_script_lang_js__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Price_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Price_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Price_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "8cb39c511782f7a9e4b9": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkTbV3_vue_vue_type_script_lang_js__ = __webpack_require__("3e1eece978e4756459f9"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkTbV3_vue_vue_type_script_lang_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkTbV3_vue_vue_type_script_lang_js__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkTbV3_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkTbV3_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkTbV3_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "8da202894b503b94f179": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TooltipViewBar_vue_vue_type_template_id_da945952_scoped_true__ = __webpack_require__("c2c04e20e9104a7afb69"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__TooltipViewBar_vue_vue_type_script_lang_js__ = __webpack_require__("1f4da8a1c70a441549a4"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__TooltipViewBar_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__TooltipViewBar_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__TooltipViewBar_vue_vue_type_style_index_0_id_da945952_scoped_true_lang_css__ = __webpack_require__("3b577d009bbc954f4f7c"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__TooltipViewBar_vue_vue_type_script_lang_js__["default"], __WEBPACK_IMPORTED_MODULE_0__TooltipViewBar_vue_vue_type_template_id_da945952_scoped_true__["render"], __WEBPACK_IMPORTED_MODULE_0__TooltipViewBar_vue_vue_type_template_id_da945952_scoped_true__["staticRenderFns"], false, null, "da945952", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('da945952')) { api.createRecord('da945952', component.options) } else { api.reload('da945952', component.options) } module.hot.accept("./TooltipViewBar.vue?vue&type=template&id=da945952&scoped=true", function () { api.rerender('da945952', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/PriceTrend/TooltipViewBar.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "8e781995957368f4e936": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_template_id_74d4d45d_scoped_true__ = __webpack_require__("0b73d6d1967e4a153feb"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_template_id_74d4d45d_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_template_id_74d4d45d_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_template_id_74d4d45d_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_template_id_74d4d45d_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_template_id_74d4d45d_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_template_id_74d4d45d_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "90a4a7d2a2c7276b0d69": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_script_lang_js__ = __webpack_require__("15588eb95b4fb9c0fef6"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "90df592ad9428c8190fb": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TbScrollLink_vue_vue_type_template_id_0ac72494_scoped_true__ = __webpack_require__("53da54ab4245066652b0"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__TbScrollLink_vue_vue_type_script_lang_js__ = __webpack_require__("99be78a89d0fa9a78938"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__TbScrollLink_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__TbScrollLink_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__TbScrollLink_vue_vue_type_style_index_0_id_0ac72494_scoped_true_lang_less__ = __webpack_require__("74ae07799bc2fa48faa3"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__TbScrollLink_vue_vue_type_script_lang_js__["default"], __WEBPACK_IMPORTED_MODULE_0__TbScrollLink_vue_vue_type_template_id_0ac72494_scoped_true__["render"], __WEBPACK_IMPORTED_MODULE_0__TbScrollLink_vue_vue_type_template_id_0ac72494_scoped_true__["staticRenderFns"], false, null, "0ac72494", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('0ac72494')) { api.createRecord('0ac72494', component.options) } else { api.reload('0ac72494', component.options) } module.hot.accept("./TbScrollLink.vue?vue&type=template&id=0ac72494&scoped=true", function () { api.rerender('0ac72494', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/TbScrollLink.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "90f63eba7eda2d0bb666": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Switch_vue_vue_type_script_lang_js__ = __webpack_require__("9e01a209487a1d26ce1d"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Switch_vue_vue_type_script_lang_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Switch_vue_vue_type_script_lang_js__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Switch_vue_vue_type_script_lang_js__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Switch_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Switch_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "912cea275a61b4b47c0c": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; 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._s(_vm.transText("扫码联系客服")))]), _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(_vm._s(_vm.transText("淘宝APP")))]), _vm._v(" "), _c("span", { staticClass: "normal", style: "font-size: 18px" }, [_vm._v(_vm._s(_vm.transText("扫码")))]), _vm._v(" "), _c("span", { staticClass: "normal", staticStyle: { "margin-left": "10px" } }, [_vm._v(_vm._s(_vm.transText("联系客服")))])])]) : _vm._e()]); }; var staticRenderFns = []; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "916640eba3b525c3fef0": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, $, G, Vue) { var _require = __webpack_require__("d45bbf37f97eb6c6f02e"); var MiniSameList = _require['default']; var extConsole = __webpack_require__("316f9c352c6202560d16"); module.exports = { init: function init() { var price, items, skuId, sku, tbHighValueSameItems, newItems, existedShops, data, el, miniBarEl; return regeneratorRuntime.async(function init$(context$1$0) { var _this2 = this; while (1) switch (context$1$0.prev = context$1$0.next) { case 0: $('body > #gwd_mini_compare').remove(); context$1$0.next = 3; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('dpSlist')); case 3: context$1$0.next = 5; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('NowPrice')); case 5: price = context$1$0.sent; if (G.dp.price && price > G.dp.price) { price = G.dp.price; } items = G.dp.slist.filter(function (x) { return x.url_crc; }); skuId = __webpack_require__("3e983ecbff4e1a29654c").getParameterByName('skuId'); if (G.site === 'taobao' && window.Hub) { sku = Hub.config.get('sku'); skuId = sku.skuId; } if (!(skuId && G.allowBackgroundRequest)) { context$1$0.next = 21; break; } context$1$0.prev = 11; context$1$0.next = 14; return regeneratorRuntime.awrap(__webpack_require__("4c83f53709c9c577efae").get(G.dp.itemId, skuId)); case 14: tbHighValueSameItems = context$1$0.sent; if (tbHighValueSameItems.data && tbHighValueSameItems.data.result) { newItems = tbHighValueSameItems.data.result.filter(function (item) { return item.rebate; }).map(function (item) { item.is_tmall = item.shopTag.includes('XXXXXX-16'); item.title = item.itemTitle; item.price = item.zkPrice; item.shop = item.shopName; item.dpId = item.itemId + '-' + (item.is_tmall ? '83' : '123'); return item; }); items = items.concat(newItems); } context$1$0.next = 21; break; case 18: context$1$0.prev = 18; context$1$0.t0 = context$1$0['catch'](11); console.error(context$1$0.t0); case 21: __webpack_require__("9c38beef5ff283e15bd2").setMet('miniItemList', items); existedShops = []; data = items.map(function (item) { item.site = item.is_tmall ? '83' : '123'; item.view_price = item.price; item.shopName = item.shop; if (!item.dpId) { item.dpId = item.url_crc + '-' + item.site; } if (!item.soldNum) { item.soldNum = item.sales; } item.url = G.tb_server + '/extension/qrpage?directLink=1&dp_id=' + item.dpId + '&title=' + encodeURIComponent(item.title) + '&price=' + item.view_price + '&shopName=' + encodeURIComponent(item.shopName) + '&img=' + encodeURIComponent(item.img) + '&sellAmount=' + encodeURIComponent(item.soldNum) + '&union=' + G.union; return item; }).filter(function (item) { if (existedShops.includes(item.shopName)) { return false; } if (item.dpId.split('-')[0] === G.dp.dpId.split('-')[0]) { return false; } existedShops.push(item.shopName); return true; }); data.sort(function (a, b) { return a.view_price - b.view_price; }); el = '#gwd_mini_compare'; if (!(G.aliUIVersion !== '0.2.55')) { context$1$0.next = 29; break; } context$1$0.next = 29; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return !$('.miniPanel').length; })); case 29: miniBarEl = undefined; if (!data.length) { context$1$0.next = 33; break; } context$1$0.next = 33; return regeneratorRuntime.awrap((function callee$1$0() { var position, bodyOffset, miniBarApp, app; return regeneratorRuntime.async(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: position = {}; if (!(G.aliUIVersion !== '0.2.55')) { context$2$0.next = 16; break; } context$2$0.next = 4; return regeneratorRuntime.awrap(__webpack_require__("3e983ecbff4e1a29654c").sleep(100)); case 4: bodyOffset = __webpack_require__("3e983ecbff4e1a29654c").getBodyOffset(el); miniBarApp = new Vue({ el: el, render: function render(h) { return h(MiniSameList, { props: { data: data, pri: parseFloat(price), position: {} } }); } }); miniBarEl = miniBarApp.$el; el = document.createElement('div'); el.style.position = 'absolute'; el.style.top = bodyOffset.top + 'px'; el.style.left = bodyOffset.left + 'px'; document.body.appendChild(el); position.top = bodyOffset.top; position.left = bodyOffset.left; position.width = bodyOffset.width; position.height = bodyOffset.height; case 16: app = new Vue({ el: el, data: function data() { return { position: position }; }, render: function render(h) { return h(MiniSameList, { props: { data: data, pri: parseFloat(price), position: position } }); }, mounted: function mounted() { var _this = this; // when window resize, update position var posReset = function posReset() { var bodyOffset = __webpack_require__("3e983ecbff4e1a29654c").getBodyOffset(miniBarEl); _this.position.top = bodyOffset.top; _this.position.left = bodyOffset.left; _this.position.width = bodyOffset.width; _this.position.height = bodyOffset.height; }; window.addEventListener('resize', posReset); setTimeout(function () { posReset(); }, 500); } }); G.miniCompareApp = app; case 18: case 'end': return context$2$0.stop(); } }, null, _this2); })()); case 33: case 'end': return context$1$0.stop(); } }, null, this, [[11, 18]]); }, reset: function reset() { $('#gwd_mini_compare').remove(); G.miniCompareApp = null; } }; // if (G.from_device === 'bijiago' && !$(el).length) { // el = document.createElement('div') // el.style.borderRight = '1px solid #e6e9eb' // $('.bjgext-mini-trend').after(el) // $('.gwd-middle-tmall').remove() // } // data = [...data, ...data] // for (let i = 0; i < 18; i++) { // data.push(data[0]) // } // 这个仅作为占位,实际悬浮后的组件位于body下面 // await require('common/commonUtil').sleep(100) /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("6a0e4ebb57bf6aac1f2d"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("b2848b041c3d11faa242")["default"])) /***/ }), /***/ "91a7fc70a0681e4a72a2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var _CouponLinkMixin = __webpack_require__("05dfce086a5faeee4991"); var _CouponLinkMixin2 = _interopRequireDefault(_CouponLinkMixin); exports["default"] = { mixins: [_CouponLinkMixin2["default"]] }; module.exports = exports["default"]; /***/ }), /***/ "942c2505bb62e058e7b9": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__QuestHint_vue_vue_type_template_id_39a606fa_scoped_true__ = __webpack_require__("e466073903ec8c7d745c"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QuestHint_vue_vue_type_script_lang_js__ = __webpack_require__("53b414728be70dc244d4"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__QuestHint_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__QuestHint_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__QuestHint_vue_vue_type_style_index_0_id_39a606fa_scoped_true_lang_less__ = __webpack_require__("e8fd6105fa4167750018"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__QuestHint_vue_vue_type_script_lang_js__["default"], __WEBPACK_IMPORTED_MODULE_0__QuestHint_vue_vue_type_template_id_39a606fa_scoped_true__["render"], __WEBPACK_IMPORTED_MODULE_0__QuestHint_vue_vue_type_template_id_39a606fa_scoped_true__["staticRenderFns"], false, null, "39a606fa", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('39a606fa')) { api.createRecord('39a606fa', component.options) } else { api.reload('39a606fa', component.options) } module.hot.accept("./QuestHint.vue?vue&type=template&id=39a606fa&scoped=true", function () { api.rerender('39a606fa', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/QuestHint.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "94dcbcd87711142a8b0b": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, $, G) { var _this = this; var extConsole = __webpack_require__("316f9c352c6202560d16"); module.exports.init = function callee$0$0(data) { var icon, dom; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: extConsole.log(data); icon = __webpack_require__("af90ffcf5e70f2bd4f87"); if (data && data.link) { dom = '\n <div id="gwd-ingre" class="gwdang-tab gwd-row gwd-align gwd-hoverable" style="line-height: 36px; padding-left: 5px; padding-right: 5px">\n <a href="' + data.link + '" target="_blank" style="text-decoration: none!important;">\n <img src="' + icon + '" alt="" style="width: 22px; height: 22px; margin-top: -2px;vertical-align: middle; display: inline-block">\n <span style="margin-left: 5px; font-size: 14px; color: #333333">查看成分表</span>\n </a>\n </div>'; extConsole.log($('#' + G.extName + '-trend')); //await require('common/globalCondition').met('GwdPriceTrendLoaded') if ($('#' + G.extName + '-trend').length > 0) $('#' + G.extName + '-trend').after($(dom));else $('#' + G.extName + '-main-contents').append($(dom)); extConsole.log('showing dom'); //require('common/mutationObserver').observe($('#gwd-ingre')[0]) $('#gwd-ingre').css('display', 'flex'); __webpack_require__("9c38beef5ff283e15bd2").setMet('ingreComplete'); } case 3: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("6a0e4ebb57bf6aac1f2d"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "95b214135d100bffbf6d": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, ".gwd-coupon-color-bg {\n position: absolute;\n z-index: 0;\n background-size: contain;\n}\n.gwd-coupon-color-bg.gwd-tl {\n top: 0;\n left: 0;\n width: 30px;\n height: 28px;\n background-image: url(https://cdn.gwdang.com/images/extensions/coupon-tl-bg@2x.png);\n}\n.gwd-coupon-color-bg.gwd-br {\n bottom: 0;\n right: 49px;\n width: 46px;\n height: 23px;\n background-image: url(https://cdn.gwdang.com/images/extensions/coupon-br-bg@2x.png);\n}\n.gwd-butie .gwd-coupon-color-bg.gwd-tl {\n background-image: url(https://cdn.gwdang.com/images/extensions/bt-tl-bg@2x.png);\n}\n.gwd-butie .gwd-coupon-color-bg.gwd-br {\n background-image: url(https://cdn.gwdang.com/images/extensions/bt-br-bg@2x.png);\n}\n", ""]); // exports /***/ }), /***/ "96098ab3c5aee0e9fa45": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_0_id_673c66fa_lang_css__ = __webpack_require__("a12f917496ed00eff9c1"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_0_id_673c66fa_lang_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_0_id_673c66fa_lang_css__); /* unused harmony reexport namespace */ /***/ }), /***/ "966caf0f29e39a633494": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MiniBarCollectionButton_vue_vue_type_template_id_1e4a0206_scoped_true__ = __webpack_require__("fc929b4d843a1408ec7a"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__MiniBarCollectionButton_vue_vue_type_script_lang_js__ = __webpack_require__("bbc1737e41a566e2b0d8"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__MiniBarCollectionButton_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__MiniBarCollectionButton_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__MiniBarCollectionButton_vue_vue_type_style_index_0_id_1e4a0206_scoped_true_lang_less__ = __webpack_require__("d537d23bddc7d6ab50e6"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__MiniBarCollectionButton_vue_vue_type_script_lang_js__["default"], __WEBPACK_IMPORTED_MODULE_0__MiniBarCollectionButton_vue_vue_type_template_id_1e4a0206_scoped_true__["render"], __WEBPACK_IMPORTED_MODULE_0__MiniBarCollectionButton_vue_vue_type_template_id_1e4a0206_scoped_true__["staticRenderFns"], false, null, "1e4a0206", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('1e4a0206')) { api.createRecord('1e4a0206', component.options) } else { api.reload('1e4a0206', component.options) } module.hot.accept("./MiniBarCollectionButton.vue?vue&type=template&id=1e4a0206&scoped=true", function () { api.rerender('1e4a0206', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/MiniBarCollectionButton.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "96d791c4e9a61aa95671": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_style_index_1_id_caa5e08c_scoped_true_lang_css__ = __webpack_require__("40b8421bdc68cb5bf3e5"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_style_index_1_id_caa5e08c_scoped_true_lang_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_style_index_1_id_caa5e08c_scoped_true_lang_css__); /* unused harmony reexport namespace */ /***/ }), /***/ "978bd30cb4816a584596": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return !_vm.closed ? _c("div", { staticClass: "gwd-bt-qr gwd-column gwd-align" }, [_c("img", { staticStyle: { width: "132px", height: "132px", "margin-top": "10px", border: "10px solid white" }, style: "visibility: " + (_vm.qr ? "visible" : "hidden"), attrs: { src: _vm.qr, alt: "" } }), _vm._v(" "), _c("img", { staticStyle: { width: "20px", height: "20px", position: "absolute", left: "calc(50% - 10px)", top: "63px" }, attrs: { src: __webpack_require__("c9085187c37fc1ab0e5e"), alt: "" } }), _vm._v(" "), _c("span", { staticStyle: { "margin-top": "10px", "font-size": "14px", color: "#fff", "line-height": "14px" } }, [_vm._v("手淘APP扫码查看")]), _vm._v(" "), _c("img", { staticStyle: { width: "18px", height: "18px", right: "-9px", top: "-9px", position: "absolute" }, attrs: { src: __webpack_require__("a23ed12c888de0c5721c"), alt: "" }, on: { click: _vm.close } })]) : _vm._e(); }; var staticRenderFns = []; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "980ee6e75c1af867eadc": /***/ (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__("837af60e156ebab0c55e"); if(typeof content === 'string') content = [[module.i, content, '']]; // add the styles to the DOM var update = __webpack_require__("10fdb983c061c1343439")(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/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./TbQrBtContent.vue?vue&type=style&index=0&id=c5e8106e&scoped=true&lang=css", function() { var newContent = require("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./TbQrBtContent.vue?vue&type=style&index=0&id=c5e8106e&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(); }); } /***/ }), /***/ "981bfa64787691c6ac10": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, "\n.subTitleWrap--whzymnuj .gwd-mobile-notifier .gwd-hint-text {\n top: 0;\n font-size: 14px;\n}\n", ""]); // exports /***/ }), /***/ "981ccb7a622da38d89e0": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; 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: "#333333", width: "48px", "line-height": "14px" } }, [_vm._v(_vm._s(_vm.transText("手淘扫码")) + _vm._s(_vm.hasBuyButton ? _vm.transText("查看优惠") : _vm.transText("快捷购买")))]), _vm._v(" "), _c("img", { staticStyle: { width: "24px", height: "24px", "margin-left": "6px" }, attrs: { src: __webpack_require__("273dbda3cd8b9dbd1e10"), alt: "" } }), _vm._v(" "), _c("img", { staticStyle: { width: "12px", height: "12px", "margin-left": "8px" }, attrs: { src: __webpack_require__("7e5ea77af2487d788c43"), alt: "" } }), _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; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "98e571e6ad843edfcada": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $, regeneratorRuntime, Vue) { var _this = this; var template = __webpack_require__("274e32dfd54a6b0d18a9"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); var request = __webpack_require__("91f250ebeb8d5987491c"); module.exports.init = function () { render(); }; var link = ""; var dpId = ''; var getLink = function getLink() { var payload = { dp_id: dpId }; if (G.dp.price) { payload.price = G.dp.price; } $.post(G.server + '/extension/ShareUrl', payload).then(function (res) { res = JSON.parse(res); if (res.code) { link = res.link; $('.shareExt').remove(); render(); } }); }; var render = function render() { var priceInfo, priceInfoCopy, Share, opt, el; return regeneratorRuntime.async(function render$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: priceInfo = '', priceInfoCopy = ''; context$1$0.next = 3; return regeneratorRuntime.awrap(globalCondition.met('GwdPriceTrendLoaded')); case 3: context$1$0.next = 5; return regeneratorRuntime.awrap(globalCondition.met('GwdDpIdGot')); case 5: dpId = context$1$0.sent; if (G.dp.storeInfo && G.dp.storeInfo.length) { (function () { var store = G.dp.storeInfo[0]; var current = parseFloat(store.all_line[store.all_line.length - 1]); if (!current) { current = parseFloat(store.current_price); } var p = store.all_line.filter(function (x) { return x !== current; }); var last = current; if (p.length) { last = p[p.length - 1]; } //let last = store.last_price / 100; var priceTrend = '价格平稳'; if (current < last) { priceTrend = '价格下降'; if (current === store.lowest) { priceTrend = '历史最低'; } } else if (current > last) { priceTrend = '价格上涨'; } if (last === current) { last = 0; } var lowestStr = store.lowest ? ',历史最低价¥' + store.lowest : ''; var oriStr = last ? ' 原价¥' + last : ''; priceInfo = '' + priceTrend + oriStr + ',现价¥' + parseFloat(current) + lowestStr; priceInfoCopy = '' + priceTrend + oriStr + ',现价¥' + parseFloat(current) + lowestStr; })(); } Share = __webpack_require__("a447d287f4af94b91188")['default']; opt = { title: G.dp.name.replace(/ /g, '').replace(/\n/g, ''), priceInfo: priceInfo, priceInfoCopy: priceInfoCopy, link: link }; el = document.createElement('DIV'); $(el).insertBefore('.gwd-topbar-right .top-bar-setting'); new Vue({ el: el, render: function render(h) { return h(Share, { props: opt }); } }); addEvent(); case 13: case 'end': return context$1$0.stop(); } }, null, _this); }; var addEvent = function addEvent() { var isshow = undefined; $('.shareExt').on('mouseenter', function () { if (!isshow) { isshow = true; log("share-ext-show"); cnzz.log("share-ext-show"); } if (link === '') { getLink(); } }); $('.shareExt').on('mouseleave', function () { $('#copy-btn').removeClass('copyss').text('复制去分享'); }); $('#copy-btn').on('click', function () { var element = $('#copy-input')[0]; element.select(); element.setSelectionRange(0, element.value.length); window.selectedText = element.value; var t = window.document.execCommand("copy"); if (t) { $('#copy-btn').addClass('copyss').text("复制成功!"); log("share-ext-copy"); cnzz.log("share-ext-copy"); } }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("6a0e4ebb57bf6aac1f2d"), __webpack_require__("b2848b041c3d11faa242")["default"])) /***/ }), /***/ "98e93ed4a85e80c55160": /***/ (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 request = __webpack_require__("91f250ebeb8d5987491c"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var util = __webpack_require__("d54879e983a83d07f093"); var extConsole = __webpack_require__("316f9c352c6202560d16"); var mutationObserver = __webpack_require__("2995c4cdfa33d52c0bc3"); var globalInfo = {}, hasReqId = []; var useQrCode = 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--doubleCardWrapper--]', dom: '[class^=Card--mainPicAndDesc]' }, 'taobao9': { list: '[class^=Card--listCard--]', dom: '[class^=MainPic--listMod--]' }, 'taobao10': { list: '[class^=doubleCard--]', dom: '[class^=mainPicAndDesc--]', parent: 'a' }, 'taobaoIndex': { list: '.tb-recommend-content-item', url: 'a.item-link', dom: '.img-wrapper' }, 'taobaoIndex1': { list: '.tb-pick-content-item', url: 'a.item-link', dom: '.img-wrapper' }, 'tmallSearch': { list: '[class^=Content--contentInner] > div', dom: '[class^=Card--mainPicAndDesc]', url: 'a' } }; var getTypes = function getTypes() { var urlPattern = { 'list\\.tmall\\.com': 'tmall1', 's\\.taobao\\.com': 'taobao1', 'fake\\.taobao\\.com': 'taobao11', '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', 'www\\.taobao\\.com': 'taobaoIndex' }; var url = location.href; for (var i in urlPattern) { if (url.match(new RegExp(i))) { return urlPattern[i]; } } return 'taobao8'; }; var callbacks = undefined, hasreq = undefined, urls = undefined; var getPageInfo = function getPageInfo(info, callback) { var infoObj = {}; if (hasreq) { callbacks = callback; urls = info.click_url; return; } var itemId = info.itemId; var obj = { itemNumId: itemId }; var url = 'https://acs.m.taobao.com/h5/mtop.taobao.detail.getdetail/6.0/?data=' + encodeURIComponent(JSON.stringify(obj)); request.getPure(url).done(function (data) { try { var item = data.data.item; var seller = data.data.seller; var item2 = JSON.parse(data.data.apiStack[0].value); infoObj.title = item.title; infoObj.picUrl = item.images[0]; infoObj.shopName = seller.shopName; infoObj.shopLogo = seller.shopIcon; infoObj.shopUrl = seller.shopUrl; infoObj.biz30Day = item2.item.sellCount; infoObj.discountPrice = (Number(item2.skuCore.sku2info['0'].price.priceMoney) / 100).toFixed(2); } catch (e) { __webpack_require__("316f9c352c6202560d16").error(e); } if (!infoObj.title) { console.log(obj); infoObj.title = info.titleGot; } if (!infoObj.picUrl) { infoObj.picUrl = info.imgGot; } if (!infoObj.discountPrice) { infoObj.discountPrice = info.priceGot; } infoObj.id = itemId; infoObj.amount = info.coupon.coupon_money; infoObj.effectiveStartTime = info.coupon.start_time; infoObj.effectiveEndTime = info.coupon.end_time; infoObj.pid = info.pid; infoObj.tkl = info.tkl; infoObj.tmall = location.host.indexOf('tmall') > -1 ? true : false; callback(infoObj, info.click_url); if (callbacks) { callbacks(infoObj, urls); } }); }; var QRReloader = __webpack_require__("95b5a8392f3e95ca15b5"); var addQRcode = function addQRcode(id, dom) { if (hasReqId.indexOf(id) > -1) return; hasReqId.push(id); if (!id) return; var data = globalInfo[id]; data.pid = '10002'; data.itemId = id; console.log('dom:', dom); data.priceGot = parseInt($(dom).parents('.item').find('.price').text().replace(/ /g, '').replace('¥', '')); data.titleGot = $(dom).parents('.item').find('.title').text().replace(/ /g, '').replace(/\n/g, ''); data.imgGot = $(dom).parents('.item').find('.pic img').attr('src'); getPageInfo(data, function (newData, url) { var id = 'gwd-coupon-' + parseInt(Math.random() * 1000); var view = '<div class="minicoupon_detail" id="' + id + '">\n <img src="xxx">\n <span>微信扫码领券</span>\n </div>'; $(dom).append(view); QRReloader.init(newData, url, '#' + id + ' > img', function (newData2) {}, false, false); }); }; var renderCouponTip = function renderCouponTip(id, parentD, site) { __webpack_require__("316f9c352c6202560d16").log('renderCouponTip', id); var price = $(parentD).parent().find('.price strong').text(); if (!price) { price = $(parentD).find('[class^=Price--priceInt]').text(); } if (!price) { price = $(parentD).find('[class^=priceInt--]').text(); } getCoupon.init(id, '10002', function (data) { if (!data) { __webpack_require__("316f9c352c6202560d16").log('renderCouponTip nodata', id); return; } if (!data.data) { __webpack_require__("316f9c352c6202560d16").log('renderCouponTip nodata', id); return; } data = data.data; if (data.rebate) { $(parentD).append('<span class="search_coupon_tip" style="pointer-events: none">' + (G.lang === 'zh-tr' ? '可以領紅包' : '可以领红包') + '</span>'); return; } data.site = site; globalInfo[id] = data; var domain = G.from_device.includes('bijiago') ? 'bijiago' : 'gwdang'; var browser = G.browser; if (G.from_device.includes('bijiago') || G.from_device.includes('biyibi')) { browser = 'chrome'; } var productInfo = { title: $(parentD).find('[class^=title--]').text(), price: price, img: $(parentD).find('img[class^=mainPic--]').attr('src'), shopName: $(parentD).find('[class^=shopNameText--]').text(), saleAmount: $(parentD).find('[class^=realSales--]').text().replace('人付款', '') }; var link = G.tb_server + '/extension/qrpage?dp_id=' + id + '-83&tag=9_' + browser + '&discount=' + data.coupon.coupon_money + '&union=' + G.union + '&title=' + encodeURIComponent(productInfo.title) + '&price=' + productInfo.price + '&shopName=' + encodeURIComponent(productInfo.shopName) + '&img=' + encodeURIComponent(productInfo.img) + '&sellAmount=' + encodeURIComponent(productInfo.saleAmount); if (G.lang === 'zh-tr') { link += '&lang=zh-tr'; } var dom = '<a href="' + link + '" data-id="' + id + '" title="当前商品点击领券立减' + data.coupon.coupon_money + '元" class="search_coupon_tip" target="_blank">¥' + data.coupon.coupon_money + ' 优惠券</a>'; if (useQrCode) { dom = '<a data-id="' + id + '" class="search_coupon_tip" style="cursor:default;" target="_blank">¥' + data.coupon.coupon_money + ' 优惠券<a>'; } if (G.lang === 'zh-tr') { dom = dom.replaceAll('优惠券', '優惠券').replaceAll('当前商品点击领券立减', '當前商品點擊領券立減').replaceAll('元', '元'); } var pos = $(parentD).css('position'); if (pos === 'static') { $(parentD).css('position', 'relative'); } $(parentD).append($(dom)); }, true, price); }; 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, obj, list, i, dom, id, site, href, appendDom; return regeneratorRuntime.async(function renderInit$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: // 获取链接形式 不同页面 列表页不同 extConsole.log('renderInit'); type = getTypes(); if (type) { context$1$0.next = 4; break; } return context$1$0.abrupt('return'); case 4: obj = domPattern[type]; list = undefined; context$1$0.next = 8; return regeneratorRuntime.awrap(util.waitForConditionFn(function () { 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']); } if (list.length === 0) { obj = domPattern['taobao10']; list = $(obj['list']); } if (list.length === 0) { obj = domPattern['tmallSearch']; list = $(obj['list']); } if (type === 'taobaoIndex' && list.length === 0) { obj = domPattern['taobaoIndex1']; list = $(obj['list']); } return list && list.length > 0; }, 1000, 10)); case 8: // 对于新版淘宝,给每个商品添加class $('[class^=Card--mainPicAndDesc]').addClass('gwd-item').css('position', 'relative'); $('[class^=MainPic--listMod--]').addClass('gwd-item').css('position', 'relative'); $('[class^=mainPicAndDesc--]').addClass('gwd-item').css('position', 'relative'); // 获取商品id i = 0; case 12: if (!(i < list.length)) { context$1$0.next = 40; break; } dom = list.eq(i); if (obj['url']) { dom = dom.find(obj['url']); } if (obj['parent']) { dom = dom.parents(obj['parent']); } if (!$(dom).attr('gwd-coupon-checked')) { context$1$0.next = 18; break; } return context$1$0.abrupt('continue', 37); case 18: id = null; site = 'taobao'; if (!dom.length) { context$1$0.next = 29; break; } href = dom.attr('href'); if (href) { context$1$0.next = 24; break; } return context$1$0.abrupt('continue', 37); case 24: 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'); } context$1$0.next = 31; break; case 29: id = list.eq(i).find('.ww-light.ww-small').attr('data-item'); __webpack_require__("316f9c352c6202560d16").log('find new type id', id); case 31: if (id) { context$1$0.next = 33; break; } return context$1$0.abrupt('continue', 37); case 33: appendDom = list.eq(i).find(obj['dom']); if (appendDom.length === 0) appendDom = list.eq(i); $(dom).attr('gwd-coupon-checked', 1); renderCouponTip(id, appendDom, site); case 37: i++; context$1$0.next = 12; break; case 40: if (type.indexOf('taobao') > -1) { $(obj['listen']).find(obj['lschild']).attr('c_coupon', '1'); } // $('body').on('click', function(e) { // if ($(e.target).hasClass('search_coupon_tip')) { // cnzz.log('click:searchcoupon') // log('click:searchcoupon') // } // }) // $('body').on('mouseover', function(e) { // if ($(e.target).hasClass('search_coupon_tip')) { // let id = $(e.target).attr('data-id') // if ($(e.target).find('.qr_coupondetail').length === 0 && useQrCode) { // cnzz.log('track:searchcoupon') // log('track:searchcoupon') // addQRcode(id, e.target) // } // } // }) case 41: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports.init = function () { if (G.forbidCoupon) return; // 360浏览器版本不加载优惠券 不然审核不通过 if (G.from_device === '360') return; // useQrCode = true; useQrCode = false; setTimeout(function callee$1$0() { var cb; 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(renderInit()); case 2: cb = __webpack_require__("3e983ecbff4e1a29654c").limit(renderInit); if ((location.href === 'https://www.taobao.com/' || location.href.startsWith('https://www.taobao.com/?')) && ($('.tb-recommend-content').length || $('.tb-pick-feeds-container').length)) { if ($('.tb-recommend-content').length) { $('.tb-recommend-content')[0].addEventListener('DOMNodeInserted', cb, false); } if ($('.tb-pick-feeds-container').length) { // $('.tb-pick-feeds-container')[0].addEventListener('DOMNodeInserted', cb, false) mutationObserver.observe('.tb-pick-feeds-container', function (mutations, observer) { var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = mutations[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var mutation = _step.value; if (mutation.type === 'childList') { cb(); } } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator['return']) { _iterator['return'](); } } finally { if (_didIteratorError) { throw _iteratorError; } } } }, { childList: true, subtree: true }); } } if (!location.href.startsWith('https://s.taobao.com')) { context$2$0.next = 8; break; } context$2$0.next = 7; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return $('.contentInner--xICYBlag').length; })); case 7: mutationObserver.observe('.contentInner--xICYBlag', function (mutations, observer) { var _iteratorNormalCompletion2 = true; var _didIteratorError2 = false; var _iteratorError2 = undefined; try { for (var _iterator2 = mutations[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { var mutation = _step2.value; if (mutation.type === 'childList') { // console.log('A child node has been added or removed.'); cb(); } } } catch (err) { _didIteratorError2 = true; _iteratorError2 = err; } finally { try { if (!_iteratorNormalCompletion2 && _iterator2['return']) { _iterator2['return'](); } } finally { if (_didIteratorError2) { throw _iteratorError2; } } } }, { childList: true, subtree: true }); case 8: case 'end': return context$2$0.stop(); } }, null, this); }, 1000); }; // 监听dom 有更新, 再一次加载优惠券 // listenDom() // if ($('[class^=Card--doubleCard--]').length) { // listenDom() // } /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("6a0e4ebb57bf6aac1f2d"))) /***/ }), /***/ "9920f8981151f34ffc09": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, $) { var _this = this; module.exports.init = function callee$0$0(mode) { var className, allowedList, subClass, text; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('GwdPriceTrendLoaded')); case 2: className = $('.crumb .item.first').text(); allowedList = '家用电器、食品饮料、电脑/办公、母婴、手机通讯、家庭清洁/纸品、数码、个人护理、美妆护肤、医疗、营养保健、厨具、酒类、家装建材、汽车用品、运动户外、生鲜、家纺、服饰内衣、玩具乐器、家居日用、箱包皮具、家具、钟表、鞋靴、宠物生活、礼品、图书、珠宝首饰、文娱、工业品'.split('、').map(function (x) { return x.replace('电脑/办公', '电脑、办公'); }); if (!(allowedList.indexOf(className) > -1)) { context$1$0.next = 17; break; } subClass = $('.crumb .item').text(); if (!(className === '手机通讯' && subClass.indexOf('办号卡') > -1)) { context$1$0.next = 8; break; } return context$1$0.abrupt('return'); case 8: if (!(className === '珠宝首饰' && subClass.indexOf('黄金') > -1)) { context$1$0.next = 10; break; } return context$1$0.abrupt('return'); case 10: text = $('.u-jd').text().trim(); if (!text) { text = $('.shopHeader .tag').text().trim(); } context$1$0.next = 14; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return $('#ns_services').length > 0; })); case 14: if (!(!$('#ns_services').text().includes('价保') && text !== '自营')) { context$1$0.next = 16; break; } return context$1$0.abrupt('return'); case 16: render(mode); case 17: case 'end': return context$1$0.stop(); } }, null, _this); }; var render = function render(mode) { var days, GwdPriceProtectMiddle; return regeneratorRuntime.async(function render$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: return context$1$0.abrupt('return'); case 6: case 'end': return context$1$0.stop(); } }, null, _this); }; // $('#choose-btns').css('min-width', '800px').append(` // <a target="_blank" id="gwd_protect" style="border: 1px solid #e23a3a; width: 142px; height: 46px; color: #e23a3a; font-size: 18px; display: inline-block; cursor: pointer; text-align: center; line-height: 44px; box-sizing: border-box; font-weight: bold">价保下单</a>` // ) // // $('#gwd_protect').click(async (e) => { // e.preventDefault() // let qrApi = await require('common/globalCondition').met('qrApiReady') // if (qrApi.type === 'api') { // let res = await require('common/request').get(qrApi.src + '&protect=' + days) // let qrLink = res.data.qrImgStr // window.open(`https://tb.gwdang.com/extension/qrpage?dp_id=${G.dp.dpId}&days=${days}&alterQrUrl=${encodeURIComponent(qrLink)}`) // } // }) // $('.gwd-price-protect').replaceWith(` // // `) // setTimeout(() => { // $('#gwd-price-protect').click((e) => { // require('common/cnzz').log('jdPriceProtect:click') // }) // }, 0) /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("6a0e4ebb57bf6aac1f2d"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "99257706c3cfa9179fc9": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return _c("div", { staticClass: "gwd-quest" }, [_c("div", { staticClass: "gwd-hint-text" }, [_c("span", { staticClass: "gwd-hint-2x" }, [_vm._t("default")], 2)])]); }; var staticRenderFns = []; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "999cc56b04566e456c6b": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var sitePattern = { '京东': { site_id: 3, pattern: "http://search.jd.com/Search?enc=utf-8&keyword=" }, '亚马逊': { site_id: 1, pattern: "http://www.amazon.cn/s?field-keywords=" }, '当当': { site_id: 2, pattern: "http://search.dangdang.com/?key=" }, '苏宁': { site_id: 25, pattern: "http://search.suning.com/emall/search.do?keyword=" }, '淘宝': { site_id: 83, pattern: "http://s.taobao.com/search?q=" }, '国美': { site_id: 28, pattern: "http://www.gome.com.cn/search?question=" }, '一号店': { site_id: 31, pattern: "http://search.yhd.com/s2/c0-0/k" }, '唯品会': { site_id: 129, pattern: 'https://category.vip.com/suggest.php?keyword=' }, '购物党': { 'pattern': 'https://www.' + G.extName + '.com/search?from=ext&s_product=', 'site_id': 0 } }; var replaceUrl = function replaceUrl(name) { var url = ''; var searchApi = sitePattern[name].pattern; var site_id = sitePattern[name].site_id; var inputtxt = $('.search-input.blkcolor3').val(); if (name === '购物党' || name === '唯品会' || name === '苏宁') { url = searchApi + encodeURIComponent(inputtxt); } else if (name === '当当') { url = searchApi + encodeURIComponent(inputtxt) + '&act=input'; } else { url = G.u_server2 + '/union/go/?s_product=' + encodeURIComponent(inputtxt) + '&target_url=' + encodeURIComponent(searchApi + encodeURI(inputtxt)) + '&site_id=' + site_id; } window.open(url); //$('.search-submit').attr('href', url) //return url; }; var addEvent = function addEvent() { var time = undefined, show = undefined; $('.search-tle').on('click', function () { if (show) { $('.bjd-search-list').hide(); $('.search-tle em').removeClass('emup'); $('.search-tle').removeClass('search-select'); show = false; } else { show = true; $('.bjd-search-list').show(); $('.search-tle').addClass('search-select'); $('.search-tle em').addClass('emup'); } }); $('.bjd-search-list').on('click', function (e) { if (e.target.nodeName === 'SPAN') { var txt = $(e.target).text(); var dom = $('.search-tle span'); var txtold = dom.text(); dom.text(txt); $('.bjd-search-list').hide().append($('<span>' + txtold + '</span>')); $('.search-tle').removeClass('search-select'); $('.search-tle em').removeClass('emup'); show = false; $(e.target).remove(); } }); $('.search-tle, .bjd-search-list').on('mouseenter', function () { clearTimeout(time); }).on('mouseleave', function () { time = setTimeout(function () { show = false; $('.bjd-search-list').hide(); $('.search-tle em').removeClass('emup'); $('.search-tle').removeClass('search-select'); }, 300); }); $('.search-submit').on('click', function (e) { var txt = $('.search-tle span').text(); replaceUrl(txt); e.preventDefault(); // setTimeout(function() { // $('.search-submit').attr('href', null) // }, 200) }); $('.search-tle').on('mouseenter', function () { clearTimeout(time); }); }; var renderBottom = function renderBottom(data) { var style = userData.get('permanent').style; var keyword = data.exact_arr.keywords.replace(/,/g, ' '); if (data.exact_arr.brand && data['code-server'].code) keyword = data.exact_arr.brand + ' ' + data['code-server'].code + ' ' + (data['code-server'].spec || ''); if (data.exact_arr.isbn) keyword = data.exact_arr.isbn; var site_k = '淘宝', site_k2 = '唯品会'; // if (G.site === 'vipshop') { // keyword = data.now.coreword; // site_k = '唯品会' // site_k2 = '淘宝'; // } var html = __webpack_require__("41275a915a2edff54447"); if (style === 'top') html = __webpack_require__("441a954e52fefa34ae4c"); $('.search-mod').append(template.compile(html)({ keyword: keyword, site_k: site_k, site_k2: site_k2 })).addClass('hasSearch'); addEvent(); if (style === 'top') { __webpack_require__("1c640a99db9f6f8a16c2").autoFixWidth(); } function appendCss(cssStr) { var s2 = document.createElement('STYLE'); s2.innerHTML = cssStr; document.body.appendChild(s2); } if (location.href.indexOf('taobao.com') > -1 || location.href.indexOf('tmall.') > -1) { $('.bjd-search-list span').toArray().forEach(function (item) { if (item.innerHTML.indexOf('购物党') > -1) { $(item).remove(); } }); appendCss('.bjd-search-list { height: 140px }'); } }; module.exports.init = function (data) { // if ($(window).width() < 1150) { // $('.search-mod').hide() // return; // } renderBottom(data); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "99be78a89d0fa9a78938": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbScrollLink_vue_vue_type_script_lang_js__ = __webpack_require__("bd35834dd0f2d91d9e3e"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbScrollLink_vue_vue_type_script_lang_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbScrollLink_vue_vue_type_script_lang_js__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbScrollLink_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbScrollLink_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbScrollLink_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "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__("e2e711cdecb31aba38e7"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QRLinkTaobaoLogin_vue_vue_type_script_lang_js__ = __webpack_require__("90a4a7d2a2c7276b0d69"); /* 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__("4b647662eb7a02ae91f0"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_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__["render"], __WEBPACK_IMPORTED_MODULE_0__QRLinkTaobaoLogin_vue_vue_type_template_id_6179ab9e_scoped_true__["staticRenderFns"], false, null, "6179ab9e", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@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__("e8bef0abdedab7a93f39"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QRLinkContact_vue_vue_type_script_lang_js__ = __webpack_require__("3b0ab762811795684788"); /* 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__("de56296a2b6edfa4c861"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_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__["render"], __WEBPACK_IMPORTED_MODULE_0__QRLinkContact_vue_vue_type_template_id_9a793014_scoped_true__["staticRenderFns"], false, null, "9a793014", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@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); /***/ }), /***/ "9e01a209487a1d26ce1d": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['value', 'allowAnimation'], computed: { inputVal: { get: function get() { return this.value; }, set: function set(val) { this.$emit('input', val); } } } }; module.exports = exports['default']; /***/ }), /***/ "9ea914c82396be5957fe": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_script_lang_js__ = __webpack_require__("5d01ce30b0cd4328ba33"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_script_lang_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_script_lang_js__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Index_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "9edc88f739fb33f2c091": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CouponArrow_vue_vue_type_template_id_4f0f1e98__ = __webpack_require__("6c100eb2e82ec7ba3bad"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__CouponArrow_vue_vue_type_script_lang_js__ = __webpack_require__("7338afc4231a4884439d"); /* 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_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_2__node_modules_vue_loader_15_11_1_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__["render"], __WEBPACK_IMPORTED_MODULE_0__CouponArrow_vue_vue_type_template_id_4f0f1e98__["staticRenderFns"], false, null, null, null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@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); /***/ }), /***/ "9f7015d6bfaf10bffa83": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return _c("span", { staticClass: "gwd-price" }, [_vm.price ? _c("span", { staticStyle: { "font-size": "14px" } }, [_vm._v(_vm._s(_vm.unit))]) : _vm._e(), _vm._v(" "), _vm.price ? _c("span", { style: { "font-size": (_vm.fontSize ? _vm.fontSize : 20) + "px" } }, [_vm._v(_vm._s(parseFloat(_vm.price).toFixed(2).replace(".00", "")))]) : _vm._e()]); }; var staticRenderFns = []; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "9fe39bfe9e4ef4134d5d": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_script_lang_js__ = __webpack_require__("0a3edbc0c1925e4816e9"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_script_lang_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_script_lang_js__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_script_lang_js__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "a0a7ad95ec992aa636e1": /***/ (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__("3dfa44ded0e2a0f68e0a"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("96fbd292", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@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/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./CommonCouponBarMini.vue?vue&type=style&index=0&id=3fdd510a&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "a12f917496ed00eff9c1": /***/ (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__("bfda2e50260ebfb5ac92"); if(typeof content === 'string') content = [[module.i, content, '']]; // add the styles to the DOM var update = __webpack_require__("10fdb983c061c1343439")(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/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./QRLink.vue?vue&type=style&index=0&id=673c66fa&lang=css", function() { var newContent = require("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./QRLink.vue?vue&type=style&index=0&id=673c66fa&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(); }); } /***/ }), /***/ "a17d68795e51ab49d223": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__QRLinkButie_vue_vue_type_template_id_7c398433_scoped_true__ = __webpack_require__("b16979a7881f114e5dfd"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QRLinkButie_vue_vue_type_script_lang_js__ = __webpack_require__("e67e07c9486eb1a69b24"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__QRLinkButie_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__QRLinkButie_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__QRLinkButie_vue_vue_type_style_index_0_id_7c398433_scoped_true_lang_less__ = __webpack_require__("bb018aa901a2f5d635de"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__QRLinkButie_vue_vue_type_style_index_1_id_7c398433_lang_less__ = __webpack_require__("41529bbb1f91bcf2fda1"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_4__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__QRLinkButie_vue_vue_type_script_lang_js__["default"], __WEBPACK_IMPORTED_MODULE_0__QRLinkButie_vue_vue_type_template_id_7c398433_scoped_true__["render"], __WEBPACK_IMPORTED_MODULE_0__QRLinkButie_vue_vue_type_template_id_7c398433_scoped_true__["staticRenderFns"], false, null, "7c398433", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('7c398433')) { api.createRecord('7c398433', component.options) } else { api.reload('7c398433', component.options) } module.hot.accept("./QRLinkButie.vue?vue&type=template&id=7c398433&scoped=true", function () { api.rerender('7c398433', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/QRLinkButie.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "a264eb5f29223f899f04": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, ".gwd-row[data-v-1a72083a] {\n display: flex;\n flex-direction: row;\n}\n.gwd-inline-row[data-v-1a72083a] {\n display: inline-flex;\n flex-direction: row;\n}\n.gwd-column[data-v-1a72083a] {\n display: flex;\n flex-direction: column;\n}\n.gwd-inline-column[data-v-1a72083a] {\n display: inline-flex;\n flex-direction: column;\n}\n.gwd-align[data-v-1a72083a] {\n align-content: center;\n align-items: center;\n}\n.gwd-jcc[data-v-1a72083a] {\n justify-content: center;\n}\n.gwd-jic[data-v-1a72083a] {\n justify-items: center;\n}\n.gwd-button[data-v-1a72083a] {\n outline: none;\n border: none;\n}\n.bjg-bar-button[data-v-1a72083a] {\n font-size: 0;\n}\n.bjg-hover-bg[data-v-1a72083a] {\n background: #fffbef;\n}\n.bjg-bar-button[data-v-1a72083a]:hover {\n background: #fffbef;\n cursor: pointer;\n}\n.bjg-bar-button:hover .bjg-window[data-v-1a72083a] {\n display: block;\n}\n.mainbar-fold .bjg-bar-button[data-v-1a72083a],\n.mainbar-fold #top_coupon_btn[data-v-1a72083a],\n.mainbar-fold .rinfo-btn[data-v-1a72083a],\n.mainbar-fold .gwd-bottom-tmall[data-v-1a72083a] {\n display: none!important;\n}\n.gwd-font12[data-v-1a72083a] {\n font-size: 12px;\n}\n.gwd-font14[data-v-1a72083a] {\n font-size: 14px;\n}\n.gwd-red[data-v-1a72083a] {\n color: #ff3532;\n}\n.gwd-red-bg[data-v-1a72083a] {\n background: #ff3532;\n}\n.gwd-hui333[data-v-1a72083a] {\n color: #333333;\n}\n.gwd-hui999[data-v-1a72083a] {\n color: #999999;\n}\n.gwd-font10[data-v-1a72083a] {\n font-size: 12px;\n transform: scale(0.8333);\n transform-origin: bottom center;\n}\n.gwd-font11[data-v-1a72083a] {\n font-size: 12px;\n transform: scale(0.91666);\n transform-origin: bottom center;\n}\n.gwd-font9[data-v-1a72083a] {\n font-size: 12px;\n transform: scale(0.75);\n transform-origin: bottom center;\n}\n.gwd-hoverable[data-v-1a72083a]:hover {\n background: #edf1f2;\n}\n.right-info > *[data-v-1a72083a] {\n border-left: 1px solid #edf1f2;\n}\n.gwd-red-after-visit[data-v-1a72083a]:hover {\n color: #e03024 !important;\n}\n.gwd-button[data-v-1a72083a]:hover {\n filter: brightness(1.1);\n}\n.gwd-button[data-v-1a72083a] {\n padding-top: 1px;\n padding-bottom: 1px;\n}\n.gwd-button[data-v-1a72083a]:active {\n filter: brightness(0.9);\n}\n.gwd-fadeout-5s[data-v-1a72083a] {\n opacity: 0;\n transition: opacity 5s;\n}\n.gwd-scrollbar[data-v-1a72083a]::-webkit-scrollbar {\n width: 6px;\n border-radius: 17px;\n}\n.gwd-scrollbar[data-v-1a72083a]::-webkit-scrollbar-thumb {\n border-radius: 17px;\n background: #999;\n}\n#gwdang_main[data-v-1a72083a],\n.gwdang-main[data-v-1a72083a],\n.bjgext-detail[data-v-1a72083a] {\n font-size: 12px;\n}\n#gwdang_main button[data-v-1a72083a],\n.gwdang-main button[data-v-1a72083a],\n.bjgext-detail button[data-v-1a72083a] {\n text-align: center;\n}\n.gwd-width-100[data-v-1a72083a] {\n width: 100%;\n}\n.gwd-overlay[data-v-1a72083a] {\n font-family: \"Microsoft YaHei\", \"Arial\", \"SimSun\", serif;\n font-size: 0;\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n background: rgba(0, 0, 0, 0.35);\n z-index: 999999999;\n}\n.gwd-btn-submit[data-v-1a72083a] {\n border: none;\n outline: none;\n background: #48befe;\n width: 128px;\n height: 32px;\n font-size: 14px;\n color: white;\n border-radius: 4px;\n cursor: pointer;\n}\n.gwd-btn-del[data-v-1a72083a] {\n width: 60px;\n height: 20px;\n border-radius: 2px 2px 2px 2px;\n opacity: 1;\n border: 1px solid #E6E9EB;\n color: #404547;\n background: white;\n position: relative;\n box-sizing: border-box;\n}\n.gwd-btn-del[data-v-1a72083a]:hover {\n filter: brightness(1.05);\n cursor: pointer;\n}\n.gwd-btn-del[data-v-1a72083a]::before {\n content: '';\n position: absolute;\n top: -1px;\n left: -1px;\n right: -1px;\n bottom: -1px;\n z-index: -1;\n background: #e6e9eb;\n}\n.gwd-collection-detail[data-v-1a72083a] {\n font-family: 'Microsoft Yahei', tahoma, arial, 'Hiragino Sans GB', sans-serif;\n}\n.gwd-collection-detail .gwd-vline[data-v-1a72083a] {\n width: 0;\n height: 197px;\n border-right: 1px dashed #e6e9eb;\n margin-left: 13px;\n margin-right: 15px;\n}\n.gwd-collection-detail .gwd-container .gwd-remind-option[data-v-1a72083a] {\n height: 24px;\n white-space: nowrap;\n position: relative;\n}\n.gwd-collection-detail .gwd-container .gwd-remind-option span[data-v-1a72083a] {\n color: #404547;\n font-size: 13px;\n}\n.gwd-collection-detail .gwd-container .gwd-remind-option span.gwd-currency[data-v-1a72083a] {\n color: #48befe;\n font-size: 16px;\n position: absolute;\n left: 82px;\n top: 13px;\n transform: translateY(-50%);\n}\n.gwd-collection-detail .gwd-container .gwd-remind-option .gwd-remind-current[data-v-1a72083a] {\n margin-left: 8px;\n width: 57px;\n}\n.gwd-remind-error-text[data-v-1a72083a] {\n color: #d80001;\n position: absolute;\n bottom: 61px;\n left: 0;\n right: 0;\n text-align: center;\n}\n.gwd-remind-hint-text[data-v-1a72083a] {\n color: #48befe;\n position: absolute;\n bottom: 61px;\n left: 0;\n right: 0;\n text-align: center;\n}\n.gwd-btn-del[data-v-1a72083a] {\n margin-right: 114px;\n padding-left: 0;\n padding-right: 0;\n}\n.gwd-btn-del span[data-v-1a72083a] {\n position: relative;\n top: -1px;\n}\n.gwd-collection-detail[data-v-1a72083a] {\n padding: 16px;\n padding-bottom: 0;\n}\n.gwd-collection-detail .gwd-container[data-v-1a72083a] {\n width: 305px;\n height: 56px;\n justify-content: center;\n min-width: 319px;\n border-radius: 4px;\n background: #f8fcfe;\n padding-left: 12px;\n padding-right: 12px;\n box-sizing: border-box;\n}\n.gwd-collection-detail .gwd-remind-error-text[data-v-1a72083a] {\n bottom: 44px;\n}\n.gwd-collection-detail .gwd-remind-hint-text[data-v-1a72083a] {\n bottom: 44px;\n}\n", ""]); // exports /***/ }), /***/ "a3195606f8d321cade47": /***/ (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__("62c6a2ac147e5e91da46"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("865ef704", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./QRLinkTbV3.vue?vue&type=style&index=0&id=263c4225&scoped=true&lang=less", function() { var newContent = require("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./QRLinkTbV3.vue?vue&type=style&index=0&id=263c4225&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "a3798275a235b981e88d": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, ".bjg .minibar-btn-box span[data-v-caa5e08c] {\n color: #6b6761;\n font-size: 14px;\n}\n.bjg#gwd_mini_compare[data-v-caa5e08c]:hover {\n background: #fffbef;\n}\n", ""]); // exports /***/ }), /***/ "a3b88c5c394763515501": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, ".gwd-row[data-v-3ed325cb] {\n display: flex;\n flex-direction: row;\n}\n.gwd-inline-row[data-v-3ed325cb] {\n display: inline-flex;\n flex-direction: row;\n}\n.gwd-column[data-v-3ed325cb] {\n display: flex;\n flex-direction: column;\n}\n.gwd-inline-column[data-v-3ed325cb] {\n display: inline-flex;\n flex-direction: column;\n}\n.gwd-align[data-v-3ed325cb] {\n align-content: center;\n align-items: center;\n}\n.gwd-jcc[data-v-3ed325cb] {\n justify-content: center;\n}\n.gwd-jic[data-v-3ed325cb] {\n justify-items: center;\n}\n.gwd-button[data-v-3ed325cb] {\n outline: none;\n border: none;\n}\n.bjg-bar-button[data-v-3ed325cb] {\n font-size: 0;\n}\n.bjg-hover-bg[data-v-3ed325cb] {\n background: #fffbef;\n}\n.bjg-bar-button[data-v-3ed325cb]:hover {\n background: #fffbef;\n cursor: pointer;\n}\n.bjg-bar-button:hover .bjg-window[data-v-3ed325cb] {\n display: block;\n}\n.mainbar-fold .bjg-bar-button[data-v-3ed325cb],\n.mainbar-fold #top_coupon_btn[data-v-3ed325cb],\n.mainbar-fold .rinfo-btn[data-v-3ed325cb],\n.mainbar-fold .gwd-bottom-tmall[data-v-3ed325cb] {\n display: none!important;\n}\n.gwd-font12[data-v-3ed325cb] {\n font-size: 12px;\n}\n.gwd-font14[data-v-3ed325cb] {\n font-size: 14px;\n}\n.gwd-red[data-v-3ed325cb] {\n color: #ff3532;\n}\n.gwd-red-bg[data-v-3ed325cb] {\n background: #ff3532;\n}\n.gwd-hui333[data-v-3ed325cb] {\n color: #333333;\n}\n.gwd-hui999[data-v-3ed325cb] {\n color: #999999;\n}\n.gwd-font10[data-v-3ed325cb] {\n font-size: 12px;\n transform: scale(0.8333);\n transform-origin: bottom center;\n}\n.gwd-font11[data-v-3ed325cb] {\n font-size: 12px;\n transform: scale(0.91666);\n transform-origin: bottom center;\n}\n.gwd-font9[data-v-3ed325cb] {\n font-size: 12px;\n transform: scale(0.75);\n transform-origin: bottom center;\n}\n.gwd-hoverable[data-v-3ed325cb]:hover {\n background: #edf1f2;\n}\n.right-info > *[data-v-3ed325cb] {\n border-left: 1px solid #edf1f2;\n}\n.gwd-red-after-visit[data-v-3ed325cb]:hover {\n color: #e03024 !important;\n}\n.gwd-button[data-v-3ed325cb]:hover {\n filter: brightness(1.1);\n}\n.gwd-button[data-v-3ed325cb] {\n padding-top: 1px;\n padding-bottom: 1px;\n}\n.gwd-button[data-v-3ed325cb]:active {\n filter: brightness(0.9);\n}\n.gwd-fadeout-5s[data-v-3ed325cb] {\n opacity: 0;\n transition: opacity 5s;\n}\n.gwd-scrollbar[data-v-3ed325cb]::-webkit-scrollbar {\n width: 6px;\n border-radius: 17px;\n}\n.gwd-scrollbar[data-v-3ed325cb]::-webkit-scrollbar-thumb {\n border-radius: 17px;\n background: #999;\n}\n#gwdang_main[data-v-3ed325cb],\n.gwdang-main[data-v-3ed325cb],\n.bjgext-detail[data-v-3ed325cb] {\n font-size: 12px;\n}\n#gwdang_main button[data-v-3ed325cb],\n.gwdang-main button[data-v-3ed325cb],\n.bjgext-detail button[data-v-3ed325cb] {\n text-align: center;\n}\n.gwd-width-100[data-v-3ed325cb] {\n width: 100%;\n}\n.gwd-overlay[data-v-3ed325cb] {\n font-family: \"Microsoft YaHei\", \"Arial\", \"SimSun\", serif;\n font-size: 0;\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n background: rgba(0, 0, 0, 0.35);\n z-index: 999999999;\n}\n.gwd-price-input[data-v-3ed325cb] {\n border: 1px solid #48befe;\n background: white;\n height: 30px;\n line-height: 30px;\n color: #48befe;\n font-size: 16px;\n border-radius: 4px;\n margin-left: 8px;\n margin-right: 8px;\n overflow: hidden;\n}\n.gwd-price-input span[data-v-3ed325cb] {\n margin-left: 8px;\n margin-right: 4px;\n flex-grow: 0;\n flex-shrink: 0;\n}\n.gwd-price-input input[data-v-3ed325cb] {\n outline: none;\n border: none;\n flex: 1;\n resize: none;\n color: #48befe;\n font-size: 16px;\n margin-right: 5px;\n flex-basis: 100%;\n min-width: 0;\n box-shadow: none;\n}\n", ""]); // exports /***/ }), /***/ "a447d287f4af94b91188": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Share_vue_vue_type_template_id_3489a5d0_scoped_true__ = __webpack_require__("b7061de994d8cc991b3d"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Share_vue_vue_type_script_lang_js__ = __webpack_require__("44d09f71f5a81924a94e"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__Share_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__Share_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Share_vue_vue_type_style_index_0_id_3489a5d0_scoped_true_lang_css__ = __webpack_require__("e44bb253fc6158839bc6"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__Share_vue_vue_type_script_lang_js__["default"], __WEBPACK_IMPORTED_MODULE_0__Share_vue_vue_type_template_id_3489a5d0_scoped_true__["render"], __WEBPACK_IMPORTED_MODULE_0__Share_vue_vue_type_template_id_3489a5d0_scoped_true__["staticRenderFns"], false, null, "3489a5d0", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('3489a5d0')) { api.createRecord('3489a5d0', component.options) } else { api.reload('3489a5d0', component.options) } module.hot.accept("./Share.vue?vue&type=template&id=3489a5d0&scoped=true", function () { api.rerender('3489a5d0', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/Share.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "a502cc47a1c35ea79446": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_style_index_0_id_5ccff421_scoped_true_lang_less__ = __webpack_require__("430c85750878bcaa7f85"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_style_index_0_id_5ccff421_scoped_true_lang_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_style_index_0_id_5ccff421_scoped_true_lang_less__); /* unused harmony reexport namespace */ /***/ }), /***/ "a5c65fd645ac03b1b6b7": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_style_index_0_id_79b5dd44_scoped_true_lang_css__ = __webpack_require__("610940846b75cebc83ab"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_style_index_0_id_79b5dd44_scoped_true_lang_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_style_index_0_id_79b5dd44_scoped_true_lang_css__); /* unused harmony reexport namespace */ /***/ }), /***/ "a5fd759442b29318429a": /***/ (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__("42a81646d6557310ad4c"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("1df7457b", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=style&index=0&id=74d4d45d&scoped=true&lang=less", function() { var newContent = require("!!../../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=style&index=0&id=74d4d45d&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "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; }; /***/ }), /***/ "a71216ee4e4a120eb458": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipView_vue_vue_type_style_index_0_id_4c623068_scoped_true_lang_css__ = __webpack_require__("7a1db2518c2bd90bb66c"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipView_vue_vue_type_style_index_0_id_4c623068_scoped_true_lang_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipView_vue_vue_type_style_index_0_id_4c623068_scoped_true_lang_css__); /* unused harmony reexport namespace */ /***/ }), /***/ "a81715d3ac7033557ec7": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; 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; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "a862a3ac04e10c4487eb": /***/ (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 _PriceVue = __webpack_require__("b47266ebcd57075b6e88"); var _PriceVue2 = _interopRequireDefault(_PriceVue); var util = __webpack_require__("d54879e983a83d07f093"); exports['default'] = { components: { Price: _PriceVue2['default'] }, props: ['item'], methods: { getPromoText: function getPromoText(promo) { if (promo.tag === "coupon" && promo.text.indexOf('减') > -1) { return promo.text.split('减')[1] + '元券'; } return promo.text; } }, computed: { unit: function unit() { return this.item.dpId.endsWith('-228') ? '$' : '¥'; }, link: function link() { var isAli = this.item.dpId.endsWith('-83') || this.item.dpId.endsWith('-123'); if (G.aliSite && isAli) { // append title, pic, shop, price var dpParams = '&title=' + encodeURIComponent(this.item.title) + '&img=' + encodeURIComponent(this.item.img) + '&shopName=' + encodeURIComponent(this.item.shopName) + '&price=' + encodeURIComponent(this.item.price) + '&sellAmount=' + encodeURIComponent(this.salesText); return 'https://tb.gwdang.com/extension/qrpage?directLink=1&dp_id=' + this.item.dpId + '&from=img_search&union=' + G.union + '&from_device=' + G.from_device + '&position=extImgSame' + dpParams; // return `https://item.taobao.com/item.htm?id=${this.item.dpId.replace('-83', '').replace('-123', '')}` } if (isAli) { return G.u_server + '/redirect/tao?id=' + this.item.dpId.replace('-83', '').replace('-123', '') + '&from=img_search&union=' + G.union + '&from_device=' + G.from_device; } var siteId = this.item.dpId.split('-')[1]; if (siteId === '3') { return G.u_server + '/redirect/common?dp_id=' + this.item.dpId + '&from=img_search&s=dm'; } return G.u_server + '/union/go/?site_id=' + siteId + '&target_url=' + encodeURIComponent(this.item.url) + '&union=gwdang&column=img_search'; // if (this.item.dpId.endsWith('-370')) { // return `https://item.taobao.com/item.htm?id=${this.item.dpId.replace('-83', '')}` // } // return `https://item.jd.com/${this.item.id}.html` }, minHeight: function minHeight() { if (this.item.dpId.endsWith('-3')) { return '350px'; } return '321px'; }, salesText: function salesText() { return util.numberToString(this.item.salesAmount, 1); }, siteId: function siteId() { return this.item.dpId.split('-')[1]; } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "a8d04aabebd76e8bb3f7": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var request = __webpack_require__("91f250ebeb8d5987491c"); var calWidth = __webpack_require__("54be372a53153922dc13"); // const replaceHref = require('common/replaceHref') var golbal2 = __webpack_require__("1c640a99db9f6f8a16c2"); var htmlObj = { 'taobao': __webpack_require__("8a0927a3ad9eaa0e7f96"), 'tmall': __webpack_require__("503933f10716083fddfd") }; var tmData = {}; var renderBtnTop = function renderBtnTop(data) { var html = __webpack_require__("86bd79d95549896902d6"); data.ss = 0; if (data.tmall.length !== 0 && data.tmall.product) { $('#tm_compare').append(html({ store_tle: '天猫', min_price: data.tmall.min_price })).css("display", "block"); tmData['tmall'] = data.tmall; data.ss++; data.tmm = true; renderTopDetail('tmall'); } if (data.taobao.length !== 0 && data.taobao.product) { $('#tb_compare').append(html({ store_tle: '淘宝', min_price: data.taobao.min_price })).css("display", "block"); tmData['taobao'] = data.taobao; data.ss++; data.tbb = true; renderTopDetail('taobao'); } __webpack_require__("1c640a99db9f6f8a16c2").autoFixWidth(); userData.set('tbData', data); if (G.site === 'suning') { $('#tb_compare, #tm_compare').on('click', 'a', function (e) { if ($(this).find('.coupon_span')) return; var url = $(this).attr('href'); if (url && url.indexOf('http') > -1) { window.open($(this).attr('href')); e.preventDefault(); } }); } }; var render = function render(data) { var permanent = userData.get('permanent'); if (permanent.style === 'top') { renderTop(data); } else { __webpack_require__("73e5d235bd431b446c03").renderBt(data); } }; var renderTopDetail = function renderTopDetail(id) { var data = tmData[id]; // if (!G.aliSite && G.from_device !== '360') // replaceHref.init(id, data.product, '&column=b2c') var len = data.product.length; var str = 'tb'; if (id === 'tmall') str = 'tm'; var widthObj = calWidth.init(); var sale_tle = "最近销量"; if (data.from_self === true) sale_tle = "总销量"; var html = htmlObj[id]; var pages = Math.ceil(len / widthObj.showListNum); $('#' + str + '_compare').append(html({ data: data.product, s_server: G.s_server, width: widthObj.turnpW, link: data.more_link, pages: pages, imgLoad: G.imgLoad, sale_tle: sale_tle, allProductW: widthObj.allProductW })); if (G.from_device !== '360') __webpack_require__("b8226e22112290600083").init(data.product, id, false, data.min_price); // $(`#gwdang-${id}-dp-detail`).show() }; var renderTop = function renderTop(data) { renderBtnTop(data); }; var getTmInfo = function getTmInfo(callback) { var code_server = '1'; var other_info = userData.get('other_info'); var msg = other_info.exact_arr; var code = other_info['code-server']; var coreword = encodeURIComponent(other_info.now.coreword); if (!code) { code = {}; code_server = '0'; } var price = G.dp.price * 100; var url = G.server + '/brwext/tbres?union=' + G.union + '&url=' + encodeURIComponent(msg.url) + '&site=' + msg.site + '&isbn=' + msg.isbn + '&keywords=' + encodeURIComponent(msg.keywords) + '&brand=' + encodeURIComponent(msg.brand) + '&type=' + encodeURIComponent(msg.type) + '&price=' + price + '&class_id=' + msg.class_id + '&name=' + encodeURIComponent(G.dp.name) + '&code_brand_id=' + code.brand_id + '&code_clean_title=' + encodeURIComponent(code.clean_title) + '&code_code=' + code.code + '&code_display_brand=' + encodeURIComponent(code.display_brand) + '&code_brand=' + encodeURIComponent(code.brand) + '&code_class_id=' + encodeURIComponent(code.class_id) + '&code_price=' + encodeURIComponent(code.price) + '&code_spec=' + encodeURIComponent(code.spec) + '&code-server=' + code_server + '&coreword=' + coreword + '&catid=' + G.dp.cat_id; request.get(url).done(function (data) { if (data) { if (G.site == 'taobao' || G.site == 'tmall') { getUniqPid(data, function (mm) { callback(mm); }); } else { getImgSearch(data, function (mm) { callback(mm); }); } } }); }; var getImgSearch = function getImgSearch(msg, callback) { var buildTaobaoUrl = __webpack_require__("cc45d932d8dbdb86f2f3"); msg = buildTaobaoUrl.buildCommon(msg); if (G.btype == 'luyou') { callback(msg); return; } var dataShare = __webpack_require__("cde79cb5670e8bdeb4fb"); var brandId = dataShare.get('dp_data') && dataShare.get('dp_data')['exact_arr']['brand_id']; if (G.site == '360buy' && brandId && (!msg.taobao.sort || !msg.tmall.sort)) { // 在京东有brand 有比价结果的情况下, 不走图片检索 callback(msg); return; } __webpack_require__("ff881c8b15091819a13e").init(function (data) { if (data) { if (msg.tmall.sort) msg.tmall = {}; if (data.tmall.length > 0) { msg.tmall.min_price = data.tmall[0].price; msg.tmall.max_price = data.tmall[data.tmall.length - 1].price; msg.tmall.store = data.tmall; msg.tmall.product = data.tmall; } if (msg.taobao.sort) msg.taobao = {}; if (data.taobao.length > 0) { msg.taobao.product = data.taobao; msg.taobao.store = data.taobao; msg.taobao.min_price = data.taobao[0].price; msg.taobao.max_price = data.taobao[data.taobao.length - 1].price; } if (!msg.tmall.more_link) msg.tmall.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union; if (!msg.taobao.more_link) msg.taobao.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union; callback(msg); } else { callback(msg); } }); }; var getUniqPid = function getUniqPid(msg, callback) { var buildTaobaoUrl = __webpack_require__("cc45d932d8dbdb86f2f3"); msg = buildTaobaoUrl.buildCommon(msg); __webpack_require__("75d41ad7d5a1bceb52d2").getTaobaouniqData(function (data) { if (data) { if (msg.tmall.sort) { msg.tmall = {}; } if (data.tmall.length > 0) { msg.tmall.min_price = data.tmall[0].price; msg.tmall.max_price = data.tmall[data.tmall.length - 1].price; msg.tmall.store = data.tmall; msg.tmall.product = data.tmall; } if (msg.taobao.sort) { msg.taobao = {}; } if (data.taobao.length > 0) { msg.taobao.product = data.taobao; msg.taobao.store = data.taobao; msg.taobao.min_price = data.taobao[0].price; msg.taobao.max_price = data.taobao[data.taobao.length - 1].price; } if (!msg.tmall.more_link) msg.tmall.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union; if (!msg.taobao.more_link) msg.taobao.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union; callback(msg); } else { callback(msg); } }); }; module.exports.init = function () { getTmInfo(render); }; module.exports.renderTopDetail2 = function (id) { var widthObj = calWidth.init(); golbal2.loadImg(0, widthObj.showListNum, $('#' + id + '-item-list li .small-img img')); $('#gwdang-' + id + '-dp-detail').show(); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "a919e1b39b9298b52ffb": /***/ (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"]; /***/ }), /***/ "ad702ac4c32cf7d14a45": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_style_index_0_id_44c0e93e_scoped_true_lang_less__ = __webpack_require__("fea11775846a134eedd2"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_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_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_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 */ /***/ }), /***/ "ad9e2e57a7ab7b1edffe": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbQrBtContent_vue_vue_type_style_index_0_id_c5e8106e_scoped_true_lang_css__ = __webpack_require__("980ee6e75c1af867eadc"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbQrBtContent_vue_vue_type_style_index_0_id_c5e8106e_scoped_true_lang_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbQrBtContent_vue_vue_type_style_index_0_id_c5e8106e_scoped_true_lang_css__); /* unused harmony reexport namespace */ /***/ }), /***/ "ada67488a8c93132fc1d": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var appended = false; module.exports.init = function (css) { var imgurl = undefined; try { if (!navigator.userAgent.includes('Chrome')) { css = G.s_server + '/css/brwext/' + css; imgurl = G.s_server + '/css/brwext/images.css'; } else if (G.localHost && G.from_device !== 'default') { css = G.localHost + 'css/' + css; imgurl = G.localHost + 'css/images.css'; } else if (chrome && chrome.extension && (G.from_device === 'chrome' || G.from_device === '2345')) { css = 'css/' + css; css = chrome.extension.getURL(css); imgurl = chrome.extension.getURL('css/images.css'); } else { css = G.s_server + '/css/brwext/' + css; imgurl = G.s_server + '/css/brwext/images.css'; } } catch (e) { css = G.s_server + '/css/brwext/' + css; imgurl = G.s_server + '/css/brwext/images.css'; } // $(`body`).append(`<link type="text/css" href="${css}" rel="stylesheet" />`); // $(`body`).append(`<link type="text/css" href="${imgurl}?v=${G.version}" rel="stylesheet" />`); return new Promise(function (resolve) { if (appended) { resolve(); return; } var link = document.createElement('link'); link.type = 'text/css'; link.rel = 'stylesheet'; link.href = css; var imgLink = document.createElement('link'); imgLink.type = 'text/css'; imgLink.rel = 'stylesheet'; imgLink.href = imgurl + '?v=' + G.version; link.onload = function () { appended = true; resolve(); }; document.body.appendChild(link); document.body.appendChild(imgLink); }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "ae5f44649928a97bbc7a": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return _vm.data.time ? _c("div", [_c("p", { staticClass: "prifontf", staticStyle: { "margin-left": "16px", "line-height": "14px", "margin-top": "10px", "text-align": "left" } }, [_vm._v(_vm._s(_vm.data.time))]), _vm._v(" "), _vm.data.pagePrice && _vm.domclass === "" ? _c("div", { staticClass: "tip-item tip-pagepri tip-pagepri2" }, [_c("em"), _vm._v(" "), !_vm.aliSite ? [_c("span", { staticClass: "tip-item-sp1", staticStyle: { width: "120px" } }, [_vm._v("到手价(单件) / 页面价")]), _vm._v(" "), _c("span", { staticClass: "tip-item-sp2" }, [_vm._v(":")])] : _vm._e(), _vm._v(" "), _c("span", { staticClass: "tip-item-sp3 prifontf" }, [_vm._v(_vm._s(_vm.data.pagePrice))])], 2) : _vm.data.pagePrice ? _c("div", { staticClass: "tip-item tip-pagepri" }, [_c("em"), _vm._v(" "), _c("span", { staticClass: "tip-item-sp1" }, [_vm._v("页面价")]), _vm._v(" "), _c("span", { staticClass: "tip-item-sp2" }, [_vm._v(":")]), _vm._v(" "), _c("span", { staticClass: "tip-item-sp3 prifontf" }, [_vm._v(_vm._s(_vm.data.pagePrice))])]) : _vm._e(), _vm._v(" "), _vm.data.directpro ? _c("div", { staticClass: "tip-item tip-directpro" }, [_c("em"), _vm._v(" "), _c("span", { staticClass: "tip-item-sp1" }, [_vm._v("到手价(单件)")]), _vm._v(" "), _c("span", { staticClass: "tip-item-sp2" }, [_vm._v(":")]), _vm._v(" "), _c("span", { staticClass: "tip-item-sp3 prifontf" }, [_vm._v("¥" + _vm._s(_vm.data.directpro))]), _vm._v(" "), _c("span", { staticClass: "tip-item-sp4", domProps: { innerHTML: _vm._s(_vm.data.promo2) } })]) : _vm._e(), _vm._v(" "), _vm.data.addpro ? _c("div", { staticClass: "tip-item tip-addpro" }, [_c("em"), _vm._v(" "), _c("span", { staticClass: "tip-item-sp1" }, [_vm._v("到手价(多件)")]), _vm._v(" "), _c("span", { staticClass: "tip-item-sp2" }, [_vm._v(":")]), _vm._v(" "), _c("span", { staticClass: "tip-item-sp3 prifontf" }, [_vm._v("¥" + _vm._s(_vm.data.addpro))]), _vm._v(" "), _c("span", { staticClass: "tip-item-sp4", domProps: { innerHTML: _vm._s(_vm.data.promo1) } })]) : _vm._e()]) : _vm._e(); }; var staticRenderFns = []; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "ae7101d5fa1205e4d9e1": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__BarTrendInfo_vue_vue_type_template_id_79b5dd44_scoped_true__ = __webpack_require__("d6c75767b926994ca460"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__BarTrendInfo_vue_vue_type_script_lang_js__ = __webpack_require__("9fe39bfe9e4ef4134d5d"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__BarTrendInfo_vue_vue_type_script_lang_js__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__BarTrendInfo_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__BarTrendInfo_vue_vue_type_style_index_0_id_79b5dd44_scoped_true_lang_css__ = __webpack_require__("a5c65fd645ac03b1b6b7"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__BarTrendInfo_vue_vue_type_script_lang_js__["default"], __WEBPACK_IMPORTED_MODULE_0__BarTrendInfo_vue_vue_type_template_id_79b5dd44_scoped_true__["render"], __WEBPACK_IMPORTED_MODULE_0__BarTrendInfo_vue_vue_type_template_id_79b5dd44_scoped_true__["staticRenderFns"], false, null, "79b5dd44", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('79b5dd44')) { api.createRecord('79b5dd44', component.options) } else { api.reload('79b5dd44', component.options) } module.hot.accept("./BarTrendInfo.vue?vue&type=template&id=79b5dd44&scoped=true", function () { api.rerender('79b5dd44', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/PriceTrend/BarTrendInfo.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "ae80362cd6a2d17c50a8": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) {var __WEBPACK_AMD_DEFINE_RESULT__;/* * 监控模块,负责监控库存和价格,上报给服务器,需要依赖 库存监控模块 和价格监控模块 * @version:0.0.1 * @author:caoyuanye * @since:2014-07-30 */ !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var request = __webpack_require__("91f250ebeb8d5987491c"); var priceParser = __webpack_require__("e29ce4c2a4af273fcade"); var detect = __webpack_require__("60624e018be49fb2d959"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var priceCheck = __webpack_require__("8b533351445f44b98685"), inventoryCheck = __webpack_require__("a53850c80a1cfefa4efa"); return { timeOut: 5, //监控的最长时间,秒计算 timer: null, //查询库存的计时器 sendTimer: null, //发送计时器,用来确保获取dp_id inventory: null, //监控到的库存 price: null, //监控到的价格 specialSendFlag: false, //如果是天猫淘宝,就不抓取库存直接运行 hasRun: false, init: function init() { if (this.hasRun) { return; } this.hasRun = true; var $this = this; $this._setPrice(function () { $this._setInventory(); $this._trySendMonitorData(); }); }, _trySendMonitorData: function _trySendMonitorData() { var $this = this; var trySendTime = 0; $this.sendTimer = setInterval(function () { ++trySendTime; if (trySendTime > $this.timeOut || G.save_dp_query != null) { var other_info = userData.get('other_info'); var dp_id = other_info && other_info.now && other_info.now.dp_id; $this._sendMonitorData(dp_id); clearInterval($this.sendTimer); } }, 1000); }, //发送监控到的库存和价格趋势,如果没有抓取到,就把库存默认设定成-2,价格默认设定成0 _sendMonitorData: function _sendMonitorData(dp_id) { var $this = this; var spPage = __webpack_require__("d0be176400e0cbc97f82").specialFilter(); if (spPage) return; if ($this.inventory == null) { $this.inventory = "-2"; } if ($this.price == null) { $this.price = "0"; } var payload = { site: G.site, subsite_id: G.subsite_id, dp_id: dp_id, province_id: G.province_id, url: encodeURIComponent(G.dp.url), price: $this.price, stock: $this.inventory, rawurl: encodeURIComponent(window.location.href) }; if (G.priceTextCollectedFromPage) { payload.price_text = G.priceTextCollectedFromPage; } var url = request.makeUrl(G.server, '/brwext/monitor', payload); request.get(url); }, _setPrice: function _setPrice(callback) { var that = this; var siteName = G.site; var siteId = detect.getSiteId(siteName); if (!siteId) siteId = 9999; priceParser.init(siteId, function (price) { if (price && price > 0) { that.price = price; G.dp.oldPrice = price; } else { that.price = G.dp.price; } if (!that.price) that.price = priceCheck.getOnlinePrice(siteName); if (siteName == 'taobao' && that.price != '0') { that.specialSendFlag = true; } if (siteName == '360buy') { // 京东的定金不发 if ($(".itemInfo-wrap:contains('定 金')").length) { return; } } if (callback) { callback(); } }); }, _setInventory: function _setInventory() { this.inventory = inventoryCheck.init(G.site); } }; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "af4f7756ab00a77f2675": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // 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 /***/ }), /***/ "afc6c70075934f0b88fb": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_template_id_a48d90ba_scoped_true__ = __webpack_require__("e98c136e68db6cb669b7"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_template_id_a48d90ba_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_template_id_a48d90ba_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_template_id_a48d90ba_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_template_id_a48d90ba_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_template_id_a48d90ba_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_template_id_a48d90ba_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "afcc358f2258139166a4": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbButieQR_vue_vue_type_template_id_5d6078e1_scoped_true__ = __webpack_require__("978bd30cb4816a584596"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbButieQR_vue_vue_type_template_id_5d6078e1_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbButieQR_vue_vue_type_template_id_5d6078e1_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbButieQR_vue_vue_type_template_id_5d6078e1_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbButieQR_vue_vue_type_template_id_5d6078e1_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbButieQR_vue_vue_type_template_id_5d6078e1_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TbButieQR_vue_vue_type_template_id_5d6078e1_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "b16979a7881f114e5dfd": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkButie_vue_vue_type_template_id_7c398433_scoped_true__ = __webpack_require__("2838cdbf02d1c3b95e34"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkButie_vue_vue_type_template_id_7c398433_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkButie_vue_vue_type_template_id_7c398433_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkButie_vue_vue_type_template_id_7c398433_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkButie_vue_vue_type_template_id_7c398433_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkButie_vue_vue_type_template_id_7c398433_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkButie_vue_vue_type_template_id_7c398433_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "b1cae3a1887fb97c6c83": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {//添加基本的参数配置和函数 __webpack_require__("caeb48377dbdbfe42966"); G.extend({ crc64: true, union: "union_gwdang", show_tip: 1, show_wishlist: 1, show_guess: 1, show_mainbar: 1, show_promo: 1, set_force: false, default_style: 'top', ut: '&trans=1', from_device: 'default', extBrand: 'gwd', extName: 'gwdang', go_union: 'http://u.gwdang.com/union/go', p_id: '', is_open: 0, position: 0, style: '', notice: 0, first: 0, fold: 0, p_fold: 0, pop_share: 1, email: '', subsite_id: '', force: [], on_building: true, built_counter: 0, collectionChanged: true, gwd_browser_type: 1, gwd_cnzz: location.protocol + '//s11.cnzz.com/z_stat.php?id=1256793290&web_id=1256793290', is_site_page: null, href: window.location ? window.location.href : '', collectInfo: { dp_id: "", title: "", site_id: 0, url: "", img: "", price: "", comment: "" }, now_dp_id: '', where_buy_dps: '', width: document.documentElement.clientWidth > 0 ? document.documentElement.clientWidth : document.body.clientWidth, timer: null, timer2: null, timer3: null, timer4: null, timer5: null, //fix suning timer5_mutex: true, //mutex height: 0, scrollTop: 0, page_size: 6, page_size_mini: 4, page_now: { b2c: 1, taobao: 1, tmall: 1, also_buy: 1, promotion: 1, b2c_fuzzy: 1 }, page_total: { b2c: 1, taobao: 1, tmall: 1, also_buy: 1, promotion: 1, b2c_fuzzy: 1 }, total_num: { b2c: 6, taobao: 6, tmall: 6, also_buy: 6, promotion: 6, b2c_fuzzy: 6 }, module_name: ["b2c", "taobao", "tmall", "also_buy", "promotion", "b2c_fuzzy"], dpIsBook: false, hiddenFavorButton: false, save_tbres_data: null, save_promo_len: 0, save_price_trend_data: null, save_promo_data: null, topResizeTimer: null, bottomResizeTimer: null }); var ua = navigator.userAgent; if (ua.indexOf('Firefox') > -1) { G.gwd_cnzz = ''; } /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "b222cbd907f0b4aea97f": /***/ (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 userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var golbal2 = __webpack_require__("1c640a99db9f6f8a16c2"); var go_union = __webpack_require__("8dc7f5a7e7a7f98e12b6"); var runed = undefined; var amazonName = { '1': '中国', '228': '美国', '229': '日本', '246': '德国', '266': '英国', '365': '法国', '366': '加拿大' }; var amazonCurrency = { '228': 'USD', '229': 'JPY', '246': 'EUR', '266': 'GBP', '365': 'EUR', '366': 'CAD' }; var amazonMoney = { '1': '¥', '228': '$', '229': '円', '246': 'EUR', '266': '£', '365': 'EUR', '366': 'CDN$' }; var amazonTab = '#' + G.extName + '-amazon-dp'; var amazonDetail = '#' + G.extName + '-amazon-dp-detail'; var reqInfo = function reqInfo(dp_id, callback) { var url = G.server + '/extension?ac=amazonGlobal&dp_id=' + dp_id; request.get(url).done(function (data) { if (data && data.length > 0) { callback(data); } }); }; var editData = function editData(data) { for (var i = 0, len = data.length; i < len; i++) { var site_id = data[i].dp_id.split('-')[1]; if (data[i].nowpage === '1') data[i].siteName = amazonName[site_id] + '亚马逊(当前商城)';else data[i].siteName = amazonName[site_id] + '亚马逊'; var price = (Number(data[i].pri) / 100).toFixed(2); var purePrice = ''; if (site_id !== "1") { var price2 = ''; if (site_id === '229') price2 = price + amazonMoney[site_id];else price2 = amazonMoney[site_id] + price; purePrice = parseprice(price, amazonCurrency[site_id]); price = '¥' + purePrice + ('(' + price2 + ')'); } else { purePrice = price; price = '¥' + price; } data[i].title = data[i].tle; data[i].img_url = data[i].img; data[i].site_name = '中国亚马逊'; data[i].fee = '不同卖家运费不同'; var obj = { 'site_id': site_id, 'url': data[i].url, 'mod': 'amazon_global', 'union': G.union.split('_')[1], 'dp_id': data[i].dp_id }; data[i].url = go_union.init(obj); data[i].price = price; data[i].purePrice = purePrice; } data.sort(function (value1, value2) { return Number(value1.purePrice) - Number(value2.purePrice); }); return data; }; var render = function render(data) { data = editData(data); var permanent = userData.get('permanent'); if (permanent.style === 'top') { renderBtnTop(data[0].pri); renderTopDetail(data); } renderInner(data); addEvent(); }; var renderBtnTop = function renderBtnTop(pri) { var price = Number(pri) / 100; var html = __webpack_require__("86bd79d95549896902d6"); $('#amazon_compare').append(template.compile(html)({ store_tle: "亚马逊海外购:", min_price: price })).show(); }; var addEvent = function addEvent() { var Time1 = undefined; $(amazonTab).on('mouseenter', function () { $(amazonDetail).addClass('_mshover'); $(amazonTab).addClass('_mshover'); log('track:amazon_global:mshover'); }); $(amazonTab).on('mouseleave', function () { Time1 = setTimeout(function () { $(amazonDetail).removeClass('_mshover'); $(amazonTab).removeClass('_mshover'); }, 200); }); $(amazonDetail).on('mouseenter', function () { clearTimeout(Time1); $(amazonDetail).addClass('_mshover'); $(amazonTab).addClass('_mshover'); }); $(amazonDetail).on('mouseleave', function () { $(amazonDetail).removeClass('_mshover'); $(amazonTab).removeClass('_mshover'); }); $('#amazon_dp-item-list li').on('click', function () { log('track:amazon_global:click'); }); }; var renderTopDetail = function renderTopDetail(data) { if (runed) { $('#amazon_compare').find('.top-compare-detail').show(); return; } runed = true; var html = __webpack_require__("b8ed94473f35b0be72d2"); var dom = template.compile(html)({ data: { product: data, imgLoad: G.imgLoad }, pages: 1 }); $('#amazon_compare').append(dom); golbal2.loadImg(0, data.length, $('#amazon-item-list li .small-img img')); log('track:amazon_global:track'); }; var times = 0; var renderInner = function renderInner(data) { var product = data[0]; if (!product) return; var html = __webpack_require__("bff684ccc7b3b9f6cb95"); var dom = $('#gwd_ht_main .ht_head'); if (dom.length === 0 && times < 15) { times++; setTimeout(function () { renderInner(data); }, 800); return; } var view = template.compile(html)({ data: product }); dom.append(view); $('#amazon_global_box').append(view).show(); log('track:amazon_global_inner:track'); $('#amazon_global').on('click', function () { log('track:amazon_global_inner:click'); }); renderInnerDetail(data); }; var renderInnerDetail = function renderInnerDetail(data) { var html = __webpack_require__("db828186652960d00583"); var dom = template.compile(html)({ data: data[0] }); // $('#gwd_ht_main .ht_content').append(dom); $('#amazon_global_box').append(dom); $('#amazon_global').on('mouseenter', function () { var dom = $('#globalInnerDetail'); if (!dom.is(':visible')) { $('.content_default').hide(); dom.show(); } }); $('#gwd_minibar').addClass('hasglobal'); $('#globalInnerDetail .content_default_left a').on('click', function () { log('track:amazon_global_inner_detail:click'); }); }; module.exports.renderTopDetail = renderTopDetail; module.exports.init = function (dp_id) { if (location.host.indexOf('amazon') === -1) return; // 暂时屏蔽中国亚马逊 以为只展示中国亚马逊的商品 if (location.host.indexOf('.cn') > -1) return; reqInfo(dp_id, render); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "b28075e64badea09b6c7": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { Object.defineProperty(exports, '__esModule', { value: true }); var log = __webpack_require__("03dd60018ce5ed1344a1"); exports['default'] = { props: ['data', 'pri', 'position'], data: function data() { return { isBjg: G.from_device === 'bijiago' }; }, mounted: function mounted() { log('miniCompare:length', this.data.length); }, methods: { transText: function transText(text) { var map = { '更低价': '更低價', '暂无结果': '暫無結果', '其他': '其他', '家报价': '家報價' }; if (G.lang === 'zh-tr') { return map[text] || text; } else { return text; } }, logLink: function logLink() { log('miniCompare:linkClick'); }, logHover: function logHover() { log('miniCompare:hover'); }, mouseover: function mouseover() { if (this.position.top) { $('.gwd-minibar-bg #gwd_mini_compare').addClass('ms-tab-enter'); if (G.from_device.includes('bijiago')) { $('#bjgext_minibar #gwd_mini_compare').addClass('bjg-hover-bg'); } } }, mouseleave: function mouseleave() { if (this.position.top) { $('.gwd-minibar-bg #gwd_mini_compare').removeClass('ms-tab-enter'); if (G.from_device.includes('bijiago')) { $('#bjgext_minibar #gwd_mini_compare').removeClass('bjg-hover-bg'); } } } }, computed: { style: function style() { if (this.position.top) { var style = { top: this.position.top + 'px', left: this.position.left + 'px', width: this.position.width + 1 + 'px', height: this.position.height + 'px', position: 'absolute' }; if (G.from_device.includes('bijiago')) { style.background = 'transparent'; style.borderRight = 'none'; } return style; } return {}; } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "b47266ebcd57075b6e88": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Price_vue_vue_type_template_id_26424954_scoped_true__ = __webpack_require__("2d18688ad14d308da9a4"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Price_vue_vue_type_script_lang_js__ = __webpack_require__("8c831397617ed0629df7"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__Price_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__Price_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Price_vue_vue_type_style_index_0_id_26424954_scoped_true_lang_less__ = __webpack_require__("3331c90409771733bf9d"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__Price_vue_vue_type_script_lang_js__["default"], __WEBPACK_IMPORTED_MODULE_0__Price_vue_vue_type_template_id_26424954_scoped_true__["render"], __WEBPACK_IMPORTED_MODULE_0__Price_vue_vue_type_template_id_26424954_scoped_true__["staticRenderFns"], false, null, "26424954", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('26424954')) { api.createRecord('26424954', component.options) } else { api.reload('26424954', component.options) } module.hot.accept("./Price.vue?vue&type=template&id=26424954&scoped=true", function () { api.rerender('26424954', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/ImgSame/Price.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "b4ed64c2f48c7d7dc84e": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_style_index_0_id_4148f062_scoped_true_lang_less__ = __webpack_require__("f97b852a25751d76b7c5"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_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_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_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 */ /***/ }), /***/ "b58a244bd3875bce64ed": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_ProductItem_vue_vue_type_template_id_38276ded_scoped_true__ = __webpack_require__("069f4824e32ace376302"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_ProductItem_vue_vue_type_template_id_38276ded_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_ProductItem_vue_vue_type_template_id_38276ded_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_ProductItem_vue_vue_type_template_id_38276ded_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_ProductItem_vue_vue_type_template_id_38276ded_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_ProductItem_vue_vue_type_template_id_38276ded_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_ProductItem_vue_vue_type_template_id_38276ded_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "b7061de994d8cc991b3d": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Share_vue_vue_type_template_id_3489a5d0_scoped_true__ = __webpack_require__("7eaa736e8bb1c3454720"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Share_vue_vue_type_template_id_3489a5d0_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Share_vue_vue_type_template_id_3489a5d0_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Share_vue_vue_type_template_id_3489a5d0_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Share_vue_vue_type_template_id_3489a5d0_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Share_vue_vue_type_template_id_3489a5d0_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Share_vue_vue_type_template_id_3489a5d0_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "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__("575aa4974b1cd4464c7e"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QRLinkLeft_vue_vue_type_script_lang_js__ = __webpack_require__("0c74b2f4a157fb675c2a"); /* 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__("c4590668cfe8e975799e"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_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__["render"], __WEBPACK_IMPORTED_MODULE_0__QRLinkLeft_vue_vue_type_template_id_b671e2be_scoped_true__["staticRenderFns"], false, null, "b671e2be", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@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); /***/ }), /***/ "b7eb5a1e7c501c0bd2ec": /***/ (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__("bfc6c4c9012853b7c201"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("f5cef6ca", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@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/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./QRLinkTaobaoLogin.vue?vue&type=style&index=0&id=6179ab9e&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "b8226e22112290600083": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $, regeneratorRuntime) { var _this = this; var getCoupon = __webpack_require__("2eb8d6935e044e0d6d06"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); var globalData = { tmall: [], taobao: [] }; var minPriceObj = {}; var minPriceStatus = {}; var sizeObj = {}, totalObj = {}; var renderCoupon = function renderCoupon(data, type, isBottom) { sizeObj[type]++; if (data && data.data && data.data.coupon.coupon_limit !== '1') globalData[type].push(data.data); if (sizeObj[type] === totalObj[type]) { if (isBottom) { renderProdutBt(type, isBottom); } else { renderProdut(type); } if (G.aliSite) { // 如果是淘宝天猫,当前商品没有优惠券,需要吧比价结果里面有优惠券的商品在中间展示 // 元旦红包时暂停显示 // if (new Date() < new Date('2020-01-10T23:59:59')) { // return // } if (G.runminiCoup === '1') { __webpack_require__("aac0839f8078e3c8248c").init(globalData, '.gwd-minibar-bg'); } else if (!G.runminiCoup) { G.runminiCoupon2 = true; $(document).on('runminiCoupon2', function () { __webpack_require__("aac0839f8078e3c8248c").init(globalData, '.gwd-minibar-bg'); }); } } } }; var renderProdutBt = function renderProdutBt(type, bdata) { // 渲染底部优惠券 var arr = globalData[type]; for (var i = 0; i < bdata.length; i++) { for (var j = 0; j < arr.length; j++) { if (bdata[i] && arr[j] && bdata[i].num_iid == arr[j].reqid) { var lastP = (Number(bdata[i].price) - arr[j].coupon.coupon_money).toFixed(2); if (Number(lastP) < 0) continue; if (Number(lastP) < minPriceObj[type] && lastP > 0) { minPriceObj[type] = lastP; minPriceStatus[type] = true; } var coupon_money = arr[j].coupon.coupon_money; bdata[i].url = arr[j].click_url2; bdata[i].tspan = '<span class="coupon_span">领' + coupon_money + '元券</span>'; bdata[i].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">¥' + lastP + '</span>\n <span class="cou-pri-sp3 prifontf">¥' + bdata[i].price + '</span>\n </span>\n </div>'; break; } } } if (minPriceStatus[type]) { if (type === 'taobao') { $('.compare-list li[data-id="tbcompare"] .com-item-pri').text('¥' + minPriceObj[type]); } else { $('.compare-list li[data-id="tmcompare"] .com-item-pri').text('¥' + minPriceObj[type]); } } globalCondition.setMet('bottomCouponReady-' + (type === 'taobao' ? 'tbcompare' : 'tmcompare')); }; var renderProdut = function renderProdut(type) { // 渲染顶部优惠券 var ul = $('#' + type + '-item-list li'); var len = ul.length; var arr = globalData[type]; var _loop = function (i) { var id = ul.eq(i).attr('data-id'); for (var j = 0; j < arr.length; j++) { if (arr[j] && arr[j].reqid == id) { if (ul.eq(i).find('.coupon_span').length) { console.warn('skipping coupon', ul.eq(i)); return { v: undefined }; } ul.eq(i).find('.small-img').append($('<span class="coupon_span">领' + arr[j].coupon.coupon_money + '元券</span>')); ul.eq(i).find('a').attr('href', arr[j].click_url2); ul.eq(i).find('a').on('click', function (e) { e.preventDefault(); var adzone_id = '10003'; if (G.aliSite) adzone_id = '10004'; getCoupon.init(id, adzone_id, function (data) { window.open(data.data.click_url2); }); }); var price = ul.eq(i).find('span.gwd-price').text(); var lastP = (Number(price.replace(/[¥¥]/g, '')) - arr[j].coupon.coupon_money).toFixed(2); if (Number(lastP) < 0) continue; if (Number(lastP) < minPriceObj[type]) { minPriceObj[type] = lastP; minPriceStatus[type] = true; } ul.eq(i).find('.gwd-price').after($('<div class="coupon_price">\n <span class="cou-pri-sp1">券后价:</span>\n <span class="cou-pri-sp2 prifontf">¥' + lastP + '</span>\n <span class="cou-pri-sp3 prifontf">' + price + '</span>\n </div>')).remove(); } } }; for (var i = 0; i < len; i++) { var _ret = _loop(i); if (typeof _ret === 'object') return _ret.v; } if (minPriceStatus[type]) { if (type == 'taobao') { $('#tb_compare .tab-sp2').text('¥' + minPriceObj[type]); } else { $('#tm_compare .tab-sp2').text('¥' + minPriceObj[type]); } } }; // 比价结果部分的优惠券 module.exports.init = function callee$0$0(data, type, isBottom, minpri) { var direct = arguments.length <= 4 || arguments[4] === undefined ? false : arguments[4]; var f2, adzone_id, i; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: // forbidCoupon entry部分给的值 可能会针对特定地区屏蔽 window.gwd_G.aliCouponNotNeedFix = true; if (!G.forbidCoupon) { context$1$0.next = 3; break; } return context$1$0.abrupt('return'); case 3: if (data) { context$1$0.next = 5; break; } return context$1$0.abrupt('return'); case 5: if (data.length) { context$1$0.next = 7; break; } return context$1$0.abrupt('return'); case 7: minPriceObj[type] = minpri; totalObj[type] = data.length; sizeObj[type] = 0; if (isBottom) isBottom = data; f2 = function f2(newData) { renderCoupon(newData, type, isBottom); }; adzone_id = '10003'; if (G.aliSite) adzone_id = '10004'; G.arrToCheck = data.map(function (x) { return x.num_iid; }); $('#tb_compare').hover(function () { globalCondition.setMet('aliCouponAllowed'); }); $('#tm_compare').hover(function () { globalCondition.setMet('aliCouponAllowed'); }); $('.compare-box').hover(function () { globalCondition.setMet('aliCouponAllowed'); }); $('.compare-list li[data-id="tbcompare"]').hover(function () { globalCondition.setMet('aliCouponAllowed'); }); $('.compare-list li[data-id="tmcompare"]').hover(function () { globalCondition.setMet('aliCouponAllowed'); }); context$1$0.next = 22; return regeneratorRuntime.awrap(globalCondition.met('aliCouponAllowed')); case 22: for (i = 0; i < data.length; i++) { getCoupon.init(data[i].num_iid, adzone_id, f2, direct); } case 23: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("6a0e4ebb57bf6aac1f2d"))) /***/ }), /***/ "b82b842ec7ea48c0180f": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, Vue) { 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 _TbQrBtContentVue = __webpack_require__("26f1ae8e37c15f64817a"); var _TbQrBtContentVue2 = _interopRequireDefault(_TbQrBtContentVue); exports["default"] = { mixins: [_commonComponentsMemberCouponMixin2["default"]], data: function data() { return { left: 0, top: 0, show: false }; }, methods: { hover: function hover() { this.caculateWindowOffset(); this.over(); this.show = true; }, leave: function leave() { this.show = false; }, caculateWindowOffset: function caculateWindowOffset() { var rect = __webpack_require__("3e983ecbff4e1a29654c").getBodyOffset(this.$el); __webpack_require__("316f9c352c6202560d16").log('rect', rect); this.left = rect.left; this.top = rect.top + rect.height; } }, computed: { cstyle: function cstyle() { return "left: " + this.left + "px; top: " + this.top + "px;"; } }, mounted: function mounted() { var _this = this; if ($('.bannerWrap--ApeVpytP').length) { $('body').addClass('gwd-hasBanner'); } var qrEl = document.createElement('div'); document.body.appendChild(qrEl); new Vue({ el: qrEl, render: function render(h) { return h(_TbQrBtContentVue2["default"], { props: { qr: _this.qr, cstyle: _this.cstyle, show: _this.show } }); } }); } }; module.exports = exports["default"]; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("b2848b041c3d11faa242")["default"])) /***/ }), /***/ "b82eb4b3ad807a035928": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Switch_vue_vue_type_template_id_222e987e_scoped_true__ = __webpack_require__("0c60e330597401a93efd"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Switch_vue_vue_type_template_id_222e987e_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Switch_vue_vue_type_template_id_222e987e_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Switch_vue_vue_type_template_id_222e987e_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Switch_vue_vue_type_template_id_222e987e_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Switch_vue_vue_type_template_id_222e987e_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Switch_vue_vue_type_template_id_222e987e_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "b85dc73330c2d967d021": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipView_vue_vue_type_template_id_4c623068_scoped_true__ = __webpack_require__("ae5f44649928a97bbc7a"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipView_vue_vue_type_template_id_4c623068_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipView_vue_vue_type_template_id_4c623068_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipView_vue_vue_type_template_id_4c623068_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipView_vue_vue_type_template_id_4c623068_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipView_vue_vue_type_template_id_4c623068_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipView_vue_vue_type_template_id_4c623068_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "b8b218183fed21315954": /***/ (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__("15263ba00782535c8f1d"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("4909804a", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./QuestHint.vue?vue&type=style&index=0&id=39a606fa&scoped=true&lang=less", function() { var newContent = require("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./QuestHint.vue?vue&type=style&index=0&id=39a606fa&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "bb018aa901a2f5d635de": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkButie_vue_vue_type_style_index_0_id_7c398433_scoped_true_lang_less__ = __webpack_require__("e33d055a7ca64390eaa4"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkButie_vue_vue_type_style_index_0_id_7c398433_scoped_true_lang_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkButie_vue_vue_type_style_index_0_id_7c398433_scoped_true_lang_less__); /* unused harmony reexport namespace */ /***/ }), /***/ "bb230b042f0d058f8c66": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var history = __webpack_require__("e97d380adaf6122c0aa9"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var util = __webpack_require__("d54879e983a83d07f093"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var historySize = 0; var go_union = __webpack_require__("8dc7f5a7e7a7f98e12b6"); var global2 = __webpack_require__("1c640a99db9f6f8a16c2"); var siteInfo = __webpack_require__("5e05e6f5fe79ccf5d009"); var renderBtnBottom = function renderBtnBottom() { var btnHtml = '<a id="' + G.extBrand + '_history" class="' + G.extBrand + '-close-module"> <span><em></em>浏览历史</span></a>'; var dom = $('.' + G.extBrand + '_option_setting'); dom.after(template.compile(btnHtml)()); }; var fixtop = function fixtop() { /*修改了dom结构和css文件,为了不影响本地版本,不能直接修改原有的css属性,只能通过添加类名覆盖之前的属性*/ $('#' + G.extName + '-feed-close').addClass('_newbar1'); $('#' + G.extName + '-main').addClass('_newbar2'); }; var renderBtnTop = function renderBtnTop() { fixtop(); var btnHtml = '<div id="gwd_history" class="gwdang-tab">\n <span class="btn-tab-sp">\n <em class="gwd_bg"></em>\n <span class="tab-sp1 blkcolor1">浏览历史</span>\n </span>\n </div>'; $('.search-mod').after(template.compile(btnHtml)()); $('#gwd_history').show(); __webpack_require__("1c640a99db9f6f8a16c2").autoFixWidth(); }; var renderBtn = function renderBtn() { var perinfo = userData.get('permanent'); if (perinfo.style == 'top') { renderBtnTop(); } else if (perinfo.style == 'bottom') { renderBtnBottom(); } }; var historyGot = false; var renderDetailHtml = function renderDetailHtml(dom, data, height) { var html = __webpack_require__("7bab855cf495e35fc4fb"); $(dom).append(template.compile(html)({ 'data': data, 's_server': G.s_server, 'his_size': historySize, extName: G.extName })); }; var renderDetail = function renderDetail(data, height) { var perinfo = userData.get('permanent'); if (perinfo.style == 'top') { renderDetailHtml($('#gwd_history'), data, height); } else if (perinfo.style == 'bottom') { renderDetailHtml('#bjd_bottom_detail', data, height); } }; var calHeight = function calHeight() { if (historySize >= 4) return 343;else { return historySize * 75 + (historySize - 1) * 14 + 1; } }; var addUnion = function addUnion(data) { var newdata = []; for (var i = 0; i < data.length; i++) { if (!data[i].url) continue; var site = siteInfo.isProductPage(data[i].url); var obj = { 'site_id': data[i].site_id, 'url': data[i].url, 'mod': 'history', 'union': G.union.split('_')[1], 'dp_id': data[i].dp_id }; data[i].url = go_union.init(obj); data[i].currency = __webpack_require__("9bf6d059e9a265559f0c").getMoneyInfo(site)[0]; data[i].site = site; newdata.push(data[i]); } return newdata; }; var render = function render(data) { historyGot = true; if (!data || data.length == 0) return; data = addUnion(data.slice(0, 10)); historySize = data.length; var height = calHeight(); renderBtn(); renderDetail(data, height); addEvent(historySize); }; var addEvent = function addEvent(size) { var timer = undefined, loadImg = undefined, setLeft = undefined; var ren = function ren() { if (!loadImg) { loadImg = true; global2.loadImg(0, size, $('#history_detail li .item_img img')); } if (!setLeft) { util.setSimplePagePos($('#gwd_history'), $('#history_detail'), 288); setLeft = true; } $('#' + G.extBrand + '_history').addClass('history_hover'); $('#history_detail').show(); }; ren(); $('#' + G.extBrand + '_history').on('mouseenter', ren); $('#' + G.extBrand + '_history').on('mouseleave', function () { timer = setTimeout(function () { $('#' + G.extBrand + '_history').removeClass('history_hover'); $('#history_detail').hide(); }, 200); }); $('#history_detail').on('mouseenter', function () { clearTimeout(timer); }); $('#history_detail').on('mouseleave', function () { $('#' + G.extBrand + '_history').removeClass('history_hover'); $('#history_detail').hide(); }); $('#history_detail .item_close_btn').on('click', function () { var id = $(this).attr('data-id'); historySize--; delHistory($(this).parents('li'), id); }); $('#history_detail .clear_his').on('click', function () { clearHistory(); }); }; var getHistory = function getHistory() { history.get(render); }; var clearHistory = function clearHistory() { history.delAll(function () { $('.history_detail .history_content ul').empty(); $('.history_detail .history_content').addClass('no-his-content'); $('.history_detail .history_content').height(76); $('.clear_his').hide(); }); }; var setHistory = function setHistory() { /*因为没有抓取屏蔽淘宝天猫*/ var other_info = userData.get('other_info'); var dp_id = other_info && other_info.now && other_info.now.dp_id; if (G.site != 'taobao' && G.site != 'tmall') history.add(dp_id); }; var delHistory = function delHistory(obj, id) { var height = calHeight(); history.del(id, function () { $(obj).remove(); if (height == 343) return; if (historySize === 0) { $('.history_detail .history_content').addClass('no-his-content'); $('.clear_his').hide(); return; } $('.history_detail .history_content').height(height); }); }; module.exports.init = function () { //getHistory() $('#' + G.extBrand + '_history').on('mouseenter', function () { if (!historyGot) { getHistory(); } }); setHistory(); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "bbc1737e41a566e2b0d8": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniBarCollectionButton_vue_vue_type_script_lang_js__ = __webpack_require__("c3b24e9ad846c5b381b3"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniBarCollectionButton_vue_vue_type_script_lang_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniBarCollectionButton_vue_vue_type_script_lang_js__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniBarCollectionButton_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniBarCollectionButton_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniBarCollectionButton_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "bcb9c3bd0cfca412566c": /***/ (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, img = $data.img; $$out += '<a style="display: inline-flex; position: relative; vertical-align: middle; margin-left: 5px;" class="gwd-top-tmall"\n target="_blank"\n title="点击领取"\n href="'; $$out += $escape(link); $$out += '">\n <img src="'; $$out += $escape(img); $$out += '" alt="" style="height: 32px">\n</a>\n<style>\n .gwd-top-tmall {\n height: 100%;\n align-items: center;\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 }\n\n .gwd-top-tmall:hover .gwd-qr-act {\n display: flex;\n }\n</style>'; return $$out; }; /***/ }), /***/ "bd24b0d33569e626b2d3": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_script_lang_js__ = __webpack_require__("ff92595e58f9bfa1fe74"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "bd35834dd0f2d91d9e3e": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _WidgetsStamp = __webpack_require__("69f5719fde0c1382bdeb"); var _WidgetsStamp2 = _interopRequireDefault(_WidgetsStamp); exports['default'] = { props: ['link', 'icon', 'mainColor', 'secondColor', 'text', 'showStampBg', 'rebate'], components: { Stamp: _WidgetsStamp2['default'] } }; module.exports = exports['default']; /***/ }), /***/ "bd4d4071c616b55e5971": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AmazonSameLinks_vue_vue_type_template_id_e09aa000_scoped_true__ = __webpack_require__("711adf6419b834e0c72d"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AmazonSameLinks_vue_vue_type_template_id_e09aa000_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AmazonSameLinks_vue_vue_type_template_id_e09aa000_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AmazonSameLinks_vue_vue_type_template_id_e09aa000_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AmazonSameLinks_vue_vue_type_template_id_e09aa000_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AmazonSameLinks_vue_vue_type_template_id_e09aa000_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AmazonSameLinks_vue_vue_type_template_id_e09aa000_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "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__("ed7093ed4218f2bccb9b"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__CommonCouponBarMini_vue_vue_type_script_lang_js__ = __webpack_require__("3771af99caa12f4d701a"); /* 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__("86f818ca0ebde6d6af45"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__CommonCouponBarMini_vue_vue_type_style_index_1_id_3fdd510a_lang_less__ = __webpack_require__("04b1e9fadd9358e8d012"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_4__node_modules_vue_loader_15_11_1_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__["render"], __WEBPACK_IMPORTED_MODULE_0__CommonCouponBarMini_vue_vue_type_template_id_3fdd510a_scoped_true__["staticRenderFns"], false, null, "3fdd510a", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@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); /***/ }), /***/ "bfb4cc86279f38be6f8c": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MemberCouponMiniBjg_vue_vue_type_style_index_0_id_c1c2cbdc_scoped_true_lang_less__ = __webpack_require__("6c31184bc61f80e4776c"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_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_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_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 */ /***/ }), /***/ "bfc6c4c9012853b7c201": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // 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 /***/ }), /***/ "bfda2e50260ebfb5ac92": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, "\n#page #content #bd {\n z-index: 0 !important;\n}\n", ""]); // exports /***/ }), /***/ "c2c04e20e9104a7afb69": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipViewBar_vue_vue_type_template_id_da945952_scoped_true__ = __webpack_require__("3e216db2331af9a3d857"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipViewBar_vue_vue_type_template_id_da945952_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipViewBar_vue_vue_type_template_id_da945952_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipViewBar_vue_vue_type_template_id_da945952_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipViewBar_vue_vue_type_template_id_da945952_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipViewBar_vue_vue_type_template_id_da945952_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipViewBar_vue_vue_type_template_id_da945952_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "c3b24e9ad846c5b381b3": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); var _vuex = __webpack_require__("f6c9d8811ab2f0e17cf9"); exports['default'] = { computed: (0, _vuex.mapState)({ checked: function checked(state) { return state.priceRemind.collected; }, id: function id(state) { return state.priceRemind.instanceId; } }) }; module.exports = exports['default']; /***/ }), /***/ "c3b6372752c18de2c142": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { Object.defineProperty(exports, '__esModule', { value: true }); var _vuex = __webpack_require__("f6c9d8811ab2f0e17cf9"); var currencyConfig = __webpack_require__("9bf6d059e9a265559f0c").getMoneyInfo(G.logsite); exports['default'] = { props: ['haitao'], computed: (0, _vuex.mapState)({ priceRemind: function priceRemind(state) { return state.priceRemind; }, user: function user(state) { return state.user; }, trend: function trend(state) { return state.priceTrend; } }), data: function data() { return { allPrice: '', currentPrice: '', notifySite: '', mode: 0, currency: currencyConfig ? currencyConfig[0] : '¥', settedNotifySite: null, errorText: '', errorFadeClass: false, hintText: '', hintFadeClass: false, allowAnimation: true, loaded: false, mPromo: true }; }, methods: { performUpdate: function performUpdate() { var _this = this; this.allPrice = this.$store.state.priceRemind.allPrice; this.currentPrice = this.$store.state.priceRemind.currentPrice; this.notifySite = this.$store.state.priceRemind.notifySite; this.mode = this.$store.state.priceRemind.mode; this.mPromo = this.$store.state.priceRemind.notifierMPromo; this.settedNotifySite = this.$store.state.priceRemind.settedNotifySite; this.allowAnimation = false; setTimeout(function () { if (_this.$store.state.priceRemind.hovered || !_this.$store.state.priceRemind.collected) { _this.allowAnimation = true; } }, 1000); }, showError: function showError(text) { var _this2 = this; this.errorFadeClass = false; this.errorText = text; setTimeout(function () { _this2.errorFadeClass = true; }, 200); }, showHint: function showHint(text) { var _this3 = this; this.hintFadeClass = false; this.hintText = text; setTimeout(function () { _this3.hintFadeClass = true; }, 200); }, cancel: function cancel() { this.$store.dispatch('priceRemind/cancel'); }, submit: function submit() { var _this4 = this; var price = undefined; if (this.notifySite === 0) { price = this.allPrice; } else if (this.notifySite === 1) { price = this.currentPrice; } if (price === '') { this.showError('请输入商品期望价格'); return; } if (price <= 0) { this.showError('请输入正确格式的价格'); return; } if (price.toString().indexOf('.') > -1) { var after = price.toString().split('.')[1]; if (after && after.length > 2) { this.showError('请输入正确格式的价格'); return; } } if (this.$store.state.priceRemind.nowPrice && price > this.$store.state.priceRemind.nowPrice) { this.showError('价格不能高于当前商品价格'); return; } this.$store.dispatch('priceRemind/submit', { notifySite: this.notifySite, price: price, mode: this.mode, notifyMPromo: this.mPromo }).then(function (r) { _this4.showHint(r); __webpack_require__("316f9c352c6202560d16").log('resolve ', r); })['catch'](function (r) { _this4.showError('提交失败,' + r); __webpack_require__("316f9c352c6202560d16").log('reject ', r); }); } }, mounted: function mounted() { var _this5 = this; __webpack_require__("316f9c352c6202560d16").log('store', this.$store); this.$nextTick(function () { _this5.performUpdate(); }); this.$store.subscribe(function (mutation) { if (mutation.type === 'priceRemind/updateRemindSettings') { _this5.$nextTick(function () { _this5.performUpdate(); }); } }); } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "c4590668cfe8e975799e": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_style_index_0_id_b671e2be_scoped_true_lang_less__ = __webpack_require__("ccf42687b0eb46d3c033"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_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_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_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 */ /***/ }), /***/ "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'; location.href = a.href; document.body.appendChild(a); case 25: 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; if (r.data) { 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' }]; } if (r.length) { context$1$0.next = 19; break; } return context$1$0.abrupt('return'); case 19: a = document.createElement('A'); a.innerHTML = '查看榜单全部商品'; if (G.lang === 'zh-tr') 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 = 36; return regeneratorRuntime.awrap(__webpack_require__("3e983ecbff4e1a29654c").sleep(2000)); case 36: 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 = 40; break; } return context$1$0.abrupt('return'); case 40: 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 43: case 'end': return context$1$0.stop(); } }, null, _this); }; var listPageAddRanking = function listPageAddRanking(res) { if (!res || !res.data) { return; } setInterval(function () { 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__("6a0e4ebb57bf6aac1f2d"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("b2848b041c3d11faa242")["default"])) /***/ }), /***/ "c5d0b24d31354944d275": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['domName', 's_url', 'f_url', 'showAd', 'jdadUrl', 'noCoupon', 'showJHS', 'fold'], methods: { openTab: function openTab() { __webpack_require__("d54879e983a83d07f093").openTab(); }, openLink: function openLink(url) { window.open(url); } } }; module.exports = exports['default']; /***/ }), /***/ "c63d814c7191dd3b04d2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['data', 'domclass', 'aliSite'] }; module.exports = exports['default']; /***/ }), /***/ "c64d350c279857581493": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return !_vm.closed ? _c("div", { staticClass: "gwd-qrlink", "class": _vm.tag === "pro_jd" ? "gwd-pro-jd" : "", 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 }, [_vm.dpId === "1-3" ? _c("img", { staticStyle: { width: "15px", position: "absolute", left: "-7px", top: "-7px", "z-index": "9" }, attrs: { src: "https://cdn.gwdang.com/plt_web/images/tb_double11/2019/red_envelope_close.png", alt: "" }, on: { click: _vm.close } }) : _vm._e(), _vm._v(" "), _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.transText("用")) + _vm._s(_vm.transText(_vm.site === "360buy" ? "京东" : "淘宝")) + "APP" + _vm._s(_vm.transText(_vm.mode && _vm.mode.includes("login") ? "扫码" + _vm.actionText : "扫码")))]), _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.transText(_vm.site === "360buy" ? "京东" : "淘宝")) + "APP")]), _vm._v(" "), _vm.mode ? _c("span", { staticClass: "normal", style: _vm.mode ? "font-size: 30px" : "font-size: 22px" }, [_vm._v(_vm._s(_vm.mode ? " " : "") + _vm._s(_vm.transText("扫码直接")) + _vm._s(_vm.transText(_vm.actionText.replace(",无需验证", ""))))]) : _vm._e(), _vm._v(" "), !_vm.mode ? _c("span", { staticClass: "normal" }, [_vm._v(_vm._s(_vm.transText("扫码")) + _vm._s(_vm.transText(_vm.site === "360buy" ? _vm.dpId === "1-3" ? "领优惠" : _vm.isButie ? "查看补贴" : "查看商品" : _vm.hasBuyButton ? "查看优惠" : "快捷购买")))]) : _vm._e()])]) : _vm._e()]), _vm._v(" "), !_vm.mode ? _c("span", { staticClass: "gwd-qr-hint" }, [_vm.isButie ? [_vm._v("扫码下拉详情领取补贴")] : [_vm._v(_vm._s(_vm.transText("在")) + _vm._s(_vm.transText(_vm.site === "360buy" ? "京东APP" : "手淘")) + _vm._s(_vm.transText("内")) + _vm._s(_vm.transText(_vm.site === "360buy" ? "浏览该商品" : _vm.hasBuyButton ? "查看优惠详情" : "快捷购买")))]], 2) : _vm._e()]) : _vm._e()]) : _vm._e(); }; var staticRenderFns = []; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "c687c749d090e6790a48": /***/ (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__("6a0e4ebb57bf6aac1f2d"))) /***/ }), /***/ "c6ab2da281c69d31f247": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return _c("table", { staticClass: "barTrendInfoBox gwd-mini-table", "class": { showcoudan: _vm.showcoudan }, staticStyle: { "margin-left": "30px", "margin-top": "12px", height: "48px", "box-sizing": "border-box", width: "unset" } }, [_c("tr", { staticClass: "orign-pri-info" }, [_vm.d1.nowprice ? _c("td", [_c("span", { staticClass: "opi-sp1 nowpri", staticStyle: { "margin-left": "10px" } }, [_vm._v("现价:")]), _vm._v(" "), _c("span", { staticClass: "opi-sp2 nowpri" }, [_vm._v(_vm._s(_vm.d1.display_nowprice))])]) : [_c("td", { staticStyle: { "vertical-align": "middle" } }, [_c("span", { staticClass: "opi-sp1" }, [_vm._v("最高:")]), _vm._v(" "), _c("span", { staticClass: "opi-sp2" }, [_vm._v(_vm._s(_vm.d1.display_Phighest))])]), _vm._v(" "), _c("td", { staticStyle: { "min-width": "400px", "vertical-align": "middle" } }, [_c("span", { staticClass: "opi-sp3", staticStyle: { "margin-left": "10px" }, domProps: { innerHTML: _vm._s(_vm.lowtle) } }), _vm._v(" "), _c("span", { staticClass: "opi-sp4" }, [_vm._v(_vm._s(_vm.d1.display_Plowest))]), _vm._v(" "), _c("span", { staticClass: "opi-sp5" }, [_vm._v(_vm._s(_vm.d1.lowestDate))]), _vm._v(" "), !_vm.d2 && !_vm.aliSite && _vm.promoUrl ? _c("a", { staticClass: "promo-history-link", attrs: { href: _vm.promoUrl, target: "_blank" } }, [_vm._v("历史促销明细>")]) : _vm._e()])]], 2), _vm._v(" "), _vm.d2 ? _c("tr", { staticClass: "promo-pri-info", staticStyle: { height: "auto" } }, [!_vm.d1.nowprice ? _c("td", { staticStyle: { "text-align": "center" } }, [_c("span", { staticClass: "ppi-sp1" })]) : _vm._e(), _vm._v(" "), _c("td", { staticStyle: { "min-width": "400px", "vertical-align": "middle" } }, [_c("span", { staticClass: "ppi-sp2", staticStyle: { "margin-left": "10px" } }, [_vm._v("最低(多 件):")]), _vm._v(" "), _c("span", { staticClass: "ppi-sp3" }, [_vm._v(_vm._s(_vm.d2.display_Plowest))]), _vm._v(" "), _c("span", { staticClass: "ppi-sp4" }, [_vm._v(_vm._s(_vm.d2.lowestDate))]), _vm._v(" "), _vm.promoUrl ? _c("a", { staticClass: "promo-history-link", attrs: { href: _vm.promoUrl, target: "_blank" } }, [_vm._v("历史促销明细>")]) : _vm._e()])]) : _vm._e()]); }; var staticRenderFns = []; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "c6f9e5cc4428b8077526": /***/ (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__("6f4c811ebd44cd52dd2c"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("c09a5ea2", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./Stamp.vue?vue&type=style&index=0&id=a70db998&scoped=true&lang=less", function() { var newContent = require("!!../../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./Stamp.vue?vue&type=style&index=0&id=a70db998&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "c72145693e59d4fc8fe3": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) {var __WEBPACK_AMD_DEFINE_RESULT__;/* * 豆瓣模块 * @version:0.0.1 * @author:CaoYuaYe(caoyuanye@139.com) * @since:2014-05-21 * */ !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var $ = __webpack_require__("e081b2491b5c9b12b9da"); var exports = {}; var taobaoCompare = __webpack_require__("12020911dbadcccd7660"), b2cCompare = __webpack_require__("3b20e893040e45bc8dd9"); function insertTop(data, isbn) { if (!data.rate) { return; } var average = data.rate; $(".gwd-topbar-left").append($("<a>", { 'style': 'height:36px', 'title': '豆瓣评分', 'id': 'douban-top', 'class': 'gwdang-tab', 'target': '_blank', 'href': "https://book.douban.com/subject/" + data.id + "/" }).append($("<span>", { 'class': 'douban-icon' })).append($("<span>", { 'style': 'color:#007610' }).append(average + "分"))); } function insertBottom(data, isbn) { if (!data.rate) { return; } var average = data.rate; $("." + G.extBrand + "-favor-module").eq(0).after($("<div>", { 'id': G.extBrand + "-douban", 'class': G.extBrand + "-close-module " + G.extBrand + "-desc re-" + G.extBrand + "-desc" }).append($("<a>", { 'id': 'goto_douban', 'title': "豆瓣评分", 'href': 'javascript:' }).append($("<div>", { 'class': G.extBrand + "and_douban_icon_bottom" })).append($("<div>", { 'class': G.extName + "_douban_text_bottom" }).append(average + "分")))); //这两个模块的需要设置一下偏移位置,因为插入的豆瓣占据了一定的空间 taobaoCompare.setBottomViewOffset(); b2cCompare.setBottomViewOffset(); } exports.show = function (isbn, type) { if (isbn == null || isbn == "") { return; } var request = __webpack_require__("91f250ebeb8d5987491c"); var url = G.server + "/extension/BookRate?isbn=" + isbn; request.getPure(url).then(function (msg) { if (type == "top") { insertTop(msg, isbn); } if (type == "bottom") { insertBottom(msg, isbn); } }); }; 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__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "c815d6a749e99fa1daa5": /***/ (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__("d54879e983a83d07f093"); 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:has(.listImg)', 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('house-trend-b')) { communityDom.hide(); dom.parent().find('span').removeClass('trend-choose'); dom.addClass('trend-choose'); } else if (dom.hasClass('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'); console.log('renderChart called'); getInfo(href, function (data) { console.log('data got'); __webpack_require__("034f9176860d52edf6c0")({ el: id, msg: data }); if (callback && data.community) { callback(); } }); }; var renderBtn = function renderBtn(data) { var html = __webpack_require__("9a1d8fd920014d612d00"); 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__("9a1d8fd920014d612d00"); 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) { console.log('getInfo', url); 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__("ec9c6b34a49d2c60bfe8"); $('body').append(template.compile(html)({ s_server: G.s_server, extBrand: G.extBrand })); $('body').addClass('house_' + pagesite); }; module.exports.init = function () { pagesite = G.site; if (pagesite != 'lianjia' && pagesite != '5i5j' && pagesite != 'centanet' && pagesite != 'ke' && pagesite != 'maitian') return; 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(); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "c89ffab6f504aa79e40d": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, "#gwdang-trend:hover {\n background: #edf1f2;\n}\n#gwdang-trend:hover #gwdang-trend-detail {\n display: block;\n}\n.gwdang-tab .top-bar-detail {\n display: none!important;\n}\n.gwdang-tab:hover .top-bar-detail {\n display: flex!important;\n}\n", ""]); // exports /***/ }), /***/ "c912948d535762b7172f": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, regeneratorRuntime, G) { var _this = this; var template = __webpack_require__("274e32dfd54a6b0d18a9"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var golbal2 = __webpack_require__("1c640a99db9f6f8a16c2"); var calWidth = __webpack_require__("54be372a53153922dc13"); var fuzzyPage; // let rateSite = { // '228': 'USD', // '229': 'JPY', // '238': 'USD', // '246': 'EUR' // } // let priceSite = { // '228': '$', // '238': '$', // '229': '日元', // '246': 'EUR' // } var globalInfo = {}; // const fixedPrice = (price) => { // if (!price) return price; // try { // let priarr = price.split('.'); // price = priarr[0].replace(',', ''); // if (Number(price) > 99999) { // price = priarr[0]; // } else { // price = priarr[0] + '.' + priarr[1]; // } // } catch (e) { // require('common/log')('b2cCompare:fixedPrice:error') // return price; // } // return price; // } // const transRate = (dp) => { // if (dp.price_rmb) return dp; // let parseprice = require('parseprice'); // if (!dp.dp_id) return dp; // let site_id = dp.dp_id.split('-')[1]; // let type = site_id && rateSite[site_id]; // if (!type) return dp; // let price2 = parseprice(dp.price, type) // let price3 = fixedPrice(dp.price); // if (site_id == '229') { // dp.price_rmb = price2 + `(${price3}${priceSite[site_id]})`; // } else { // dp.price_rmb = price2 + `(${priceSite[site_id]}${price3})`; // } // dp.price = price2; // return dp; // } // const editData = (data) => { // var len = data.store && data.store.length; // if (len && len > 0) { // for (let i = 0; i < len; i++) { // data.store[i].price = (Number(data.store[i].price) / 100).toFixed(2) // } // } // let len2 = data.product.length; // if (len) // data.store2 = data.store.slice(0, 6); // else // len = len2; // return len; // } var renderBtnTop = function renderBtnTop(price, isFuzzy) { var t = '商城'; if (isFuzzy) { t = '商城相似款'; } var html = __webpack_require__("86bd79d95549896902d6"); $('#b2c_compare').append(html({ store_tle: t, min_price: price })).css("display", "block"); }; var renderTopDetail = function renderTopDetail() { var widthObj, showListNum, turnpW, productW, dp_query, html, len, storeLen, pages; return regeneratorRuntime.async(function renderTopDetail$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: widthObj = calWidth.init(); showListNum = widthObj.b2cShowListNum; turnpW = widthObj.b2cTurnpW; productW = widthObj.b2cProductW; dp_query = userData.get('dp_query'); html = __webpack_require__("34940f6a02a4ac82b47c"); if (fuzzyPage) { html = __webpack_require__("2c1ea873863bf1e70ae3"); showListNum = widthObj.showListNum; turnpW = widthObj.turnpW; productW = widthObj.allProductW; } if (G.site && G.site.indexOf('amazon') > -1) turnpW = turnpW - 1; len = globalInfo['b2c_compare'].product.length; storeLen = globalInfo['b2c_compare'].store && globalInfo['b2c_compare'].store.length; pages = Math.ceil(len / showListNum); if (!len) { context$1$0.next = 14; break; } context$1$0.next = 14; return regeneratorRuntime.awrap(Promise.all(globalInfo['b2c_compare'].product.map(function (x) { return new Promise(function (resolve) { if (['8', '83', '123'].indexOf(x.site_id) > -1) { __webpack_require__("2eb8d6935e044e0d6d06").init(x.url_crc, '30001', function (data) { console.log('coupon data', data); if (data && data.data) { var couponVal = data.data.coupon.coupon_money; x.promotions = [{ type: 'coupon', text: couponVal + '元券' }]; x.coupon2 = [couponVal + '元券']; } resolve(); }); } else { resolve(); } }); }))); case 14: globalInfo['b2c_compare'].product = globalInfo['b2c_compare'].product.map(function (item) { var s = __webpack_require__("9bf6d059e9a265559f0c").getMoneyInfo(item.site_id); if (s) { item.unit = s[0]; } return item; }); $('#b2c_compare').append(html({ data: globalInfo['b2c_compare'], storeLen: storeLen, pages: pages, now_dp_id: dp_query.dp.dp_id, width: turnpW, imgLoad: G.imgLoad, productW: productW })); golbal2.loadImg(0, showListNum, $('#b2c-item-list li .small-img img')); //$('#b2c_compare').find('.top-bar-detail').show() if (G.site === 'suning') { $('#b2c_compare').on('click', 'a', function (e) { var url = $(this).attr('href'); if ($(this).find('.coupon_span')) return; if (url && url.indexOf('http') > -1) { window.open($(this).attr('href')); e.preventDefault(); } }); } case 18: case 'end': return context$1$0.stop(); } }, null, _this); }; var renderTop = function renderTop(data) { if (data && data.b2c && !(data.b2c instanceof Array)) { globalInfo['b2c_compare'] = data.b2c; if (Number(data.b2c.min_price) && data.b2c.store.length > 0 && data.b2c.product.length > 0) renderBtnTop(data.b2c.min_price); } else if (data && data.b2c_fuzzy && !(data.b2c_fuzzy instanceof Array) && data.b2c_fuzzy.product.length > 0) { globalInfo['b2c_compare'] = data.b2c_fuzzy; fuzzyPage = true; if (Number(data.b2c_fuzzy.min_price)) renderBtnTop(data.b2c_fuzzy.min_price, true); } }; var renderBottom = function renderBottom(data) { __webpack_require__("73e5d235bd431b446c03").init(data); }; module.exports.init = function (style, data) { if (G.aliSite) return; // 根据style决定加载顶部还是底部 if (style === 'top') { renderTop(data); } else { renderBottom(data); } }; module.exports.renderTopDetail = renderTopDetail; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("6a0e4ebb57bf6aac1f2d"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "c93f77716b87968cd991": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // 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-hover-bg {\n background: #fffbef;\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.gwd-scrollbar::-webkit-scrollbar {\n width: 6px;\n border-radius: 17px;\n}\n.gwd-scrollbar::-webkit-scrollbar-thumb {\n border-radius: 17px;\n background: #999;\n}\n#gwdang_main,\n.gwdang-main,\n.bjgext-detail {\n font-size: 12px;\n}\n#gwdang_main button,\n.gwdang-main button,\n.bjgext-detail button {\n text-align: center;\n}\n.gwd-width-100 {\n width: 100%;\n}\n.gwd-overlay {\n font-family: \"Microsoft YaHei\", \"Arial\", \"SimSun\", serif;\n font-size: 0;\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n background: rgba(0, 0, 0, 0.35);\n z-index: 999999999;\n}\n.gwd-hidden {\n display: none!important;\n}\n.gwd-topbar-right {\n /*display: flex;*/\n flex-direction: column;\n justify-content: flex-end;\n flex-wrap: nowrap;\n}\n#gwd_setting_div .gwd-hover-helper {\n content: '';\n position: absolute;\n top: -10px;\n left: 0;\n right: 0;\n height: 10px;\n}\n#gwd_setting_div {\n cursor: pointer;\n display: none;\n}\n#gwd_setting_div a:hover {\n color: #48befe !important;\n}\n#gwdang-banner-ad:hover {\n background: none;\n}\n.gwd-topbar-logo:hover #gwd_setting_div {\n display: block;\n}\n#gwdang-mini a:hover #gwd_setting_div {\n display: block;\n}\n#gwdang-main-nav a.gwd_logo {\n height: 30px!important;\n}\n", ""]); // exports /***/ }), /***/ "c9e01ad51ac6ceee72ea": /***/ (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_38276ded_scoped_true__ = __webpack_require__("b58a244bd3875bce64ed"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ProductItem_vue_vue_type_script_lang_js__ = __webpack_require__("8b17d07b04751133cc48"); /* 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_38276ded_scoped_true_lang_less__ = __webpack_require__("fa5a539bf3cda0ad5c88"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_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_38276ded_scoped_true__["render"], __WEBPACK_IMPORTED_MODULE_0__ProductItem_vue_vue_type_template_id_38276ded_scoped_true__["staticRenderFns"], false, null, "38276ded", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('38276ded')) { api.createRecord('38276ded', component.options) } else { api.reload('38276ded', component.options) } module.hot.accept("./ProductItem.vue?vue&type=template&id=38276ded&scoped=true", function () { api.rerender('38276ded', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/ImgSame/ProductItem.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "ca41f87e3478d1476166": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_template_id_673c66fa_scoped_true__ = __webpack_require__("c64d350c279857581493"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_template_id_673c66fa_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_template_id_673c66fa_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_template_id_673c66fa_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_template_id_673c66fa_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_template_id_673c66fa_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_template_id_673c66fa_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "cae84e5667e41452a15d": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var request = __webpack_require__("91f250ebeb8d5987491c"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var specialFilter = __webpack_require__("ce5673fceec6522bf6f5"); var calWidth = __webpack_require__("54be372a53153922dc13"); var replaceHref = __webpack_require__("dba9674cb89e2f226ce4"); module.exports.init = function (data) { if (G.save_tbres_data != null) { this.renderTbres(G.save_tbres_data); return; } var $this = this; var code_server = '1'; var msg = data.exact_arr; var code = data['code-server']; var price = data.now.price * 100; if (!price) { price = G.dp.price * 100; } if (!code) { code = {}; code_server = '0'; } var sitearr = ['amazon', '6pm', 'ebay']; if (sitearr.indexOf(G.site) > -1) { price = G.dp.price * 100; } /*日亚 美亚 德亚 在没有品牌的情况下 不请求淘宝客*/ if (G.site == 'amazon' && !msg.brand && data.now.site_id !== '1') return; G.dp.min_price = parseInt(G.dp.min_price * 100); G.dp.max_price = parseInt(G.dp.max_price * 100); var url = G.server + '/brwext/tbres?union=' + G.union + '&url=' + encodeURIComponent(msg.url) + '&site=' + msg.site + '&isbn=' + msg.isbn + '&keywords=' + encodeURIComponent(msg.keywords) + '&brand=' + encodeURIComponent(msg.brand) + '&type=' + encodeURIComponent(msg.type) + '&price=' + price + '&class_id=' + msg.class_id + '&name=' + encodeURIComponent(G.dp.name) + '&code_brand_id=' + code.brand_id + '&code_clean_title=' + encodeURIComponent(code.clean_title) + '&code_code=' + encodeURIComponent(code.code) + '&code_display_brand=' + encodeURIComponent(code.display_brand) + '&code_brand=' + encodeURIComponent(code.brand) + '&code_class_id=' + encodeURIComponent(code.class_id) + '&code_price=' + encodeURIComponent(code.price) + '&code_spec=' + encodeURIComponent(code.spec) + '&code-server=' + code_server; request.get(url).then(function (mm) { if (G.site == 'taobao' || G.site == 'tmall' || G.site == 'ai-taobao') { $this.getUniqPid(mm, function (mm) { G.save_tbres_data = mm; $this.renderTbres(mm); }); } else { $this.getImgSearch(mm, function (mm) { G.save_tbres_data = mm; $this.renderTbres(mm); }); } }).fail(function () { if (G.style == 'right') { $('#plt-tmall-block').hide(); $('#plt-taobao-block').hide(); } }); }; module.exports.renderTbres = function (mm) { __webpack_require__("b8226e22112290600083").init(mm.tmall.product, 'tmall'); __webpack_require__("b8226e22112290600083").init(mm.taobao.product, 'taobao'); mm.tmall = specialFilter.tb(mm.tmall); mm.taobao = specialFilter.tb(mm.taobao); if (G.style == 'top') { this.show_taobao_products_top(mm); G.fixWidth(); } }; module.exports.show_taobao_products_top = function (data) { //tmall // from_self 如果为true 说明是用的我们自己的数据, 这个时候销量就是全部的销量 需要改一下。 var widthObj = calWidth.init(); var sale_tle = "最近销量"; if (data.from_self === true) sale_tle = "总销量"; if (G.lang === 'en') { sale_tle = 'Sales: '; } var tmhtml = __webpack_require__("503933f10716083fddfd"); if (typeof data.tmall.min_price != 'undefined' && data.tmall.min_price !== null) { if (data.search.is_exact == 0 && G.site.indexOf('taobao') >= 0) { var html = $('#' + G.extName + '-tmall-dp').html(); html = html.replace(/\u5929\u732b/ig, '天猫相似款'); $('#' + G.extName + '-tmall-dp').html(html); } replaceHref.init('tmall', data.tmall.product, '&column=b2c'); $('#' + G.extName + '-tmall-dp .gwd-price').html('¥' + data.tmall.min_price); $('#' + G.extName + '-tmall-dp').show(); $('#' + G.extName + '-tmall-dp-detail').append(template.compile(tmhtml)({ data: data.tmall.product, s_server: G.s_server, width: widthObj.turnpW, link: data.tmall.more_link, sale_tle: sale_tle, allProductW: widthObj.allProductW })); $('#tmall-prev-page').click(function () { G.change_page('tmall', -1); }); $('#tmall-next-page').click(function () { G.change_page('tmall', 1); }); } //taobao if (typeof data.taobao.min_price != 'undefined' && data.taobao.min_price !== null) { if (data.search.is_exact == 0 && G.site.indexOf('taobao') >= 0) { var html = $('#' + G.extName + '-taobao-dp').html(); html = html.replace(/\u6dd8\u5b9d/ig, '淘宝相似款'); $('#' + G.extName + '-taobao-dp').html(html); } var tbhtml = __webpack_require__("8a0927a3ad9eaa0e7f96"); replaceHref.init('taobao', data.taobao.product, '&column=b2c'); $('#' + G.extName + '-taobao-dp .gwd-price').html('¥' + data.taobao.min_price); $('#' + G.extName + '-taobao-dp').show(); $('#' + G.extName + '-taobao-dp-detail').append(template.compile(tbhtml)({ data: data.taobao.product, s_server: G.s_server, width: widthObj.turnpW, link: data.taobao.more_link, allProductW: widthObj.allProductW })); $('#taobao-prev-page').click(function () { G.change_page('taobao', -1); }); $('#taobao-next-page').click(function () { G.change_page('taobao', 1); }); } /*if (data.search.keywords == '') { data.search.keywords = G.dp.name; }*/ if (G.site === 'vipshop') { $('#' + G.extName + '-search-product').val(G.dp.cat_name || G.save_dp_query.now.coreword); } else { if (data.search.keywords == '' && G.dp.isbn != '') { $('#' + G.extName + '-search-product').val(G.dp.isbn); } if (data.search.keywords != '') { $('#' + G.extName + '-search-product').val(data.search.keywords); } } G.init_item_list('tmall'); G.set_item_args('tmall'); G.set_page_args('tmall'); G.load_image('tmall', 0, G.page_size); G.init_item_list('taobao'); G.set_item_args('taobao'); G.set_page_args('taobao'); G.load_image('taobao', 0, G.page_size); }; module.exports.getImgSearch = function (msg, callback) { var buildTaobaoUrl = __webpack_require__("cc45d932d8dbdb86f2f3"); msg = buildTaobaoUrl.buildCommon(msg); if (G.btype == 'luyou') { callback(msg); return; } var dataShare = __webpack_require__("cde79cb5670e8bdeb4fb"); var brandId = dataShare.get('dp_data') && dataShare.get('dp_data')['exact_arr']['brand_id']; if (G.site == '360buy' && brandId && (!msg.taobao.sort || !msg.tmall.sort)) { // 在京东有brand 有比价结果的情况下, 不走图片检索 callback(msg); return; } __webpack_require__("ff881c8b15091819a13e").init(function (data) { if (data) { if (msg.tmall.sort) msg.tmall = {}; if (data.tmall.length > 0) { msg.tmall.min_price = data.tmall[0].price; msg.tmall.max_price = data.tmall[data.tmall.length - 1].price; msg.tmall.store = data.tmall; msg.tmall.product = data.tmall; } if (data.taobao.length > 0) { msg.taobao.product = data.taobao; msg.taobao.store = data.taobao; msg.taobao.min_price = data.taobao[0].price; msg.taobao.max_price = data.taobao[data.taobao.length - 1].price; } if (!msg.tmall.more_link) msg.tmall.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union; if (!msg.taobao.more_link) msg.taobao.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union; callback(msg); } else { callback(msg); } }); }; module.exports.getUniqPid = function (msg, callback) { var buildTaobaoUrl = __webpack_require__("cc45d932d8dbdb86f2f3"); msg = buildTaobaoUrl.buildCommon(msg); if (G.btype == 'luyou') { callback(msg); return; } __webpack_require__("75d41ad7d5a1bceb52d2").getTaobaouniqData(function (data) { if (data) { if (msg.tmall.sort) msg.tmall = {}; if (data.tmall.length > 0) { msg.tmall.min_price = data.tmall[0].price; msg.tmall.max_price = data.tmall[data.tmall.length - 1].price; msg.tmall.store = data.tmall; msg.tmall.product = data.tmall; } if (data.taobao.length > 0) { msg.taobao.product = data.taobao; msg.taobao.store = data.taobao; msg.taobao.min_price = data.taobao[0].price; msg.taobao.max_price = data.taobao[data.taobao.length - 1].price; } if (!msg.tmall.more_link) msg.tmall.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union; if (!msg.taobao.more_link) msg.taobao.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union; callback(msg); } else { callback(msg); } }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "cb0dfe1e02b8c7145c67": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; 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; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "cb220d1428c0f3944af1": /***/ (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 _CouponArrow = __webpack_require__("9edc88f739fb33f2c091"); var _CouponArrow2 = _interopRequireDefault(_CouponArrow); var _commonComponentsQrError = __webpack_require__("d57cd728628c618acba9"); var _commonComponentsQrError2 = _interopRequireDefault(_commonComponentsQrError); var _WidgetsStamp = __webpack_require__("69f5719fde0c1382bdeb"); var _WidgetsStamp2 = _interopRequireDefault(_WidgetsStamp); var getQRCode = __webpack_require__("657bad1e7f3b602f7d70"); exports['default'] = { props: ['type', // link, qr, 'href', 'text', 'icon', 'mainColor', 'secondColor', 'takeBg', 'couponValue', 'qrParams', 'qrTitle', 'qrUrl', 'rebate', 'stamp'], components: { CouponArrow: _CouponArrow2['default'], QRError: _commonComponentsQrError2['default'], Stamp: _WidgetsStamp2['default'] }, data: function data() { return { loading: false, error: false, actualQr: '', showStampBg: true }; }, computed: { alterHref: function alterHref() { return __webpack_require__("4733a3dd803685ec596a").appendTbInfoForUrl(this.href); } }, mounted: function mounted() { if (G.aliSite) { this.addScrollLink(); } if (this.stamp) { this.showStampBg = true; } }, methods: { addScrollLink: function addScrollLink() { return regeneratorRuntime.async(function addScrollLink$(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__("9c38beef5ff283e15bd2").met('butie')); case 2: setTimeout(function () { __webpack_require__("44239e28538215cb3189").add(_this.text, _this.icon, __webpack_require__("4733a3dd803685ec596a").appendTbInfoForUrl(_this.href), _this.mainColor, _this.secondColor, _this.showStampBg, _this.rebate); }, 300); case 3: case 'end': return context$1$0.stop(); } }, null, this); }, over: function over() { var _this2 = 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) { _this2.loading = false; if (res[0].etag) { _this2.error = true; } else { _this2.error = false; _this2.actualQr = res[0].imgSrc; } }); } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("6a0e4ebb57bf6aac1f2d"))) /***/ }), /***/ "cb996c094663b5eaf1c4": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return _vm.show ? _c("div", { staticClass: "gwd-qr-content", style: _vm.cstyle }, [_c("img", { staticStyle: { width: "125px", height: "125px", "margin-top": "12px" }, style: "visibility: " + (_vm.qr ? "visible" : "hidden"), attrs: { src: _vm.qr, alt: "" } }), _vm._v(" "), _c("span", { staticStyle: { "margin-top": "4px", "font-size": "12px", color: "#404547" } }, [_vm._v("扫码下拉详情页领取补贴")])]) : _vm._e(); }; var staticRenderFns = []; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "cbea4eed9d508fc276d9": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_style_index_0_id_74d4d45d_scoped_true_lang_less__ = __webpack_require__("a5fd759442b29318429a"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_style_index_0_id_74d4d45d_scoped_true_lang_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_style_index_0_id_74d4d45d_scoped_true_lang_less__); /* unused harmony reexport namespace */ /***/ }), /***/ "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.lang === 'zh-tr') { txt1 = '當前商品點擊領券立減' + d.coupon + '元'; txt2 = '¥' + d.coupon + ' 優惠券'; } if (mode === 'promoPage') { $('a[data-sku=' + key + ']:eq(0)').css('position', 'relative').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__("6a0e4ebb57bf6aac1f2d"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "ccf42687b0eb46d3c033": /***/ (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__("7b1eeb8df60301633e3b"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("2740f007", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@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/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./QRLinkLeft.vue?vue&type=style&index=0&id=b671e2be&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "ccfbf89f771271ffbc52": /***/ (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__("2d50d6936e965843625b"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("1ecd3cc6", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./CollectionSettingTop.vue?vue&type=style&index=1&id=3f03717c&scoped=true&lang=less", function() { var newContent = require("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./CollectionSettingTop.vue?vue&type=style&index=1&id=3f03717c&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "cd3db2b4c92557e798b9": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_style_index_1_id_3f03717c_scoped_true_lang_less__ = __webpack_require__("ccfbf89f771271ffbc52"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_style_index_1_id_3f03717c_scoped_true_lang_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_style_index_1_id_3f03717c_scoped_true_lang_less__); /* unused harmony reexport namespace */ /***/ }), /***/ "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"))) /***/ }), /***/ "d0de61a729123238553b": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(Highcharts, G, $, Vue, regeneratorRuntime) {var __WEBPACK_AMD_DEFINE_RESULT__; var _this = this; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var _commonComponentsDataUpdateMixin = __webpack_require__("b0416cea879879b2e0ae"); var _commonComponentsDataUpdateMixin2 = _interopRequireDefault(_commonComponentsDataUpdateMixin); var _componentsPriceTrendBarTrendInfo = __webpack_require__("ae7101d5fa1205e4d9e1"); var _componentsPriceTrendBarTrendInfo2 = _interopRequireDefault(_componentsPriceTrendBarTrendInfo); var _jQuery = __webpack_require__("e081b2491b5c9b12b9da"); var _jQuery2 = _interopRequireDefault(_jQuery); var _util = __webpack_require__("d54879e983a83d07f093"); var _util2 = _interopRequireDefault(_util); var _commonGlobalCondition = __webpack_require__("9c38beef5ff283e15bd2"); var _commonGlobalCondition2 = _interopRequireDefault(_commonGlobalCondition); var timeUtil = __webpack_require__("6868b03b94b90a856624"); var extConsole = __webpack_require__("316f9c352c6202560d16"); !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var today = new Date(); var chart = undefined; var renderedComponents = {}; var viewTest = __webpack_require__("b9b38f5237f258d1109f"); var parsePrice = __webpack_require__("cb0906562effcf1b0e6c"); var getMidDay = __webpack_require__("f86fbf95570d4916afe7"); var $ = __webpack_require__("e081b2491b5c9b12b9da"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var util = __webpack_require__("d54879e983a83d07f093"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var countryConfig = __webpack_require__("9bf6d059e9a265559f0c"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); var chartBox = "#biggraph_chrome"; var oneDay = 3600 * 24 * 1000; var needFold = false; var foldValue = undefined; // 折叠后的原价线Y轴坐标 var foldChange = undefined; // Y轴坐标与实际原价之差 var coudanSeries = undefined; var toolTipDom = undefined, moneyInfo = undefined; var discountInfo = {}, discountInfo2 = {}; var nopuzzlePpromo = undefined, lowHighInfoObj = {}, hideCoudanManage = {}; var noTbTrend = undefined; var halfYearExist = false; // highcharts的tooltip并没有消失时的onHide选项,给它加上 Highcharts.wrap(Highcharts.Tooltip.prototype, 'hide', function (proceed) { proceed && proceed.apply && proceed.apply(this); this.chart.tooltip.options.onHide && this.chart.tooltip.options.onHide.apply && this.chart.tooltip.options.onHide.apply(this); }); var currentSymbol = { folded: 'smallRect', extended: 'rect' }; if (G.IE7 || G.IE8) { currentSymbol.folded = 'circle'; currentSymbol.extended = 'circle'; } var currentShowing = 'plotAll'; var showingCenter = false; // 控制商城的显示 var showingManager = (function () { var showList = []; return { inList: function inList(name) { return showList.indexOf(name) > -1; }, add: function add(name) { if (showList.indexOf(name) > -1) { return; } else { showList.push(name); } }, remove: function remove(name) { var pos = showList.indexOf(name); if (pos > -1) { showList.splice(pos, 1); } }, clear: function clear() { showList = []; } }; })(); // 用于为商城分配颜色 var generateColorForStore = (function () { var colorList = {}; colorList['评论数'] = '#ca60a6'; var availableColors = ['#5ACFFB', '#eb46eb', '#ffad06', '#21c1db', '#b88ae6', '#b37036', '#b9db0f', '#ffd91c']; var i = 0; return function (storeName) { if (colorList[storeName]) { return colorList[storeName]; } else { if (i < availableColors.length) { colorList[storeName] = availableColors[i++]; return colorList[storeName]; } else { colorList[storeName] = '#' + parseInt(Math.random() * 256 * 256 * 256).toString(16); return colorList[storeName]; } } }; })(); // qrcode log var doLog = (function () { var hasLogged = false; return function () { if (!hasLogged) { hasLogged = true; cnzz.log('trend-qrcode-show'); log('trend-qrcode-show'); } }; })(); var copy = function copy(origin) { return JSON.parse(JSON.stringify(origin)); }; var originPrice = 0; var showHour = false; var store = undefined; var currentTime = undefined; var originData = undefined; var currentLineShowing = undefined; var plotWidth = undefined; originPrice = __webpack_require__("5632ccfc7463a4bc9012"); // 原始的价格数据大多是一天一个数据的,但是如果数据点过少,鼠标滑动时就会有卡顿感,因此绘制走势图时需要增大数据点的数目 // 填充好数据后,由于走势图上的点是连续的,和原始数据并不一致 // 例如3天的价格分别为1、2、3,走势图上第一天和第二天之间的数据为1.5,但是实际上并不存在这个价格,鼠标移到该位置时在tooltip中应该显示为1 // 此函数用于从实际走势图中的位置找到对应的原始价格 var getNearestPriceFromOriginData = function getNearestPriceFromOriginData(name, price, position, time) { var store = originData.store.filter(function (i) { return i.name === name; })[0]; if (store == undefined) { return price; } var arr = store[currentLineShowing]; if (!arr) { return price; } if (!store.all_equal_short && currentLineShowing !== 'short_day_line' && time) { var _ret = (function () { 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); // firstDay = new Date(firstDay.getYear() + 1900, firstDay.getMonth(), firstDay.getDate()); // days = time - firstDay.getTime(); var everyDayPrice = {}; arr.forEach(function (i, idx) { everyDayPrice[timeUtil.localeDateString(firstDay + idx * oneDay)] = i; }); // return arr[parseInt(days / oneDay)]; return { v: everyDayPrice[timeUtil.localeDateString(time)] }; })(); if (typeof _ret === "object") return _ret.v; } //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: 0 } }); // Highcharts选项 var obj = { chart: { renderTo: "plotArea_chrome", type: 'line', animation: false, marginRight: 290, marginLeft: 70, events: { load: function load() { var firstSeries = this.series[0]; var pointStart = this.xAxis[0].max - oneDay * 5; if (firstSeries.options.pointStart > pointStart) { pointStart = firstSeries.options.pointStart; } var waterMarkSrc = showingCenter ? 'https://cdn.gwdang.com/images/extensions/logoMarkBigCenter@2x.png' : 'https://cdn.gwdang.com/images/extensions/logoMarkBigTop@2x.png'; var img = this.renderer.image(waterMarkSrc, '50%', this.xAxis[0].top + 45, showingCenter ? 210 : 300, showingCenter ? 64 : 91); img.add(); if (showingCenter) { img.attr({ transform: 'translate(-80, 0)' }); } else { img.attr({ transform: 'translate(-150, 0)' }); } var series = this.series; // 让一个外部变量可访问,方便控制显示隐藏 if (series && series[1] && series[1].name === '凑单到手价') { coudanSeries = series[1]; } plotWidth = this.plotWidth; var theData = series[0].data; // theData.forEach((i) => { // if (i.y !== originPrice) { // originSeriesShouldShow = true; // } // }); var days = 0; switch (currentShowing) { case 'plotYear': days = 180; break; case 'plotMonth': days = 30; break; case 'plot5Day': days = 5; break; } if (currentShowing !== 'plotAll' && !showingCenter) { this.xAxis[0].update({ min: currentTime - days * oneDay, max: currentTime }); } var currentShowingSeries = series.filter(function (item) { return item.visible && item.name !== 'max' && item.name !== 'min'; }); if (currentShowingSeries.length === 0) { return; } var arr = currentShowingSeries.map(function (i) { return i.options.pointStart; }).filter(function (i) { return i; }); var minStart = Math.min.apply(null, arr); if (currentShowing !== 'plotAll' && !showingCenter) { minStart = currentTime - days * oneDay; } for (var i = 0; i < series.length; i++) { if (series[i].data.length) { theData = series[i].data; break; } } var lastPoint = theData[theData.length - 1]; this.xAxis[0].update({ min: minStart, max: lastPoint ? lastPoint.x : today.getTime() }); var lmin = undefined, lmax = undefined; lmin = Math.floor(this.yAxis[0].dataMin); lmax = Math.ceil(this.yAxis[0].dataMax); var interv2 = Math.pow(10, lmin.toString().length - 2); var tkinterv = undefined; if (this.yAxis[0].dataMax < 1) { lmin = this.yAxis[0].dataMin; lmax = this.yAxis[0].dataMax; tkinterv = (lmax - lmin) / 2; } else if (this.yAxis[0].dataMin === this.yAxis[0].dataMax) { lmin = Math.floor(lmin / interv2) * interv2; lmax = lmin * 2; lmin = 0; tkinterv = parseInt((lmax - lmin) / 2); } else { lmin = Math.floor(lmin / interv2) * interv2; lmax = Math.ceil(lmax / interv2) * interv2; tkinterv = parseInt((lmax - lmin) / 5); } // 调整最大最小值 使曲线看起来分布均匀 var tkinterv2 = Math.pow(10, parseInt(tkinterv).toString().length - 1); if (tkinterv < 1) { tkinterv2 = tkinterv; } tkinterv = Math.ceil(tkinterv / tkinterv2) * tkinterv2; this.yAxis[0].update({ min: lmin, max: lmax, tickInterval: tkinterv || 1 }); // if (this.yAxis.length > 1) { // if (this.yAxis[0].dataMin == this.yAxis[0].dataMax) { // let interv = parseInt(this.yAxis[0].dataMin * 0.2); // if (interv > 100) { // interv = Math.round(interv / 100) * 100 // } // this.yAxis[0].update({ // min: parseInt(this.yAxis[0].dataMin * 0.5), // max: parseInt(this.yAxis[0].dataMin * 1.5), // tickInterval: interv // }); // } // this.yAxis[1].update({ // min: this.yAxis[1].dataMin, // max: this.yAxis[1].dataMax, // tickInterval: parseInt(this.yAxis[1].dataMax / 5) || 1 // }); // this.xAxis[0].update({ // min: this.series[1].data[0].category // }); // } } } }, credits: { enabled: false }, title: { text: null, style: { fontWeight: 'bold', fontFamily: 'Microsoft YaHei', fontSize: 16 } }, xAxis: { offset: 0, type: 'datetime', dateTimeLabelFormats: { minute: '%m/%d', hour: '%m/%d', day: '%m/%d', week: '%m/%d', month: '%y/%m' }, crosshair: { dashStyle: 'ShortDash', snap: false, zIndex: 999, color: '#444' }, minorGridLineColor: '#dfdfdf', labels: { rotation: 0, y: 30, style: { fontSize: '12px', fontFamily: 'Helvetica', color: '#969899' }, align: 'center' }, gridLineColor: '#e6e9eb', lineColor: '#e6e9eb', gridLineWidth: 1, tickLength: 0, minTickInterval: oneDay, startOnTick: false, tickPositioner: function tickPositioner() { var positions = []; var min = this.min; var max = this.max; var minDate = new Date(min); var tick = 0; var mode = undefined; var months = 1; if (max - min > 300 * oneDay) { var s = new Date(1900 + minDate.getYear(), minDate.getMonth() + 1, 2); tick = s.getTime(); var widthPerMonth = plotWidth / ((max - min) / (30 * oneDay)); if (!widthPerMonth) return; while (months * widthPerMonth < 100) { months++; } mode = 'nmonth'; } else if (max - min > 64 * oneDay) { var s = new Date(1900 + minDate.getYear(), minDate.getMonth() + 1, 2); tick = s.getTime(); mode = 'month'; } else if (max - min > 10 * oneDay) { tick = min; mode = 'day'; } else { var s = new Date(1900 + minDate.getYear(), minDate.getMonth(), minDate.getDate() + 1); tick = s.getTime(); mode = 'hour'; } while (tick - 3600000 * 15 <= max) { positions.push(tick - 3600000 * 15); switch (mode) { case 'month': var s = new Date(tick); var s1 = new Date(1900 + s.getYear(), s.getMonth() + 1, 2); tick = s1.getTime(); break; case 'day': tick += 5 * oneDay; break; case 'hour': tick += oneDay; break; case 'nmonth': s = new Date(tick); s1 = new Date(1900 + s.getYear(), s.getMonth() + months, 2); tick = s1.getTime(); break; } } if (showingCenter) { var i = 0; while (positions[i] < this.min) i++; positions = [positions[i], positions[positions.length - 1]]; } switch (mode) { case 'month': case 'nmonth': positions.info = { unitName: 'month', higherRanks: {} }; break; default: positions.info = { unitName: 'day', higherRanks: {} }; } // positions.forEach((i) => { // // }); return positions; } }, yAxis: { offset: 0, labels: { align: 'right', style: { fontSize: '12px', fontFamily: 'Helvetica', color: '#969899' }, formatter: function formatter() { var valStr = undefined; if (!needFold || this.value < foldValue) { valStr = Highcharts.numberFormat(this.value, 2); } else { valStr = Highcharts.numberFormat(this.value + foldChange, 2); } // if (valStr[valStr.length - 1] === '.') { // valStr += '00'; // } valStr = valStr.replace(',', ''); if (Number(valStr) > 9999) { valStr = Number(valStr); } else if (Number(valStr) > 10) { valStr = parseInt(valStr); } var min = this.axis.tickPositions[0]; if (this.axis.tickInterval === 1 && min === parseInt(min)) { valStr = valStr.toString().replace('.00', ''); } // let valNum = Number(valStr.replace(/,/g, '')) // if (valNum/100000 > 1) { // valStr = valNum/10000 + '万' // } return valStr; } }, align: 'high', gridLineColor: '#e6e9eb', minorGridLineWidth: 0, title: { text: null, rotation: 0, y: -20, x: -13, align: 'high', offset: 0, style: { fontFamily: 'Microsoft YaHei', fontSize: 12, color: '#969899' } } }, legend: { enabled: false }, plotOptions: { series: { turboThreshold: 0, states: { hover: { enabled: true, halo: { size: 0 } } }, marker: { enabled: false }, dataGrouping: { enabled: false }, animation: false }, line: { states: { hover: { enabled: true, lineWidth: 1 } } } }, tooltip: { shadow: false, shared: true, valueSuffix: '元', hideDelay: 0, shape: 'square', followPointer: false, dateTimeLabelFormats: { day: '%Y/%m/%e', minute: '%Y/%m/%e', second: '%Y/%m/%e', hour: '%Y/%m/%e %H:%M' }, useHTML: true, positioner: function positioner(boxWidth, boxHeight, point) { if (point.plotX + boxWidth > this.chart.plotWidth + 12) { return { x: point.plotX - boxWidth + this.chart.plotLeft, y: this.chart.plotHeight / 2 - boxHeight / 2 + 45 }; } return { x: point.plotX + this.chart.plotLeft, y: this.chart.plotHeight / 2 - boxHeight / 2 + 45 }; }, onHide: function onHide() { renderTooltip('hide'); }, formatter: function formatter() { var tipObj = {}; tipObj.x = this.x; var x = new Date(this.x); 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); 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[timeUtil.localeDateString(this.points[0].x)]; 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) { __webpack_require__("316f9c352c6202560d16").log('noTbTrend'); var time = util.getTimeNumber(new Date().getTime(), '5'); // 不用highchart默认的tooltip 使用自定义的 if (timeStr === time) { __webpack_require__("316f9c352c6202560d16").log('noTbTrend A'); renderTooltip(null, tipObj); } else { __webpack_require__("316f9c352c6202560d16").log('noTbTrend B'); renderTooltip('hide'); } } else { renderTooltip(null, tipObj); } }, 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 lastShow = Date.now(); var showSeries = function showSeries(series, isCenter, obj, minibar) { if (isCenter === undefined) isCenter = false; var t = Date.now(); if (t - lastShow < 100) { return; } lastShow = t; if (!seriesList[series] || !seriesList[series].length) { var k = Object.keys(seriesList).filter(function (x) { return seriesList[x].length; }); series = k[0]; } $('#gwd-topText').hide(); $('.gwd-blurLayer').removeClass('gwd-blurLayer'); var series2 = series; showingCenter = isCenter; if (hideCoudanManage && hideCoudanManage[series]) { $('#mini_price_history_detail_btn').addClass('no-review'); $('.discount-price-re').hide(); $('#bar_trend_legend_btn').addClass('no-review'); } else if (hideCoudanManage) { $('#mini_price_history_detail_btn').removeClass('no-review'); $('.discount-price-re').show(); $('#bar_trend_legend_btn').removeClass('no-review'); } if (series === 'center') { series = 'plotAll'; } if (series !== 'days180') { // 加载概况 最高最低等信息 renderBarTrendInfo(series); } obj.series = seriesList[series]; if (series === 'days180') series = 'plotAll'; $('.floatButtons>a').removeClass('activePlot'); $('.floatButtons>#' + series).addClass('activePlot'); //new Highcharts.Chart(obj); var theSeries = seriesList[series2]; if (series === 'plot5Day') { setXAxisMinInterval(oneDay); showHour = true; currentLineShowing = 'short_day_line'; } else { showHour = false; } if (series === 'plotMonth') { setXAxisMinInterval(5 * oneDay); currentLineShowing = 'month_line'; } $('.gwd-not-login').removeClass('gwd-not-login'); if (series === 'plotAll') { if (minibar) { obj.chart.marginBottom = 23; } var dayLength = Math.max.apply(null, theSeries.map(function (i) { return i.data.length; })); if (!G.email) { // $('.max-min-priinfo').addClass('gwd-not-login') $('.barTrendInfoBox').addClass('gwd-not-login'); } else { $('.gwd-not-login').removeClass('gwd-not-login'); } //在非淘宝天猫网站上,如果全部的时间超过180天,需要登陆 if (store[0].half_year_line) { halfYearExist = true; } if (G.site !== 'tmall' && G.site !== 'taobao' && halfYearExist) { if (theSeries[0].pointStart < new Date().getTime() - 180 * 24 * 3600000 && !G.userLogin) { (function () { $('#gwd-topText').show(); if (__webpack_require__("2517c4f5c89f34233e53").getChromeVersion() < 53) { $('#gwd-topText').css('background', 'white'); } var LoginBox = __webpack_require__("2d53f53e0179317f1fdf")["default"]; new Vue({ el: '#gwd-trend-login', render: function render(h) { return h(LoginBox); } }); $("#plotArea_chrome").addClass('gwd-blurLayer'); })(); } } if (dayLength > 30) { setXAxisMinInterval(30 * oneDay); } else if (dayLength > 5) { setXAxisMinInterval(5 * oneDay); } else { setXAxisMinInterval(oneDay); } currentLineShowing = 'all_line'; if (store[0].all_equal_short || store[0].all_line.length < 5 && store.length == 1) { currentLineShowing = 'short_day_line'; showHour = true; if (store[0].all_line.length < 5 && store.length == 1) { obj.series[0].pointStart = today.getTime() + 8 * 3600000 - (store[0].all_line.length - 1) * oneDay; } } } if (series === 'plotYear') { setXAxisMinInterval(30 * oneDay); currentLineShowing = 'half_year_line'; } if (isCenter) { //currentShowing = 'center'; } else { currentShowing = series; } chart = new Highcharts.Chart(obj); window.gwd_chart = chart; if (isCenter) { var s = chart.series[0].data; var lastPoint = s[s.length - 1]; if (chart.series.length > 1) { s = chart.series[1].data; if (s[s.length - 1].plotX === lastPoint.plotX && s[s.length - 1].plotY !== lastPoint.plotY) { lastPoint = s[s.length - 1]; } } __webpack_require__("316f9c352c6202560d16").log(lastPoint); if (lastPoint.y) { globalCondition.setMet('lastPointPos', lastPoint); } } }; var enablePlot = function enablePlot(plotName) { $('.floatButtons>' + plotName).removeClass('bjd-hidden'); }; var doBind = function doBind() { $('.floatButtons').on('click', 'a', function (e) { showSeries(e.target.id, false, util.deepCopy(obj)); }); }; var doMainBind = function doMainBind() { var hidecoudanBar = undefined; $('#bar_trend_legend_btn').on('click', function (e) { var id = $(e.target).attr('data-id'); if (!id) id = $(e.target).parent().attr('data-id'); if (id === 'plotSpecial') { if (!hidecoudanBar) { hidecoudanBar = true; coudanSeries.hide(); $('#bar_trend_legend_btn').addClass('hideserires'); } else { coudanSeries.show(); hidecoudanBar = false; $('#bar_trend_legend_btn').removeClass('hideserires'); } } }); }; var doMiniBind = function doMiniBind() { var hidecoudan = undefined; $('#mini_price_history_detail_btn').on('click', function (e) { var id = $(e.target).attr('data-id'); if (!id) id = $(e.target).parent().attr('data-id'); if (id === 'plotSpecial') { if (!hidecoudan) { hidecoudan = true; coudanSeries.hide(); $('#mini_price_history_detail_btn').addClass('hideserires'); } else { coudanSeries.show(); hidecoudan = false; $('#mini_price_history_detail_btn').removeClass('hideserires'); } } }); }; var resetData = function resetData(i) { return { y: i, marker: { enabled: false } }; }; // 加载价格走势最高最低信息 var BarTrendInfo = __webpack_require__("ae7101d5fa1205e4d9e1")["default"]; var barTrendComp = null; var renderBarTrendInfo = function renderBarTrendInfo(series) { var showcoudan = undefined; var obj1 = lowHighInfoObj[series + '0']; if (!obj1) { obj1 = Object.keys(lowHighInfoObj)[0]; obj1 = lowHighInfoObj[obj1]; } if (typeof obj1.lowestDate === 'number') obj1.lowestDate = util.getTimeNumber(obj1.lowestDate); var obj2 = lowHighInfoObj[series + '1']; if (obj2) { if (obj2.Plowest < obj1.Plowest) showcoudan = true; if (typeof obj2.lowestDate === 'number') obj2.lowestDate = util.getTimeNumber(obj2.lowestDate); if (moneyInfo) { obj2.display_nowprice = obj2.nowprice ? moneyInfo[0] + obj2.nowprice : obj2.nowprice; obj2.display_Phighest = obj2.Phighest ? moneyInfo[0] + obj2.Phighest : obj2.Phighest; obj2.display_Plowest = obj2.Plowest ? moneyInfo[0] + obj2.Plowest : obj2.Plowest; } else { obj2.display_nowprice = '¥' + obj2.nowprice; obj2.display_Phighest = '¥' + obj2.Phighest; obj2.display_Plowest = '¥' + obj2.Plowest; } } if (moneyInfo) { obj1.display_nowprice = obj1.nowprice ? moneyInfo[0] + obj1.nowprice : obj1.nowprice; obj1.display_Phighest = obj1.Phighest ? moneyInfo[0] + obj1.Phighest : obj1.Phighest; obj1.display_Plowest = obj1.Plowest ? moneyInfo[0] + obj1.Plowest : obj1.Plowest; } else { obj1.display_nowprice = '¥' + obj1.nowprice; obj1.display_Phighest = '¥' + obj1.Phighest; obj1.display_Plowest = '¥' + obj1.Plowest; } var lowtle = "最低(单 件):"; // if (G.aliSite) { // lowtle = `最低:`; // } else if (!hideCoudanManage || !obj2) { // lowtle = `最低(单件):`; // } var oinfo = userData.get('other_info'); var dp_id = oinfo && oinfo.now && oinfo.now.dp_id; var promoUrl = undefined; if (dp_id) { promoUrl = "https://www.gwdang.com/trend/" + dp_id + ".html?static=true"; } if (obj1 && obj2 && obj1.Plowest === obj2.Plowest && obj1.lowestDate === obj2.lowestDate) { obj2 = null; } if (!G.h_nopuzzle_promo) { promoUrl = null; } var data = { d1: obj1, d2: obj2, aliSite: G.aliSite, promoUrl: promoUrl, lowtle: lowtle, showcoudan: showcoudan }; if (!$('.barTrendInfoBox').length) { var el = document.createElement('DIV'); $('#gwdang-pri-trend-chart').append(el); barTrendComp = new Vue({ el: el, data: data, render: function render(h) { return h(BarTrendInfo, { props: { d1: this.d1, d2: this.d2, aliSite: this.aliSite, promoUrl: this.promoUrl, lowtle: this.lowtle, showcoudan: this.showcoudan } }); } }); } else { Object.keys(data).forEach(function (key) { barTrendComp[key] = data[key]; }); } window.barTrendComp = barTrendComp; globalCondition.setMet('promoUrl', promoUrl); setTimeout(function () { // 为了上下对齐, 需要手动计算一次上面的距离给下面 var ppiW = $('#gwdang-trend-detail .opi-sp1').outerWidth() + $('#gwdang-trend-detail .opi-sp2').outerWidth(); $('#gwdang-trend-detail .ppi-sp1').width(Math.ceil(ppiW) + 2); }, 100); }; var getLowestDate2 = function getLowestDate2(ki, data) { var store = data.store[ki]; if (ki === 1) { var origin_st = data.store[0].all_line; if (store.all_line.join("") === origin_st.join("")) { return; } } getLowestDate('plotAll', ki, store.all_line, store.all_equal_short, store.all_line_begin_time, data.promo); if (store.half_year_line && store.half_year_line.length > 0) { if (ki === 1) { var origin_st = data.store[0].half_year_line; if (store.half_year_line.join("") === origin_st.join("")) { return; } } getLowestDate('plotYear', ki, store.half_year_line, store.all_equal_short, store.half_year_line_time, data.promo); } var newStsize = store.all_line.length; if (newStsize > 180) { newStsize = store.all_line.length; var newSt = store.all_line.slice(newStsize - 180); if (ki === 1) { var origin_st = data.store[0].all_line.slice(newStsize - 180); if (newSt.join("") === origin_st.join("")) { return; } } var pointStart = store.all_line_begin_time + 86400000 * (newStsize - 180); getLowestDate('days180', ki, newSt, store.all_equal_short, pointStart, data.promo); } else { if (ki === 1) { var origin_st = data.store[0].all_line; if (store.all_line.join("") === origin_st.join("")) { return; } } getLowestDate('days180', ki, store.all_line, store.all_equal_short, store.all_line_begin_time, data.promo); } if (store.month_line && store.month_line.length > 0) { if (ki === 1) { var origin_st = data.store[0].month_line; if (store.month_line.join("") === origin_st.join("")) { return; } } getLowestDate('plotMonth', ki, store.month_line, store.all_equal_short, store.month_line_time, data.promo); } }; var getLowestDate = function getLowestDate(id, ki, newSt, all_equal_short, pointStart, promo) { // 计算最低最高点 以及最低点对应的时间 id = id + ki.toString(); lowHighInfoObj[id] = {}; var Plowest = undefined, Phighest = undefined; var lowestDate = undefined; var lowestPromo = undefined, lowestPromoPprice = undefined, lowestCoupon = undefined; Plowest = Math.min.apply(Math, newSt); Phighest = Math.max.apply(Math, newSt); var low_index = newSt.lastIndexOf(Plowest); var low_index2 = low_index; var point_interval = 86400000; if (all_equal_short) point_interval = 3600000; lowestDate = pointStart + point_interval * low_index; if (ki == 1) { for (var k = low_index2; k > 0; k--) { if (newSt[k] === newSt[low_index2]) { // let str = (pointStart + point_interval * (k) - 3600000 * 8).toString() var str = timeUtil.localeDateString(pointStart + point_interval * k); 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 TooltipView = __webpack_require__("893503d294226ea0dddf")["default"]; var TooltipViewBar = __webpack_require__("8da202894b503b94f179")["default"]; 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) { if (__webpack_require__("6868b03b94b90a856624").isSameDay(data.x, 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__("f872aed6f79e43acee4a"); if (toolTipDom !== '#big_tooltip') { html = __webpack_require__("6f3237f8ad917574d8e1"); } var domclass = ''; if (data.directpro) domclass += 'directpro '; if (data.addpro) domclass += 'addpro '; if (data.addpro || data.directpro) { $(toolTipDom).addClass('bigheight'); } else { $(toolTipDom).removeClass('bigheight'); } if (moneyInfo) { var np = parsePrice(data.pagePrice, moneyInfo[2]); data.pagePrice = moneyInfo[0] + data.pagePrice + ("(¥" + np + ")"); } else { data.pagePrice = '¥' + data.pagePrice; } if (!renderedComponents[toolTipDom]) { var el = document.createElement('DIV'); $(toolTipDom).empty().append(el); renderedComponents[toolTipDom] = new Vue({ data: { data: data, domclass: domclass, aliSite: false }, el: el, mixins: [_commonComponentsDataUpdateMixin2["default"]], render: function render(h) { return h(toolTipDom !== '#big_tooltip' ? TooltipViewBar : TooltipView, { props: { data: this.data, domclass: this.domclass, aliSite: this.aliSite } }); } }); } else { renderedComponents[toolTipDom].updateData({ data: data, domclass: domclass, aliSite: false }); } }; // 两条线相同点部分去掉 避免重叠造成颜色污染 var sliceData = function sliceData(data) { for (var pattern in data) { if (data[pattern].length && data[pattern].length > 1 && data[pattern][1].name === "凑单到手价") { var size = data[pattern][0].data.length; for (var i = 2; i < size; i++) { var a1 = data[pattern][0].data; var a2 = data[pattern][1].data; if (a1[i].y === a2[i].y && a1[i - 1].y === a2[i - 1].y && (a1[i - 2].y === a2[i - 2].y || a2[i - 2].y === null)) { a2[i - 1].y = null; } } } } }; var hasBind = false; exports = { init: function init(data) { var currentPage = arguments.length <= 1 || arguments[1] === undefined ? 'dpPage' : arguments[1]; var target = arguments.length <= 2 || arguments[2] === undefined ? false : arguments[2]; var plotLinesHideStatus = arguments.length <= 3 || arguments[3] === undefined ? false : arguments[3]; var renderMiniTrendInfo, biggraphState, time, renderMiniTrend; return regeneratorRuntime.async(function init$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: // 评论走势 //renderReviewData(data) lowHighInfoObj = {}; $('#biggraph_chrome').remove(); if ($('#plotArea_chrome').length) { $('.bjd-newtrend-dev').remove(); $('#plotArea_chrome').remove(); $('#gwd-topText').remove(); } currentShowing = 'plotAll'; renderedComponents = {}; noTbTrend = false; seriesList = { plotAll: [], plotYear: [], plotMonth: [], plot5Day: [], plotSpecial: [], days180: [] }; originPrice = 0; renderMiniTrendInfo = undefined; // 加载货币配置 获取当前网站货币符号 moneyInfo = countryConfig.getMoneyInfo(G.logsite); if (moneyInfo[2] === 'CNY') moneyInfo = null; if (data.taobaoNoTrend) noTbTrend = true; if (!(data.store && data.store[0] && data.store[0].all_line.length === 0)) { context$2$0.next = 14; break; } return context$2$0.abrupt("return"); case 14: $('body').append("<div id=\"biggraph_chrome\" style=\"position: absolute;left: -1000000px; top: -100000px;background: white;overflow: hidden\"></div>"); $(chartBox).append(viewTest); biggraphState = ''; doBind(); if (target) { $(target).append($(chartBox)); } // 顶部 time = 0; if (!hasBind) { $("#" + G.extName + "-trend").hover(function () { if (Date.now() - time < 1000) { return; } toolTipDom = '#big_tooltip_top'; obj.chart.marginRight = 30; obj.chart.marginBottom = 23; obj.chart.marginTop = 4; obj.xAxis.labels.y = 22; if (moneyInfo) { obj.yAxis.title.text = moneyInfo[1]; obj.yAxis.title.y = 176; } var num = parseInt(lowHighInfoObj['plotAll0'].Phighest).toString().length; obj.chart.marginLeft = 29 + 9 + parseInt(num * 6.8); obj.yAxis.labels.x = -9; obj.yAxis.title.x = -(9 + parseInt(num * 6.8) - 24); $(chartBox).css({ left: 0, top: 0, bottom: 0, right: 0 }); // if (biggraphState === 'trend') return; var chartArea = $("#" + G.extName + "-pri-trend-chart"); chartArea.append($(chartBox)); biggraphState = 'trend'; $('.floatButtons').show(); $('#bjd-qrcode-trend').show(); if ($('#bjd-qrcode-trend').length) { doLog(); } $(chartBox).css({ visibility: 'hidden' }); window.setTimeout(function () { var width1 = $('.floatButtons').width(); __webpack_require__("316f9c352c6202560d16").log('float button width', width1); $('#bar_trend_legend_btn').css('right', width1 + 50 + 'px'); showSeries(currentShowing, false, util.deepCopy(obj)); var width = $("#" + G.extName + "-pri-trend-chart").width(); chart.setSize(width, 182); plotWidth = chart.plotWidth; chart.axes[0].update(obj.xAxis); $(chartBox).css({ visibility: 'visible' }); doMainBind(); }, 0); }); } renderMiniTrend = function renderMiniTrend(detail) { toolTipDom = '#big_tooltip'; var lowest_obj = lowHighInfoObj['days1800']; var lowest_obj2 = undefined, lowestDate = undefined, lowestDate2 = undefined; if (data.store[1] && data.store[1].name === '凑单到手价') { lowest_obj2 = lowHighInfoObj['days1801']; lowestDate2 = lowest_obj2 && lowest_obj2.lowestDate; lowestDate2 = lowestDate2 && util.getTimeNumber(lowestDate2); } lowestDate = lowest_obj.lowestDate; if (G.aliSite && data.lowestTime) lowestDate = new Date(data.lowestTime).getTime(); // lowestDate = lowestDate - 3600000 * 8; lowestDate = util.getTimeNumber(lowestDate); if (!renderMiniTrendInfo) { var oinfo = userData.get('other_info'); var dp_id = oinfo && oinfo.now && oinfo.now.dp_id; var promoUrl = undefined; if (dp_id) { promoUrl = "https://www.gwdang.com/trend/" + dp_id + ".html?static=true"; } var infohtml = __webpack_require__("86b1f1dbab8755f1e621"); var lowtle = "最低(单 件):"; // if (G.aliSite) { // lowtle = `最低:`; // } else if (!hideCoudanManage || !lowestDate2) { // lowtle = `最低(单件):`; // } if (lowest_obj && lowest_obj2 && lowest_obj.Plowest === lowest_obj2.Plowest && lowest_obj.lowestDate === lowest_obj2.lowestDate) { lowest_obj2 = null; } if (!G.h_nopuzzle_promo) { promoUrl = null; } // if ($('.orign-pri-info').length) { // $('.orign-pri-info').remove(); // } if ($('.mini-share-product').length) { $('.mini-share-product').remove(); $('#mini-share-btn').remove(); } $('.max-min-priinfo').empty().append(template.compile(infohtml)({ lowtle: lowtle, aliSite: G.aliSite, lowest_obj: lowest_obj, lowestDate: lowestDate, lowestDate2: lowestDate2, promoUrl: promoUrl, lowest_obj2: lowest_obj2, currency: moneyInfo ? moneyInfo[0] : '¥' })); globalCondition.setMet('promoUrl', promoUrl); // 分享商品 // require('shareProduct').init(data.price_status) if (!lowest_obj2) { $('#mini_price_history').removeClass('coudanpri'); } setTimeout(function () { var ppiW = $('.opi-sp1').outerWidth() + $('.opi-sp2').outerWidth(); $('.promo-pri-info .ppi-sp1').width(Math.ceil(ppiW) + 2); }, 100); renderMiniTrendInfo = true; } if (moneyInfo) { $('#mini_price_history .ht-mm-max').text(moneyInfo[0] + lowest_obj.Phighest); $('#mini_price_history .ht-mm-min').text(moneyInfo[0] + lowest_obj.Plowest); $('#big_tooltip').addClass('ht_tip'); } obj.title.x = 0; obj.chart.marginRight = 16; obj.chart.marginTop = 5; obj.yAxis.title.text = null; obj.xAxis.labels.y = 20; obj.xAxis.labels.x = -2; obj.yAxis.title.y = -26; if (moneyInfo) { obj.chart.marginTop = 4; var num = parseInt(lowest_obj.Phighest).toString().length; obj.chart.marginRight = 2; obj.chart.marginLeft = Math.ceil(num * 6.8 + 11); obj.chart.marginBottom = 24; // obj.yAxis.labels.x = -Math.ceil(num * 6.8 + 11); obj.yAxis.labels.x = -14; obj.yAxis.title.x = -(Math.ceil(num * 6.8 + 11) - 24); //25 title长度 obj.yAxis.title.text = moneyInfo[1]; // obj.yAxis.title.y = 162; obj.yAxis.title.y = -12; } else { var num = parseInt(lowest_obj.Phighest).toString().length; obj.chart.marginLeft = 16 + 14 + parseInt(num * 6.8); obj.yAxis.labels.x = -14; } if (lowest_obj.Phighest < 1) { obj.chart.marginLeft = 16 + 14 + parseInt(4 * 6.8); } if (G.site === 'amazon') { obj.chart.marginLeft = 50; } $('.floatButtons').hide(); $('#bjd-qrcode-trend').hide(); // yhd.com $('#detailPromotion').css({ zIndex: 0 }); $(chartBox).css({ left: 0, top: 0, bottom: 0, right: 0 }); if (biggraphState === 'btn') return; $(detail).append($(chartBox)); doMiniBind(); biggraphState = 'btn'; $(chartBox).css({ visibility: 'hidden' }); window.setTimeout(function () { originPrice = 0; // if (data.store[0].all_line.length > 31 && !data.store[0].all_equal_short) { // showSeries('plotMonth', true); // } else { // showSeries('plotAll', true); // } var toShow = 'days180'; if (store[0].all_line.length < 180) { toShow = currentShowing; } if (store[0].half_year_line) { halfYearExist = true; } showSeries(toShow, true, util.deepCopy(obj), true); var width1 = $("#bdext_mini_trendbox").width(); var height1 = 182; if (!width1) { width1 = 460; } if (G.site == 'amazon') { width1 = 450; } if (width1 && width1 > 0) { chart.setSize(width1, height1, false); } $(chartBox).css({ visibility: 'visible' }); }, 25); }; // 中间 if (true) { __webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return $("#mini_price_history").length; }).then(function () { $("#mini_price_history").hover(function () { var doms = '#mini_price_history_detail_chart'; // if (G.site == 'amazon' || G.site == '6pm') { // doms = '#mini_ht_detail_chart' // } renderMiniTrend(doms); }); // yhd.com $("#mini_price_history_detail").mouseleave(function () { $('#detailPromotion').css({ zIndex: 15 }); }); }); } // 底部 $("#gwd-trend").hover(function () { // obj.yAxis.title.text = foreignTitle if (biggraphState === "gwd") return; obj.chart.marginRight = 60; obj.chart.marginBottom = 23; obj.chart.marginTop = 4; obj.xAxis.labels.y = 22; $(chartBox).css({ left: 0, top: 0, bottom: 0, right: 0 }); $("#gwd-trend-chart").append($(chartBox)); biggraphState = "gwd"; $(chartBox).css({ visibility: 'hidden' }); window.setTimeout(function () { showSeries(currentShowing, false, util.deepCopy(obj)); chart.reflow(); $(chartBox).css({ visibility: 'visible' }); $("#gwd-trend-chart").show(); doMainBind(); }, 0); $('.floatButtons').show(); $('#bjd-qrcode-trend').show(); if ($('#bjd-qrcode-trend').length) { doLog(); } $('#bjd-qrcode-trend').css('bottom', '9px'); }); $("#plotArea_chrome").css({ maxWidth: document.body.clientWidth - 280 + 'px' }); $("#plotArea_chrome").mousemove(function (e) { mousePosition.x = e.pageX; mousePosition.y = e.pageY; }); $("#plotArea_chrome").click(function () { return false; }); hasBind = true; 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++) { var datestr = timeUtil.localeDateString(data.promo[i].time * 1000); discountInfo[datestr] = data.promo[i].msg; discountInfo2[datestr] = { price: data.promo[i].price, info: data.promo[i].msg.promotion }; } // 计算最低最高价和时间 getLowestDate2(1, data); $(".discount-price-re").show(); $('#mini_price_history').addClass('coudanpri'); $('#bar_trend_legend_btn').removeClass('no-review'); $('#mini_price_history_detail_btn').removeClass('no-review'); } else { hideCoudanManage = null; $('#bar_trend_legend_btn').addClass('no-review'); $('#mini_price_history_detail_btn').addClass('no-review'); } if (data.nopuzzle_promo) { G.h_nopuzzle_promo = true; } // if (G.aliSite) { // $('#bar_trend_legend_btn').remove() // $('#mini_price_history_detail_btn').addClass('aliSite') // } originData = data; var earlistDay = Math.min(data.store[0] && data.store[0].all_line_begin_time, getEarlistDay(store)); var currentDay = data.now_day; currentTime = data.now_day; var seriesConfig = [{ plot: 'plotAll', start: 'all_line_begin_time', minDay: 0.1, data: 'all_line' }, { plot: 'plotMonth', start: 'month_line_time', minDay: 30, data: 'month_line' }, { plot: 'plotYear', start: 'half_year_line_time', minDay: 0.1, data: 'half_year_line' }, { plot: 'days180', start: 'all_line_begin_time', minDay: 0.1, data: 'all_line' }]; enablePlot('#plotAll'); // if (store[0].name.indexOf('(当前)') === -1) { // store[0].name += '(当前)'; // } store[0].name = "页面价"; var storeLimit = 18; if (currentPage === 'zhidemai') { storeLimit = 1; } if (currentPage === 'priceHistory') { storeLimit = 20; } var allDays = parseInt((currentDay - earlistDay) / oneDay); for (var i = 0; i < Math.min(store.length, storeLimit); i++) { if (store[i].all_line.length === 0) continue; // if (store[i].promo && store[i].promo.length > 0) { // promotionData[store[i].name] = store[i].promo[0].desc; // } if (store[i].all_equal_short && store.length !== 1) { store[i].all_line = []; for (var j = 0; j < store[i].short_day_line.length; j += 24) { store[i].all_line.push(store[i].short_day_line[j]); } store[i].all_line_begin_time = data.now_day - 5 * oneDay; store[i].all_equal_short = false; } for (var k = 0; k < seriesConfig.length; k++) { var j = seriesConfig[k]; if (getMidDay(currentDay) - getMidDay(earlistDay) >= j.minDay * oneDay) { if (!store[i][j.data]) { continue; } if (j.start !== 'short_day_line_begin_time') { //store[i][j.start] = getMidDay(store[i][j.start]); } if (store[i].all_equal_short && j.start === 'all_line_begin_time') { //store[i][j.start] = store[i].short_day_line_begin_time; } enablePlot('#' + j.plot); var newSeries = { color: generateColorForStore(store[i].name), name: store[i].name, pointStart: store[i][j.start], pointInterval: oneDay, legendIndex: 1, connectNulls: false, lineWidth: 1, zIndex: 500 - i * 500 - 1, marker: { //symbol: 'rect', symbol: currentSymbol.extended, states: { hover: { enabled: false } } }, states: { hover: { enabled: false, halo: { size: 0 } } }, data: store[i][j.data] }; if (store[i].name === '凑单到手价') { newSeries.color = "#FFC06D"; } if (noTbTrend) { newSeries.dashStyle = "Dash"; } if (j.plot === 'plot5Day') { //newSeries.pointStart -= 5*oneDay; newSeries.pointInterval = 3600000; if (newSeries.pointInterval * newSeries.data.length + newSeries.pointStart > currentTime) { currentTime = newSeries.pointInterval * newSeries.data.length + newSeries.pointStart; } } if (j.plot === 'plotAll' && newSeries.data.length < 30) { newSeries.pointInterval = oneDay; setXAxisMinInterval(oneDay); } if ((j.plot === 'plotAll' || j.plot === 'days180') && store[i].all_equal_short) { if (i === 0) { newSeries.pointInterval = 3600000; //all_equal_short = true; } else { var s = new Date(newSeries.pointStart); var s2 = new Date(s.getYear() + 1900, s.getMonth(), s.getDate(), 8); newSeries.pointStart = s2.getTime(); newSeries.pointInterval = oneDay; var tmpData = []; for (var _i = 0; _i < newSeries.data.length; _i += 24) { tmpData.push(newSeries.data[_i]); } newSeries.data = tmpData; } } // 增大点的密度,使移动平滑 newSeries.addPointTimes = 1; while (newSeries.data && newSeries.data.length < 100) { if (j.plot === 'plotAll') { break; } var newData = []; for (var _k = 0; _k < newSeries.data.length; _k++) { newData.push(newSeries.data[_k]); if (_k + 1 === newSeries.data.length) break; newData.push(newSeries.data[_k]); } newSeries.data = newData; newSeries.pointInterval = newSeries.pointInterval / 2; newSeries.addPointTimes = newSeries.addPointTimes * 2; } newSeries.data = newSeries.data ? newSeries.data.map(resetData) : null; if (newSeries.data != null) { seriesList[j.plot].push(newSeries); } // require('common/extConsole').log('newSeries data', JSON.parse(JSON.stringify(newSeries.data))); } } } if (seriesList['plotAll'].length === 1) { var series = seriesList['plotAll'][0]; series.data = series.data.map(function (i) { return i.y; }); while (series.data.length < 100) { var newData = []; for (var k = 0; k < series.data.length; k++) { newData.push(series.data[k]); if (k + 1 === series.data.length) break; newData.push(series.data[k]); } series.data = newData; series.pointInterval = series.pointInterval / 2; } series.data = series.data.map(function (i) { return { y: i, marker: { enabled: false } }; }); } // 和原始数据重合的点 去掉 // sliceData(seriesList) if (!store[0].all_equal_short) { $('#plotAll').html("全部" + store[0].all_line.length + "天"); if (store[0].all_line.length > 180) { currentShowing = 'plotYear'; } } else { allDays++; $('#plotAll').html("全部(" + allDays + "天)"); } showingManager.clear(); // 默认显示原始价格和当前商品 if (originPrice && currentPage !== 'zhidemai') { showingManager.add('当前商城原始价格'); } showingManager.add(store[0].name); // data copy start var mergeSeries = function mergeSeries(a, b) { var bList = b.map(function (item) { return item.name; }); return a.map(function (item) { if (bList.indexOf(item.name) === -1) { return item; } else { var toMerge = b.filter(function (j) { return j.name === item.name; })[0]; var tmp = copy(item); tmp.data = toMerge.data; tmp.pointStart = toMerge.pointStart; tmp.pointInterval = toMerge.pointInterval; return tmp; } }); }; var fillSeries = function fillSeries(seriesList) { var pointIntervalList = seriesList.map(function (i) { return i.pointInterval; }); var minInterval = Math.min.apply(null, pointIntervalList); seriesList.forEach(function (series) { while (series.pointInterval > minInterval) { var newData = []; for (var i = 0; i < series.data.length; i++) { newData.push(series.data[i]); if (i + 1 === series.data.length) break; var newPoint = { marker: series.data[i].marker, y: (series.data[i + 1].y + series.data[i].y) / 2 }; newData.push(newPoint); } series.pointInterval = series.pointInterval / 2; series.data = newData; } }); }; ['plotMonth', 'plotYear'].forEach(function (i) { if (!$("#" + i).hasClass('bjd-hidden')) { var allSeries = seriesList['plotAll']; var thisSeries = seriesList[i]; var toAdd = mergeSeries(allSeries, thisSeries); seriesList[i] = toAdd; fillSeries(seriesList[i]); } }); fillSeries(seriesList['plotAll']); var days180_size = seriesList['days180'][0] && seriesList['days180'][0].data.length; if (days180_size && days180_size > 180) { for (var k = 0; k < seriesList['days180'].length; k++) { seriesList['days180'][k].data.splice(0, days180_size - 180); seriesList['days180'][k]['pointStart'] = seriesList['days180'][k]['pointStart'] + seriesList['days180'][k]['pointInterval'] * (days180_size - 180); } } for (var spattern in seriesList) { if (seriesList[spattern].length) { for (var di = 0; di < seriesList[spattern].length; di++) { addSeriesDataLabels(seriesList[spattern][di], data.nopuzzle_promo, spattern); nopuzzlePpromo = data.nopuzzle_promo; } } } // showSeries('plotAll', false, util.deepCopy(obj)); //chart.reflow(); })(); }; if (G.IE7 || G.IE8 || G.IE9 || G.IE10 || G.IE11) { $('#mini_price_history_detail_chart').css({ width: '460px' }); $('#mini_price_history_detail').css({ 'width': '569px' }); } if ((G.IE9 || G.IE10) && (G.site === 'vip' || G.site === 'vipshop')) { $('#mini_price_history_detail_chart').css({ width: '390px' }); } case 32: case "end": return context$2$0.stop(); } }, null, _this); }, resetBind: function resetBind() { hasBind = false; } }; 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__("ff50e367dd130fa205e3"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("b2848b041c3d11faa242")["default"], __webpack_require__("6a0e4ebb57bf6aac1f2d"))) /***/ }), /***/ "d203188816acf95fc4be": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipView_vue_vue_type_script_lang_js__ = __webpack_require__("c63d814c7191dd3b04d2"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipView_vue_vue_type_script_lang_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipView_vue_vue_type_script_lang_js__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipView_vue_vue_type_script_lang_js__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipView_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TooltipView_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "d36a74aa21bb110ae407": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, $, Vue) {// 京东礼金 var _this2 = this; var request = __webpack_require__("91f250ebeb8d5987491c"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); module.exports.init = function callee$0$0() { var config; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { var _this = this; while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!(G.site !== '360buy')) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: if (!G.forbidGiftMoney) { context$1$0.next = 6; break; } globalCondition.setMet('noOtherGiftMoney'); __webpack_require__("9920f8981151f34ffc09").init('qr'); return context$1$0.abrupt('return'); case 6: context$1$0.next = 8; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return $('#summary-tips').length > 0; })); case 8: if (!($('#summary-tips').text().indexOf('不可使用东券') > -1 || $('#summary-tips').text().indexOf('不可使用京券、东券') > -1)) { context$1$0.next = 12; break; } globalCondition.setMet('noOtherGiftMoney'); __webpack_require__("9920f8981151f34ffc09").init('qr'); return context$1$0.abrupt('return'); case 12: if (!($('#pingou-banner .activity-type strong').text().indexOf('预售') > -1)) { context$1$0.next = 16; break; } globalCondition.setMet('noOtherGiftMoney'); __webpack_require__("9920f8981151f34ffc09").init('qr'); return context$1$0.abrupt('return'); case 16: context$1$0.next = 18; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('GwdConfig')); case 18: config = context$1$0.sent; if (!config.allowJdGiftMoney) { context$1$0.next = 24; break; } context$1$0.next = 22; return regeneratorRuntime.awrap((function callee$1$0() { var payload, duomaiData, params, res; return regeneratorRuntime.async(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: payload = { rebate: 1, dp_id: G.dp.itemId }; if (!config.allowDuomai) { context$2$0.next = 13; break; } context$2$0.prev = 2; context$2$0.next = 5; return regeneratorRuntime.awrap(request.rawGet('https://u.gwdang.com/gyp/jd/item?id=' + G.dp.itemId.replace('-3', ''))); case 5: duomaiData = context$2$0.sent; payload.rate = (parseFloat(duomaiData.commission_rate) * 100).toFixed(2); payload.price = duomaiData.price * (location.href.indexOf('debugExt') > -1 ? 10000 : 1); context$2$0.next = 13; break; case 10: context$2$0.prev = 10; context$2$0.t0 = context$2$0['catch'](2); console.warn(context$2$0.t0); case 13: params = Object.keys(payload).map(function (k) { return k + '=' + encodeURIComponent(payload[k]); }).join('&'); context$2$0.next = 16; return regeneratorRuntime.awrap(request.get(G.server + '/extension/Coupon?' + params)); case 16: res = context$2$0.sent; if (res.rebate && res.rebate >= 1) { (function () { __webpack_require__("83271c7588396d2d5e59").log('jdGiftMoney:show'); if (res._jump === 'qrcode') { __webpack_require__("83271c7588396d2d5e59").log('jdGiftMoney:needScanQr'); __webpack_require__("83271c7588396d2d5e59").log('jdGiftMoney:-needScanQr'); } else if (res._jump === 'link') { __webpack_require__("83271c7588396d2d5e59").log('jdGiftMoney:needClickLink'); } var GiftMoney = __webpack_require__("404ef3bf6016b988808a")['default']; $('#gwd-coupon-placeholder').replaceWith('<div id="gwd-giftmoney"></div>'); new Vue({ el: '#gwd-giftmoney', render: function render(h) { return h(GiftMoney, { props: { value: res.rebate, qr: res._jump === 'qrcode', url: res.url, tag: res._tag } }); } }); if (res.jump !== 'qrcode') { __webpack_require__("9c38beef5ff283e15bd2").setMet('couponLink', { content: '发现' + res.rebate + '元红包,速领', url: res.url }); } __webpack_require__("08527d571215689ce73c").init(res.url, '领红包下单', res._jump === 'qrcode' ? { value: res.rebate, qr: res._jump === 'qrcode', url: res.url, tag: res._tag } : false); $('#gwdang-banner-ad').remove(); var GiftMoneyTop = __webpack_require__("28ca786b072dc40c7e4b")['default']; $('.gwd-topbar-left').append('<div id="gwd-giftmoney-top"></div>'); new Vue({ el: '#gwd-giftmoney-top', render: function render(h) { return h(GiftMoneyTop, { props: { value: res.rebate, qr: res._jump === 'qrcode', url: res.url, tag: res._tag } }); } }); //require('standard/module/jdPriceProtect').init('redpack') })(); } else { globalCondition.setMet('noOtherGiftMoney'); __webpack_require__("9920f8981151f34ffc09").init('qr'); } case 18: case 'end': return context$2$0.stop(); } }, null, _this, [[2, 10]]); })()); case 22: context$1$0.next = 26; break; case 24: globalCondition.setMet('noOtherGiftMoney'); __webpack_require__("9920f8981151f34ffc09").init('qr'); case 26: case 'end': return context$1$0.stop(); } }, null, _this2); }; //if (navigator.userAgent.toLowerCase().indexOf('metasr') === -1) return // let config = await request.rawGet('https://cdn.gwdang.com/js/configs/gwdang.json') // let prev = 'www.duomai.com' // if (!G.allowBackgroundRequest) { // prev = 'browser.bijiago.com/duomai' // } // let duomaiData = await request.rawGet(`https://${prev}/api/duomai_product.php?type=jd&good_id=${G.dp.itemId.replace('-3', '')}`) // //let duomaiData = await request.get(`https://www.duomai.com/api/duomai_product.php?type=jd&good_id=${G.dp.itemId.replace('-3', '')}`) // if (typeof duomaiData === 'string') { // duomaiData = JSON.parse(duomaiData) // } /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("6a0e4ebb57bf6aac1f2d"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("b2848b041c3d11faa242")["default"])) /***/ }), /***/ "d45bbf37f97eb6c6f02e": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MiniSameList_vue_vue_type_template_id_caa5e08c_scoped_true__ = __webpack_require__("70e158a156872cdab517"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__MiniSameList_vue_vue_type_script_lang_js__ = __webpack_require__("018335910ad4773853f3"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__MiniSameList_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__MiniSameList_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__MiniSameList_vue_vue_type_style_index_0_id_caa5e08c_scoped_true_lang_less__ = __webpack_require__("4c7c6d83576b13289fc8"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__MiniSameList_vue_vue_type_style_index_1_id_caa5e08c_scoped_true_lang_css__ = __webpack_require__("96d791c4e9a61aa95671"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__MiniSameList_vue_vue_type_style_index_2_id_caa5e08c_scoped_true_lang_less__ = __webpack_require__("5191a5e58d59502fc5ec"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_5__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__MiniSameList_vue_vue_type_script_lang_js__["default"], __WEBPACK_IMPORTED_MODULE_0__MiniSameList_vue_vue_type_template_id_caa5e08c_scoped_true__["render"], __WEBPACK_IMPORTED_MODULE_0__MiniSameList_vue_vue_type_template_id_caa5e08c_scoped_true__["staticRenderFns"], false, null, "caa5e08c", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('caa5e08c')) { api.createRecord('caa5e08c', component.options) } else { api.reload('caa5e08c', component.options) } module.hot.accept("./MiniSameList.vue?vue&type=template&id=caa5e08c&scoped=true", function () { api.rerender('caa5e08c', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/MiniSameList.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "d537d23bddc7d6ab50e6": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniBarCollectionButton_vue_vue_type_style_index_0_id_1e4a0206_scoped_true_lang_less__ = __webpack_require__("803ca7dd7a34a5d378f9"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniBarCollectionButton_vue_vue_type_style_index_0_id_1e4a0206_scoped_true_lang_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniBarCollectionButton_vue_vue_type_style_index_0_id_1e4a0206_scoped_true_lang_less__); /* unused harmony reexport namespace */ /***/ }), /***/ "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.stringToNumber = function (text) { if (!text) { return 0; } var x = parseInt(text); if (text.includes('万')) { x = x * 10000; } return x; }; module.exports.numberToString = function (number) { var digit = arguments.length <= 1 || arguments[1] === undefined ? 2 : arguments[1]; if (typeof number === 'string' && number.includes('万')) { return number; } var x = parseInt(number); if (x > 10000) { x = x / 10000; x = x.toFixed(digit).replace('.' + '0'.repeat(digit), '') + '万'; } return x; }; 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"))) /***/ }), /***/ "d5616fae32e60d1cab7c": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__PriceInput_vue_vue_type_template_id_3ed325cb_scoped_true__ = __webpack_require__("1a0065c5463b7de9f11b"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__PriceInput_vue_vue_type_script_lang_js__ = __webpack_require__("71c9fcfb64f73134b8a1"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__PriceInput_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__PriceInput_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__PriceInput_vue_vue_type_style_index_0_id_3ed325cb_scoped_true_lang_less__ = __webpack_require__("78627ea7983efdac8518"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__PriceInput_vue_vue_type_script_lang_js__["default"], __WEBPACK_IMPORTED_MODULE_0__PriceInput_vue_vue_type_template_id_3ed325cb_scoped_true__["render"], __WEBPACK_IMPORTED_MODULE_0__PriceInput_vue_vue_type_template_id_3ed325cb_scoped_true__["staticRenderFns"], false, null, "3ed325cb", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('3ed325cb')) { api.createRecord('3ed325cb', component.options) } else { api.reload('3ed325cb', component.options) } module.hot.accept("./PriceInput.vue?vue&type=template&id=3ed325cb&scoped=true", function () { api.rerender('3ed325cb', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/Controls/PriceInput.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "d5f314c655d7ca1f8ebd": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_template_id_5ccff421_scoped_true__ = __webpack_require__("12b7b9e20848299010bc"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_template_id_5ccff421_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_template_id_5ccff421_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_template_id_5ccff421_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_template_id_5ccff421_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_template_id_5ccff421_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_template_id_5ccff421_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "d6b7d6251f5b7558ae32": /***/ (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__("e995526972008feac52d"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("4e8470c7", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./CollectionSettingTop.vue?vue&type=style&index=2&id=3f03717c&scoped=true&lang=less", function() { var newContent = require("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./CollectionSettingTop.vue?vue&type=style&index=2&id=3f03717c&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "d6c75767b926994ca460": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_template_id_79b5dd44_scoped_true__ = __webpack_require__("c6ab2da281c69d31f247"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_template_id_79b5dd44_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_template_id_79b5dd44_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_template_id_79b5dd44_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_template_id_79b5dd44_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_template_id_79b5dd44_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_template_id_79b5dd44_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "d7864f67e2e085df3a59": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_1_id_673c66fa_scoped_true_lang_less__ = __webpack_require__("361f084c3e35f2fe9ea2"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_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_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_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 */ /***/ }), /***/ "d80601251d793aa54a67": /***/ (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 _componentsCollectionSettingTop = __webpack_require__("4849c6a660d6f2d7dba4"); var _componentsCollectionSettingTop2 = _interopRequireDefault(_componentsCollectionSettingTop); var MiniBarCollectionButton = __webpack_require__("966caf0f29e39a633494")['default']; var CollectionSettingMini = __webpack_require__("0dac12c39a7042f8ce1c")['default']; module.exports.init = function callee$0$0() { var store, instanceId; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: store = __webpack_require__("e41a11f7982e4aab1ce6").getStore(); instanceId = G.instanceId; __webpack_require__("316f9c352c6202560d16").log('collection setting start with instance id', instanceId); __webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return $('.gwd-collection-mini-content').length && G.instanceId === instanceId; }).then(function () { __webpack_require__("316f9c352c6202560d16").log('collection setting mini render', instanceId); new Vue({ el: '.gwd-collection-mini-content', store: store, render: function render(h) { return h(CollectionSettingMini, { props: { haitao: __webpack_require__("3dbec38a0e3472df70b7").isHaitao() } }); } }); }); __webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return $('.gwd-collection-trend-content').length && G.instanceId === instanceId; }).then(function () { __webpack_require__("316f9c352c6202560d16").log('collection setting top render', instanceId); new Vue({ el: '.gwd-collection-trend-content', store: store, render: function render(h) { return h(_componentsCollectionSettingTop2['default'], { props: { haitao: __webpack_require__("3dbec38a0e3472df70b7").isHaitao() } }); } }); store.dispatch('priceRemind/init'); $('#gwdang-trend').hover(function () { store.dispatch('priceRemind/hover'); }); __webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return $('#gwd_mini_remind').length; }).then(function () { $('#gwd_mini_remind').hover(function () { store.dispatch('priceRemind/hover'); }); }); }); case 5: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports.setPriceData = function (money, data) { var store = __webpack_require__("e41a11f7982e4aab1ce6").getStore(); var price_ranges = data['store'][0].price_range.split('-'); store.commit('priceTrend/setState', { money: money, nowPrice: Number(data['store'][0].current_price), priceRange: Number(price_ranges[0]).toFixed(2) + ' ~ ' + Number(price_ranges[1]).toFixed(2) }); }; // new Vue({ // el: '#gwd_mini_remind .minibar-btn-box', // store, // render: h => h(MiniBarCollectionButton) // }) /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("6a0e4ebb57bf6aac1f2d"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("b2848b041c3d11faa242")["default"])) /***/ }), /***/ "d8c0ea5e8bf298de69f5": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, ".gwd-amazon-link[data-v-e09aa000] {\n display: inline-block;\n outline: none;\n font-size: 14px;\n margin-left: 12px;\n margin-right: 12px;\n font-family: PingFang SC-Medium, PingFang SC, Microsoft YaHei, serif;\n font-weight: 500;\n color: #FFFFFF;\n line-height: 30px;\n padding-left: 12px;\n padding-right: 12px;\n height: 30px;\n background: #FE9E0F;\n border-radius: 34px;\n opacity: 1;\n border: 1px solid;\n white-space: nowrap;\n}\n.gwd-amazon-link[data-v-e09aa000]:hover {\n background: #FF8F00;\n text-decoration: none;\n}\n", ""]); // exports /***/ }), /***/ "d8cc4209c8a00ff21bca": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TipCenter_vue_vue_type_template_id_9f16b84a_scoped_true__ = __webpack_require__("30bdf3a83fb68bf3db95"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__TipCenter_vue_vue_type_script_lang_js__ = __webpack_require__("d9e4bcdd30b80a9b8240"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__TipCenter_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__TipCenter_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__TipCenter_vue_vue_type_style_index_0_id_9f16b84a_scoped_true_lang_css__ = __webpack_require__("fc4cfc2ef2fba4ad1f97"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__TipCenter_vue_vue_type_script_lang_js__["default"], __WEBPACK_IMPORTED_MODULE_0__TipCenter_vue_vue_type_template_id_9f16b84a_scoped_true__["render"], __WEBPACK_IMPORTED_MODULE_0__TipCenter_vue_vue_type_template_id_9f16b84a_scoped_true__["staticRenderFns"], false, null, "9f16b84a", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('9f16b84a')) { api.createRecord('9f16b84a', component.options) } else { api.reload('9f16b84a', component.options) } module.hot.accept("./TipCenter.vue?vue&type=template&id=9f16b84a&scoped=true", function () { api.rerender('9f16b84a', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/ImgSame/TipCenter.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "d9b2a96d1c895993de8d": /***/ (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__("56262097465b6a570d40"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("0ed26e9e", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@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/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./JdRankList.vue?vue&type=style&index=0&id=a48d90ba&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "d9e4bcdd30b80a9b8240": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TipCenter_vue_vue_type_script_lang_js__ = __webpack_require__("eca31358a566eb7f14d2"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TipCenter_vue_vue_type_script_lang_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TipCenter_vue_vue_type_script_lang_js__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TipCenter_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TipCenter_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TipCenter_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "da2141f37a0564c1b75c": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AliMobilePriceNotifier_vue_vue_type_script_lang_js__ = __webpack_require__("dded12e45c94e19d225c"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AliMobilePriceNotifier_vue_vue_type_script_lang_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AliMobilePriceNotifier_vue_vue_type_script_lang_js__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AliMobilePriceNotifier_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AliMobilePriceNotifier_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_AliMobilePriceNotifier_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "dc95a667ec8da7724e60": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__LongCoupon_vue_vue_type_template_id_5ccff421_scoped_true__ = __webpack_require__("d5f314c655d7ca1f8ebd"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__LongCoupon_vue_vue_type_script_lang_js__ = __webpack_require__("42766189c13c28f1ca44"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__LongCoupon_vue_vue_type_script_lang_js__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__LongCoupon_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__LongCoupon_vue_vue_type_style_index_0_id_5ccff421_scoped_true_lang_less__ = __webpack_require__("a502cc47a1c35ea79446"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__LongCoupon_vue_vue_type_script_lang_js__["default"], __WEBPACK_IMPORTED_MODULE_0__LongCoupon_vue_vue_type_template_id_5ccff421_scoped_true__["render"], __WEBPACK_IMPORTED_MODULE_0__LongCoupon_vue_vue_type_template_id_5ccff421_scoped_true__["staticRenderFns"], false, null, "5ccff421", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('5ccff421')) { api.createRecord('5ccff421', component.options) } else { api.reload('5ccff421', component.options) } module.hot.accept("./LongCoupon.vue?vue&type=template&id=5ccff421&scoped=true", function () { api.rerender('5ccff421', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/LongCoupon.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "dded12e45c94e19d225c": /***/ (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']], props: ['hintText', 'hideInMini'], data: function data() { return { // counter: 0 }; }, mounted: function mounted() { // setInterval(() => this.counter ++, 1000) } }; module.exports = exports['default']; /***/ }), /***/ "de1737087f89b92941a7": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_style_index_0_id_a48d90ba_scoped_true_lang_less__ = __webpack_require__("d9b2a96d1c895993de8d"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_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_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_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 */ /***/ }), /***/ "de56296a2b6edfa4c861": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_style_index_0_id_9a793014_scoped_true_lang_less__ = __webpack_require__("4cf616db82ec2a749336"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_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_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_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 */ /***/ }), /***/ "df3f32c84e4728f0ac94": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return _c("div", { staticClass: "gwd-epic-bar-container gwd-row", style: _vm.type === "top" ? "margin-top: 6px;" : "" }, [_c("div", { staticClass: "gwd-epic-price gwd-row gwd-align", style: _vm.type === "top" ? "margin-right: 0px;" : "", on: { mouseover: _vm.draw } }, [_vm._v("\n " + _vm._s(_vm.priceStatusText) + "\n "), _c("img", { staticStyle: { "margin-left": "6px", transform: "scale(0.5)", "transform-origin": "left center" }, attrs: { src: _vm.priceTrendIcon, alt: "" } }), _vm._v(" "), _c("div", { staticClass: "gwd-price-trend-panel" }, [_c("div", { staticClass: "gwd-top-price gwd-row" }, [_c("span", { staticClass: "gwd-price-text", staticStyle: { "border-color": "#ff5627", color: "#ff5627" } }, [_vm._v("最高: $" + _vm._s(parseFloat(_vm.data.store[0].highest).toFixed(2)))]), _vm._v(" "), _c("span", { staticClass: "gwd-price-text", staticStyle: { "border-color": "#9ed81e", color: "#9ed81e" } }, [_vm._v("最低: $" + _vm._s(parseFloat(_vm.data.store[0].lowest).toFixed(2)))])]), _vm._v(" "), _c("span", { staticStyle: { position: "absolute", color: "#777777", "font-size": "12px", top: "37px", left: "28px", "z-index": "3" } }, [_vm._v("价格(US$)")]), _vm._v(" "), _c("div", { ref: "plotArea", staticStyle: { "margin-top": "-1px", height: "207px" } })])])]); }; var staticRenderFns = []; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "dff05e381c5d333c2349": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_style_index_2_id_3f03717c_scoped_true_lang_less__ = __webpack_require__("d6b7d6251f5b7558ae32"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_style_index_2_id_3f03717c_scoped_true_lang_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_style_index_2_id_3f03717c_scoped_true_lang_less__); /* unused harmony reexport namespace */ /***/ }), /***/ "e10d60a7f5fd6bbef3a9": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_style_index_0_id_12b5b164_lang_less__ = __webpack_require__("14b79612eff26f2e8cbc"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_style_index_0_id_12b5b164_lang_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_style_index_0_id_12b5b164_lang_less__); /* unused harmony reexport namespace */ /***/ }), /***/ "e19ba9738df123c78c95": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['value', 'currency'], methods: { numberInputHandler: function numberInputHandler(e) { if (!e.key.match(/[\d.]/)) { e.preventDefault(); return; } var start = e.target.selectionStart, end = e.target.selectionEnd; __webpack_require__("316f9c352c6202560d16").log(e.target.selectionStart); var num = e.target.value.toString(); if (num.indexOf('.') > -1) { var after = num.split('.')[1]; var before = num.split('.')[0]; __webpack_require__("316f9c352c6202560d16").log(e.target.selectionText); if (e.key === '.' || after.length >= 2 && start >= before.length + 1 && end === start) { e.preventDefault(); } } } } }; module.exports = exports['default']; /***/ }), /***/ "e2e711cdecb31aba38e7": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_template_id_6179ab9e_scoped_true__ = __webpack_require__("004c41292b54f3670049"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_template_id_6179ab9e_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_template_id_6179ab9e_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_template_id_6179ab9e_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_template_id_6179ab9e_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_template_id_6179ab9e_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_template_id_6179ab9e_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "e33d055a7ca64390eaa4": /***/ (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__("f64340d9d4974a9258cb"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("1e8fa34a", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./QRLinkButie.vue?vue&type=style&index=0&id=7c398433&scoped=true&lang=less", function() { var newContent = require("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./QRLinkButie.vue?vue&type=style&index=0&id=7c398433&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "e3aad1ff685fc198354a": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G, regeneratorRuntime) { var _this = this; var template = __webpack_require__("274e32dfd54a6b0d18a9"); var promoQuanDetail = __webpack_require__("4ac11eb0ea89414359d7"); var gwdAd = __webpack_require__("4aae9ae08bf571fe3b41"); var request = __webpack_require__("91f250ebeb8d5987491c"); var detect = __webpack_require__("60624e018be49fb2d959"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var style = undefined; var addEm = function addEm(data) { for (var i = 0; i < data.length; i++) { data[i].puretle = data[i].title; data[i].title = data[i].title.replace(/\b([0-9.]+)\b/g, '<em>$1</em>'); } return data; }; var addEvent = function addEvent() { var timer = undefined; var btn = $('#promo_quan_btn'), addC = "", detail = $('#promo_quan_detail'); if (style == 'bottom') { btn = $('#' + G.extBrand + '-hui'); addC = G.extBrand + '-compare-item-hover'; } btn.on('mouseenter', function () { detail.show(); btn.addClass('msHover'); btn.find('a').addClass(addC); var left = btn.offset().left - 1; if (detail.width() + left > $(window).width()) { detail.css('right', '0px'); } else { detail.css('left', parseInt(left) + 'px'); } }); btn.on('mouseleave', function () { timer = setTimeout(function () { detail.hide(); btn.removeClass('msHover'); btn.find('a').removeClass(addC); }, 100); }); detail.on('mouseenter', function () { clearTimeout(timer); }); detail.on('mouseleave', function () { detail.hide(); btn.removeClass('msHover'); btn.find('a').removeClass(addC); }); }; var renderDetailTop = function renderDetailTop(dom, data, now) { if (!now) now = { site_name: data.site_name }; var promo_site = now.site_name || data.site_name; var quan_site = now.site_name || data.site_name; var promo_url = data.promotion.url; var quan_url = data.quan && data.quan.url; if (!data.promotion.site_has_promo) { promo_site = "全网最新"; } if (data.promotion.promos.length == 1) { promo_url = data.promotion.promos[0].url; } if (data.quan && !data.quan.site_has_quan) { quan_site = "全网最受关注"; } var showingPromos = addEm(data.promotion.promos.slice(0, 4)); var showingQuans = addEm(data.quan && data.quan.quans && data.quan.quans.slice(0, 4) || []); if (!showingQuans.length && !showingPromos.length) { return; } $(dom).append(template.compile(promoQuanDetail)({ promo_site: promo_site, quan_site: quan_site, promos: showingPromos, promo_url: promo_url, quans: showingQuans, quan_url: quan_url, s_server: G.s_server, new_extension: G.new_extension, style: style })); addEvent(); }; var renderDetail = function renderDetail(now, data) { if (style == 'top') renderDetailTop('.gwd-topbar-left', data, now);else if (style == 'bottom') renderDetailTop(G.dval, data, now); }; var renderAd = function renderAd(data) { if (!data) return; if (data.promo.length === 0) return; var size = 1; if (data.promo.length === 1) size = 0; var promo = data.promo[size]; var html = __webpack_require__("15a18aeccd0bf71ac865"); $('.detail_right').append(template.compile(html)({ item: promo })); $('.detail_right').show(); }; var renderBtnTop = function renderBtnTop() { var dom = '<div id="promo_quan_btn" class="gwdang-tab">\n <span class="btn-tab-sp">\n <em class="gwd-bg"></em>\n <span class="tab-sp1 blkcolor1">促销优惠券</span>\n </span>\n </div>'; if ($('.gwd-topbar-left').length > 0) { $('.gwd-topbar-left').append($(dom)); } else { $('#' + G.extName + '-main-contents').append($(dom)); } $('#promo_quan_btn').show(); __webpack_require__("1c640a99db9f6f8a16c2").autoFixWidth(); }; var renderBtnBottom = function renderBtnBottom() {}; var renderBtn = function renderBtn() { if (style == 'top') renderBtnTop();else if (style == 'bottom') renderBtnBottom(); }; var getPromoInfo = function getPromoInfo(obj, callback) { var url = G.server + '/extension?ac=promotion&site_id=' + obj.site_id + '&class_id=' + obj.class_id + '&style=' + style; request.get(url).done(function (data) { if (data) { callback(data); } }); }; // const renderZol = (obj, data) => { // gwdAd.init({ // class_id: obj.class_id, // keyword: obj.keyword // }, (msg) => { // if (msg.promo.length > 0) { // msg.promo[0].puretle = msg.promo[0].title; // data.promotion.promos = msg.promo.concat(data.promotion.promos); // } // let html = require('art-template-loader!../views/zolpromo.html') // $('.wrapper .breadcrumb').eq(0).after(template.compile(html)({ // data: data.promotion.promos.slice(0, 3) // })) // }) // } module.exports.renderSearch = function () { if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1 || G.site == '1688') { $('#' + G.extBrand + '-hui').hide(); return; } var siteId = detect.getSiteId(G.site); if (!siteId) return; var obj = {}; obj.site_id = siteId; getPromoInfo(obj, function (msg) { renderDetail(null, msg); }); }; module.exports.init = function callee$0$0(data) { var d, code_info, cate, keyword, siteId, obj; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('dp_query_latest_complete')); case 2: d = context$1$0.sent; if (!d.ingre) { context$1$0.next = 8; break; } context$1$0.next = 6; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('no_reviews')); case 6: context$1$0.next = 8; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('ingreComplete')); case 8: if (!(G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1 || G.site == '1688')) { context$1$0.next = 11; break; } $('#' + G.extBrand + '-hui').hide(); return context$1$0.abrupt('return'); case 11: style = userData.get('permanent').style; code_info = data['code-server']; cate = code_info && code_info.class_id; keyword = data.now.coreword; siteId = data.now.site_id; if (siteId === '0') siteId = detect.getSiteId(G.site); obj = {}; obj.keyword = keyword; obj.site_id = siteId; obj.class_id = data.now.class_id; obj.brand_id = data.exact_arr.brand_id; getPromoInfo(obj, function (msg) { if (!msg.promotion.site_has_promo && !msg.quan.site_has_quan) { return; } renderBtn(); renderDetail(data.now, msg); // if (G.site === 'zol') { // renderZol(obj, msg) // } gwdAd.init({ class_id: cate, keyword: keyword }, renderAd); }); case 23: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("6a0e4ebb57bf6aac1f2d"))) /***/ }), /***/ "e41a11f7982e4aab1ce6": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, regeneratorRuntime) { function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var _vuex = __webpack_require__("f6c9d8811ab2f0e17cf9"); var _vuex2 = _interopRequireDefault(_vuex); var _commonUserData = __webpack_require__("472a9b3fc8c8805a5dd7"); var _commonUserData2 = _interopRequireDefault(_commonUserData); var _commonLog = __webpack_require__("03dd60018ce5ed1344a1"); var _commonLog2 = _interopRequireDefault(_commonLog); var _commonCnzz = __webpack_require__("83271c7588396d2d5e59"); var _commonCnzz2 = _interopRequireDefault(_commonCnzz); var _commonRequest = __webpack_require__("91f250ebeb8d5987491c"); var _commonRequest2 = _interopRequireDefault(_commonRequest); var userCenter = __webpack_require__("69afa85b8d7929dd88c5"); var extConsole = __webpack_require__("316f9c352c6202560d16"); var inited = false; var instanceId = null, store = null; var getStore = function getStore() { __webpack_require__("316f9c352c6202560d16").log('getStore with instanceId', instanceId, 'G.instanceId', G.instanceId, 'G', G); if (G.instanceId !== instanceId) { instanceId = G.instanceId; store = makeStore(); window.gwdStore = store; return store; } else { window.gwdStore = store; return store; } }; module.exports.getStore = getStore; var makeStore = function makeStore() { return new _vuex2["default"].Store({ modules: { user: { namespaced: true, state: { login: false, wxQr: '' }, mutations: { setLogin: function setLogin(state) { var login = arguments.length <= 1 || arguments[1] === undefined ? true : arguments[1]; state.login = login; }, setWxQr: function setWxQr(state, qr) { state.wxQr = qr; } } }, priceRemind: { namespaced: true, state: { instanceId: G.instanceId, mode: 0, notifySite: 0, // 0 全网商家 1 当前商家 notifierMPromo: 1, // 多件推送 0 不开启 1 开启 allPrice: 0, currentPrice: 0, hovered: false, collected: false, settedNotifySite: null, nowPrice: 0, showMPromo: false }, mutations: { setState: function setState(state, payload) { Object.keys(payload).forEach(function (key) { state[key] = payload[key]; }); }, updateRemindSettings: function updateRemindSettings(state, payload) { // if (G.productChecked && G.productChecked.collected) { // debugger // } Object.keys(payload).forEach(function (key) { state[key] = payload[key]; }); } }, actions: { cancel: function cancel(ctx) { return regeneratorRuntime.async(function cancel$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: return context$2$0.abrupt("return", userCenter["delete"]().then(function (res) { ctx.commit('updateRemindSettings', { collected: false, settedNotifySite: null }); return new Promise(function (resolve) { return resolve(); }); })); case 1: case "end": return context$2$0.stop(); } }, null, this); }, reset: function reset(ctx) { return regeneratorRuntime.async(function reset$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: case "end": return context$2$0.stop(); } }, null, this); }, init: function init(ctx) { var dp_query, currentPrice, allPrice; return regeneratorRuntime.async(function init$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: // if (inited) { // return // } inited = true; if (G.userLogin) { ctx.commit('user/setLogin', true, { root: true }); } if (G.userLogin && G.productChecked && G.productChecked.collected) { ctx.commit('setState', { collected: true }); } context$2$0.next = 5; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('dp_query_set')); case 5: dp_query = _commonUserData2["default"].get('dp_query'); context$2$0.next = 8; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('NowPrice')); case 8: currentPrice = context$2$0.sent; // let single = await Promise.race([ // require('common/globalCondition').met('SinglePrice'), // require('common/commonUtil').sleep(1000) // ]) // if (single) { // currentPrice = single // } if (G.aliSite && G.dp.price) currentPrice = G.dp.price; allPrice = parseFloat(dp_query.b2c.min_price) || currentPrice; if (!allPrice || isNaN(allPrice)) allPrice = currentPrice; currentPrice = parseFloat(currentPrice.toString().replace(',', '')); allPrice = parseFloat(allPrice.toString().replace(',', '')); if (dp_query.b2c.product && dp_query.b2c.product.length !== 0) { (0, _commonLog2["default"])('allsite-lowpri-show'); _commonCnzz2["default"].log('allsite-lowpri-show'); } if (!(G.productChecked && G.productChecked.collected)) { ctx.commit('updateRemindSettings', { allPrice: allPrice, currentPrice: currentPrice, notifySite: 1, nowPrice: currentPrice }); __webpack_require__("9c38beef5ff283e15bd2").met('SinglePrice').then(function (single) { ctx.commit('updateRemindSettings', { currentPrice: single }); }); } __webpack_require__("9c38beef5ff283e15bd2").setMet('PriceRemindSetted'); case 17: case "end": return context$2$0.stop(); } }, null, this); }, hover: function hover(ctx) { var url, cat_id, cats; return regeneratorRuntime.async(function hover$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: if (ctx.state.hovered) { context$2$0.next = 7; break; } if (G.userLogin) { url = "https://www.gwdang.com/collect/get_qrcode/"; if (G.qrApi && G.qrApi !== 'default') { url = G.qrApi; } _commonRequest2["default"].rawGet(url, true).then(function (data) { ctx.commit('user/setWxQr', data.img_url, { root: true }); }); cat_id = G.dp.cat_id; if (cat_id && cat_id.includes('-')) { cats = cat_id.split('-'); if (cats.length > 3) { cats.pop(); } cat_id = cats.join(','); } _commonRequest2["default"].get(G.server + "/extension/ProductFilter?scene=collection&dp_ids=" + G.dp.dpId + "&one=1&cid=" + cat_id).then(function (r) { if (r.data && !r.data.is_black_class) { G.showMPromo = true; ctx.commit('setState', { showMPromo: true }); } }); } if (!(G.userLogin && ctx.state.collected)) { context$2$0.next = 6; break; } context$2$0.next = 5; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('GwdDpIdGot')); case 5: userCenter.detail(G.dp.dpId).then(function (r) { extConsole.log('detail', r); var payload = { mode: r.data.notifier.mode, notifySite: r.data.notifier.site, settedNotifySite: r.data.notifier.site, notifierMPromo: r.data.notifier.mpromo }; if (payload.notifySite === 1) { payload.currentPrice = r.data.notifier.threshold; } else { payload.allPrice = r.data.notifier.threshold; } // payload.currentPrice = r.data.notifier.threshold ctx.commit('updateRemindSettings', payload); }); case 6: ctx.commit('setState', { hovered: true }); case 7: case "end": return context$2$0.stop(); } }, null, this); }, submit: function submit(ctx, payload) { return regeneratorRuntime.async(function submit$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: return context$2$0.abrupt("return", userCenter.add(payload.price, payload.notifySite, payload.mode, payload.notifyMPromo, ctx.state.showMPromo ? 0 : 1).then(function (r) { if (r.error_code && r.error_code === 1000) { ctx.commit('user/setLogin', false, { root: true }); } if (r.code === 100 || r.code <= 0) { return new Promise(function (resolve, reject) { reject(r.msg); }); } if (r.code === 1) { var mode = payload.mode; var site = payload.notifySite; if (r.data) { mode = r.data.notifier.mode; site = r.data.notifier.site; } var payloadRes = { mode: mode, notifySite: site, settedNotifySite: site, collected: true, notifierMPromo: payload.notifyMPromo ? 1 : 0 }; if (r.data) { if (payloadRes.notifySite === 1) { payloadRes.currentPrice = r.data.notifier.threshold; } else { payloadRes.allPrice = r.data.notifier.threshold; } } else { if (payloadRes.notifySite === 1) { payloadRes.currentPrice = payload.price; } else { payloadRes.allPrice = payload.price; } } ctx.commit('updateRemindSettings', payloadRes); return new Promise(function (resolve) { resolve('提交成功'); }); } })); case 1: case "end": return context$2$0.stop(); } }, null, this); } } }, priceTrend: { namespaced: true, state: { money: '', priceRange: '', nowPrice: '' }, mutations: { setState: function setState(state, payload) { Object.keys(payload).forEach(function (key) { state[key] = payload[key]; }); } } } } }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("6a0e4ebb57bf6aac1f2d"))) /***/ }), /***/ "e44bb253fc6158839bc6": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Share_vue_vue_type_style_index_0_id_3489a5d0_scoped_true_lang_css__ = __webpack_require__("e464753ea32f9f76441f"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Share_vue_vue_type_style_index_0_id_3489a5d0_scoped_true_lang_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Share_vue_vue_type_style_index_0_id_3489a5d0_scoped_true_lang_css__); /* unused harmony reexport namespace */ /***/ }), /***/ "e464753ea32f9f76441f": /***/ (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__("2b188aa330e4cb5f39f0"); if(typeof content === 'string') content = [[module.i, content, '']]; // add the styles to the DOM var update = __webpack_require__("10fdb983c061c1343439")(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/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./Share.vue?vue&type=style&index=0&id=3489a5d0&scoped=true&lang=css", function() { var newContent = require("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./Share.vue?vue&type=style&index=0&id=3489a5d0&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(); }); } /***/ }), /***/ "e466073903ec8c7d745c": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QuestHint_vue_vue_type_template_id_39a606fa_scoped_true__ = __webpack_require__("99257706c3cfa9179fc9"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QuestHint_vue_vue_type_template_id_39a606fa_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QuestHint_vue_vue_type_template_id_39a606fa_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QuestHint_vue_vue_type_template_id_39a606fa_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QuestHint_vue_vue_type_template_id_39a606fa_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QuestHint_vue_vue_type_template_id_39a606fa_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QuestHint_vue_vue_type_template_id_39a606fa_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "e63627d6fd452331a10e": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Error_vue_vue_type_template_id_8eca1ada_scoped_true__ = __webpack_require__("f5a090b98c098d197e44"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Error_vue_vue_type_script_lang_js__ = __webpack_require__("5d5a32f7c414a996ad86"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__Error_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__Error_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Error_vue_vue_type_style_index_0_id_8eca1ada_scoped_true_lang_less__ = __webpack_require__("6131b214d8cca1f7dad1"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__Error_vue_vue_type_script_lang_js__["default"], __WEBPACK_IMPORTED_MODULE_0__Error_vue_vue_type_template_id_8eca1ada_scoped_true__["render"], __WEBPACK_IMPORTED_MODULE_0__Error_vue_vue_type_template_id_8eca1ada_scoped_true__["staticRenderFns"], false, null, "8eca1ada", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('8eca1ada')) { api.createRecord('8eca1ada', component.options) } else { api.reload('8eca1ada', component.options) } module.hot.accept("./Error.vue?vue&type=template&id=8eca1ada&scoped=true", function () { api.rerender('8eca1ada', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/ImgSame/Error.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "e6521b4ea881581e5851": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var request = __webpack_require__("91f250ebeb8d5987491c"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var priceCheck = __webpack_require__("8b533351445f44b98685"); var monitor = __webpack_require__("ae80362cd6a2d17c50a8"); var inventoryCheck = __webpack_require__("a53850c80a1cfefa4efa"); var tbCompare2 = __webpack_require__("a8d04aabebd76e8bb3f7"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var loadCss = __webpack_require__("ada67488a8c93132fc1d"); var utils = __webpack_require__("d54879e983a83d07f093"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); __webpack_require__("fcdd97987c010877a5a5"); var perInfo = undefined, percallback = undefined, hasReq = undefined; var getPermanInfo = function getPermanInfo(callback) { if (perInfo) { callback(perInfo); return; } if (hasReq) { percallback = callback; return; } hasReq = true; var url = G.server + '/brwext/permanent_id?version=2&default_style=bottom&referrer=' + encodeURIComponent(document.referrer); request.get(url).then(function (data) { if (data) { perInfo = data; if (data.email && data.email.indexOf('%') > -1) { data.email = decodeURIComponent(data.email); } G.email = data.email; G.show_app = data.show_app; G.force = data.force; callback(data); if (percallback) percallback(data); } }); }; var editData = function editData(style, data) { if (G.aliSite) return data; if (data.b2c && data.b2c.length !== 0) { if (style === 'top') { var storeLen = data.b2c.store.length; for (var i = storeLen - 1; i >= 0; i--) { if (data.b2c.store[i].is_third && data.b2c.store[i].shop_name) { data.b2c.store[i].site_name2 = data.b2c.store[i].site_name; data.b2c.store[i].site_name = data.b2c.store[i].site_name.replace("第三方", "") + '-' + data.b2c.store[i].shop_name; } data.b2c.store[i].price = (Number(data.b2c.store[i].price) / 100).toFixed(2); data.b2c.store[i].price2 = data.b2c.store[i].price; if (!data.b2c.store[i].title || !data.b2c.store[i].img_url) { data.b2c.store.splice(i, 1); } } data.b2c.store2 = data.b2c.store.slice(0, 6); var productLen = data.b2c.product.length; for (var i = productLen - 1; i >= 0; i--) { if (data.b2c.product[i].is_third && data.b2c.product[i].shop_name) { data.b2c.product[i].site_name2 = data.b2c.product[i].site_name; data.b2c.product[i].site_name = data.b2c.product[i].site_name.replace("第三方", "") + '-' + data.b2c.product[i].shop_name; } var pitem = data.b2c.product[i]; if (pitem.promotions && pitem.fee && pitem.fee.indexOf('缺货') === -1) { pitem.promo2 = []; pitem.coupon2 = []; pitem.yushou2 = []; for (var k = 0; k < pitem.promotions.length; k++) { if (pitem.promotions[k].type === "promo") { if (pitem.promotions[k].tag === '预售') { pitem.yushou2.push(pitem.promotions[k].text); } else { pitem.promo2.push(pitem.promotions[k].text); } } else { pitem.coupon2.push(pitem.promotions[k].text); } } if (pitem.promo2.length === 0) pitem.promo2 = null; if (pitem.coupon2.length === 0) pitem.coupon2 = null; if (pitem.yushou2.length === 0) pitem.yushou2 = null; } data.b2c.product[i].price = (Number(data.b2c.product[i].price) / 100).toFixed(2); if (!data.b2c.product[i].title || !data.b2c.product[i].img_url) { data.b2c.product.splice(i, 1); } } data.b2c.min_price = (Number(data.b2c.min_price) / 100).toFixed(2); } else { var storeLen = data.b2c.store.length; for (var i = storeLen - 1; i >= 0; i--) { if (!data.b2c.store[i].product) continue; var productiLen = data.b2c.store[i].product.length; for (var j = productiLen - 1; j >= 0; j--) { if (data.b2c.store[i].product[j].is_third && data.b2c.store[i].product[j].shop_name) { data.b2c.store[i].product[j].site_name2 = data.b2c.store[i].product[j].site_name; data.b2c.store[i].product[j].site_name = data.b2c.store[i].product[j].site_name.replace("第三方", "") + '-' + data.b2c.store[i].product[j].shop_name; } data.b2c.store[i].product[j].price = (Number(data.b2c.store[i].product[j].price) / 100).toFixed(2); data.b2c.store[i].product[j].l_price = (Number(data.b2c.store[i].product[j].l_price) / 100).toFixed(2); var pitem = data.b2c.store[i].product[j]; if (pitem.promotions && pitem.fee && pitem.fee.indexOf('缺货') === -1) { pitem.promo2 = []; pitem.coupon2 = []; pitem.yushou2 = []; for (var k = 0; k < pitem.promotions.length; k++) { if (pitem.promotions[k].type === "promo") { if (pitem.promotions[k].tag === '预售') { pitem.yushou2.push(pitem.promotions[k].text); } else { pitem.promo2.push(pitem.promotions[k].text); } } else { pitem.coupon2.push(pitem.promotions[k].text); } } if (pitem.promo2.length === 0) pitem.promo2 = null; if (pitem.coupon2.length === 0) pitem.coupon2 = null; if (pitem.yushou2.length === 0) pitem.yushou2 = null; } if (!data.b2c.store[i].product[j].title || !data.b2c.store[i].product[j].img_url) { data.b2c.store[i].product.splice(j, 1); } } } } } else if (data.b2c_fuzzy && data.b2c_fuzzy.length !== 0) { var productLen = data.b2c_fuzzy.product.length; for (var i = productLen - 1; i >= 0; i--) { if (data.b2c_fuzzy.product[i].is_third && data.b2c_fuzzy.product[i].shop_name) { data.b2c_fuzzy.product[i].site_name2 = data.b2c_fuzzy.product[i].site_name; data.b2c_fuzzy.product[i].site_name = data.b2c_fuzzy.product[i].site_name.replace("第三方", "") + '-' + data.b2c_fuzzy.product[i].shop_name; } var pitem = data.b2c_fuzzy.product[i]; if (pitem.promotions && pitem.fee && pitem.fee.indexOf('缺货') === -1) { pitem.promo2 = []; pitem.coupon2 = []; pitem.yushou2 = []; for (var k = 0; k < pitem.promotions.length; k++) { if (pitem.promotions[k].type === "promo") { if (pitem.promotions[k].tag === '预售') { pitem.yushou2.push(pitem.promotions[k].text); } else { pitem.promo2.push(pitem.promotions[k].text); } } else { pitem.coupon2.push(pitem.promotions[k].text); } } if (pitem.promo2.length === 0) pitem.promo2 = null; if (pitem.coupon2.length === 0) pitem.coupon2 = null; if (pitem.yushou2.length === 0) pitem.yushou2 = null; } data.b2c_fuzzy.product[i].price = (Number(data.b2c_fuzzy.product[i].price) / 100).toFixed(2); data.b2c_fuzzy.product[i].img_url2 = data.b2c_fuzzy.product[i].img_url && data.b2c_fuzzy.product[i].img_url.replace('s100x100', 's140x140'); if (!data.b2c_fuzzy.product[i].title || !data.b2c_fuzzy.product[i].img_url) { data.b2c_fuzzy.product.splice(i, 1); } } data.b2c_fuzzy.min_price = (Number(data.b2c_fuzzy.min_price) / 100).toFixed(2); } return data; }; var times = 0; var renderMiniFavor = function renderMiniFavor() { times++; if (times > 1) { console.log('getPermanInfo B'); getPermanInfo(function () { // require('miniFavor').init() // require('topFavor').init() }); } }; var getProductInfo = function getProductInfo(style, callback) { console.log('getproductinfo start'); G.province_id = priceCheck.getSubStationId(G.dp.site); var debugData = G.debug ? '&debug=1' : ''; if (G.noRealPrice) { G.dp.price = 0; } G.dp.inventory = inventoryCheck.init(G.site); var url = encodeURIComponent(G.dp.url); var name = encodeURIComponent(G.dp.name); var keyword = encodeURIComponent(G.dp.keyword); var skeyword = encodeURIComponent(G.dp.skeyword); var cat_id = typeof G.dp.cat_id != 'undefined' ? G.dp.cat_id : ''; var pic = typeof G.dp.pic != 'undefined' ? encodeURIComponent(G.dp.pic) : ''; var cat_name = encodeURIComponent(G.dp.cat_name); var brand_string = encodeURIComponent(G.dp.brand_string); var dp_interfavce_url = G.server + '/brwext/dp_query_latest?permanent_id=' + G.p_id + '&union=' + G.union + '&url=' + url + '&site=' + G.dp.site + '&isbn=' + G.dp.isbn + '&name=' + name + '&keyword=' + keyword + '&skeyword=' + skeyword + '&id=' + G.dp.id + '&price=' + G.dp.price + '&stock=' + G.dp.inventory + '&province_id=' + G.province_id + '&subsite_id=' + G.subsite_id + '&cat_id=' + cat_id + '&pic=' + pic + '&userid=' + G.dp.userid + '&shop_name=' + G.dp.shop_name + '&shop_addres=' + G.dp.shop_addres + '&cat_name=' + cat_name + '&brand_string=' + brand_string + debugData + '&style=' + style + '&ingre=1'; var other_info_url = G.server + '/brwext/prepare?permanent_id=' + G.p_id + '&union=' + G.union + '&url=' + url + '&site=' + G.dp.site + '&isbn=' + G.dp.isbn + '&name=' + name + '&keyword=' + keyword + '&skeyword=' + skeyword + '&id=' + G.dp.id + '&price=' + G.dp.price + '&stock=' + G.dp.inventory + '&province_id=' + G.province_id + '&subsite_id=' + G.subsite_id + '&cat_id=' + cat_id + '&pic=' + pic + '&userid=' + G.dp.userid + '&shop_name=' + G.dp.shop_name + '&shop_addres=' + G.dp.shop_addres + '&cat_name=' + cat_name + '&brand_string=' + brand_string + debugData; request.get(dp_interfavce_url).then(function (data) { __webpack_require__("9c38beef5ff283e15bd2").setMet('dp_query_latest_complete', data); __webpack_require__("94dcbcd87711142a8b0b").init(data.ingre); G.dp.dpId = data.dp.dp_id; data = editData(style, data); userData.set('dp_query', data); console.log('dp_query set'); __webpack_require__("9c38beef5ff283e15bd2").setMet('dp_query_set'); renderMiniFavor(); callback(data); })['catch'](function () { callback(null); }); request.get(other_info_url).done(function (data) { G.dp.dpId = data.now.dp_id; if (G.dp && G.dp.dpId) { console.log('start checking'); __webpack_require__("69afa85b8d7929dd88c5").checked(G.dp.dpId).then(function (res) { if (res.data && res.data.qr_api) { G.qrApi = res.data.qr_api; } console.log('checked data', res); if (res.code === 0 || res.error_code === 1000) { /** 用户是否登录 */ G.userLogin = false; utils.setLocal('userLogin', null); } else if (res.code !== undefined) { /** 商品收藏状态 */ G.productChecked = res.data; console.log('setting product checked'); G.userLogin = true; G.email = 1; utils.setLocal('userLogin', true); __webpack_require__("51aadd1e1b65f329a862").renderAgain(); $(document).trigger('checkfavor'); } globalCondition.setMet('userLoginChecked'); __webpack_require__("9c38beef5ff283e15bd2").setMet('checked_data_got'); // 加载中间部分收藏降价提醒 __webpack_require__("39c432bd7bb3fe587696").init(); __webpack_require__("6b8303d96ee13d08f335").init(); __webpack_require__("d80601251d793aa54a67").init(); $(document).trigger('checkfavor'); }); } userData.set('other_info', data); tbCompare2.init(); __webpack_require__("e3aad1ff685fc198354a").init(data); __webpack_require__("999cc56b04566e456c6b").init(data); __webpack_require__("0f10f0b54cd641a49a27").init(); renderMiniFavor(); __webpack_require__("85f9e563e35dd4a4e51e").init(); __webpack_require__("bb230b042f0d058f8c66").init(); __webpack_require__("b222cbd907f0b4aea97f").init(data.now.dp_id); __webpack_require__("c72145693e59d4fc8fe3").show(data.exact_arr.isbn, style); __webpack_require__("abb2c55465e8bd1d8753").init(data.now.dp_id); $(document).trigger('minicom'); __webpack_require__("9c38beef5ff283e15bd2").setMet('GwdDpIdGot', data.now.dp_id); log('category:' + G.logsite + ':' + data.now.dp_id + '/' + data['code-server'].class_id + '/'); /*eslint-disable */ if (G.debug && window.console) { console.log(data); } // #if dcm if (window.console) { window.console.log('keywords:', data.exact_arr.keywords); if (data.now.title) window.console.log('title:', data.now.title); if (data['code-server']) window.console.log(data['code-server']); if (data.now) window.console.log(data.now); } // #end /*eslint-enable */ }).fail(function () { __webpack_require__("85f9e563e35dd4a4e51e").init(); }); }; var renderCss = function renderCss(style) { $('html').addClass('gwd_' + G.site); $('html').addClass('gwd_' + style); $('html').addClass('' + G.from_device); G.instanceId = parseInt(Math.random() * 10000); $('html').attr('data-gwd-id', G.instanceId); if (style === 'top') { loadCss.init('gwdang-notifier-new6.css'); } else if (style === 'bottom') { loadCss.init('gwdang-notifier-bottom-new6.css'); } }; var renderMainBar = function renderMainBar(style) { if (G.site === "steampowered") return; if (style === 'top') { __webpack_require__("3690f6d076b37bda66b7").init(); } else if (style === 'bottom') { __webpack_require__("2da79097fdc184b40ede").init2(); } }; var getLocalPermanInfo = function getLocalPermanInfo(callback) { var runcallback = undefined; communicate.on(function (data) { if (typeof data === 'string') { data = JSON.parse(data); } if (data.type === 'browser_setinfo') { data = data.value; G.allowBackgroundRequest = !!data.allowBackgroundRequest; G.canUseLocalLoginCheck = !!data.canUseLocalLoginCheck; if (G.allowBackgroundRequest) { setTimeout(function () { __webpack_require__("e3916f328c1834810f25").init(); }, 3000); } data.style = data.setStyle || 'top'; // data.top_fold = data.top_fold || '1'; // data.bottom_fold = data.bottom_fold || '0'; if (!runcallback) { if (runcallback) return; runcallback = true; userData.set('permanent', data); callback(data); // console.log('getPermanentInfo A') // getPermanInfo(function(info) { // data.top_fold = data.top_fold || info.p_fold || '0'; // data.setWishlist = data.setWishlist || info.show_wishlist || '0'; // data.setShowPromo = data.setShowPromo || info.show_promo || '0'; // data.bottom_fold = data.bottom_fold || info.p_fold || '0'; // if (data.localHost) // G.localHost = data.localHost; // if (data.user_extension_id) // G.userid = data.user_extension_id; // if (data.version) // G.ext_v = data.version; // userData.set('permanent', data) // callback(data) // // }) } } else if (data.type === 'user_extension_id') { G.userid = data.value; } else if (data.type === 'get_local_host') { G.localHost = data.value; } else if (data.type === 'get_local_img') { G.localImg = data.value; if (G.from_device === 'firefox') { G.noImg = data.value + 'default_load_image.png'; G.imgLoad = data.value + '120.gif'; } } }); setTimeout(function () { if (!runcallback) { (function () { var data = { 'style': 'bottom' }; console.log('getPermanent C'); getPermanInfo(function (info) { if (runcallback) return; data.top_fold = data.top_fold || info.p_fold || '0'; data.bottom_fold = data.bottom_fold || info.p_fold || '0'; data.setWishlist = data.setWishlist || info.show_wishlist || '0'; data.setShowPromo = data.setShowPromo || info.show_promo || '0'; data.style = info.style || 'top'; data.setTip = info.show_tip || '1'; data.sethaitao = info.show_haitao || '1'; userData.set('permanent', data); callback(data); runcallback = true; }); // userData.set('permanent', data) // callback(data) // runcallback = true })(); } }, 180); communicate.trigger({ 'type': 'user_extension_id' }); communicate.trigger({ 'type': 'browser_setinfo' }); communicate.trigger({ 'type': 'get_local_host' }); communicate.trigger({ 'type': 'get_local_img' }); }; var renderModule = function renderModule(style) { console.log('renderModule start'); __webpack_require__("5864b02248792e9a51fc").init(); getProductInfo(style, function (data) { __webpack_require__("c912948d535762b7172f").init(style, data); __webpack_require__("4b0daa953481b86e6349").init('b2c', data); if (data && data.dp) { __webpack_require__("97fdbca8ef7c5ce49bce").init(data.dp.dp_id); } // if (userData.get('other_info')) { // require('./miniBar').renderMiniCom(data) // } else { // $(document).on('minicom', function() { // require('./miniBar').renderMiniCom(data) // }) // } if (location.host.indexOf('.jd.com') > -1 || location.host.indexOf('suning') > -1) __webpack_require__("2f77f5f9070b5907552e").init2();else if (location.host.indexOf('taobao') > -1 || location.host.indexOf('tmall') > -1) __webpack_require__("2f77f5f9070b5907552e").init(); setTimeout(function () { __webpack_require__("d0be176400e0cbc97f82").init(); }, 2500); __webpack_require__("238322f76284ba9e93e3").init(); __webpack_require__("7026a4b5462dc6da5555").init(); monitor.init(); }); }; var backgroundReqReady = function backgroundReqReady() { if (G.site === 'tmall' || G.site === 'taobao-95095' || G.site === 'ai-taobao' || G.site === 'taobao') { __webpack_require__("1f677ede70b4f8bcb282").init2(); __webpack_require__("75d41ad7d5a1bceb52d2").init(); } if (location.host.indexOf('amazon') > -1 && location.host !== 'www.amazon.cn') { __webpack_require__("697c3c62b588ebd6f1b3").ready(); } __webpack_require__("ff881c8b15091819a13e").ready(); if (G.site === "aliexpress") __webpack_require__("fa297f213d29eb497c63").init(); }; var urltimes = 0; var listenUrlChange = function listenUrlChange() { if (urltimes > 99999) return; urltimes++; var url = location.href; var k = setInterval(function () { if (url !== location.href || window.extNeedReload) { //location.reload(); window.gwd_G = false; window.extNeedReload = false; $('.gwd-minibar-bg').remove(); $('#gwdang_main').remove(); $('#bjd_bottom_detail').remove(); $(G.dval).remove(); url = location.href; var fromDevice = G.from_device; G = __webpack_require__("5d4f0e584bd9a3a675b3"); __webpack_require__("2471c34a1449a65b6e88").clear(); if (window.gwdActivity) { window.gwdActivity = false; } if (fromDevice === '360server') { __webpack_require__("6a6d60b5e4dc52d8b1ea"); } else { __webpack_require__("b1cae3a1887fb97c6c83"); } __webpack_require__("5e05e6f5fe79ccf5d009").init(); if (location.host === 'm.fine3q.com') __webpack_require__("bf822aacfeba494ced92").init(); __webpack_require__("cb0906562effcf1b0e6c").getRate(function () { __webpack_require__("edb006a6bdc87dceab2d").common(function (data) { if (data && data.result.address.indexOf('北京') > -1) { G.forbidGiftMoney = true; } __webpack_require__("4733a3dd803685ec596a").get(function () { var cnzz = __webpack_require__("83271c7588396d2d5e59"); if (cnzz) cnzz.init(G.gwd_cnzz); __webpack_require__("e6521b4ea881581e5851").init(); }); }); }); clearInterval(k); } }, 200); }; module.exports.init = function () { __webpack_require__("86382bef702254f6385c").init(); __webpack_require__("f2b706dcdb3731e0de2c").init(); __webpack_require__("48c7bf720f8190dd7cc2"); window.gwdGlobalCondition = __webpack_require__("9c38beef5ff283e15bd2"); console.log('start from monkey'); if (G.site === 'taobao' || G.site === '6pm' || G.site === 'amazon' || G.site === 'lining' || G.site === 'tmall') { setTimeout(listenUrlChange, 2000); } getLocalPermanInfo(function (data) { if (window.gwd_G) return; window.gwd_G = G; request.get("https://cdn.gwdang.com/js/configs/specialContent.json").then(function (res) { if (res.html) { setTimeout(function () { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var html = template.compile(res.html, { escape: false })(); $('body').append(html); }, 0); } }); __webpack_require__("9c38beef5ff283e15bd2").met('GwdConfig').then(function (res) { if (res.html) { setTimeout(function () { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var html = template.compile(res.html, { escape: false })(); $('body').append(html); }, 0); } }); log("page_view:" + G.logsite); renderCss(data.style); __webpack_require__("407815218a61650063ce").init(); var pInfo = G.pageInfo; if (pInfo.type === 1) { __webpack_require__("6eb6300b1093d4b652fb").init(); __webpack_require__("c815d6a749e99fa1daa5").init(); if (location.host.indexOf('taobao') > -1 || location.host.indexOf('tmall') > -1) { __webpack_require__("98e93ed4a85e80c55160").init(); } if (location.host.indexOf('.jd.com') > -1) { __webpack_require__("ccd952a0cd9003e1d392").init(); } if (location.host === 'search.jd.com' || location.host === 'list.jd.com') { __webpack_require__("21a23fb5ce47a7748fec").init(); } __webpack_require__("ee3f371a85b894c823bf").init(); __webpack_require__("a4447e95a8966a5c4979").init(); getPermanInfo(function () { __webpack_require__("ea576a0e729bc2bff522")(); }); } else if (pInfo.type === 2) { __webpack_require__("44239e28538215cb3189").reset(); if (G.site === 'taobao' || G.site === 'tmall') { __webpack_require__("916640eba3b525c3fef0").init(); __webpack_require__("16a5f67f011344d796e6").init(); } renderMainBar(data.style); renderModule(data.style); __webpack_require__("6b5f3f4c7b5f37c1088e").init(); __webpack_require__("1c640a99db9f6f8a16c2").listenBar(data.style); backgroundReqReady(); if (location.host === 'www.amazon.com' || location.host === 'www.amazon.co.jp' || G.site === '6pm') __webpack_require__("386e47e61222ba76fe18").init(); log('product_page_visit:' + G.logsite); __webpack_require__("99967238159b55ea4e52").init(); __webpack_require__("cceeed893387dc9fce45").init(); } __webpack_require__("c4adb5832af3824ff1c6").init(); __webpack_require__("636389e3a752a8309f94").init(pInfo.type); }); window.disable_gwd_privacy = function () { communicate.trigger({ type: 'disable_gwd_privacy' }); }; window.enable_gwd_privacy = function () { communicate.trigger({ type: 'enable_gwd_privacy' }); }; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "e67e07c9486eb1a69b24": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkButie_vue_vue_type_script_lang_js__ = __webpack_require__("b82b842ec7ea48c0180f"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkButie_vue_vue_type_script_lang_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkButie_vue_vue_type_script_lang_js__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkButie_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_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkButie_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkButie_vue_vue_type_script_lang_js___default.a); /***/ }), /***/ "e7647e448b8d550d841d": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_JdSearchEnhance_vue_vue_type_style_index_0_id_209e5606_scoped_true_lang_css__ = __webpack_require__("f77c93a94c9ff23ae111"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_JdSearchEnhance_vue_vue_type_style_index_0_id_209e5606_scoped_true_lang_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_JdSearchEnhance_vue_vue_type_style_index_0_id_209e5606_scoped_true_lang_css__); /* unused harmony reexport namespace */ /***/ }), /***/ "e8bef0abdedab7a93f39": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_template_id_9a793014_scoped_true__ = __webpack_require__("a81715d3ac7033557ec7"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_template_id_9a793014_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_template_id_9a793014_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_template_id_9a793014_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_template_id_9a793014_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_template_id_9a793014_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_template_id_9a793014_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "e8fd6105fa4167750018": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QuestHint_vue_vue_type_style_index_0_id_39a606fa_scoped_true_lang_less__ = __webpack_require__("b8b218183fed21315954"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QuestHint_vue_vue_type_style_index_0_id_39a606fa_scoped_true_lang_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QuestHint_vue_vue_type_style_index_0_id_39a606fa_scoped_true_lang_less__); /* unused harmony reexport namespace */ /***/ }), /***/ "e95fb8a119b5e2e1fc01": /***/ (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__("1ac2ed95b12009d81ec2"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("3bb13aaf", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./TbButieQR.vue?vue&type=style&index=0&id=5d6078e1&scoped=true&lang=less", function() { var newContent = require("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./TbButieQR.vue?vue&type=style&index=0&id=5d6078e1&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "e98c136e68db6cb669b7": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; 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 input($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 input($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 input($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 input($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; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "e995526972008feac52d": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, ".gwd-row[data-v-3f03717c] {\n display: flex;\n flex-direction: row;\n}\n.gwd-inline-row[data-v-3f03717c] {\n display: inline-flex;\n flex-direction: row;\n}\n.gwd-column[data-v-3f03717c] {\n display: flex;\n flex-direction: column;\n}\n.gwd-inline-column[data-v-3f03717c] {\n display: inline-flex;\n flex-direction: column;\n}\n.gwd-align[data-v-3f03717c] {\n align-content: center;\n align-items: center;\n}\n.gwd-jcc[data-v-3f03717c] {\n justify-content: center;\n}\n.gwd-jic[data-v-3f03717c] {\n justify-items: center;\n}\n.gwd-button[data-v-3f03717c] {\n outline: none;\n border: none;\n}\n.bjg-bar-button[data-v-3f03717c] {\n font-size: 0;\n}\n.bjg-hover-bg[data-v-3f03717c] {\n background: #fffbef;\n}\n.bjg-bar-button[data-v-3f03717c]:hover {\n background: #fffbef;\n cursor: pointer;\n}\n.bjg-bar-button:hover .bjg-window[data-v-3f03717c] {\n display: block;\n}\n.mainbar-fold .bjg-bar-button[data-v-3f03717c],\n.mainbar-fold #top_coupon_btn[data-v-3f03717c],\n.mainbar-fold .rinfo-btn[data-v-3f03717c],\n.mainbar-fold .gwd-bottom-tmall[data-v-3f03717c] {\n display: none!important;\n}\n.gwd-font12[data-v-3f03717c] {\n font-size: 12px;\n}\n.gwd-font14[data-v-3f03717c] {\n font-size: 14px;\n}\n.gwd-red[data-v-3f03717c] {\n color: #ff3532;\n}\n.gwd-red-bg[data-v-3f03717c] {\n background: #ff3532;\n}\n.gwd-hui333[data-v-3f03717c] {\n color: #333333;\n}\n.gwd-hui999[data-v-3f03717c] {\n color: #999999;\n}\n.gwd-font10[data-v-3f03717c] {\n font-size: 12px;\n transform: scale(0.8333);\n transform-origin: bottom center;\n}\n.gwd-font11[data-v-3f03717c] {\n font-size: 12px;\n transform: scale(0.91666);\n transform-origin: bottom center;\n}\n.gwd-font9[data-v-3f03717c] {\n font-size: 12px;\n transform: scale(0.75);\n transform-origin: bottom center;\n}\n.gwd-hoverable[data-v-3f03717c]:hover {\n background: #edf1f2;\n}\n.right-info > *[data-v-3f03717c] {\n border-left: 1px solid #edf1f2;\n}\n.gwd-red-after-visit[data-v-3f03717c]:hover {\n color: #e03024 !important;\n}\n.gwd-button[data-v-3f03717c]:hover {\n filter: brightness(1.1);\n}\n.gwd-button[data-v-3f03717c] {\n padding-top: 1px;\n padding-bottom: 1px;\n}\n.gwd-button[data-v-3f03717c]:active {\n filter: brightness(0.9);\n}\n.gwd-fadeout-5s[data-v-3f03717c] {\n opacity: 0;\n transition: opacity 5s;\n}\n.gwd-scrollbar[data-v-3f03717c]::-webkit-scrollbar {\n width: 6px;\n border-radius: 17px;\n}\n.gwd-scrollbar[data-v-3f03717c]::-webkit-scrollbar-thumb {\n border-radius: 17px;\n background: #999;\n}\n#gwdang_main[data-v-3f03717c],\n.gwdang-main[data-v-3f03717c],\n.bjgext-detail[data-v-3f03717c] {\n font-size: 12px;\n}\n#gwdang_main button[data-v-3f03717c],\n.gwdang-main button[data-v-3f03717c],\n.bjgext-detail button[data-v-3f03717c] {\n text-align: center;\n}\n.gwd-width-100[data-v-3f03717c] {\n width: 100%;\n}\n.gwd-overlay[data-v-3f03717c] {\n font-family: \"Microsoft YaHei\", \"Arial\", \"SimSun\", serif;\n font-size: 0;\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n background: rgba(0, 0, 0, 0.35);\n z-index: 999999999;\n}\n.gwd-btn-submit[data-v-3f03717c] {\n border: none;\n outline: none;\n background: #48befe;\n width: 128px;\n height: 32px;\n font-size: 14px;\n color: white;\n border-radius: 4px;\n cursor: pointer;\n}\n.gwd-btn-del[data-v-3f03717c] {\n width: 60px;\n height: 20px;\n border-radius: 2px 2px 2px 2px;\n opacity: 1;\n border: 1px solid #E6E9EB;\n color: #404547;\n background: white;\n position: relative;\n box-sizing: border-box;\n}\n.gwd-btn-del[data-v-3f03717c]:hover {\n filter: brightness(1.05);\n cursor: pointer;\n}\n.gwd-btn-del[data-v-3f03717c]::before {\n content: '';\n position: absolute;\n top: -1px;\n left: -1px;\n right: -1px;\n bottom: -1px;\n z-index: -1;\n background: #e6e9eb;\n}\n.gwd-collection-detail[data-v-3f03717c] {\n font-family: 'Microsoft Yahei', tahoma, arial, 'Hiragino Sans GB', sans-serif;\n}\n.gwd-collection-detail .gwd-vline[data-v-3f03717c] {\n width: 0;\n height: 197px;\n border-right: 1px dashed #e6e9eb;\n margin-left: 13px;\n margin-right: 15px;\n}\n.gwd-collection-detail .gwd-container .gwd-remind-option[data-v-3f03717c] {\n height: 24px;\n white-space: nowrap;\n position: relative;\n}\n.gwd-collection-detail .gwd-container .gwd-remind-option span[data-v-3f03717c] {\n color: #404547;\n font-size: 13px;\n}\n.gwd-collection-detail .gwd-container .gwd-remind-option span.gwd-currency[data-v-3f03717c] {\n color: #48befe;\n font-size: 16px;\n position: absolute;\n left: 82px;\n top: 13px;\n transform: translateY(-50%);\n}\n.gwd-collection-detail .gwd-container .gwd-remind-option .gwd-remind-current[data-v-3f03717c] {\n margin-left: 8px;\n width: 57px;\n}\n.gwd-remind-error-text[data-v-3f03717c] {\n color: #d80001;\n position: absolute;\n bottom: 61px;\n left: 0;\n right: 0;\n text-align: center;\n}\n.gwd-remind-hint-text[data-v-3f03717c] {\n color: #48befe;\n position: absolute;\n bottom: 61px;\n left: 0;\n right: 0;\n text-align: center;\n}\n.gwd-red-price[data-v-3f03717c] {\n color: #d80001;\n}\n.gwd-collection-comp[data-v-3f03717c] {\n border-left: 1px solid #e6e9eb;\n}\n.gwd-collection-detail[data-v-3f03717c] {\n width: 300px;\n position: relative;\n}\n.gwd-collection-detail .gwd-container[data-v-3f03717c] {\n border-radius: 4px;\n background: #f8fcfe;\n padding: 8px;\n box-sizing: border-box;\n}\n.gwd-collection-detail .gwd-container .gwd-remind-option span.gwd-currency[data-v-3f03717c] {\n left: 82px;\n}\n.gwd-collection-detail.gwd-ht[data-v-3f03717c] {\n width: 335px;\n}\n", ""]); // exports /***/ }), /***/ "e9f44c28a6f102c5294f": /***/ (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__("a3798275a235b981e88d"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("6a012733", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./MiniSameList.vue?vue&type=style&index=2&id=caa5e08c&scoped=true&lang=less", function() { var newContent = require("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./MiniSameList.vue?vue&type=style&index=2&id=caa5e08c&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "ec46c5995643eec7aadc": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['data', 'domclass', 'aliSite'] }; module.exports = exports['default']; /***/ }), /***/ "eca31358a566eb7f14d2": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(Vue) { Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _IndexVue = __webpack_require__("830a4b1b5b0ed660267f"); var _IndexVue2 = _interopRequireDefault(_IndexVue); exports['default'] = { props: ['img', 'price'], methods: { open: function open() { var _this = this; if (!window.gwdImgApp) { var el = document.createElement('div'); document.body.appendChild(el); window.gwdImgApp = new Vue({ el: el, render: function render(h) { return h(_IndexVue2['default'], { props: { img: _this.img, price: _this.price }, ref: 'index' }); } }); } window.gwdImgApp.$refs.index.open(); } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("b2848b041c3d11faa242")["default"])) /***/ }), /***/ "ed253bbc51853e11ead0": /***/ (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__("13f5eda5b48484e8d6db"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("6cc21e50", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./ProductItem.vue?vue&type=style&index=0&id=38276ded&scoped=true&lang=less", function() { var newContent = require("!!../../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./ProductItem.vue?vue&type=style&index=0&id=38276ded&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "ed7093ed4218f2bccb9b": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_template_id_3fdd510a_scoped_true__ = __webpack_require__("4eab65e36f53b5ee0531"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_template_id_3fdd510a_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_template_id_3fdd510a_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_template_id_3fdd510a_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_template_id_3fdd510a_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_template_id_3fdd510a_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_template_id_3fdd510a_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "ed989676e86f2d179ae1": /***/ (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__("80d332e2e12df8b1a0ea"); if(typeof content === 'string') content = [[module.i, content, '']]; // add the styles to the DOM var update = __webpack_require__("10fdb983c061c1343439")(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/_css-loader@0.20.2@css-loader/index.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./TooltipViewBar.vue?vue&type=style&index=0&id=da945952&scoped=true&lang=css", function() { var newContent = require("!!../../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./TooltipViewBar.vue?vue&type=style&index=0&id=da945952&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(); }); } /***/ }), /***/ "ee66179a13f9a6089ac5": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _QuestHint = __webpack_require__("942c2505bb62e058e7b9"); var _QuestHint2 = _interopRequireDefault(_QuestHint); var _CollectionSettingMixin = __webpack_require__("c3b6372752c18de2c142"); var _CollectionSettingMixin2 = _interopRequireDefault(_CollectionSettingMixin); var _commonComponentsCommonLogin = __webpack_require__("2d53f53e0179317f1fdf"); var _commonComponentsCommonLogin2 = _interopRequireDefault(_commonComponentsCommonLogin); var _standardModuleComponentsControlsSwitch = __webpack_require__("027d37651180f47df6c7"); var _standardModuleComponentsControlsSwitch2 = _interopRequireDefault(_standardModuleComponentsControlsSwitch); var _standardModuleComponentsControlsPriceInput = __webpack_require__("d5616fae32e60d1cab7c"); var _standardModuleComponentsControlsPriceInput2 = _interopRequireDefault(_standardModuleComponentsControlsPriceInput); exports['default'] = { components: { CommonLogin: _commonComponentsCommonLogin2['default'], SwitchBtn: _standardModuleComponentsControlsSwitch2['default'], QuestHint: _QuestHint2['default'], PriceInput: _standardModuleComponentsControlsPriceInput2['default'] }, mixins: [_CollectionSettingMixin2['default']] }; module.exports = exports['default']; // props: ['money', 'price_range', 'lastprice'] /***/ }), /***/ "f00f12f28f8282e72a49": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__AliMobilePriceNotifier_vue_vue_type_template_id_1b4bff6e_scoped_true__ = __webpack_require__("60ae9a98ff0ad20eff60"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AliMobilePriceNotifier_vue_vue_type_script_lang_js__ = __webpack_require__("da2141f37a0564c1b75c"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__AliMobilePriceNotifier_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__AliMobilePriceNotifier_vue_vue_type_script_lang_js__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__AliMobilePriceNotifier_vue_vue_type_style_index_0_id_1b4bff6e_scoped_true_lang_less__ = __webpack_require__("4a9c4f6e6782ff2acbfb"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__AliMobilePriceNotifier_vue_vue_type_style_index_1_id_1b4bff6e_lang_css__ = __webpack_require__("7e53940dd2c333f06a3a"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_4__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__AliMobilePriceNotifier_vue_vue_type_script_lang_js__["default"], __WEBPACK_IMPORTED_MODULE_0__AliMobilePriceNotifier_vue_vue_type_template_id_1b4bff6e_scoped_true__["render"], __WEBPACK_IMPORTED_MODULE_0__AliMobilePriceNotifier_vue_vue_type_template_id_1b4bff6e_scoped_true__["staticRenderFns"], false, null, "1b4bff6e", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('1b4bff6e')) { api.createRecord('1b4bff6e', component.options) } else { api.reload('1b4bff6e', component.options) } module.hot.accept("./AliMobilePriceNotifier.vue?vue&type=template&id=1b4bff6e&scoped=true", function () { api.rerender('1b4bff6e', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/AliMobilePriceNotifier.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "f0153521768f4d44e305": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_template_id_44c0e93e_scoped_true__ = __webpack_require__("7dc6126bae46e0f3fbd4"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_template_id_44c0e93e_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_template_id_44c0e93e_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_template_id_44c0e93e_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_template_id_44c0e93e_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_template_id_44c0e93e_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_template_id_44c0e93e_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "f098297cd5700292c99b": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return _c("div", { staticClass: "f-feature", attrs: { id: "gwd-filter" } }, [_c("form", { staticStyle: { display: "none" }, attrs: { action: _vm.debugMode ? "https://localdev.gwdang.com:3000/v2/jd_enhance" : "https://www.gwdang.com/v2/jd_enhance", method: "post", target: "_blank" } }, [_c("input", { directives: [{ name: "model", rawName: "v-model", value: _vm.html, expression: "html" }], attrs: { type: "hidden", name: "products" }, domProps: { value: _vm.html }, on: { input: function input($event) { if ($event.target.composing) return; _vm.html = $event.target.value; } } }), _vm._v(" "), _c("input", { directives: [{ name: "model", rawName: "v-model", value: _vm.initialType, expression: "initialType" }], attrs: { type: "hidden", name: "type" }, domProps: { value: _vm.initialType }, on: { input: function input($event) { if ($event.target.composing) return; _vm.initialType = $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 input($event) { if ($event.target.composing) return; _vm.search = $event.target.value; } } }), _vm._v(" "), _c("input", { attrs: { type: "hidden", name: "from", value: "京东搜索结果页" } }), _vm._v(" "), _c("input", { staticStyle: { display: "inline-block", "font-size": "20px", color: "#666" }, attrs: { type: "submit", value: "测试", id: "gwd-jdsearch-submit" } })]), _vm._v(" "), _c("ul", [_c("li", [_c("a", { attrs: { href: "#" }, on: { click: function click($event) { $event.preventDefault(); return _vm.open("self"); } } }, [_c("i"), _vm._v("自营/旗舰店\n ")])]), _vm._v(" "), _c("li", [_c("a", { attrs: { href: "#" }, on: { click: function click($event) { $event.preventDefault(); return _vm.open("coupon"); } } }, [_c("i"), _vm._v("优惠券\n ")])])])]); }; var staticRenderFns = []; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "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(); __webpack_require__("316f9c352c6202560d16").log('res', res); // // if (!res || !res.dp_id) { // return // } 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 15: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("6a0e4ebb57bf6aac1f2d"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("b2848b041c3d11faa242")["default"])) /***/ }), /***/ "f2f8665a9efe5d001c12": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_style_index_0_id_3f03717c_scoped_true_lang_css__ = __webpack_require__("2df0b134893c265e4168"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_style_index_0_id_3f03717c_scoped_true_lang_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_style_index_0_id_3f03717c_scoped_true_lang_css__); /* unused harmony reexport namespace */ /***/ }), /***/ "f3073cc408efdcdc3430": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MemberCouponMiniBjg_vue_vue_type_template_id_c1c2cbdc_scoped_true__ = __webpack_require__("312e8d7a4905c8b99a77"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MemberCouponMiniBjg_vue_vue_type_template_id_c1c2cbdc_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MemberCouponMiniBjg_vue_vue_type_template_id_c1c2cbdc_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MemberCouponMiniBjg_vue_vue_type_template_id_c1c2cbdc_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MemberCouponMiniBjg_vue_vue_type_template_id_c1c2cbdc_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MemberCouponMiniBjg_vue_vue_type_template_id_c1c2cbdc_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MemberCouponMiniBjg_vue_vue_type_template_id_c1c2cbdc_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "f3270bf23366a7b33637": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return _c("a", { staticClass: "gwd-row gwd-align", "class": { "gwd-butie": _vm.text.includes("补贴") && _vm.mainColor === "#11a14e" }, staticStyle: { "margin-right": "18px" }, attrs: { title: "点击领取", target: "_blank", id: "gwd-tb-mini-coupon", href: _vm.link } }, [_vm.showStampBg ? _c("div", { staticClass: "gwd-coupon-color-bg gwd-tl" }) : _vm._e(), _vm._v(" "), _vm.showStampBg ? _c("div", { staticClass: "gwd-coupon-color-bg gwd-br" }) : _vm._e(), _vm._v(" "), _c("img", { staticStyle: { height: "20px", "margin-left": "8px", "z-index": "1" }, attrs: { src: _vm.icon, alt: "" } }), _vm._v(" "), _c("span", { style: "margin-left: 4px; color: " + _vm.mainColor + "; font-size: 14px; position: relative; top: -2px;", domProps: { innerHTML: _vm._s(_vm.text) } }), _vm._v(" "), _c("div", { staticStyle: { flex: "1" } }, [_vm.rebate ? _c("Stamp", { staticStyle: { right: "74px", top: "0", position: "absolute" }, attrs: { value: _vm.rebate } }) : _vm._e()], 1), _vm._v(" "), _c("span", { staticClass: "gwd-rnd-btn-click gwd-row gwd-align gwd-jcc", style: "z-index: 1; background: linear-gradient( 180deg, " + _vm.secondColor + " 0%, " + _vm.mainColor + " 100%);" }, [_c("span", { staticClass: "gwd-font11", staticStyle: { "transform-origin": "center center", position: "relative", top: "-1px" } }, [_vm._v("点击领取")])])]); }; var staticRenderFns = []; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "f3df65e0892fa07d9abe": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _CollectionSettingMixin = __webpack_require__("c3b6372752c18de2c142"); var _CollectionSettingMixin2 = _interopRequireDefault(_CollectionSettingMixin); var _commonComponentsCommonLogin = __webpack_require__("2d53f53e0179317f1fdf"); var _commonComponentsCommonLogin2 = _interopRequireDefault(_commonComponentsCommonLogin); var _standardModuleComponentsControlsSwitch = __webpack_require__("027d37651180f47df6c7"); var _standardModuleComponentsControlsSwitch2 = _interopRequireDefault(_standardModuleComponentsControlsSwitch); var _QuestHint = __webpack_require__("942c2505bb62e058e7b9"); var _QuestHint2 = _interopRequireDefault(_QuestHint); var _standardModuleComponentsControlsPriceInput = __webpack_require__("d5616fae32e60d1cab7c"); var _standardModuleComponentsControlsPriceInput2 = _interopRequireDefault(_standardModuleComponentsControlsPriceInput); exports['default'] = { mixins: [_CollectionSettingMixin2['default']], components: { CommonLogin: _commonComponentsCommonLogin2['default'], SwitchBtn: _standardModuleComponentsControlsSwitch2['default'], QuestHint: _QuestHint2['default'], PriceInput: _standardModuleComponentsControlsPriceInput2['default'] } }; module.exports = exports['default']; /***/ }), /***/ "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__("7e4ad969a6619fec22be"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QRLinkContactTmall_vue_vue_type_script_lang_js__ = __webpack_require__("bd24b0d33569e626b2d3"); /* 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__("b4ed64c2f48c7d7dc84e"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("0b761deda6525b1b226a"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_vue_loader_15_11_1_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__["render"], __WEBPACK_IMPORTED_MODULE_0__QRLinkContactTmall_vue_vue_type_template_id_4148f062_scoped_true__["staticRenderFns"], false, null, "4148f062", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/_vue-hot-reload-api@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); /***/ }), /***/ "f5a090b98c098d197e44": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Error_vue_vue_type_template_id_8eca1ada_scoped_true__ = __webpack_require__("336e80ac81371c311885"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Error_vue_vue_type_template_id_8eca1ada_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Error_vue_vue_type_template_id_8eca1ada_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Error_vue_vue_type_template_id_8eca1ada_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Error_vue_vue_type_template_id_8eca1ada_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Error_vue_vue_type_template_id_8eca1ada_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_Error_vue_vue_type_template_id_8eca1ada_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "f64340d9d4974a9258cb": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, ".gwd-bt-qr-hint[data-v-7c398433] {\n width: 162px;\n height: 26px;\n border: 1px solid #ff9851;\n background: #fff3ed;\n box-sizing: border-box;\n position: relative;\n cursor: pointer;\n margin-left: 50px;\n border-radius: 4px;\n top: -1px;\n}\n.gwd-bt-qr-hint img[data-v-7c398433] {\n width: 15px;\n height: 15.5px;\n}\n", ""]); // exports /***/ }), /***/ "f77c93a94c9ff23ae111": /***/ (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__("0c002c79bd4cd64bfc35"); if(typeof content === 'string') content = [[module.i, content, '']]; // add the styles to the DOM var update = __webpack_require__("10fdb983c061c1343439")(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/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./JdSearchEnhance.vue?vue&type=style&index=0&id=209e5606&scoped=true&lang=css", function() { var newContent = require("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./JdSearchEnhance.vue?vue&type=style&index=0&id=209e5606&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(); }); } /***/ }), /***/ "f97b852a25751d76b7c5": /***/ (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__("af4f7756ab00a77f2675"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("7678fc10", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@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/_css-loader@0.20.2@css-loader/index.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./QRLinkContactTmall.vue?vue&type=style&index=0&id=4148f062&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "fa297f213d29eb497c63": /***/ (function(module, exports, __webpack_require__) { "use strict"; var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var globalData = undefined, callbacks = undefined; var buildInfo = function buildInfo() { var obj = { type: 'json', browser: 'chrome', ver: '6.1', style_show_type: null, style_ADID: null, currency: null, language: 'english', r: 0.7196959139817531, url: location.href }; var str = 'type=' + obj.type + '&browser=' + obj.browser + '&ver=' + obj.ver + '&style_show_type=undefined&style_ADID=undefined¤cy=undefined&language=' + obj.language + '&r=' + obj.r + '&url=' + encodeURIComponent(location.href); return str; }; var getPriceStatusNew = function getPriceStatusNew(data) { var price_status = 0; var price_num = data.length; var lowest = Math.min.apply(undefined, data); var price_last = data[price_num - 1]; var islowest = false; var change_range = 180; var time_length = 0; for (var i = data.length - 1; i >= 0; i--) { var now_price = data[i]; if (i > 0) { time_length += 1; } if (now_price == 0) { continue; } if (price_last == now_price) { if (time_length > 180) { break; } continue; } else if (parseFloat(price_last) > parseFloat(now_price) && i >= price_num - change_range - 1) { price_status = 1; break; } else if (parseFloat(price_last) < parseFloat(now_price)) { price_status = -1; if (price_last === lowest) islowest = true; break; } } return { price_status: price_status, islowest: islowest, price_last: price_last }; }; var renderData = function renderData(data) { var getDataFromTime = function getDataFromTime(time) { for (var i = 0; i < data.length - 1; i++) { if (time >= Number(data[i]['time_update']) * 1000 && time < Number(data[i + 1]['time_update']) * 1000) { return data[i].price; } } return data[data.length - 1].price; }; var oneHour = 3600000; var oneDay = 24 * oneHour; var lowestPrice = Number(globalData.lowest_pice.price); var highestPrice = lowestPrice; var startTime = Number(data[0].time_update) * 1000; var startD = new Date(startTime).getDate(); var startM = new Date(startTime).getMonth(); var startY = new Date(startTime).getFullYear(); var allLine = []; var now_day = new Date(); var current_price = data[data.length - 1].price; for (var i = 0; i < data.length; i++) { if (Number(data[i].price) > highestPrice) highestPrice = Number(data[i].price); } var price_range = lowestPrice + '-' + highestPrice; var start = startTime; while (start <= now_day.getTime()) { var s = getDataFromTime(start); allLine.push(parseFloat(s)); start += oneDay; } var result = getPriceStatusNew(allLine); var price_status = result.price_status; var year_line = null; if (allLine.length >= 365) { year_line = allLine.slice(allLine.length - 365); } var month_line = null; if (allLine.length >= 31) { month_line = allLine.slice(allLine.length - 31); } var short_day_line = null; if (allLine.length >= 6) { var dayline = allLine.slice(allLine.length - 6); short_day_line = []; for (var i = 0; i < dayline.length - 1; i++) { var newArr = []; for (var n = 0; n < 24; n++) { newArr.push(dayline[i]); } short_day_line = short_day_line.concat(newArr); } short_day_line.push(dayline[dayline.length - 1]); } var price_trend = { "price_status": price_status, "startD": startD, "startM": startM, "startY": startY, "now_day": now_day.getTime(), "extra": 'start from another', "store": [{ "current_price": current_price, "all_line": allLine, "all_line_begin_time": startTime + 8 * oneHour, "year_line": year_line, "year_line_time": now_day.getTime() - 365 * oneDay, "month_line": month_line, "month_line_time": now_day.getTime() - 30 * oneDay, "short_day_line": short_day_line, "short_day_line_begin_time": now_day.getTime() + 8 * oneHour - 5 * oneDay, "min_stamp": "0", "islowest": 0, "name": 'aliexpress', "price_range": price_range, "promo": [], "all_equal_short": false }] }; return price_trend; }; module.exports.init = function () { var str = buildInfo(); communicate.on(function (data) { if (typeof data === 'string') { data = JSON.parse(data); } if (data.type === 'aliexpress') { globalData = JSON.parse(data.value); if (globalData.price_tracking) { globalData.price_tracking = renderData(globalData.price_tracking); if (callbacks) callbacks(globalData.price_tracking); } } }); communicate.trigger({ type: 'aliexpress', url: 'https://plugin.aliprice.com/plugin/chrome_v07.php?' + str }); }; module.exports.getTrendData = function (callback) { if (globalData) callback(globalData);else callbacks = callback; }; /***/ }), /***/ "fa3073c3279239ad0dff": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkTbV3_vue_vue_type_style_index_0_id_263c4225_scoped_true_lang_less__ = __webpack_require__("a3195606f8d321cade47"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkTbV3_vue_vue_type_style_index_0_id_263c4225_scoped_true_lang_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_QRLinkTbV3_vue_vue_type_style_index_0_id_263c4225_scoped_true_lang_less__); /* unused harmony reexport namespace */ /***/ }), /***/ "fa57e0f3eff56c889d5c": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingMini_vue_vue_type_template_id_1a72083a_scoped_true__ = __webpack_require__("53133e3ae4f3b4312627"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingMini_vue_vue_type_template_id_1a72083a_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingMini_vue_vue_type_template_id_1a72083a_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingMini_vue_vue_type_template_id_1a72083a_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingMini_vue_vue_type_template_id_1a72083a_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingMini_vue_vue_type_template_id_1a72083a_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_CollectionSettingMini_vue_vue_type_template_id_1a72083a_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "fa5a539bf3cda0ad5c88": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_ProductItem_vue_vue_type_style_index_0_id_38276ded_scoped_true_lang_less__ = __webpack_require__("ed253bbc51853e11ead0"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_ProductItem_vue_vue_type_style_index_0_id_38276ded_scoped_true_lang_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_vue_style_loader_4_1_3_vue_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_less_loader_4_1_0_less_loader_dist_cjs_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_ProductItem_vue_vue_type_style_index_0_id_38276ded_scoped_true_lang_less__); /* unused harmony reexport namespace */ /***/ }), /***/ "fc107155a37ad6be64ed": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var render = function render() { var _vm = this, _c = _vm._self._c; return _c("div", { staticClass: "gwd-column gwd-collection-comp gwd-align", style: "width: " + (_vm.haitao ? 340 : 330) + "px; height: 100%; padding: 10px; box-sizing: border-box" }, [_c("div", { staticClass: "gwd-price-head", staticStyle: { "font-weight": "bold", "font-size": "14px", width: "100%" } }, [_c("div", { staticClass: "gwd-head-item now-pri-div" }, [_c("span", { staticClass: "gwd-re-strong gwd-blkcolor1" }, [_vm._v("当前价格:")]), _vm._v(" "), _c("span", { staticClass: "gwd-red-price" }, [_vm._v(_vm._s(_vm.trend.money) + _vm._s(_vm.trend.nowPrice))])]), _vm._v(" "), _c("div", { staticClass: "gwd-head-item his-pri-div", staticStyle: { "margin-top": "5px" } }, [_c("span", { staticClass: "gwd-re-strong gwd-blkcolor1" }, [_vm._v("历史价格:")]), _vm._v(" "), _c("span", { staticClass: "gwd-re-price-num gwd-blkcolor1 gwd-prifontf" }, [_vm._v(_vm._s(_vm.trend.money) + _vm._s(_vm.trend.priceRange))])])]), _vm._v(" "), _vm.user.login && _vm.settedNotifySite !== null ? _c("div", { staticClass: "gwd-row", staticStyle: { position: "absolute", top: "5px", left: "0", right: "10px" } }, [_c("div", { staticStyle: { flex: "1" } }), _vm._v(" "), _c("button", { staticClass: "gwd-button gwd-btn-del" }, [_c("span", { staticClass: "gwd-font11", staticStyle: { "transform-origin": "center center", "z-index": "2", position: "relative" }, on: { click: function click($event) { return _vm.cancel(); } } }, [_vm._v("取消提醒")])])]) : _vm._e(), _vm._v(" "), _vm.user.login ? _c("div", { staticClass: "gwd-column gwd-collection-detail", "class": { "gwd-ht": _vm.haitao }, staticStyle: { flex: "1" } }, [_c("div", { staticClass: "gwd-row gwd-align", staticStyle: { "margin-top": "13px" } }, [_c("div", { staticClass: "gwd-column", staticStyle: { flex: "1", position: "relative" } }, [_c("div", { staticClass: "gwd-container gwd-column", "class": { "gwd-ht": _vm.haitao }, staticStyle: { "justify-content": "space-between" } }, [_c("div", { staticClass: "gwd-row gwd-align gwd-remind-option" }, [_c("span", [_vm._v("当价格低于")]), _vm._v(" "), _c("PriceInput", { staticStyle: { width: "120px" }, attrs: { currency: _vm.currency }, model: { value: _vm.currentPrice, callback: function callback($$v) { _vm.currentPrice = $$v; }, expression: "currentPrice" } }), _vm._v(" "), _c("span", [_vm._v("时提醒我")])], 1)]), _vm._v(" "), _c("div", { staticClass: "gwd-container gwd-row gwd-align", staticStyle: { "margin-top": "8px" }, style: { visibility: _vm.priceRemind.showMPromo ? "visible" : "hidden" } }, [_vm._m(0), _vm._v(" "), _c("SwitchBtn", { attrs: { allowAnimation: _vm.allowAnimation }, model: { value: _vm.mPromo, callback: function callback($$v) { _vm.mPromo = $$v; }, expression: "mPromo" } })], 1)])]), _vm._v(" "), _c("div", { staticStyle: { "margin-top": "47px", width: "100%", "text-align": "center" } }, [_c("button", { staticClass: "gwd-btn-submit gwd-button", on: { click: _vm.submit } }, [_vm._v("提交")])]), _vm._v(" "), _vm.errorText ? _c("div", { staticClass: "gwd-remind-error-text", "class": { "gwd-fadeout-5s": _vm.errorFadeClass } }, [_vm._v("\n " + _vm._s(_vm.errorText) + "\n ")]) : _vm._e(), _vm._v(" "), _vm.hintText ? _c("div", { staticClass: "gwd-remind-hint-text", "class": { "gwd-fadeout-5s": _vm.hintFadeClass } }, [_vm._v("\n " + _vm._s(_vm.hintText) + "\n ")]) : _vm._e(), _vm._v(" "), _vm.user.wxQr ? _c("div", { staticClass: "gwd-remind-qr", staticStyle: { clear: "both", "text-align": "center", top: "10px", position: "relative" } }, [_vm._m(1), _vm._v(" "), _c("div", { staticStyle: { "text-align": "justify" }, attrs: { id: "gwd-remind-qrcode_img" } }, [_c("img", { attrs: { src: _vm.user.wxQr, alt: "二维码" } }), _vm._v(" "), _c("p", [_vm._v("购物党提醒")])])]) : _vm._e()]) : _vm._e(), _vm._v(" "), !_vm.user.login ? _c("div", { staticClass: "gwd-row gwd-align", staticStyle: { flex: "1", width: "100%" } }, [_c("CommonLogin", { staticStyle: { flex: "1" }, attrs: { position: "gwd-trend-top", "show-alter-login": "true", "alter-login-position": "row" } })], 1) : _vm._e()]); }; var staticRenderFns = [function () { var _vm = this, _c = _vm._self._c; return _c("div", { staticClass: "gwd-column", staticStyle: { flex: "1", "align-items": "flex-start" } }, [_c("span", { staticStyle: { color: "#404547", "font-size": "13px", "line-height": "18px" } }, [_vm._v("多件优惠时提醒我")]), _vm._v(" "), _c("span", { staticClass: "gwd-font11", staticStyle: { "transform-origin": "left center", color: "#999999", "line-height": "14px" } }, [_vm._v("同一商品,购买多件才能享受优惠")])]); }, function () { var _vm = this, _c = _vm._self._c; return _c("span", { staticClass: "gwd-font12" }, [_vm._v("为了更好接收降价提醒,请您及时"), _c("span", { staticStyle: { color: "#48befe" }, attrs: { id: "gwd-remind-qrcode", "data-spm-anchor-id": "2013.1.0.i5.44ae3fa7NIPzzq" } }, [_vm._v("扫码绑定微信")])]); }]; render._withStripped = true; exports.render = render; exports.staticRenderFns = staticRenderFns; /***/ }), /***/ "fc4cfc2ef2fba4ad1f97": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TipCenter_vue_vue_type_style_index_0_id_9f16b84a_scoped_true_lang_css__ = __webpack_require__("410d278ea1d5df2d6a7a"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TipCenter_vue_vue_type_style_index_0_id_9f16b84a_scoped_true_lang_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_style_loader_0_13_2_style_loader_index_js_node_modules_css_loader_0_20_2_css_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_TipCenter_vue_vue_type_style_index_0_id_9f16b84a_scoped_true_lang_css__); /* unused harmony reexport namespace */ /***/ }), /***/ "fc929b4d843a1408ec7a": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniBarCollectionButton_vue_vue_type_template_id_1e4a0206_scoped_true__ = __webpack_require__("0b3ced488cb2dd660650"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniBarCollectionButton_vue_vue_type_template_id_1e4a0206_scoped_true___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniBarCollectionButton_vue_vue_type_template_id_1e4a0206_scoped_true__); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniBarCollectionButton_vue_vue_type_template_id_1e4a0206_scoped_true__, "render")) __webpack_require__.d(__webpack_exports__, "render", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniBarCollectionButton_vue_vue_type_template_id_1e4a0206_scoped_true__["render"]; }); /* harmony namespace reexport (by used) */ if(__webpack_require__.o(__WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniBarCollectionButton_vue_vue_type_template_id_1e4a0206_scoped_true__, "staticRenderFns")) __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_babel_loader_5_4_2_babel_loader_index_js_node_modules_vue_loader_15_11_1_vue_loader_lib_loaders_templateLoader_js_ref_2_node_modules_vue_loader_15_11_1_vue_loader_lib_index_js_vue_loader_options_MiniBarCollectionButton_vue_vue_type_template_id_1e4a0206_scoped_true__["staticRenderFns"]; }); /***/ }), /***/ "fc963a38e3d83ed87767": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("89c58526b88432f4b285")(); // imports // module exports.push([module.i, ".tabTitleWrap--gReQPhVU {\n background: transparent;\n}\n.isStickied--cAvTq3XA {\n background: white;\n}\n", ""]); // exports /***/ }), /***/ "fd9897c729ad65b271df": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(Vue, G) { (function () { 'use strict'; //判断是否为重复加载,如果为重复加载,直接结束脚本 if (__webpack_require__("a277d2d1e7d7916957bf")) return; /*IE在淘宝天猫不出插件*/ var Vuex = __webpack_require__("f6c9d8811ab2f0e17cf9"); Vue.use(Vuex); var IE = __webpack_require__("1529c418281de0d4e4b2")(); if (IE && location.host.match(/(?:taobao|tmall|yao\.95095|1688\.com|aliexpress\.com|ieframe\.dll)/)) return; // 京东移动端触摸模拟 if (location.href.indexOf('plogin.m.jd.com') > -1) { __webpack_require__("165a6a29b755ef153829").init(); } __webpack_require__("b1cae3a1887fb97c6c83"); __webpack_require__("3fb8e5219d9e2232a6e9").init(); __webpack_require__("5e05e6f5fe79ccf5d009").init(); __webpack_require__("d82c9248d08dbd7e46d4").init(); __webpack_require__("91f250ebeb8d5987491c").rawGet('https://cdn.gwdang.com/js/configs/gwdang.json?v=4').then(function (r) { __webpack_require__("9c38beef5ff283e15bd2").setMet('GwdConfig', r); }); if (location.href.includes('item.m.jd.com/') || location.href.includes('mitem.jd.hk/product') || location.href.includes('.m.jd.com/product') || location.href.includes('pro.m.jd.com') || location.href.includes('prodev.m.jd.com')) { __webpack_require__("539d837f9588aedaf492").init(); } var cnzz = __webpack_require__("83271c7588396d2d5e59"); if (cnzz) cnzz.init(G.gwd_cnzz); if (location.host === 'm.fine3q.com') __webpack_require__("bf822aacfeba494ced92").init(); if (location.host === 'pro.jd.com' || location.host === 'pro.m.jd.com') { __webpack_require__("b56f990bb4a45e630a85").init(); } if (location.host === 'h5.m.taobao.com' || location.host === 'main.m.taobao.com') { __webpack_require__("ca6ca04214e5c9349942").init(); } if (G.pageInfo.type === 0) return; //hao123和百度域名全部不加载任何内容 __webpack_require__("d090c1e762d2e495b00c").init(); if (__webpack_require__("aa16a056510f1028879c")()) return; __webpack_require__("edd40abc3cca37fc4610"); __webpack_require__("1f2fc6d8a8045863aace"); G.logoName = __webpack_require__("2b6ed47fb40018872f18")(8); //检查当前网页是否在插件收录范围内 if (navigator.userAgent.indexOf('Maxthon') > -1) { // if (location.host.indexOf('tmall') > -1 || location.host.indexOf('95095') > -1) { // G.maxthon_tmall = true // } } __webpack_require__("3e283580401dd2fcdc15"); __webpack_require__("be85ec117a8e337ebbac")(); __webpack_require__("edb006a6bdc87dceab2d").common(function (data) { var dictsArr = ['booking', 'elong', 'wbiao', 'agoda', 'hotels', '228', 'roseonly', 'feelunique', "nike", 'kaola', 'vipshop', 'hujiang', '1688', 'opposhop', 'vsigo', 'keede', 'zazhipu', 'banggo', 'discount-apotheke', 'bl', '1hai', 'pharmacydirect', 'flyco', 'takeya', 'xgdq', 'guojimami', 'shoprobam', 'staples', 'boqii', 'mei', 'tuhu', 'hangowa', 'lookfantastic-cn', 'lookfantastic-com', 'iherb', 'shopbop', 'yoox', 'skinstore', 'ctrip', 'koolearn', 'chinaacc', 'youpin-mi', 'opposhop', 'oneplus']; var blockCityList = ['北京', '上海', '广州', '深圳', '杭州', '南京']; // let blockCityList = ['北京', '上海', '广州', '深圳', '杭州']; var blockCity = false; blockCityList.forEach(function (city) { if (data && data.result && !(data.result instanceof Array) && data.result.address.indexOf(city) > -1) { blockCity = true; } }); if (data && data.result && !(data.result instanceof Array) && !blockCity) { if (dictsArr.indexOf) { if (dictsArr.indexOf(G.site) > -1) { G.set_force = true; } } G.forbidAd = true; } else if (data && data.result.address.indexOf('南京') == -1) { G.forbidAd = true; } if (data && data.result.address.indexOf('北京') > -1) { G.forbidMinibar = true; G.forbidGiftMoney = true; } if (data && data.result && data.result instanceof Array) { G.forbidCoupon = true; } if (data && data.result && !(data.result instanceof Array) && (data.result.address.indexOf('北京') > -1 || data.result.address.indexOf('杭州') > -1)) { G.forbidCoupon = true; } G.isMonkey = true; __webpack_require__("cb0906562effcf1b0e6c").getRate(function () { __webpack_require__("4733a3dd803685ec596a").get(function () { __webpack_require__("e6521b4ea881581e5851").init(); }); }); }); })(); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("b2848b041c3d11faa242")["default"], __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "fe179e544c8fafeea4a2": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, $, G, Vue) { var _this = this; var request = __webpack_require__("91f250ebeb8d5987491c"); module.exports.init = function callee$0$0() { var cnzz, request, dpId, payload, rebateValue, params, res, GiftMoney, butie, GiftMoneyTop, link; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: cnzz = __webpack_require__("83271c7588396d2d5e59"); if (!$('.bjgou-subsidy-bar').length) { context$1$0.next = 3; break; } return context$1$0.abrupt('return', false); case 3: request = __webpack_require__("91f250ebeb8d5987491c"); dpId = __webpack_require__("3e983ecbff4e1a29654c").getParameterByName('id'); if (location.hostname.indexOf('tmall') > -1) { dpId = dpId + '-83'; } else { dpId = dpId + '-123'; } payload = { rebate: 1, dp_id: dpId, rate: 0.1 }; if (G.dp.price) { payload.price = G.dp.price; } rebateValue = G.dp.rebate; if (rebateValue) { context$1$0.next = 17; break; } params = Object.keys(payload).map(function (k) { return k + '=' + encodeURIComponent(payload[k]); }).join('&'); context$1$0.next = 13; return regeneratorRuntime.awrap(request.get('https://browser.gwdang.com/extension/Coupon?' + params)); case 13: res = context$1$0.sent; if (res.rebate) { context$1$0.next = 16; break; } return context$1$0.abrupt('return', false); case 16: rebateValue = res.rebate; case 17: GiftMoney = __webpack_require__("52391b2828a974c3b885")['default']; $('#gwd-coupon-placeholder').replaceWith('<div id="gwd-giftmoney"></div>'); if (!$('.bjgou-subsidy-bar').length) { context$1$0.next = 21; break; } return context$1$0.abrupt('return', false); case 21: cnzz.logOnce('taobaoGiftMoney:show'); cnzz.logOnce('taobaoGiftMoney:-show'); __webpack_require__("9c38beef5ff283e15bd2").setMet('couponLink', { content: '发现' + rebateValue + '元红包,速领', url: __webpack_require__("4733a3dd803685ec596a").appendTbInfoForUrl('https://tb.gwdang.com/extension/qrpage?tag=9_chrome&rebate=1&dp_id=' + dpId + '&discount=' + rebateValue) }); context$1$0.next = 26; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('butie')); case 26: butie = context$1$0.sent; new Vue({ el: '#gwd-giftmoney', render: function render(h) { return h(GiftMoney, { props: { value: rebateValue, qr: false, url: __webpack_require__("4733a3dd803685ec596a").appendTbInfoForUrl('https://tb.gwdang.com/extension/qrpage?tag=9_chrome&rebate=1&dp_id=' + dpId + '&discount=' + rebateValue), id: dpId, name: '店铺', price: G.dp.price } }); } }); GiftMoneyTop = __webpack_require__("28ca786b072dc40c7e4b")['default']; $('.gwd-topbar-left').append('<div id="gwd-giftmoney-top"></div>'); new Vue({ el: '#gwd-giftmoney-top', render: function render(h) { return h(GiftMoneyTop, { props: { value: rebateValue, qr: false, url: __webpack_require__("4733a3dd803685ec596a").appendTbInfoForUrl('https://tb.gwdang.com/extension/qrpage?tag=9_chrome&rebate=1&dp_id=' + dpId + '&discount=' + rebateValue), id: dpId, price: G.dp.price, name: '购物党' } }); } }); if (!$('[data-name="buyMobile"]').length) { context$1$0.next = 36; break; } if (!$('.gwd-redpack-qr-link').length) { context$1$0.next = 34; break; } return context$1$0.abrupt('return', true); case 34: link = __webpack_require__("4733a3dd803685ec596a").appendTbInfoForUrl('https://tb.gwdang.com/extension/qrpage?tag=9_chrome&rebate=1&dp_id=' + dpId + '&discount=' + rebateValue); $('.itemQR--L77_c29c').after('\n <a class="gwd-redpack-qr-link" href="' + link + '" target="_blank">\n 点击领取<img src="https://cdn.gwdang.com/images/extensions/activity/giftMoneyV3@2x.png" style="max-height: 15px">额外' + rebateValue + '元补贴红包\n </a>'); case 36: return context$1$0.abrupt('return', true); case 37: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports.clear = function () { $('.gwd-redpack-qr-link').remove(); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("6a0e4ebb57bf6aac1f2d"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("b2848b041c3d11faa242")["default"])) /***/ }), /***/ "fea11775846a134eedd2": /***/ (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__("532d385edca13e0d7dc5"); if(content.__esModule) content = content.default; 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__("643fb4be98a998e849ce").default var update = add("64e21112", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../node_modules/_css-loader@0.20.2@css-loader/index.js!../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../node_modules/_vue-loader@15.11.1@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/_css-loader@0.20.2@css-loader/index.js!../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/_less-loader@4.1.0@less-loader/dist/cjs.js!../../../node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./MemberCouponBottomBjg.vue?vue&type=style&index=0&id=44c0e93e&scoped=true&lang=less"); if(newContent.__esModule) newContent = newContent.default; if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "ff881c8b15091819a13e": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var buildTaobaoUrl = __webpack_require__("cc45d932d8dbdb86f2f3"); var dataShare = __webpack_require__("cde79cb5670e8bdeb4fb"); var globalData = undefined, callbacks = undefined; var hasrun = false; var timeOUT = 4000; var trueClassId = false; var sitearr = ['vipshop', 'mogujie', 'meilishuo', 'amazon', 'yougou', 'yohobuy', '6pm', 'yintai', 'banggo', 'xiu', 'vancl', 'shopbop', 'shopin', 's', 'masamaso', 'secoo', 'mei', 'gap', 'paixie', 'moonbasa', 'meici', 'macys', 'myhabit', 'zhen', 'gilt', 'mbaobao', 'wangfujing', 'letao', 'camel', 'handu', 'mf910', '5lux', 'd1', 'taoxie', 'm18', "thewatchery", "escentual", 'biccamera', 'zhe800', 'yangkeduo']; if (location.host.indexOf('amazon') > -1 && location.host.indexOf('cn') == -1) timeOUT = 10000; var editData = function editData(data) { var taobaoarr = [], tmallarr = [], guessarr = []; try { var info = JSON.parse(data); var array = info.mods.itemlist.data.collections; if (array.length == 0) return; if (array.length == 2 && array[0].title == '外观相似宝贝') { var similar = array[0].auctions; var len = similar.length > 20 ? 20 : similar.length; for (var i = 0; i < len; i++) { var item = {}; var feeDesc = similar[i].view_fee == '0.00' ? '包邮' : ''; item.nick = similar[i].nick; item.num_iid = similar[i].nid; item.title = similar[i].title; item.price = similar[i].view_price; item.item_location = similar[i].item_loc; item.store_name = similar[i].nick + feeDesc; item.pic_url = 'http:' + similar[i].pic_url; item.volume = similar[i].view_sales.replace('人付款', ''); item.type = 'img_search'; item.price2 = Number(item.price); if (G.dp.price && item.price2 * 2 < G.dp.price) continue; if (!item.pic_url.match(/jpg_[0-9]+x[0-9]/)) item.pic_url = item.pic_url.replace(/(\.png|\.jpg)/, '$1' + '_100x100.jpg'); var obj = { 'source': 'img_search', 'img_url': 'http:' + similar[i].pic_url, 'title': similar[i].title, 'price': similar[i].view_price, 'shop_name': similar[i].nick + feeDesc, 'sales': similar[i].view_sales.replace('人付款', ''), 'id': similar[i].nid, 'url': 'https:' + similar[i].detail_url, 'discuss': similar[i].comment_count, 'istaobao': similar[i].detail_url.indexOf('detail.tmall.com') > -1 ? '0' : '1', 'dp_id': similar[i].nid + '-' + (similar[i].detail_url.indexOf('detail.tmall.com') > -1) ? '83' : '123', 'site_id': similar[i].detail_url.indexOf('detail.tmall.com') > -1 ? '83' : '123' }; item.url = buildTaobaoUrl(obj); if (similar[i].detail_url.indexOf('detail.tmall.com') > -1) { tmallarr.push(item); } else { taobaoarr.push(item); } } } else if (array.length == 1 && array[0].title == '您可能会喜欢' || array.length == 2 && array[1].title == '您可能会喜欢') { var guess = array[array.length - 1].auctions; for (var i = 0; i < guess.length; i++) { var item = {}; item.url = 'https:' + guess[i].detail_url; item.pic_url = guess[i].pic_url; item.title = guess[i].title; item.num_iid = guess[i].nid; item.price = guess[i].view_price; item.volume = guess[i].view_sales; item.nick = guess[i].nick; item.price2 = Number(item.price); if (G.dp.price && item.price2 * 2 < G.dp.price) continue; guessarr.push(item); } } taobaoarr = sortData(taobaoarr); tmallarr = sortData(tmallarr); globalData = { 'taobao': taobaoarr, 'tmall': tmallarr, 'guessfavor': guessarr }; if (callbacks && !hasrun) { callbacks(globalData); hasrun = true; } } catch (e) {} }; var sortData = function sortData(data) { if (!data.sort) return; data = data.sort(function (value1, value2) { if (Number(value1.price) > Number(value2.price)) return 1;else if (Number(value1.price) == Number(value2.price)) return 0;else return -1; }); return data; }; var getImgSrc = function getImgSrc() { var imgsrc = { '360buy': '#preview .jqzoom img', 'gome': '.jqzoom img', 'suning': '#imgZoom #bigImage', 'yihaodian': '#J_prodImg', 'vancl': '#midimg', 'shopin': '#zoom1 img', 'secoo': '.jqzoom', 'mei': '#bigimg', 'meici': '.zoomPad img', 'macys': '#mainView_1', 'taoxie': '#t_PreviewImage img', 'd1': '.gs_right_spimg img', '5lux': '.cloudzoom', 'mf910': '#op_product_zoom img', 'handu': '#masterImage', 'camel': '#img_jqzoom', 'letao': '#simgouter img', 'wangfujing': '.zoomPad .lazy-pic', 'zhen': '#zoom1 .a_max_pic', 'shopbop': '#productImage', 'yohobuy': '#img-show', 'taobao': '#J_ImgBooth', 'thewatchery': '#detailimage', 'amazon': '#altImages ul li img', 'mogujie': '#J_BigImg', 'escentual': '#zoom1 img', 'biccamera': '#PROD-CURRENT-IMG', 'zhe800': '#detail .deteilpic ul li img', 'vipshop': '#J-mer-ImgReview .zoomPad>img', 'tmall': '#J_ImgBooth', '1688': '#mod-detail-bd .content .box-img img', 'vip': '#J-mer-ImgReview .zoomPad>img', 'meilishuo': '#picture .item-pic-origin>img', 'jumei': '#etalage li>img', '6pm': '#detailImage img', 'banggo': '.mainPicContent', 'vjia': '#FreshDiv_MainPhoto .sp-bigImg img', 'yougou': '#pD-bimg', 'yintai': '#J_Magnifier img', 'okbuy': '#zoom1 img', 'lovo': '#jqzoom .zoomPad img', 'moonbasa': '#largeimg', 'tonlion': '.good_left .jqzoom', 'xiu': '#imgPic', 'lamiu': '#op_product_zoom img', 'masamaso': '.goods_tp_box .zoomPad img', 's': '.goods-detail-pic a img', 'paixie': '#zoom1 img', 'mbaobao': '#goods-zoom img', 'm18': '#GoodsImage', 'gap': '#wrap.all-images-box a img', 'esprit': '#mainImages .m-pic img', 'yangkeduo': '#banner .islider-outer .islider-active img' }; if (imgsrc[G.site]) { var src = $(imgsrc[G.site]).eq(0).attr('src'); if (location.host == 'www.amazon.co.jp' && src && src.match(/SR[0-9]+,[0-9]+/)) { src = src.replace(/SR([0-9]+)\,([0-9]+)/, 'SR' + '$1' + '0' + ',' + '$2' + '0'); } else if (location.host.indexOf('amazon') > -1) { return false; } if (src && !src.match(/(?:http:|https:)/) && src.indexOf('//') > -1) src = 'http:' + src; if (G.site === 'zhe800') { src = src.replace('58x58.jpg', '220x220.jpg'); } if (!src || src.indexOf('base64') > -1) { return false; } return src; } return false; }; var readyImg = function readyImg(trueClassId) { var src = getImgSrc(); if (sitearr.indexOf(G.site) > -1 && location.host != 'www.amazon.cn' || location.host.indexOf('1688') > -1 || trueClassId) { trueClassId = true; //发了请求都可以等,为true init里面才不会return communicate.trigger({ type: 'getTaobaoImgInfo', src: src }); communicate.on(function (data) { if (typeof data === 'string') { data = JSON.parse(data); } if (data.type == 'getTaobaoImgInfo') { var text = $('#gwd_img_info').text(); if (text != '') editData(text); } }); } }; module.exports.ready = function () { if (G.site == 'taobao' || G.site == 'tmall' || G.site.indexOf('taobao') > -1) { return; } var dpdata = dataShare.get('dp_data'); var classId = dpdata && dpdata['now']['class_id']; var code = dpdata && dpdata['code-server']['code']; if (G.site === 'amazon' && code) return; if (classId) classId = classId.slice(0, 2); if (G.site === '360buy') { var cate_id = G.dp.cat_id; if (cate_id) cate_id = cate_id.split('-')[0]; var cateidArr = ["1620", "1315", "1318", "1672", "1319", "5025", "6144", "15248", "11729"]; if (cateidArr.indexOf && cateidArr.indexOf(cate_id) > -1) { trueClassId = true; } } else { if (classId == "13" || classId == "24" || classId == "1A" || classId == '21') trueClassId = true; } readyImg(trueClassId); }; module.exports.uniqPidGetImg = function (callback) { readyImg(true); callbacks = callback; }; module.exports.init = function (callback) { if (!trueClassId && sitearr.indexOf(G.site) == -1) { callback(null); return; } if (globalData) { callback(globalData); hasrun = true; } else callbacks = callback; setTimeout(function () { if (callbacks && hasrun === false) { callbacks(null); hasrun = true; } }, timeOUT); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "ff92595e58f9bfa1fe74": /***/ (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: ['withLogo'], mixins: [_commonComponentsMemberCouponMixin2['default']], methods: { transText: function transText(text) { var map = { '扫码联系客服': '掃碼聯繫客服', '淘宝APP': '淘寶APP', '扫码': '掃碼', '联系客服': '聯繫客服' }; if (G.lang === 'zh-tr') { return map[text]; } return text; } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }) },["fd9897c729ad65b271df"]);