// ==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.5
// @grant none
// @require https://cdn.gwdang.com/js/vendor-gwd.js?v=2.7
// @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],{
/***/ "000bbf01d73ab546daa9":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
Object.defineProperty(exports, "__esModule", {
value: true
});
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _commonComponentsMemberCouponMixin = __webpack_require__("1fffec0778a8d8b2e8e2");
var _commonComponentsMemberCouponMixin2 = _interopRequireDefault(_commonComponentsMemberCouponMixin);
exports["default"] = {
mixins: [_commonComponentsMemberCouponMixin2["default"]]
};
module.exports = exports["default"];
/***/ }),
/***/ "01069a737eec750d4605":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingMini_vue_vue_type_style_index_0_id_1a72083a_scoped_true_lang_less___ = __webpack_require__("8bdd7635873d884ae573");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingMini_vue_vue_type_style_index_0_id_1a72083a_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingMini_vue_vue_type_style_index_0_id_1a72083a_scoped_true_lang_less___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingMini_vue_vue_type_style_index_0_id_1a72083a_scoped_true_lang_less____default.a);
/***/ }),
/***/ "01c731a8c80a2ccbdf1b":
/***/ (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__("962235a213fd8454d736");
if(typeof content === 'string') content = [[module.i, content, '']];
// add the styles to the DOM
var update = __webpack_require__("ed1f825ff922d4e45a2e")(content, {});
if(content.locals) module.exports = content.locals;
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./MiniSameList.vue?vue&type=style&index=1&id=caa5e08c&scoped=true&lang=css&", function() {
var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./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(); });
}
/***/ }),
/***/ "027d37651180f47df6c7":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Switch_vue_vue_type_template_id_222e987e_scoped_true___ = __webpack_require__("a710c33ca97ead6a5b7f");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Switch_vue_vue_type_script_lang_js___ = __webpack_require__("7a46bbbd2e1ff8e12ffc");
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__Switch_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__Switch_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Switch_vue_vue_type_style_index_0_id_222e987e_scoped_true_lang_less___ = __webpack_require__("0423f5e165666d1273cc");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc");
/* normalize component */
var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])(
__WEBPACK_IMPORTED_MODULE_1__Switch_vue_vue_type_script_lang_js___["default"],
__WEBPACK_IMPORTED_MODULE_0__Switch_vue_vue_type_template_id_222e987e_scoped_true___["a" /* render */],
__WEBPACK_IMPORTED_MODULE_0__Switch_vue_vue_type_template_id_222e987e_scoped_true___["b" /* staticRenderFns */],
false,
null,
"222e987e",
null
)
/* hot reload */
if (false) {
var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js")
api.install(require('vue'))
if (api.compatible) {
module.hot.accept()
if (!api.isRecorded('222e987e')) {
api.createRecord('222e987e', component.options)
} else {
api.reload('222e987e', component.options)
}
module.hot.accept("./Switch.vue?vue&type=template&id=222e987e&scoped=true&", function () {
api.rerender('222e987e', {
render: render,
staticRenderFns: staticRenderFns
})
})
}
}
component.options.__file = "src/standard/module/components/Controls/Switch.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ "02b35786dfae568bb734":
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__("2a307d7603e2f04f4b20");
if(typeof content === 'string') content = [[module.i, content, '']];
// add the styles to the DOM
var update = __webpack_require__("ed1f825ff922d4e45a2e")(content, {});
if(content.locals) module.exports = content.locals;
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../../../../../node_modules/.0.20.2@css-loader/index.js!../../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./BarTrendInfo.vue?vue&type=style&index=0&id=79b5dd44&scoped=true&lang=css&", function() {
var newContent = require("!!../../../../../node_modules/.0.20.2@css-loader/index.js!../../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./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(); });
}
/***/ }),
/***/ "03bec9e018c5e5127ba6":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_template_id_9a793014_scoped_true___ = __webpack_require__("e756d69fbda7cdc8ade7");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_template_id_9a793014_scoped_true___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_template_id_9a793014_scoped_true___["b"]; });
/***/ }),
/***/ "041f80fea3d67bf79b22":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__QRLink_vue_vue_type_template_id_673c66fa_scoped_true___ = __webpack_require__("6e9dc8f3fe8ed1fd40dc");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QRLink_vue_vue_type_script_lang_js___ = __webpack_require__("399d3eb4adfb0281eed0");
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__QRLink_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__QRLink_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__QRLink_vue_vue_type_style_index_0_lang_css___ = __webpack_require__("580fdef2bbaa9f2dc7e9");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__QRLink_vue_vue_type_style_index_1_id_673c66fa_scoped_true_lang_less___ = __webpack_require__("2e99c26f3c749e77922a");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc");
/* normalize component */
var component = Object(__WEBPACK_IMPORTED_MODULE_4__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])(
__WEBPACK_IMPORTED_MODULE_1__QRLink_vue_vue_type_script_lang_js___["default"],
__WEBPACK_IMPORTED_MODULE_0__QRLink_vue_vue_type_template_id_673c66fa_scoped_true___["a" /* render */],
__WEBPACK_IMPORTED_MODULE_0__QRLink_vue_vue_type_template_id_673c66fa_scoped_true___["b" /* staticRenderFns */],
false,
null,
"673c66fa",
null
)
/* hot reload */
if (false) {
var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js")
api.install(require('vue'))
if (api.compatible) {
module.hot.accept()
if (!api.isRecorded('673c66fa')) {
api.createRecord('673c66fa', component.options)
} else {
api.reload('673c66fa', component.options)
}
module.hot.accept("./QRLink.vue?vue&type=template&id=673c66fa&scoped=true&", function () {
api.rerender('673c66fa', {
render: render,
staticRenderFns: staticRenderFns
})
})
}
}
component.options.__file = "src/standard/module/components/QRLink.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ "0423f5e165666d1273cc":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Switch_vue_vue_type_style_index_0_id_222e987e_scoped_true_lang_less___ = __webpack_require__("c65cdecedecf41cc1f70");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Switch_vue_vue_type_style_index_0_id_222e987e_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Switch_vue_vue_type_style_index_0_id_222e987e_scoped_true_lang_less___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Switch_vue_vue_type_style_index_0_id_222e987e_scoped_true_lang_less____default.a);
/***/ }),
/***/ "046f8265b7ec1e363fe6":
/***/ (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__("0a1eb247f94f481fd0d6");
if(typeof content === 'string') content = [[module.i, content, '']];
// add the styles to the DOM
var update = __webpack_require__("ed1f825ff922d4e45a2e")(content, {});
if(content.locals) module.exports = content.locals;
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./CollectionSettingTop.vue?vue&type=style&index=0&id=3f03717c&scoped=true&lang=css&", function() {
var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./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(); });
}
/***/ }),
/***/ "048dd78d757ada2ce4b4":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_style_index_1_id_3f03717c_scoped_true_lang_less___ = __webpack_require__("bf59ba5b65ae89107db8");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_style_index_1_id_3f03717c_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_style_index_1_id_3f03717c_scoped_true_lang_less___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_style_index_1_id_3f03717c_scoped_true_lang_less____default.a);
/***/ }),
/***/ "04a1e812dbb979983ae6":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__EpicTrend_vue_vue_type_template_id_bc2362ee_scoped_true___ = __webpack_require__("549da4e43b9ab5780ba3");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__EpicTrend_vue_vue_type_script_lang_js___ = __webpack_require__("31d452087f8bb0fc12f2");
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__EpicTrend_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__EpicTrend_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__EpicTrend_vue_vue_type_style_index_0_id_bc2362ee_scoped_true_lang_less___ = __webpack_require__("fe07faa726be683793d3");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc");
/* normalize component */
var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])(
__WEBPACK_IMPORTED_MODULE_1__EpicTrend_vue_vue_type_script_lang_js___["default"],
__WEBPACK_IMPORTED_MODULE_0__EpicTrend_vue_vue_type_template_id_bc2362ee_scoped_true___["a" /* render */],
__WEBPACK_IMPORTED_MODULE_0__EpicTrend_vue_vue_type_template_id_bc2362ee_scoped_true___["b" /* staticRenderFns */],
false,
null,
"bc2362ee",
null
)
/* hot reload */
if (false) {
var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js")
api.install(require('vue'))
if (api.compatible) {
module.hot.accept()
if (!api.isRecorded('bc2362ee')) {
api.createRecord('bc2362ee', component.options)
} else {
api.reload('bc2362ee', component.options)
}
module.hot.accept("./EpicTrend.vue?vue&type=template&id=bc2362ee&scoped=true&", function () {
api.rerender('bc2362ee', {
render: render,
staticRenderFns: staticRenderFns
})
})
}
}
component.options.__file = "src/standard/module/components/EpicTrend.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ "04dcccd8601de1b226fb":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")();
// imports
// module
exports.push([module.i, ".gwd-qr-bottom-line[data-v-9a793014] {\n transform: scale(0.5);\n transform-origin: top center;\n white-space: nowrap;\n height: 20px;\n line-height: 20px;\n}\n.gwd-qr-bottom-line span.bold[data-v-9a793014] {\n font-size: 22px;\n font-weight: bold;\n color: #EF6701;\n}\n.gwd-qr-bottom-line span.normal[data-v-9a793014] {\n font-size: 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
/***/ }),
/***/ "05d87f9c2657332b20fe":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniBarCollectionButton_vue_vue_type_style_index_0_id_1e4a0206_scoped_true_lang_less___ = __webpack_require__("0d403af0b0a8dfb9b0da");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniBarCollectionButton_vue_vue_type_style_index_0_id_1e4a0206_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniBarCollectionButton_vue_vue_type_style_index_0_id_1e4a0206_scoped_true_lang_less___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniBarCollectionButton_vue_vue_type_style_index_0_id_1e4a0206_scoped_true_lang_less____default.a);
/***/ }),
/***/ "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")))
/***/ }),
/***/ "07ea8d14a417f19bedf5":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("div", { staticClass: "gwd-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
/***/ }),
/***/ "085f3fb7b82c1ffb9351":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniBarCollectionButton_vue_vue_type_script_lang_js___ = __webpack_require__("6f1fbc9b3e76a280e6a6");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniBarCollectionButton_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniBarCollectionButton_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniBarCollectionButton_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "0873bfa38b6f0206ed22":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")();
// imports
// module
exports.push([module.i, ".gwd-jd-rank[data-v-a48d90ba] {\n width: 232px;\n height: 32px;\n background: url(https://cdn.gwdang.com/images/extensions/jdRanking/ranklistBg.svg);\n}\n.gwd-jd-rank .gwd-icon-rank[data-v-a48d90ba] {\n width: 15px;\n height: 15px;\n margin-left: 5px;\n}\n.gwd-jd-rank .gwd-vline[data-v-a48d90ba] {\n display: block;\n width: 1px;\n height: 10px;\n background: #000000;\n margin-left: 0px;\n border: 0;\n}\n.gwd-jd-rank .gwd-rank-list[data-v-a48d90ba] {\n flex: 1;\n height: 100%;\n}\n.gwd-jd-rank .gwd-rank-list a[data-v-a48d90ba] {\n padding-left: 7px;\n flex: 1;\n}\n.gwd-jd-rank .gwd-rank-list a span[data-v-a48d90ba] {\n display: inline-block;\n transform-origin: left center;\n color: #111111;\n white-space: nowrap;\n overflow: hidden;\n vertical-align: middle;\n text-overflow: ellipsis;\n}\n.gwd-jd-rank .gwd-rank-list a span.gwd-mw[data-v-a48d90ba] {\n max-width: 130px;\n}\n.gwd-jd-rank .gwd-rank-list a:hover span[data-v-a48d90ba] {\n color: #e03024;\n font-weight: bold;\n}\n.gwd-jd-rank .gwd-rank-list .gwd-rank-first span[data-v-a48d90ba] {\n color: #e03024;\n}\n.gwd-jd-rank .gwd-rank-list .gwd-rank-addition[data-v-a48d90ba] {\n display: none;\n position: absolute;\n right: 0;\n width: 153px;\n top: 100%;\n border: 1px solid #ffeded;\n overflow: hidden;\n background: white;\n z-index: 9;\n}\n.gwd-jd-rank .gwd-rank-list .gwd-rank-addition a[data-v-a48d90ba] {\n height: 25px;\n line-height: 25px;\n display: inline-block;\n width: 100%;\n vertical-align: middle;\n border-bottom: 1px solid #f1f1f1;\n}\n.gwd-jd-rank .gwd-rank-list .gwd-rank-addition a[data-v-a48d90ba]:last-of-type {\n border-bottom: none;\n}\n.gwd-jd-rank .gwd-rank-list:hover .gwd-rank-addition[data-v-a48d90ba] {\n display: block;\n}\n.gwd-jd-rank .gwd-rank-list[data-v-a48d90ba]::after {\n content: '';\n position: absolute;\n width: 16px;\n height: 16px;\n background: url(https://cdn.gwdang.com/images/extensions/jdRanking/arrow-right-default.svg);\n right: 3px;\n top: 5px;\n pointer-events: none;\n}\n.gwd-jd-rank .gwd-rank-list.gwd-rotate[data-v-a48d90ba]::after {\n transform: rotate(90deg);\n}\n.gwd-jd-rank .gwd-rank-list.gwd-rotate[data-v-a48d90ba]:hover::after {\n transform: rotate(270deg);\n}\n.gwd-jd-rank .gwd-rank-list[data-v-a48d90ba]:hover::after {\n background: url(https://cdn.gwdang.com/images/extensions/jdRanking/arrow-right-hilighted.svg);\n}\n.gwd-w217[data-v-a48d90ba] {\n width: 217px;\n height: 26px;\n background: url(https://cdn.gwdang.com/images/extensions/jdRanking/w217.svg);\n}\n.gwd-w210[data-v-a48d90ba],\n.gwd-w235[data-v-a48d90ba] {\n width: 210px;\n height: 30px;\n background: url(https://cdn.gwdang.com/images/extensions/jdRanking/w210.svg);\n}\n.gwd-w210 .gwd-rank-list .gwd-rank-addition[data-v-a48d90ba],\n.gwd-w235 .gwd-rank-list .gwd-rank-addition[data-v-a48d90ba] {\n width: 140px;\n}\n.gwd-w210 .gwd-rank-list[data-v-a48d90ba]::after,\n.gwd-w235 .gwd-rank-list[data-v-a48d90ba]::after {\n top: 7px;\n background: url(https://cdn.gwdang.com/images/extensions/jdRanking/arrow-right-default-gray.svg);\n}\n.gwd-w210 .gwd-rank-list a span[data-v-a48d90ba],\n.gwd-w235 .gwd-rank-list a span[data-v-a48d90ba] {\n color: #555555;\n}\n.gwd-w210 .gwd-rank-list a span span.gwd-mw[data-v-a48d90ba],\n.gwd-w235 .gwd-rank-list a span span.gwd-mw[data-v-a48d90ba] {\n max-width: 80px;\n}\n.gwd-w210 .gwd-font11[data-v-a48d90ba],\n.gwd-w235 .gwd-font11[data-v-a48d90ba] {\n transform: scale(1);\n}\n.gwd-w235[data-v-a48d90ba] {\n width: 235px;\n height: 23px;\n background: url(https://cdn.gwdang.com/images/extensions/jdRanking/w235.svg);\n}\n.gwd-w235 .gwd-rank-list a[data-v-a48d90ba] {\n padding-left: 12px;\n}\n.gwd-w235 .gwd-rank-list a span span.gwd-mw[data-v-a48d90ba] {\n max-width: 95px;\n}\n.gwd-w235 .gwd-rank-list .gwd-rank-addition[data-v-a48d90ba] {\n width: 165px;\n}\n.gwd-w235 .gwd-rank-list[data-v-a48d90ba]::after {\n right: 6px;\n top: 3px;\n}\n", ""]);
// exports
/***/ }),
/***/ "0a1eb247f94f481fd0d6":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")();
// 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
/***/ }),
/***/ "0a3b1f8666118ebd3443":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(G) {//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
Object.defineProperty(exports, '__esModule', {
value: true
});
exports['default'] = {
props: ['data', 'type'],
data: function data() {
return {
rendered: false
};
},
methods: {
draw: function draw() {
if (this.rendered) return;
this.rendered = true;
__webpack_require__("7bc264230157b5cefc24")({
el: this.$refs.plotArea,
msg: this.data.store[0],
unit: ' ',
bg: '#1e1e1e'
});
}
},
mounted: function mounted() {
console.log(this.data);
},
computed: {
priceStatusText: function priceStatusText() {
return ['历史最低', '价格下降', '价格平稳', '价格上涨'][this.data.price_status + 2];
},
priceTrendIcon: function priceTrendIcon() {
return [G.s_server + '/images/extensions/newbar/fall@2x.png', G.s_server + '/images/extensions/newbar/fall@2x.png', G.s_server + '/images/extensions/newbar/stable@2x.png', G.s_server + '/images/extensions/newbar/rise@2x.png'][this.data.price_status + 2];
}
}
};
module.exports = exports['default'];
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3")))
/***/ }),
/***/ "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__("8912b42075188a668b27");
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("4310ff0d1d73bb2c547a").default
var update = add("39914f01", content, false, {});
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!./priceTrend.less", function() {
var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!./priceTrend.less");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent);
});
}
// When the module is disposed, remove the <style> tags
module.hot.dispose(function() { update(); });
}
/***/ }),
/***/ "0ba8a1bad1a0a3646cd4":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TbScrollLink_vue_vue_type_script_lang_js___ = __webpack_require__("b92239712a5f37ffffd3");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TbScrollLink_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TbScrollLink_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TbScrollLink_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "0d403af0b0a8dfb9b0da":
/***/ (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__("e665292b0db95c8486c4");
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("4310ff0d1d73bb2c547a").default
var update = add("4fc9d3ea", content, false, {});
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./MiniBarCollectionButton.vue?vue&type=style&index=0&id=1e4a0206&scoped=true&lang=less&", function() {
var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./MiniBarCollectionButton.vue?vue&type=style&index=0&id=1e4a0206&scoped=true&lang=less&");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent);
});
}
// When the module is disposed, remove the <style> tags
module.hot.dispose(function() { update(); });
}
/***/ }),
/***/ "0daa7b76a1bcf522cd5c":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QuestHint_vue_vue_type_template_id_39a606fa_scoped_true___ = __webpack_require__("7d8fd934530dc5da3fdc");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QuestHint_vue_vue_type_template_id_39a606fa_scoped_true___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QuestHint_vue_vue_type_template_id_39a606fa_scoped_true___["b"]; });
/***/ }),
/***/ "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__("63157ce10c303cd16049");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__CollectionSettingMini_vue_vue_type_script_lang_js___ = __webpack_require__("276678a9cbe67b1a7de2");
/* 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__("01069a737eec750d4605");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc");
/* normalize component */
var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])(
__WEBPACK_IMPORTED_MODULE_1__CollectionSettingMini_vue_vue_type_script_lang_js___["default"],
__WEBPACK_IMPORTED_MODULE_0__CollectionSettingMini_vue_vue_type_template_id_1a72083a_scoped_true___["a" /* render */],
__WEBPACK_IMPORTED_MODULE_0__CollectionSettingMini_vue_vue_type_template_id_1a72083a_scoped_true___["b" /* staticRenderFns */],
false,
null,
"1a72083a",
null
)
/* hot reload */
if (false) {
var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js")
api.install(require('vue'))
if (api.compatible) {
module.hot.accept()
if (!api.isRecorded('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);
/***/ }),
/***/ "0e362791ee0f61ecd4e4":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TooltipViewBar_vue_vue_type_script_lang_js___ = __webpack_require__("cc92ed5831151bcd7654");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TooltipViewBar_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TooltipViewBar_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TooltipViewBar_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "0e53a0c44eeffdc5af61":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_style_index_0_id_a48d90ba_scoped_true_lang_less___ = __webpack_require__("25e0cebb2e3d42787857");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_style_index_0_id_a48d90ba_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_style_index_0_id_a48d90ba_scoped_true_lang_less___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_style_index_0_id_a48d90ba_scoped_true_lang_less____default.a);
/***/ }),
/***/ "0e88aefb4e217181bbb1":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")();
// 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
/***/ }),
/***/ "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")))
/***/ }),
/***/ "0f986364e7409b7b0cf1":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"div",
{
staticClass: "gwd-qrlink",
staticStyle: { "font-family": "'microsoft yahei'" }
},
[
_c("div", { staticStyle: { clear: "both" } }),
_vm._v(" "),
_vm.site === "360buy"
? _c(
"div",
{ staticClass: "gwd-row gwd-align", class: "site-" + _vm.site },
[
_c(
"div",
{
staticClass: "gwd-app-button gwd-row gwd-align",
class: _vm.mode,
on: { mouseover: _vm.over }
},
[
_vm.site !== "360buy"
? _c("img", {
staticStyle: { width: "17px", height: "17px" },
attrs: {
src: __webpack_require__("a8cce0aefd2314ea2dfa"),
alt: ""
}
})
: _vm._e(),
_vm._v(" "),
_vm.site === "360buy"
? _c("img", {
staticStyle: { width: "17px", height: "17px" },
attrs: {
src: __webpack_require__("7a9d74c2e201b514421b"),
alt: ""
}
})
: _vm._e(),
_vm._v(" "),
_c("span", { style: _vm.mode ? "font-size: 18px;" : "" }, [
_vm._v(
_vm._s(_vm.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.hasBuyButton
? "查看优惠"
: "快捷购买"
)
)
)
])
: _vm._e()
]
)
]
)
: _vm._e()
]
),
_vm._v(" "),
!_vm.mode
? _c("span", { staticClass: "gwd-qr-hint" }, [
_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
? "查看优惠详情"
: "快捷购买"
)
)
)
])
: _vm._e()
]
)
: _vm._e()
]
)
}
var staticRenderFns = []
render._withStripped = true
/***/ }),
/***/ "10bcddd0827eacb5d2f5":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"a",
{
staticClass: "gwd-member-coupon-top gwd-member-coupon",
attrs: { href: _vm.link, target: "_blank", title: "点击领取" }
},
[
_c("span", { staticStyle: { color: "white", "margin-left": "5px" } }, [
_vm._v(_vm._s(_vm.getText("当前商品可领会员券")))
]),
_vm._v(" "),
_c(
"span",
{
staticStyle: {
color: "white",
"margin-left": "9px",
"margin-right": "9px"
}
},
[_vm._v(_vm._s(_vm.getText("立即领取")))]
),
_vm._v(" "),
_vm.qr
? _c("div", { staticClass: "gwd-qr-container" }, [
_c("img", {
staticStyle: {
"margin-top": "7px",
width: "120px",
height: "120px"
},
attrs: { src: _vm.qr, alt: "" }
}),
_vm._v(" "),
_c(
"div",
{ staticStyle: { "margin-top": "4px", "text-align": "center" } },
[
_c(
"span",
{
staticStyle: {
"font-weight": "bold",
color: "#ff6132",
"font-size": "14px"
}
},
[_vm._v(_vm._s(_vm.getText("手淘扫码")))]
),
_vm._v(" "),
_c(
"span",
{
staticStyle: {
"margin-left": "4px",
color: "#333333",
"font-size": "12px"
}
},
[_vm._v(_vm._s(_vm.getText("联系客服领取")))]
)
]
)
])
: _vm._e()
]
)
}
var staticRenderFns = []
render._withStripped = true
/***/ }),
/***/ "11658198c931e28b4bb1":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"a",
{
staticClass: "bjgou-subsidy-bar bjgou-component",
attrs: { href: _vm.link, target: "_blank", title: "点击领取" }
},
[
_c(
"span",
{
staticClass: "bjg-coupon-white",
staticStyle: {
"font-size": "18px",
"font-weight": "bold",
"margin-left": "75px",
"margin-top": "6px"
}
},
[_vm._v(_vm._s(_vm.getText("当前商品可领会员券")))]
),
_vm._v(" "),
_c("div", { staticStyle: { flex: "1" } }),
_vm._v(" "),
_c(
"span",
{
staticClass: "bjg-coupon-white",
staticStyle: {
"font-size": "18px",
"font-weight": "bold",
"margin-right": "22px"
}
},
[_vm._v(_vm._s(_vm.getText("立即领取")))]
),
_vm._v(" "),
_vm.qr
? _c("div", { staticClass: "qrcode" }, [
_c("img", {
staticStyle: {
"margin-top": "7px",
width: "120px",
height: "120px"
},
attrs: { src: _vm.qr, alt: "" }
}),
_vm._v(" "),
_c(
"div",
{ staticStyle: { "margin-top": "4px", "text-align": "center" } },
[
_c(
"span",
{
staticStyle: {
"font-weight": "bold",
color: "#ff6132",
"font-size": "14px"
}
},
[_vm._v(_vm._s(_vm.getText("手淘扫码")))]
),
_vm._v(" "),
_c(
"span",
{
staticStyle: {
"margin-left": "4px",
color: "#333333",
"font-size": "12px"
}
},
[_vm._v(_vm._s(_vm.getText("联系客服领取")))]
)
]
)
])
: _vm._e()
]
)
}
var staticRenderFns = []
render._withStripped = true
/***/ }),
/***/ "11961bc58c5978531258":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
Object.defineProperty(exports, '__esModule', {
value: true
});
exports['default'] = {
props: ['data', 'domclass', 'aliSite']
};
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")))
/***/ }),
/***/ "12353e6c503e80823ba4":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_template_id_b671e2be_scoped_true___ = __webpack_require__("23aafd2ad4b6e88819f1");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_template_id_b671e2be_scoped_true___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_template_id_b671e2be_scoped_true___["b"]; });
/***/ }),
/***/ "126e227a90f4fae664e6":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_style_index_2_id_3f03717c_scoped_true_lang_less___ = __webpack_require__("d3964c25090c5e159255");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_style_index_2_id_3f03717c_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_style_index_2_id_3f03717c_scoped_true_lang_less___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_style_index_2_id_3f03717c_scoped_true_lang_less____default.a);
/***/ }),
/***/ "12b35724688caa8b8443":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")();
// 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
/***/ }),
/***/ "1634ad8b4ac0727567c5":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ProductItem_vue_vue_type_script_lang_js___ = __webpack_require__("6fb767572860ecd2e611");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ProductItem_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ProductItem_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ProductItem_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ProductItem_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ProductItem_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "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 = 285;
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, app, 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;
}
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 = 25;
break;
}
return context$1$0.abrupt('return');
case 25:
if (!(priceRootEl && (priceRootEl.innerHTML.includes('前往手淘查看更多优惠') || priceRootEl.innerHTML.includes('前往手淘查看大促优惠') || priceRootEl.innerHTML.includes('加入购物车查看更多优惠')))) {
context$1$0.next = 28;
break;
}
window.tbOwnQr = true;
return context$1$0.abrupt('return');
case 28:
(0, _commonLog2['default'])('mobilePriceNotifier:' + (nowPrice <= pagePrice * 0.95 ? '手淘购买可能更优惠' : '前往手淘查看更多优惠'));
app = new Vue({
el: div,
render: function render(h) {
return h(_componentsAliMobilePriceNotifierVue2['default'], {
props: {
hintText: nowPrice <= pagePrice * 0.95 ? '手淘购买可能更优惠' : '前往手淘查看更多优惠',
tag: 13,
hideInMini: needHideWhenScrollDown
}
});
}
});
G.priceNotifierApp = app;
appNode = app.$el;
// 创建一个观察器实例
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);
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 35:
case 'end':
return context$1$0.stop();
}
}, null, this);
}
};
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("3deef7cc191860c0adf2")["default"]))
/***/ }),
/***/ "17314ec033b9305511ae":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Stamp_vue_vue_type_template_id_a70db998_scoped_true___ = __webpack_require__("07ea8d14a417f19bedf5");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Stamp_vue_vue_type_template_id_a70db998_scoped_true___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Stamp_vue_vue_type_template_id_a70db998_scoped_true___["b"]; });
/***/ }),
/***/ "1733ff6af8002b788e32":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_script_lang_js___ = __webpack_require__("b194ab71c349c2a72948");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "17346ce3fbd01930d295":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QuestHint_vue_vue_type_style_index_0_id_39a606fa_scoped_true_lang_less___ = __webpack_require__("b8d6d90dca7ae1c4d358");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QuestHint_vue_vue_type_style_index_0_id_39a606fa_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QuestHint_vue_vue_type_style_index_0_id_39a606fa_scoped_true_lang_less___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QuestHint_vue_vue_type_style_index_0_id_39a606fa_scoped_true_lang_less____default.a);
/***/ }),
/***/ "19254b8c4bfcc18933d0":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MemberCouponBottomBjg_vue_vue_type_template_id_44c0e93e_scoped_true___ = __webpack_require__("e5e42eae3f3a4433706b");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__MemberCouponBottomBjg_vue_vue_type_script_lang_js___ = __webpack_require__("84636dd97cee8bc936cf");
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__MemberCouponBottomBjg_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__MemberCouponBottomBjg_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__MemberCouponBottomBjg_vue_vue_type_style_index_0_id_44c0e93e_scoped_true_lang_less___ = __webpack_require__("beeed89f0363d0d58668");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc");
/* normalize component */
var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])(
__WEBPACK_IMPORTED_MODULE_1__MemberCouponBottomBjg_vue_vue_type_script_lang_js___["default"],
__WEBPACK_IMPORTED_MODULE_0__MemberCouponBottomBjg_vue_vue_type_template_id_44c0e93e_scoped_true___["a" /* render */],
__WEBPACK_IMPORTED_MODULE_0__MemberCouponBottomBjg_vue_vue_type_template_id_44c0e93e_scoped_true___["b" /* staticRenderFns */],
false,
null,
"44c0e93e",
null
)
/* hot reload */
if (false) {
var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js")
api.install(require('vue'))
if (api.compatible) {
module.hot.accept()
if (!api.isRecorded('44c0e93e')) {
api.createRecord('44c0e93e', component.options)
} else {
api.reload('44c0e93e', component.options)
}
module.hot.accept("./MemberCouponBottomBjg.vue?vue&type=template&id=44c0e93e&scoped=true&", function () {
api.rerender('44c0e93e', {
render: render,
staticRenderFns: staticRenderFns
})
})
}
}
component.options.__file = "src/bjgou/components/MemberCouponBottomBjg.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ "1933d89a9414ea50fbbd":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_template_id_09436700_scoped_true___ = __webpack_require__("a3752ec682eda733a057");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_template_id_09436700_scoped_true___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_template_id_09436700_scoped_true___["b"]; });
/***/ }),
/***/ "1a0cda2f74042332262b":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__JdRankList_vue_vue_type_template_id_a48d90ba_scoped_true___ = __webpack_require__("fc02c8246c40af764545");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__JdRankList_vue_vue_type_script_lang_js___ = __webpack_require__("93201dafc10fe2ec927e");
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__JdRankList_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__JdRankList_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__JdRankList_vue_vue_type_style_index_0_id_a48d90ba_scoped_true_lang_less___ = __webpack_require__("0e53a0c44eeffdc5af61");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc");
/* normalize component */
var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])(
__WEBPACK_IMPORTED_MODULE_1__JdRankList_vue_vue_type_script_lang_js___["default"],
__WEBPACK_IMPORTED_MODULE_0__JdRankList_vue_vue_type_template_id_a48d90ba_scoped_true___["a" /* render */],
__WEBPACK_IMPORTED_MODULE_0__JdRankList_vue_vue_type_template_id_a48d90ba_scoped_true___["b" /* staticRenderFns */],
false,
null,
"a48d90ba",
null
)
/* hot reload */
if (false) {
var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js")
api.install(require('vue'))
if (api.compatible) {
module.hot.accept()
if (!api.isRecorded('a48d90ba')) {
api.createRecord('a48d90ba', component.options)
} else {
api.reload('a48d90ba', component.options)
}
module.hot.accept("./JdRankList.vue?vue&type=template&id=a48d90ba&scoped=true&", function () {
api.rerender('a48d90ba', {
render: render,
staticRenderFns: staticRenderFns
})
})
}
}
component.options.__file = "src/standard/module/components/JdRankList.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ "1b7cd483fef8d06be5bd":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_script_lang_js___ = __webpack_require__("6da42464ccd75a83a065");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "1bf3d038228bc6453f54":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TooltipView_vue_vue_type_style_index_0_id_4c623068_scoped_true_lang_css___ = __webpack_require__("2acdfbaec3fc32cb3781");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TooltipView_vue_vue_type_style_index_0_id_4c623068_scoped_true_lang_css____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TooltipView_vue_vue_type_style_index_0_id_4c623068_scoped_true_lang_css___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TooltipView_vue_vue_type_style_index_0_id_4c623068_scoped_true_lang_css____default.a);
/***/ }),
/***/ "1c27e5597326d85ccd21":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTbV3_vue_vue_type_template_id_263c4225_scoped_true___ = __webpack_require__("3400b3b57abdafe9e6e3");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTbV3_vue_vue_type_template_id_263c4225_scoped_true___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTbV3_vue_vue_type_template_id_263c4225_scoped_true___["b"]; });
/***/ }),
/***/ "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")))
/***/ }),
/***/ "1c99cc0b274a86b8bf55":
/***/ (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__("f56e7f119cfd46a17f3e");
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("4310ff0d1d73bb2c547a").default
var update = add("607eb4ac", content, false, {});
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QRLinkTbV3.vue?vue&type=style&index=0&id=263c4225&scoped=true&lang=less&", function() {
var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QRLinkTbV3.vue?vue&type=style&index=0&id=263c4225&scoped=true&lang=less&");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent);
});
}
// When the module is disposed, remove the <style> tags
module.hot.dispose(function() { update(); });
}
/***/ }),
/***/ "1d340ec56da8e2a5ab0c":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")();
// 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", ""]);
// exports
/***/ }),
/***/ "1d4a38351293e5975c34":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_template_id_caa5e08c_scoped_true___ = __webpack_require__("91d14e46c642a51cb733");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_template_id_caa5e08c_scoped_true___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_template_id_caa5e08c_scoped_true___["b"]; });
/***/ }),
/***/ "1e298dd729854816851a":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
Object.defineProperty(exports, '__esModule', {
value: true
});
exports['default'] = {
props: ['price', 'fontSize']
};
module.exports = exports['default'];
/***/ }),
/***/ "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")))
/***/ }),
/***/ "208f3dcdde17a0c8b4ce":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_style_index_0_id_3f03717c_scoped_true_lang_css___ = __webpack_require__("046f8265b7ec1e363fe6");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_style_index_0_id_3f03717c_scoped_true_lang_css____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_style_index_0_id_3f03717c_scoped_true_lang_css___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_style_index_0_id_3f03717c_scoped_true_lang_css____default.a);
/***/ }),
/***/ "2095ef3d16e7efc5a0fb":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QuestHint_vue_vue_type_script_lang_js___ = __webpack_require__("b3b04bb8276b83d2d038");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QuestHint_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QuestHint_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QuestHint_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "20fc8e76eb477ec01bd1":
/***/ (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")))
/***/ }),
/***/ "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__("5e2f5846a39bd030f955");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__TopMainBar_vue_vue_type_script_lang_js___ = __webpack_require__("85dfcf86535fc301312e");
/* 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_lang_less___ = __webpack_require__("57cbb6619921ed27070e");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc");
/* normalize component */
var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])(
__WEBPACK_IMPORTED_MODULE_1__TopMainBar_vue_vue_type_script_lang_js___["default"],
__WEBPACK_IMPORTED_MODULE_0__TopMainBar_vue_vue_type_template_id_12b5b164___["a" /* render */],
__WEBPACK_IMPORTED_MODULE_0__TopMainBar_vue_vue_type_template_id_12b5b164___["b" /* staticRenderFns */],
false,
null,
null,
null
)
/* hot reload */
if (false) {
var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js")
api.install(require('vue'))
if (api.compatible) {
module.hot.accept()
if (!api.isRecorded('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);
/***/ }),
/***/ "2193187ed80a32f46368":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("div", { staticClass: "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
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("span", { staticClass: "btn-tab-sp" }, [
_c("em"),
_vm._v(" "),
_c("span", { staticClass: "tab-sp1 blkcolor1" }, [_vm._v("分享")])
])
},
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
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
/***/ }),
/***/ "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__("3deef7cc191860c0adf2")["default"]))
/***/ }),
/***/ "23aafd2ad4b6e88819f1":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"div",
{
staticClass: "gwd-qrlink-left gwd-row gwd-align",
style:
"left: " +
_vm.left +
"px; " +
(_vm.bottom ? "bottom: " + _vm.bottom + "px" : ""),
on: { mouseenter: _vm.over }
},
[
_c(
"span",
{
staticStyle: {
"margin-left": "8px",
"font-size": "12px",
color: "#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
/***/ }),
/***/ "246ceb42c05cc162aaa5":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_style_index_0_id_9a793014_scoped_true_lang_less___ = __webpack_require__("6524c6395176cac4885b");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_style_index_0_id_9a793014_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_style_index_0_id_9a793014_scoped_true_lang_less___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_style_index_0_id_9a793014_scoped_true_lang_less____default.a);
/***/ }),
/***/ "25e0cebb2e3d42787857":
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__("0873bfa38b6f0206ed22");
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("4310ff0d1d73bb2c547a").default
var update = add("6e1549c8", content, false, {});
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./JdRankList.vue?vue&type=style&index=0&id=a48d90ba&scoped=true&lang=less&", function() {
var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./JdRankList.vue?vue&type=style&index=0&id=a48d90ba&scoped=true&lang=less&");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent);
});
}
// When the module is disposed, remove the <style> tags
module.hot.dispose(function() { update(); });
}
/***/ }),
/***/ "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__("b751a4bf79e05496e44c");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AmazonSameLinks_vue_vue_type_script_lang_js___ = __webpack_require__("4dc2ef547f8febfe2cb7");
/* 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__("9d9187f017fae783da67");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc");
/* normalize component */
var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])(
__WEBPACK_IMPORTED_MODULE_1__AmazonSameLinks_vue_vue_type_script_lang_js___["default"],
__WEBPACK_IMPORTED_MODULE_0__AmazonSameLinks_vue_vue_type_template_id_e09aa000_scoped_true___["a" /* render */],
__WEBPACK_IMPORTED_MODULE_0__AmazonSameLinks_vue_vue_type_template_id_e09aa000_scoped_true___["b" /* staticRenderFns */],
false,
null,
"e09aa000",
null
)
/* hot reload */
if (false) {
var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js")
api.install(require('vue'))
if (api.compatible) {
module.hot.accept()
if (!api.isRecorded('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);
/***/ }),
/***/ "26c102d663b8f4bd5e3e":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Price_vue_vue_type_template_id_26424954_scoped_true___ = __webpack_require__("837c92c61b383789362d");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Price_vue_vue_type_template_id_26424954_scoped_true___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Price_vue_vue_type_template_id_26424954_scoped_true___["b"]; });
/***/ }),
/***/ "26d6d211e5891e20376d":
/***/ (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'];
/***/ }),
/***/ "276678a9cbe67b1a7de2":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingMini_vue_vue_type_script_lang_js___ = __webpack_require__("3b418a5d4a94f47c3d7c");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingMini_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingMini_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingMini_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "2a307d7603e2f04f4b20":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")();
// 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
/***/ }),
/***/ "2acdfbaec3fc32cb3781":
/***/ (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__("cf769ee9f029377611e5");
if(typeof content === 'string') content = [[module.i, content, '']];
// add the styles to the DOM
var update = __webpack_require__("ed1f825ff922d4e45a2e")(content, {});
if(content.locals) module.exports = content.locals;
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../../../../../node_modules/.0.20.2@css-loader/index.js!../../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./TooltipView.vue?vue&type=style&index=0&id=4c623068&scoped=true&lang=css&", function() {
var newContent = require("!!../../../../../node_modules/.0.20.2@css-loader/index.js!../../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./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(); });
}
/***/ }),
/***/ "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__("1c27e5597326d85ccd21");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QRLinkTbV3_vue_vue_type_script_lang_js___ = __webpack_require__("f9dbf8a1e1478eca2564");
/* 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__("33ce53f2ed81e998d2bc");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc");
/* normalize component */
var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])(
__WEBPACK_IMPORTED_MODULE_1__QRLinkTbV3_vue_vue_type_script_lang_js___["default"],
__WEBPACK_IMPORTED_MODULE_0__QRLinkTbV3_vue_vue_type_template_id_263c4225_scoped_true___["a" /* render */],
__WEBPACK_IMPORTED_MODULE_0__QRLinkTbV3_vue_vue_type_template_id_263c4225_scoped_true___["b" /* staticRenderFns */],
false,
null,
"263c4225",
null
)
/* hot reload */
if (false) {
var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js")
api.install(require('vue'))
if (api.compatible) {
module.hot.accept()
if (!api.isRecorded('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);
/***/ }),
/***/ "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;
};
/***/ }),
/***/ "2bc18901559a2d6a8c66":
/***/ (function(module, exports) {
module.exports = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjNweCIgaGVpZ2h0PSIxMHB4IiB2aWV3Qm94PSIwIDAgMjMgMTAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjEgKDY3MDQ4KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT7nrq3lpLQ8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0iMeaciOS/ruaUuSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IuaPkuS7tue6ouWMhSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTExNDguMDAwMDAwLCAtNTU3LjAwMDAwMCkiIGZpbGw9IiNGRjU2NTIiPgogICAgICAgICAgICA8ZyBpZD0i5YiG57uELTQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDgyMi4wMDAwMDAsIDU0NS4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxnIGlkPSLnrq3lpLQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDMyNi4wMDAwMDAsIDEyLjAwMDAwMCkiPgogICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSLot6/lvoQiIHBvaW50cz0iMTYuNjk4MTYxOCA5LjE0MjU4MjQgMjEuMjgyNTUwMiA1IDE2LjY5ODE2MTggMC44NTc0MTc2MDMgMTcuMzUzMDc0NCAwLjI2NTYyMDExOCAyMi41OTIzNzU0IDUgMTcuMzUzMDc0NCA5LjczNDM3OTg4Ij48L3BvbHlnb24+CiAgICAgICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9Iui3r+W+hC1jb3B5IiBvcGFjaXR5PSIwLjgiIHBvaW50cz0iOC40NDE3ODIwOSA5LjE0MjU4MjQgMTMuMDI2MTcwNCA1IDguNDQxNzgyMDkgMC44NTc0MTc2MDMgOS4wOTY2OTQ3MSAwLjI2NTYyMDExOCAxNC4zMzU5OTU3IDUgOS4wOTY2OTQ3MSA5LjczNDM3OTg4Ij48L3BvbHlnb24+CiAgICAgICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9Iui3r+W+hC1jb3B5LTIiIG9wYWNpdHk9IjAuNCIgcG9pbnRzPSIwLjE4NTQwMjM3NCA5LjE0MjU4MjQgNC43Njk3OTA3MiA1IDAuMTg1NDAyMzc0IDAuODU3NDE3NjAzIDAuODQwMzE0OTk2IDAuMjY1NjIwMTE4IDYuMDc5NjE1OTcgNSAwLjg0MDMxNDk5NiA5LjczNDM3OTg4Ij48L3BvbHlnb24+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg=="
/***/ }),
/***/ "2c7fa747888a567cd254":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_style_index_0_id_4148f062_scoped_true_lang_less___ = __webpack_require__("398e7c903a0cfb55f9a0");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_style_index_0_id_4148f062_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_style_index_0_id_4148f062_scoped_true_lang_less___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_style_index_0_id_4148f062_scoped_true_lang_less____default.a);
/***/ }),
/***/ "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")))
/***/ }),
/***/ "2e185af694cfa8c5397c":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_template_id_5ccff421_scoped_true___ = __webpack_require__("82410f902da08ba0a973");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_template_id_5ccff421_scoped_true___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_template_id_5ccff421_scoped_true___["b"]; });
/***/ }),
/***/ "2e99c26f3c749e77922a":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_1_id_673c66fa_scoped_true_lang_less___ = __webpack_require__("aa51cc982b2c1333cb43");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_1_id_673c66fa_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_1_id_673c66fa_scoped_true_lang_less___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_1_id_673c66fa_scoped_true_lang_less____default.a);
/***/ }),
/***/ "30642c8fc3d71dc36d9a":
/***/ (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")))
/***/ }),
/***/ "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;
};
/***/ }),
/***/ "31565daf77a36862a767":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_script_lang_js___ = __webpack_require__("4dbc4849707ea6484a05");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "31d452087f8bb0fc12f2":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_script_lang_js___ = __webpack_require__("0a3b1f8666118ebd3443");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "3207beb8fdf4d3d4ed2c":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"a",
{
staticClass: "gwd-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
/***/ }),
/***/ "32dc5c815515f7c2847e":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TooltipView_vue_vue_type_template_id_4c623068_scoped_true___ = __webpack_require__("820955a54449cb94cc9a");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TooltipView_vue_vue_type_template_id_4c623068_scoped_true___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TooltipView_vue_vue_type_template_id_4c623068_scoped_true___["b"]; });
/***/ }),
/***/ "336de8fce6caee2400ef":
/***/ (function(module, exports) {
module.exports = {"priceUp":{"zh":"价格上涨","en":"Price Increases","zh-tr":"價格上漲"},"priceStable":{"zh":"价格平稳","en":"Keep Stable","zh-tr":"價格平穩"},"priceDecrease":{"zh":"价格下降","en":"Price Declining","zh-tr":"價格下降"},"priceLowest":{"zh":"历史最低价","en":"Lowest Price","zh-tr":"歷史最低價"},"lowestSingleWithSpace":{"zh":"最低(单 件):","en":"Lowest Price(single):","zh-tr":"最低(單 件):"},"lowestSingle":{"zh":"最低(单件):","en":"Lowest(single):","zh-tr":"最低(單件):"},"lowest":{"zh":"最低:","en":"Lowest:","zh-tr":"最低:"},"textCurrent":{"zh":"现价","en":"Current","zh-tr":"現價"},"textHigh":{"zh":"最高","en":"Highest","zh-tr":"最高"},"textLow":{"zh":"最低","en":"Lowest","zh-tr":"最低"},"day":{"zh":"天","en":" days","zh-tr":"天"},"all":{"zh":"全部","en":"All","zh-tr":"全部"},"single":{"zh":"单 件","en":"Single","zh-tr":"單 件"},"combine":{"zh":"多 件","en":"Combined","zh-tr":"多 件"},"pagePrice":{"zh":"页面价","en":"Price","zh-tr":"頁面價"},"onHandPrice":{"zh":"到手价(单件)","en":"Promotion Price","zh-tr":"到手價(單件)"},"combinePrice":{"zh":"到手价(多件)","en":"Combined Price","zh-tr":"到手價(多件)"}}
/***/ }),
/***/ "33ce53f2ed81e998d2bc":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTbV3_vue_vue_type_style_index_0_id_263c4225_scoped_true_lang_less___ = __webpack_require__("1c99cc0b274a86b8bf55");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTbV3_vue_vue_type_style_index_0_id_263c4225_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTbV3_vue_vue_type_style_index_0_id_263c4225_scoped_true_lang_less___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTbV3_vue_vue_type_style_index_0_id_263c4225_scoped_true_lang_less____default.a);
/***/ }),
/***/ "33f1e3efa95059924094":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
Object.defineProperty(exports, "__esModule", {
value: true
});
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _CouponLinkMixin = __webpack_require__("05dfce086a5faeee4991");
var _CouponLinkMixin2 = _interopRequireDefault(_CouponLinkMixin);
exports["default"] = {
mixins: [_CouponLinkMixin2["default"]]
};
module.exports = exports["default"];
/***/ }),
/***/ "3400b3b57abdafe9e6e3":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"div",
{
staticClass: "gwd-qrlink-left gwd-row gwd-align",
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
/***/ }),
/***/ "347100e5d04609b28c6b":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_script_lang_js___ = __webpack_require__("c42621fee4e6fd4b0684");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingTop_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "347c8293d755342c2556":
/***/ (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__("46d69277cc9f3bb74c92");
if(typeof content === 'string') content = [[module.i, content, '']];
// add the styles to the DOM
var update = __webpack_require__("ed1f825ff922d4e45a2e")(content, {});
if(content.locals) module.exports = content.locals;
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../../../../../node_modules/.0.20.2@css-loader/index.js!../../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./TipCenter.vue?vue&type=style&index=0&id=9f16b84a&scoped=true&lang=css&", function() {
var newContent = require("!!../../../../../node_modules/.0.20.2@css-loader/index.js!../../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./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(); });
}
/***/ }),
/***/ "349e2a33b311aaaed53d":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(G) {//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
Object.defineProperty(exports, "__esModule", {
value: true
});
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _commonComponentsMemberCouponMixin = __webpack_require__("1fffec0778a8d8b2e8e2");
var _commonComponentsMemberCouponMixin2 = _interopRequireDefault(_commonComponentsMemberCouponMixin);
var _commonComponentsMemberCouponQr = __webpack_require__("0c4497b5d7aa90d42b50");
var _commonComponentsMemberCouponQr2 = _interopRequireDefault(_commonComponentsMemberCouponQr);
exports["default"] = {
mixins: [_commonComponentsMemberCouponMixin2["default"]],
components: { MemberCouponQr: _commonComponentsMemberCouponQr2["default"] },
data: function data() {
return {
G: G
};
}
};
module.exports = exports["default"];
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3")))
/***/ }),
/***/ "35cea1cae24642c09e76":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Stamp_vue_vue_type_style_index_0_id_a70db998_scoped_true_lang_less___ = __webpack_require__("61d67bfafc2c18e5a95b");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Stamp_vue_vue_type_style_index_0_id_a70db998_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Stamp_vue_vue_type_style_index_0_id_a70db998_scoped_true_lang_less___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Stamp_vue_vue_type_style_index_0_id_a70db998_scoped_true_lang_less____default.a);
/***/ }),
/***/ "36210a9a9a83d17bc7bd":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ProductItem_vue_vue_type_style_index_0_id_38276ded_scoped_true_lang_less___ = __webpack_require__("e3f5a59365034a2d6f36");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ProductItem_vue_vue_type_style_index_0_id_38276ded_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ProductItem_vue_vue_type_style_index_0_id_38276ded_scoped_true_lang_less___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ProductItem_vue_vue_type_style_index_0_id_38276ded_scoped_true_lang_less____default.a);
/***/ }),
/***/ "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.bijiago.com/js/configs/activity-online.json'));
case 21:
config = context$1$0.sent;
c = config.jdActivity;
t = new Date();
jdadImg = 'https://cdn.bijiago.com/images/extensions/ad1111/bijiago_go.png';
if (t < new Date(c.end) && t > new Date(c.start)) {
jdadUrl = c.top.link;
jdadImg = c.top.img;
$('#gwdang-banner-ad').attr('href', jdadUrl);
$('#gwdang-banner-ad img:eq(0)').attr('src', jdadImg);
$('#gwdang-banner-ad img:eq(0)').css('height', '32px');
$('#gwdang-banner-ad img:eq(1)').css('display', 'none');
}
case 26:
return context$1$0.abrupt('return', new Promise(function (resolve) {
return resolve();
}));
case 27:
case 'end':
return context$1$0.stop();
}
}, null, _this);
};
module.exports.init = function callee$0$0() {
var permanent, count, t;
return regeneratorRuntime.async(function callee$0$0$(context$1$0) {
while (1) switch (context$1$0.prev = context$1$0.next) {
case 0:
permanent = userData.get('permanent');
if (!(location.hostname.indexOf('smzdm.com') > -1)) {
context$1$0.next = 3;
break;
}
return context$1$0.abrupt('return');
case 3:
context$1$0.next = 5;
return regeneratorRuntime.awrap(renderBar(permanent));
case 5:
count = 0;
t = setInterval(function () {
// 加载完成之后 做一个自动适配 避免屏幕宽度不够出现错位现象
__webpack_require__("1c640a99db9f6f8a16c2").autoFixWidth();
window.fixWidth = __webpack_require__("1c640a99db9f6f8a16c2").autoFixWidth;
count++;
if (count > 5) {
clearInterval(t);
}
}, 1000);
case 7:
case 'end':
return context$1$0.stop();
}
}, null, _this);
};
// 工具条上展示小banner AD
// let redpack = await $.getJSON(`https://cdn.gwdang.com/js/configs/jdRedpack.json`)
// if (redpack.url) {
// jdadUrl = redpack.url
// $('#gwdang-banner-ad').attr('href', jdadUrl)
// }
// 获取配置信息 比如插件是否折叠
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"]))
/***/ }),
/***/ "37225e6496ff37fa6691":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Error_vue_vue_type_style_index_0_id_8eca1ada_scoped_true_lang_less___ = __webpack_require__("bd3ac621e2e90b197c06");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Error_vue_vue_type_style_index_0_id_8eca1ada_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Error_vue_vue_type_style_index_0_id_8eca1ada_scoped_true_lang_less___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Error_vue_vue_type_style_index_0_id_8eca1ada_scoped_true_lang_less____default.a);
/***/ }),
/***/ "379c1f0148813ff54069":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
Object.defineProperty(exports, "__esModule", {
value: true
});
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _commonComponentsMemberCouponMixin = __webpack_require__("1fffec0778a8d8b2e8e2");
var _commonComponentsMemberCouponMixin2 = _interopRequireDefault(_commonComponentsMemberCouponMixin);
exports["default"] = {
props: ['dpId'],
mixins: [_commonComponentsMemberCouponMixin2["default"]],
mounted: function mounted() {
this.over();
}
};
module.exports = exports["default"];
/***/ }),
/***/ "38b9a004946728772bc4":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"div",
{
staticClass: "gwd-epic-bar-container gwd-row",
style: _vm.type === "top" ? "margin-top: 6px;" : ""
},
[
_c(
"div",
{
staticClass: "gwd-epic-price gwd-row gwd-align",
style: _vm.type === "top" ? "margin-right: 0px;" : "",
on: { mouseover: _vm.draw }
},
[
_vm._v("\n " + _vm._s(_vm.priceStatusText) + "\n "),
_c("img", {
staticStyle: {
"margin-left": "6px",
transform: "scale(0.5)",
"transform-origin": "left center"
},
attrs: { src: _vm.priceTrendIcon, alt: "" }
}),
_vm._v(" "),
_c("div", { staticClass: "gwd-price-trend-panel" }, [
_c("div", { staticClass: "gwd-top-price gwd-row" }, [
_c(
"span",
{
staticClass: "gwd-price-text",
staticStyle: { "border-color": "#ff5627", color: "#ff5627" }
},
[
_vm._v(
"最高: $" +
_vm._s(parseFloat(_vm.data.store[0].highest).toFixed(2))
)
]
),
_vm._v(" "),
_c(
"span",
{
staticClass: "gwd-price-text",
staticStyle: { "border-color": "#9ed81e", color: "#9ed81e" }
},
[
_vm._v(
"最低: $" +
_vm._s(parseFloat(_vm.data.store[0].lowest).toFixed(2))
)
]
)
]),
_vm._v(" "),
_c(
"span",
{
staticStyle: {
position: "absolute",
color: "#777777",
"font-size": "12px",
top: "37px",
left: "28px",
"z-index": "3"
}
},
[_vm._v("价格(US$)")]
),
_vm._v(" "),
_c("div", {
ref: "plotArea",
staticStyle: { "margin-top": "-1px", height: "207px" }
})
])
]
)
]
)
}
var staticRenderFns = []
render._withStripped = true
/***/ }),
/***/ "38c3da6a2366a559454c":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_script_lang_js___ = __webpack_require__("000bbf01d73ab546daa9");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "38ebe779d55c0ebbd5e9":
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__("da61eadd7fa9550ae386");
if(typeof content === 'string') content = [[module.i, content, '']];
// add the styles to the DOM
var update = __webpack_require__("ed1f825ff922d4e45a2e")(content, {});
if(content.locals) module.exports = content.locals;
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../../../../../node_modules/.0.20.2@css-loader/index.js!../../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./TooltipViewBar.vue?vue&type=style&index=0&id=da945952&scoped=true&lang=css&", function() {
var newContent = require("!!../../../../../node_modules/.0.20.2@css-loader/index.js!../../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./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(); });
}
/***/ }),
/***/ "398e7c903a0cfb55f9a0":
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__("984fb26cd63aa11f2f19");
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("4310ff0d1d73bb2c547a").default
var update = add("6f5a3234", content, false, {});
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QRLinkContactTmall.vue?vue&type=style&index=0&id=4148f062&scoped=true&lang=less&", function() {
var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QRLinkContactTmall.vue?vue&type=style&index=0&id=4148f062&scoped=true&lang=less&");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent);
});
}
// When the module is disposed, remove the <style> tags
module.hot.dispose(function() { update(); });
}
/***/ }),
/***/ "399d3eb4adfb0281eed0":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_script_lang_js___ = __webpack_require__("9dd6cec84ada5cb63221");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "39c432bd7bb3fe587696":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(regeneratorRuntime, $, G, Vue) {
var _this = this;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _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 QRLink = __webpack_require__("041f80fea3d67bf79b22")['default'];
var qrReplaceJd = function qrReplaceJd() {
return regeneratorRuntime.async(function qrReplaceJd$(context$1$0) {
while (1) switch (context$1$0.prev = context$1$0.next) {
case 0:
context$1$0.next = 2;
return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () {
return $('.mobile-only.J-mobile-only .qrcode.fl img').length;
}, 300, 20));
case 2:
if ($('.qrcode.fl img').length) {
__webpack_require__("f02e7d39b343f92cf387").get('baiyibutie').then(function (r) {
$('.mobile-only.J-mobile-only').css('position', 'relative').append('<img style="position: absolute; top: 0; left: -110px; 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 3:
case 'end':
return context$1$0.stop();
}
}, null, _this);
};
var qrReplaceTaobao = function qrReplaceTaobao() {
var selectorConfig, s, s2, imgSrc, loadQr, imgSrcRight, loadQrRight, taoScanQr, className, hoverLoad;
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:
context$1$0.next = 4;
return regeneratorRuntime.awrap(__webpack_require__("629a8cb1e8f3321eec0b").get());
case 4:
selectorConfig = context$1$0.sent;
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 = 17;
return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () {
return $('.tk-qr-wrapper').length || $('.tb-qrcode-tool').length;
}));
case 17:
$('[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);
// 淘宝滑下去时可能会删除 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, div, globalConfig, dom;
return regeneratorRuntime.async(function callee$0$0$(context$1$0) {
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:
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) {
(function () {
$('.gwd-qrlink-left').remove();
var e2 = document.createElement('DIV');
var left = -113;
var bottom = undefined;
var style = {};
var 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);
}
var 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
// })
// })
})();
}
__webpack_require__("9c38beef5ff283e15bd2").setMet('QRLinkReady');
isNewStyle = true;
if (!isNewStyle) {
context$1$0.next = 26;
break;
}
$('.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$1$0.next = 18;
return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('GwdConfig'));
case 18:
globalConfig = context$1$0.sent;
dom = globalConfig.aliBuyQr.find(function (item) {
return $(item).length;
});
$(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$1$0.next = 25;
break;
}
return context$1$0.abrupt('return');
case 25:
new Vue({
el: '#gwd-link',
render: function render(h) {
return h(_componentsQRLinkContact2['default'], {
props: {
tag: ''
}
});
}
});
case 26:
case 'end':
return context$1$0.stop();
}
}, null, _this);
};
// 天猫顶部联系客服
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("3deef7cc191860c0adf2")["default"]))
/***/ }),
/***/ "39d3e6a082837f30ee02":
/***/ (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__("d7ad1ceb9d1111274535");
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("4310ff0d1d73bb2c547a").default
var update = add("2c88d5cd", content, false, {});
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../../../../../node_modules/.0.20.2@css-loader/index.js!../../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=style&index=0&id=74d4d45d&scoped=true&lang=less&", function() {
var newContent = require("!!../../../../../node_modules/.0.20.2@css-loader/index.js!../../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=style&index=0&id=74d4d45d&scoped=true&lang=less&");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent);
});
}
// When the module is disposed, remove the <style> tags
module.hot.dispose(function() { update(); });
}
/***/ }),
/***/ "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")))
/***/ }),
/***/ "3b418a5d4a94f47c3d7c":
/***/ (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'];
/***/ }),
/***/ "3be7d467c6bac9354a1b":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")();
// imports
// module
exports.push([module.i, ".gwd-qr-login[data-v-6179ab9e] {\n position: fixed;\n bottom: 65px;\n left: 0;\n right: 0;\n}\n.gwd-qr-login .gwd-qr-box[data-v-6179ab9e] {\n margin-top: 6px;\n width: 190px;\n height: 217px;\n background: linear-gradient(180deg, #FFF9F6 0%, #FFF9F6 100%);\n opacity: 1;\n border: 1px solid #FF471A;\n}\n", ""]);
// exports
/***/ }),
/***/ "3cd1d8e0961acbb3ac12":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(regeneratorRuntime, $, G, Vue) {
var request = __webpack_require__("91f250ebeb8d5987491c");
module.exports = {
init: function init() {
var EpicTrend;
return regeneratorRuntime.async(function init$(context$1$0) {
while (1) switch (context$1$0.prev = context$1$0.next) {
case 0:
context$1$0.next = 2;
return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () {
var t = $('[data-component=PurchaseButton] button')[0].innerText;
return t === '立即购买' || t === '预购';
}));
case 2:
EpicTrend = __webpack_require__("04a1e812dbb979983ae6")['default'];
setTimeout(function () {
var list = $('[data-component=ProductCard]');
console.log(list);
var r = list.toArray().map(function (item) {
var link = $(item).find('a').attr('href');
if (!link) {
link = location.href;
} else {
link = 'https://' + location.hostname + link;
}
var el = $(item).find('[data-component=ProductCardBottomRowLayout]');
return {
mountPoint: el,
link: link
};
});
console.log(r);
r.forEach(function (item) {
request.get(G.server + '/extension/price_towards?url=' + item.link + '&ver=1', true).then(function (res) {
var e = document.createElement('div');
if (!res.store.length || !res.store[0].all_line.length) {
return;
}
e.classList.add('gwd-tag');
$(item.mountPoint).after(e);
new Vue({
el: e,
render: function render(h) {
return h(EpicTrend, {
props: {
data: res
}
});
}
});
// debugger
$(e).on('DOMNodeRemoved', function () {
debugger;
});
});
});
var mountPoint = $('[data-component=PurchaseButton]');
if (!mountPoint.length) {
return;
}
if ($(mountPoint[0]).parents('[data-component=ProductCard]').length) {
return;
}
// let priceText = $('[data-component=Price]')[0].innerText.replace('US$', '') * 100
request.get(G.server + '/extension/price_towards?url=' + location.href + '&ver=1', true).then(function (res) {
var e = document.createElement('div');
if (!res.store.length || !res.store[0].all_line.length) {
return;
}
$(mountPoint[0]).after(e);
new Vue({
el: e,
render: function render(h) {
return h(EpicTrend, {
props: {
data: res,
type: 'top'
}
});
}
});
});
}, 2000);
case 4:
case 'end':
return context$1$0.stop();
}
}, null, this);
}
};
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("3deef7cc191860c0adf2")["default"]))
/***/ }),
/***/ "3d0dfb7d85c294b82b5b":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Stamp_vue_vue_type_script_lang_js___ = __webpack_require__("e2c2bb8ed716897a6414");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Stamp_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Stamp_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Stamp_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "3f46a7a9c40a110beee5":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")();
// 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
/***/ }),
/***/ "3fa903f63ab27085d5c8":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _vm.data.time
? _c("div", [
_c("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
/***/ }),
/***/ "4185256a225ebafc807c":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")();
// imports
// module
exports.push([module.i, ".gwd-epic-bar-container[data-v-bc2362ee] {\n position: relative;\n z-index: 2;\n margin-top: -10px;\n height: 45px;\n justify-content: flex-end;\n}\n.gwd-epic-bar-container .gwd-epic-price[data-v-bc2362ee] {\n width: 262px;\n height: 32px;\n background: #007feb;\n border-radius: 3px;\n color: white;\n justify-content: center;\n margin-right: 32px;\n position: relative;\n font-size: 12px;\n cursor: pointer;\n}\n.gwd-epic-bar-container .gwd-epic-price .gwd-price-trend-panel[data-v-bc2362ee] {\n position: absolute;\n width: 400px;\n height: 260px;\n background: #1E1E1E;\n box-shadow: 0px 4px 9px 0px #030303;\n border-radius: 2px 0px 0px 2px;\n overflow: hidden;\n top: 32px;\n right: 0;\n z-index: 3;\n display: none;\n}\n.gwd-epic-bar-container .gwd-epic-price[data-v-bc2362ee]:hover {\n background: #1e94f8;\n}\n.gwd-epic-bar-container .gwd-epic-price:hover .gwd-price-trend-panel[data-v-bc2362ee] {\n z-index: 3;\n display: block;\n}\n.gwd-epic-bar-container .gwd-top-price[data-v-bc2362ee] {\n margin-top: 18px;\n justify-content: center;\n position: relative;\n z-index: 3;\n}\n.gwd-epic-bar-container .gwd-top-price .gwd-price-text[data-v-bc2362ee] {\n display: inline-block;\n min-width: 88px;\n height: 26px;\n margin-left: 18px;\n margin-right: 18px;\n text-align: center;\n border-width: 1px;\n border-style: solid;\n line-height: 24px;\n}\n.ttip-discount[data-v-bc2362ee] {\n background: #000000;\n color: #aaaaaa;\n width: 110px;\n height: 52px;\n}\n", ""]);
// exports
/***/ }),
/***/ "41e83fde2201068b50ba":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")();
// imports
// module
exports.push([module.i, ".gwd-qr-scan[data-v-09436700] {\n width: 64px;\n height: 22px;\n background: #FF3532;\n border-radius: 11px;\n font-size: 12px;\n color: white;\n margin-left: 31px;\n margin-right: 11px;\n text-align: center;\n line-height: 20px;\n cursor: pointer;\n position: relative;\n}\n.gwd-price-protect-qr[data-v-09436700] {\n display: none;\n position: absolute;\n box-sizing: border-box;\n width: 148px;\n height: 156px;\n right: 0;\n top: 36px;\n border: 1px solid #ff3532;\n background: #fff7f7;\n z-index: 99;\n}\n.gwd-price-protect-qr img[data-v-09436700] {\n margin-top: 7px;\n width: 120px;\n height: 120px;\n}\n#gwd-price-protect:hover .gwd-price-protect-qr[data-v-09436700] {\n display: flex;\n}\n", ""]);
// exports
/***/ }),
/***/ "426d7c3d6bd989255c92":
/***/ (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 _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'],
components: { CouponArrow: _CouponArrow2['default'], QRError: _commonComponentsQrError2['default'], Stamp: _WidgetsStamp2['default'] },
data: function data() {
return {
loading: false,
error: false,
actualQr: '',
showStampBg: G.from_device === '360server'
};
},
computed: {
alterHref: function alterHref() {
return __webpack_require__("4733a3dd803685ec596a").appendTbInfoForUrl(this.href);
}
},
mounted: function mounted() {
if (G.aliSite) {
__webpack_require__("44239e28538215cb3189").add(this.text, this.icon, __webpack_require__("4733a3dd803685ec596a").appendTbInfoForUrl(this.href), this.mainColor, this.secondColor, this.showStampBg, this.rebate);
}
},
methods: {
over: function over() {
var _this = this;
this.$emit('over');
if (this.type !== 'qr' || this.loading) return;
if (this.qrUrl) {
this.actualQr = this.qrUrl;
return;
}
this.loading = true;
getQRCode(this.qrParams, '', function (res) {
_this.loading = false;
if (res[0].etag) {
_this.error = true;
} else {
_this.error = false;
_this.actualQr = res[0].imgSrc;
}
});
}
}
};
module.exports = exports['default'];
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3")))
/***/ }),
/***/ "4331045ed79e8926b985":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TbScrollLink_vue_vue_type_template_id_0ac72494_scoped_true___ = __webpack_require__("eccedff1e8192b3fb486");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TbScrollLink_vue_vue_type_template_id_0ac72494_scoped_true___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TbScrollLink_vue_vue_type_template_id_0ac72494_scoped_true___["b"]; });
/***/ }),
/***/ "4398ded64f1b528d1da8":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_style_index_1_id_caa5e08c_scoped_true_lang_css___ = __webpack_require__("01c731a8c80a2ccbdf1b");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_style_index_1_id_caa5e08c_scoped_true_lang_css____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_style_index_1_id_caa5e08c_scoped_true_lang_css___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_style_index_1_id_caa5e08c_scoped_true_lang_css____default.a);
/***/ }),
/***/ "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);
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__("3deef7cc191860c0adf2")["default"]))
/***/ }),
/***/ "4546121da53c8909000c":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TbScrollLink_vue_vue_type_style_index_0_id_0ac72494_scoped_true_lang_less___ = __webpack_require__("5b79567feae54cc6933c");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TbScrollLink_vue_vue_type_style_index_0_id_0ac72494_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TbScrollLink_vue_vue_type_style_index_0_id_0ac72494_scoped_true_lang_less___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TbScrollLink_vue_vue_type_style_index_0_id_0ac72494_scoped_true_lang_less____default.a);
/***/ }),
/***/ "461dcf71927012141a32":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MemberCouponMiniBjg_vue_vue_type_template_id_c1c2cbdc_scoped_true___ = __webpack_require__("5ee53b35b71f518d7bb3");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__MemberCouponMiniBjg_vue_vue_type_script_lang_js___ = __webpack_require__("95245dbd2c2c8f1d13db");
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__MemberCouponMiniBjg_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__MemberCouponMiniBjg_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__MemberCouponMiniBjg_vue_vue_type_style_index_0_id_c1c2cbdc_scoped_true_lang_less___ = __webpack_require__("ad3ab4b4cd0a839309d6");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc");
/* normalize component */
var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])(
__WEBPACK_IMPORTED_MODULE_1__MemberCouponMiniBjg_vue_vue_type_script_lang_js___["default"],
__WEBPACK_IMPORTED_MODULE_0__MemberCouponMiniBjg_vue_vue_type_template_id_c1c2cbdc_scoped_true___["a" /* render */],
__WEBPACK_IMPORTED_MODULE_0__MemberCouponMiniBjg_vue_vue_type_template_id_c1c2cbdc_scoped_true___["b" /* staticRenderFns */],
false,
null,
"c1c2cbdc",
null
)
/* hot reload */
if (false) {
var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js")
api.install(require('vue'))
if (api.compatible) {
module.hot.accept()
if (!api.isRecorded('c1c2cbdc')) {
api.createRecord('c1c2cbdc', component.options)
} else {
api.reload('c1c2cbdc', component.options)
}
module.hot.accept("./MemberCouponMiniBjg.vue?vue&type=template&id=c1c2cbdc&scoped=true&", function () {
api.rerender('c1c2cbdc', {
render: render,
staticRenderFns: staticRenderFns
})
})
}
}
component.options.__file = "src/bjgou/components/MemberCouponMiniBjg.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ "46d69277cc9f3bb74c92":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")();
// imports
// module
exports.push([module.i, "\na[data-v-9f16b84a] {\n text-decoration: none;\n}\n", ""]);
// 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__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"]))
/***/ }),
/***/ "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__("f692356a3e3dc5e00bae");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__CollectionSettingTop_vue_vue_type_script_lang_js___ = __webpack_require__("347100e5d04609b28c6b");
/* 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__("208f3dcdde17a0c8b4ce");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__CollectionSettingTop_vue_vue_type_style_index_1_id_3f03717c_scoped_true_lang_less___ = __webpack_require__("048dd78d757ada2ce4b4");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__CollectionSettingTop_vue_vue_type_style_index_2_id_3f03717c_scoped_true_lang_less___ = __webpack_require__("126e227a90f4fae664e6");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc");
/* normalize component */
var component = Object(__WEBPACK_IMPORTED_MODULE_5__node_modules_15_9_3_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___["a" /* render */],
__WEBPACK_IMPORTED_MODULE_0__CollectionSettingTop_vue_vue_type_template_id_3f03717c_scoped_true___["b" /* staticRenderFns */],
false,
null,
"3f03717c",
null
)
/* hot reload */
if (false) {
var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js")
api.install(require('vue'))
if (api.compatible) {
module.hot.accept()
if (!api.isRecorded('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")))
/***/ }),
/***/ "4a10e07e61fc05d2faa6":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"div",
{
staticClass: "gwd-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
/***/ }),
/***/ "4a887fdf9f1f299f0470":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PriceInput_vue_vue_type_template_id_3ed325cb_scoped_true___ = __webpack_require__("ae7435035efbf2ee40ac");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PriceInput_vue_vue_type_template_id_3ed325cb_scoped_true___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PriceInput_vue_vue_type_template_id_3ed325cb_scoped_true___["b"]; });
/***/ }),
/***/ "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__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3")))
/***/ }),
/***/ "4b9a1dffc80dda59b7be":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_template_id_4148f062_scoped_true___ = __webpack_require__("5fe9ccd4be2bd86690c4");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_template_id_4148f062_scoped_true___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_template_id_4148f062_scoped_true___["b"]; });
/***/ }),
/***/ "4c81c82ea327e81a71cc":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_style_index_0_id_74d4d45d_scoped_true_lang_less___ = __webpack_require__("39d3e6a082837f30ee02");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_style_index_0_id_74d4d45d_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_style_index_0_id_74d4d45d_scoped_true_lang_less___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_style_index_0_id_74d4d45d_scoped_true_lang_less____default.a);
/***/ }),
/***/ "4cc85476e6bc875b4531":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PriceInput_vue_vue_type_script_lang_js___ = __webpack_require__("26d6d211e5891e20376d");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PriceInput_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PriceInput_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PriceInput_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "4d32fa92ab619cc79d1f":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"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
/***/ }),
/***/ "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__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3")))
/***/ }),
/***/ "4dbc4849707ea6484a05":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
Object.defineProperty(exports, '__esModule', {
value: true
});
exports['default'] = {
props: ['color']
};
module.exports = exports['default'];
/***/ }),
/***/ "4dc2ef547f8febfe2cb7":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_AmazonSameLinks_vue_vue_type_script_lang_js___ = __webpack_require__("721313853b51564e29d6");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_AmazonSameLinks_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_AmazonSameLinks_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_AmazonSameLinks_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "4eeb56a34812141cabdc":
/***/ (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__("5f6e54ccb5a521eb5e78");
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("4310ff0d1d73bb2c547a").default
var update = add("2de8f8b0", content, false, {});
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./TopMainBar.vue?vue&type=style&index=0&lang=less&", function() {
var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./TopMainBar.vue?vue&type=style&index=0&lang=less&");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent);
});
}
// When the module is disposed, remove the <style> tags
module.hot.dispose(function() { update(); });
}
/***/ }),
/***/ "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__("0d878046564e4ef2113b"), __webpack_require__("3deef7cc191860c0adf2")["default"]))
/***/ }),
/***/ "549da4e43b9ab5780ba3":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_template_id_bc2362ee_scoped_true___ = __webpack_require__("38b9a004946728772bc4");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_template_id_bc2362ee_scoped_true___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_template_id_bc2362ee_scoped_true___["b"]; });
/***/ }),
/***/ "54ed29046600a3e9868f":
/***/ (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/';
}
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'];
/***/ }),
/***/ "54fb323cedf4e373fd63":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_style_index_0_id_79b5dd44_scoped_true_lang_css___ = __webpack_require__("02b35786dfae568bb734");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_style_index_0_id_79b5dd44_scoped_true_lang_css____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_style_index_0_id_79b5dd44_scoped_true_lang_css___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_style_index_0_id_79b5dd44_scoped_true_lang_css____default.a);
/***/ }),
/***/ "55067c4866c69a7d0515":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_style_index_1_lang_less___ = __webpack_require__("6f3a71d8fccef41391c5");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_style_index_1_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_style_index_1_lang_less___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_style_index_1_lang_less____default.a);
/***/ }),
/***/ "55f25469ee6d116f6403":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ProductItem_vue_vue_type_template_id_38276ded_scoped_true___ = __webpack_require__("98a443f9100b8a4eb42a");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ProductItem_vue_vue_type_template_id_38276ded_scoped_true___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ProductItem_vue_vue_type_template_id_38276ded_scoped_true___["b"]; });
/***/ }),
/***/ "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")))
/***/ }),
/***/ "5718695c1fa25d021f07":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_script_lang_js___ = __webpack_require__("e1f1ecf2911e180e2d4a");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "57cbb6619921ed27070e":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_style_index_0_lang_less___ = __webpack_require__("4eeb56a34812141cabdc");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_style_index_0_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_style_index_0_lang_less___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_style_index_0_lang_less____default.a);
/***/ }),
/***/ "580fdef2bbaa9f2dc7e9":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_0_lang_css___ = __webpack_require__("d98e58cfc5180294bd6a");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_0_lang_css____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_0_lang_css___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_0_lang_css____default.a);
/***/ }),
/***/ "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__("0d878046564e4ef2113b"), __webpack_require__("3deef7cc191860c0adf2")["default"]))
/***/ }),
/***/ "58bef15ad653c744be7e":
/***/ (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'];
/***/ }),
/***/ "5a3842de4822d4a74039":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_script_lang_js___ = __webpack_require__("95c5d769aeceb09647ef");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "5b79567feae54cc6933c":
/***/ (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__("b07b8c01972d46373e29");
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("4310ff0d1d73bb2c547a").default
var update = add("24f51306", content, false, {});
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./TbScrollLink.vue?vue&type=style&index=0&id=0ac72494&scoped=true&lang=less&", function() {
var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./TbScrollLink.vue?vue&type=style&index=0&id=0ac72494&scoped=true&lang=less&");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent);
});
}
// When the module is disposed, remove the <style> tags
module.hot.dispose(function() { update(); });
}
/***/ }),
/***/ "5c2efa94913e2ffc627b":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, $, Vue) {// 会员券
var _this = this;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _commonComponentsMemberCouponTopVue = __webpack_require__("f423f4cf37e1e709bc4d");
var _commonComponentsMemberCouponTopVue2 = _interopRequireDefault(_commonComponentsMemberCouponTopVue);
var _commonComponentsMemberCouponMiniVue = __webpack_require__("00c99715365e333b6472");
var _commonComponentsMemberCouponMiniVue2 = _interopRequireDefault(_commonComponentsMemberCouponMiniVue);
var _bjgouComponentsMemberCouponMiniBjg = __webpack_require__("461dcf71927012141a32");
var _bjgouComponentsMemberCouponMiniBjg2 = _interopRequireDefault(_bjgouComponentsMemberCouponMiniBjg);
var _bjgouComponentsMemberCouponBottomBjg = __webpack_require__("19254b8c4bfcc18933d0");
var _bjgouComponentsMemberCouponBottomBjg2 = _interopRequireDefault(_bjgouComponentsMemberCouponBottomBjg);
var getMemberCoupon = function getMemberCoupon(shopId, userId) {
return regeneratorRuntime.async(function getMemberCoupon$(context$1$0) {
while (1) switch (context$1$0.prev = context$1$0.next) {
case 0:
context$1$0.next = 2;
return regeneratorRuntime.awrap(__webpack_require__("91f250ebeb8d5987491c").rawGet('https://alisitecdn.m.taobao.com/minidata/shop/index/downgrade.htm?pathInfo=shop/index2&userId=' + userId + '&shopId=' + shopId));
case 2:
return context$1$0.abrupt('return', context$1$0.sent);
case 3:
case 'end':
return context$1$0.stop();
}
}, null, _this);
};
var render = function render() {
__webpack_require__("9c38beef5ff283e15bd2").setMet('couponLink', {
content: '发现店铺优惠券,速领',
url: 'https://tb.gwdang.com/extension/qrpage?dp_id=' + G.dp.dpId + '&tag=2'
});
var divTop = document.createElement('div');
$('.gwd-topbar-left').append(divTop);
new Vue({
el: divTop,
render: function render(h) {
return h(_commonComponentsMemberCouponTopVue2['default'], {
props: {
tag: 2
}
});
}
});
// const divBottom = document.createElement('div');
// $('#gwd_minibar').after(divBottom);
new Vue({
el: '#gwd-coupon-placeholder',
render: function render(h) {
return h(_commonComponentsMemberCouponMiniVue2['default'], {
props: {
tag: 2
}
});
}
});
};
var renderBjg = function renderBjg() {
new Vue({
el: '#bjg-coupon-placeholder',
render: function render(h) {
return h(_bjgouComponentsMemberCouponMiniBjg2['default'], {
props: {
tag: 8
}
});
}
});
var el = document.createElement('DIV');
$('.bjg-coupon-space').after(el);
new Vue({
el: el,
render: function render(h) {
return h(_bjgouComponentsMemberCouponBottomBjg2['default'], {
props: {
tag: 8
}
});
}
});
};
module.exports = {
init: function init() {
return new Promise(function (resolve, reject) {
if (!G.aliSite) {
resolve(false);
}
var metaStr = $('meta[name="microscope-data"]').attr('content');
if (!metaStr) {
resolve(false);
return;
}
var parsedMetaStr = metaStr.split(';').map(function (item) {
var arr = item.split('=');
return {
key: arr[0],
value: arr[1]
};
});
var meta = {};
parsedMetaStr.forEach(function (item) {
meta[item.key.trim()] = item.value;
});
getMemberCoupon(meta.shopId, meta.userid).then(function (res) {
if (JSON.stringify(res).indexOf('market.m.taobao.com/app/cem-fe/benefit-exchange/benefit-exchange/index.html') > -1) {
__webpack_require__("83271c7588396d2d5e59").logOnce('淘宝会员券:展示');
if (G.from_device === 'bijiago' || G.from_device === 'biyibi') {
renderBjg();
} else {
render();
}
resolve(true);
} else {
resolve(false);
}
});
});
}
};
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"]))
/***/ }),
/***/ "5d4f0e584bd9a3a675b3":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
module.exports = {
modules: {},
version: 1725607518956,
mv3: true,
browser: {},
// debug: /gwdebug/.test(window ? window.location.href: ''),
extend: function extend(obj) {
for (var i in obj) {
this[i] = obj[i];
}
}
};
/***/ }),
/***/ "5d7928d15752ba1a221a":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")();
// 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
/***/ }),
/***/ "5e2f5846a39bd030f955":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_template_id_12b5b164___ = __webpack_require__("891715269d3e347058b7");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_template_id_12b5b164___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_template_id_12b5b164___["b"]; });
/***/ }),
/***/ "5e67dfd9febd7efd79c4":
/***/ (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__("3deef7cc191860c0adf2")["default"]))
/***/ }),
/***/ "5ee53b35b71f518d7bb3":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponMiniBjg_vue_vue_type_template_id_c1c2cbdc_scoped_true___ = __webpack_require__("11658198c931e28b4bb1");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponMiniBjg_vue_vue_type_template_id_c1c2cbdc_scoped_true___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponMiniBjg_vue_vue_type_template_id_c1c2cbdc_scoped_true___["b"]; });
/***/ }),
/***/ "5f15b6d53f6e2977ee2f":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")();
// 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
/***/ }),
/***/ "5f6e54ccb5a521eb5e78":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")();
// imports
// module
exports.push([module.i, ".gwd-row {\n display: flex;\n flex-direction: row;\n}\n.gwd-inline-row {\n display: inline-flex;\n flex-direction: row;\n}\n.gwd-column {\n display: flex;\n flex-direction: column;\n}\n.gwd-inline-column {\n display: inline-flex;\n flex-direction: column;\n}\n.gwd-align {\n align-content: center;\n align-items: center;\n}\n.gwd-jcc {\n justify-content: center;\n}\n.gwd-jic {\n justify-items: center;\n}\n.gwd-button {\n outline: none;\n border: none;\n}\n.bjg-bar-button {\n font-size: 0;\n}\n.bjg-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
/***/ }),
/***/ "5fe9ccd4be2bd86690c4":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"div",
{
staticClass: "gwd-contact-link",
class: { "gwd-new-tm-style": _vm.withLogo },
on: { mouseover: _vm.over }
},
[
_vm.withLogo ? _c("div", { staticClass: "gwd-ww-logo" }) : _vm._e(),
_vm._v(" "),
_c("span", { staticClass: "gwd-contact-text" }, [
_vm._v(_vm._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
/***/ }),
/***/ "611ecdcc1f53fbb002e8":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TooltipViewBar_vue_vue_type_style_index_0_id_da945952_scoped_true_lang_css___ = __webpack_require__("38ebe779d55c0ebbd5e9");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TooltipViewBar_vue_vue_type_style_index_0_id_da945952_scoped_true_lang_css____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TooltipViewBar_vue_vue_type_style_index_0_id_da945952_scoped_true_lang_css___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TooltipViewBar_vue_vue_type_style_index_0_id_da945952_scoped_true_lang_css____default.a);
/***/ }),
/***/ "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;
};
/***/ }),
/***/ "61d67bfafc2c18e5a95b":
/***/ (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__("676e1c8b5b10ad6eace2");
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("4310ff0d1d73bb2c547a").default
var update = add("5cfd73e7", content, false, {});
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../../../../../node_modules/.0.20.2@css-loader/index.js!../../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./Stamp.vue?vue&type=style&index=0&id=a70db998&scoped=true&lang=less&", function() {
var newContent = require("!!../../../../../node_modules/.0.20.2@css-loader/index.js!../../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./Stamp.vue?vue&type=style&index=0&id=a70db998&scoped=true&lang=less&");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent);
});
}
// When the module is disposed, remove the <style> tags
module.hot.dispose(function() { update(); });
}
/***/ }),
/***/ "62487f75eaef2f9d0c30":
/***/ (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__("4185256a225ebafc807c");
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("4310ff0d1d73bb2c547a").default
var update = add("3736ab7f", content, false, {});
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./EpicTrend.vue?vue&type=style&index=0&id=bc2362ee&scoped=true&lang=less&", function() {
var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./EpicTrend.vue?vue&type=style&index=0&id=bc2362ee&scoped=true&lang=less&");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent);
});
}
// When the module is disposed, remove the <style> tags
module.hot.dispose(function() { update(); });
}
/***/ }),
/***/ "62fe80c9218a9dbf937f":
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__("c05bbcb58c86deadc879");
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("4310ff0d1d73bb2c547a").default
var update = add("8b4c003e", content, false, {});
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./CommonCouponBarMini.vue?vue&type=style&index=0&id=3fdd510a&scoped=true&lang=less&", function() {
var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./CommonCouponBarMini.vue?vue&type=style&index=0&id=3fdd510a&scoped=true&lang=less&");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent);
});
}
// When the module is disposed, remove the <style> tags
module.hot.dispose(function() { update(); });
}
/***/ }),
/***/ "63157ce10c303cd16049":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingMini_vue_vue_type_template_id_1a72083a_scoped_true___ = __webpack_require__("978146b782ec93ad0583");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingMini_vue_vue_type_template_id_1a72083a_scoped_true___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CollectionSettingMini_vue_vue_type_template_id_1a72083a_scoped_true___["b"]; });
/***/ }),
/***/ "6524c6395176cac4885b":
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__("04dcccd8601de1b226fb");
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("4310ff0d1d73bb2c547a").default
var update = add("4a9787eb", content, false, {});
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QRLinkContact.vue?vue&type=style&index=0&id=9a793014&scoped=true&lang=less&", function() {
var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QRLinkContact.vue?vue&type=style&index=0&id=9a793014&scoped=true&lang=less&");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent);
});
}
// When the module is disposed, remove the <style> tags
module.hot.dispose(function() { update(); });
}
/***/ }),
/***/ "65aa645f63b53adae510":
/***/ (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__("12b35724688caa8b8443");
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("4310ff0d1d73bb2c547a").default
var update = add("04f18ca3", content, false, {});
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./AmazonSameLinks.vue?vue&type=style&index=0&id=e09aa000&scoped=true&lang=less&", function() {
var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./AmazonSameLinks.vue?vue&type=style&index=0&id=e09aa000&scoped=true&lang=less&");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent);
});
}
// When the module is disposed, remove the <style> tags
module.hot.dispose(function() { update(); });
}
/***/ }),
/***/ "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__("0d878046564e4ef2113b"), __webpack_require__("3deef7cc191860c0adf2")["default"]))
/***/ }),
/***/ "664f6df1f2ec50016f49":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_template_id_6179ab9e_scoped_true___ = __webpack_require__("c93ec1baf074bff55639");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_template_id_6179ab9e_scoped_true___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_template_id_6179ab9e_scoped_true___["b"]; });
/***/ }),
/***/ "673168c7833425acd31a":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"div",
{
staticClass: "gwd-row gwd-align",
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
/***/ }),
/***/ "676e1c8b5b10ad6eace2":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")();
// 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
/***/ }),
/***/ "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")))
/***/ }),
/***/ "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__("17314ec033b9305511ae");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Stamp_vue_vue_type_script_lang_js___ = __webpack_require__("3d0dfb7d85c294b82b5b");
/* 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__("35cea1cae24642c09e76");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc");
/* normalize component */
var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])(
__WEBPACK_IMPORTED_MODULE_1__Stamp_vue_vue_type_script_lang_js___["default"],
__WEBPACK_IMPORTED_MODULE_0__Stamp_vue_vue_type_template_id_a70db998_scoped_true___["a" /* render */],
__WEBPACK_IMPORTED_MODULE_0__Stamp_vue_vue_type_template_id_a70db998_scoped_true___["b" /* staticRenderFns */],
false,
null,
"a70db998",
null
)
/* hot reload */
if (false) {
var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js")
api.install(require('vue'))
if (api.compatible) {
module.hot.accept()
if (!api.isRecorded('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")))
/***/ }),
/***/ "6a8e7724d7ff1c2952d4":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TooltipView_vue_vue_type_script_lang_js___ = __webpack_require__("11961bc58c5978531258");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TooltipView_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TooltipView_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TooltipView_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "6aaa3fa41eb59246bed3":
/***/ (function(module, exports, __webpack_require__) {
var $imports = __webpack_require__("9f47c636f849c23a0c20");
module.exports = function ($data) {
'use strict';
$data = $data || {};
var $$out = '', $escape = $imports.$escape, text = $data.text, qr = $data.qr;
$$out += '<div target="_blank" class="gwd-middle-act-bar">\n <img ';
$$out += 'src="https://cdn.bijiago.com/images/extensions/activity/tmall-redpack-middle.png"';
$$out += ' style="width: 17px; height: 19px; margin-left: 11px">\n <span style="font-size: 12px; color: #ff471a; margin-left: 7px; font-weight: bold">';
$$out += $escape(text);
$$out += '</span>\n <div style="flex: 1"></div>\n <img ';
$$out += 'src="https://cdn.bijiago.com/images/extensions/activity/arrow.svg"';
$$out += ' style="width: 26px; height: 10px;">\n <span class="gwd-take" style="line-height: initial">\n 立即领取\n <div class="gwd-qr-act-mid" style="margin-left: -84px;">\n <img class="gwd-act-qr-img" loading="lazy" src="';
$$out += $escape(qr);
$$out += '" alt="" style="width: 130px; height: 130px; margin-top: 7px">\n <span style="margin-top: 5px; vertical-align: middle; font-size: 0; height: 14px; line-height: 14px;">\n <span style="font-size: 14px; color: #ff471a; font-weight: bold">微信扫码</span>\n <span style="margin-left: 3px; color: #070707; font-size: 12px; transform-origin: center center; transform: scale(0.9166)">领红包</span>\n </span>\n </div>\n </span>\n</div>\n<style>\n .gwd-middle-act-bar {\n width: 462px;\n height: 34px;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n border: 1px solid #e6e9eb;\n background: white;\n font-size: 0;\n }\n\n .gwd-take {\n display: inline-block;\n margin-left: 10px;\n margin-right: 15px;\n text-align: center;\n width:70px;\n height:18px;\n background:linear-gradient(90deg,rgba(255,42,26,1) 0%,rgba(255,98,31,1) 100%);\n border-radius:9px;\n font-size: 12px;\n color: white;\n position: relative;\n cursor: pointer;\n }\n\n .gwd-qr-act-mid {\n display: none;\n flex-direction: column;\n position: absolute;\n width: 144px;\n height: 167px;\n box-sizing: border-box;\n border: 1px solid #ff471a;\n background: #fff9f6;\n top: 25px;\n z-index: 99;\n /*left: 50%;*/\n right: -16px;\n align-items: center;\n margin-left: -72px;\n }\n\n .gwd-qr-act-mid span {\n width: initial;\n margin: 0;\n }\n\n .gwd-take:hover .gwd-qr-act-mid {\n display: flex;\n }\n</style>';
return $$out;
};
/***/ }),
/***/ "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']
};
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) {
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');
};
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 () {
// 获取配置信息, 看是否需要展示中间部分
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__("0d878046564e4ef2113b"), __webpack_require__("3deef7cc191860c0adf2")["default"]))
/***/ }),
/***/ "6b8303d96ee13d08f335":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function($, G, Vue, regeneratorRuntime) {
var _this = this;
var template = __webpack_require__("274e32dfd54a6b0d18a9");
var request = __webpack_require__("91f250ebeb8d5987491c");
var globalCondition = __webpack_require__("9c38beef5ff283e15bd2");
var userData = __webpack_require__("472a9b3fc8c8805a5dd7");
var golbal2 = __webpack_require__("1c640a99db9f6f8a16c2");
var util = __webpack_require__("d54879e983a83d07f093");
var miniFavor = __webpack_require__("472c3193857af11233c9");
var userCenter = __webpack_require__("69afa85b8d7929dd88c5");
var siteInfo = __webpack_require__("5e05e6f5fe79ccf5d009");
var 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__("3deef7cc191860c0adf2")["default"], __webpack_require__("0d878046564e4ef2113b")))
/***/ }),
/***/ "6c4158d4a8844af2f16e":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_template_id_4f0f1e98___ = __webpack_require__("a39cbf70bd2e92e85f98");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_template_id_4f0f1e98___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_template_id_4f0f1e98___["b"]; });
/***/ }),
/***/ "6da42464ccd75a83a065":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(regeneratorRuntime) {//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
Object.defineProperty(exports, '__esModule', {
value: true
});
var request = __webpack_require__("91f250ebeb8d5987491c");
var globalCondition = __webpack_require__("9c38beef5ff283e15bd2");
exports['default'] = {
props: ['mode', 'days'],
data: function data() {
return {
qrLink: '',
loading: false
};
},
methods: {
over: function over() {
var qrApi, res;
return regeneratorRuntime.async(function over$(context$1$0) {
while (1) switch (context$1$0.prev = context$1$0.next) {
case 0:
if (!(this.loading || this.qrLink)) {
context$1$0.next = 2;
break;
}
return context$1$0.abrupt('return');
case 2:
if (!(this.mode !== 'qr')) {
context$1$0.next = 4;
break;
}
return context$1$0.abrupt('return');
case 4:
this.loading = true;
context$1$0.next = 7;
return regeneratorRuntime.awrap(globalCondition.met('qrApiReady'));
case 7:
qrApi = context$1$0.sent;
if (!(qrApi.type === 'api')) {
context$1$0.next = 13;
break;
}
context$1$0.next = 11;
return regeneratorRuntime.awrap(request.get(qrApi.src + '&protect=' + this.days));
case 11:
res = context$1$0.sent;
this.qrLink = res.data.qrImgStr;
case 13:
case 'end':
return context$1$0.stop();
}
}, null, this);
}
}
};
module.exports = exports['default'];
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b")))
/***/ }),
/***/ "6e9dc8f3fe8ed1fd40dc":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_template_id_673c66fa_scoped_true___ = __webpack_require__("0f986364e7409b7b0cf1");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_template_id_673c66fa_scoped_true___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_template_id_673c66fa_scoped_true___["b"]; });
/***/ }),
/***/ "6eb6300b1093d4b652fb":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(G, $, 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/];
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, 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')) {
img = $(img).parents('.more2_img').find('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__("0d878046564e4ef2113b"), __webpack_require__("ff50e367dd130fa205e3")))
/***/ }),
/***/ "6f1fbc9b3e76a280e6a6":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
Object.defineProperty(exports, '__esModule', {
value: true
});
var _vuex = __webpack_require__("436f6d560acb97f873d1");
exports['default'] = {
computed: (0, _vuex.mapState)({
checked: function checked(state) {
return state.priceRemind.collected;
},
id: function id(state) {
return state.priceRemind.instanceId;
}
})
};
module.exports = exports['default'];
/***/ }),
/***/ "6f353abbe0ce9e84d67e":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_AliMobilePriceNotifier_vue_vue_type_template_id_1b4bff6e_scoped_true___ = __webpack_require__("4a10e07e61fc05d2faa6");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_AliMobilePriceNotifier_vue_vue_type_template_id_1b4bff6e_scoped_true___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_AliMobilePriceNotifier_vue_vue_type_template_id_1b4bff6e_scoped_true___["b"]; });
/***/ }),
/***/ "6f3a71d8fccef41391c5":
/***/ (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__("1d340ec56da8e2a5ab0c");
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("4310ff0d1d73bb2c547a").default
var update = add("16cfebd1", content, false, {});
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./CommonCouponBarMini.vue?vue&type=style&index=1&lang=less&", function() {
var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./CommonCouponBarMini.vue?vue&type=style&index=1&lang=less&");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent);
});
}
// When the module is disposed, remove the <style> tags
module.hot.dispose(function() { update(); });
}
/***/ }),
/***/ "6f8accb28fad2fefbeeb":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")();
// 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
/***/ }),
/***/ "6fb767572860ecd2e611":
/***/ (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: {
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")))
/***/ }),
/***/ "7026a4b5462dc6da5555":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(regeneratorRuntime, $, G, Vue) {
var _this = this;
var timeUtil = __webpack_require__("6868b03b94b90a856624");
var template = __webpack_require__("274e32dfd54a6b0d18a9");
var price_remind = __webpack_require__("51aadd1e1b65f329a862");
var request = __webpack_require__("91f250ebeb8d5987491c");
var userData = __webpack_require__("472a9b3fc8c8805a5dd7");
var log = __webpack_require__("03dd60018ce5ed1344a1");
var cnzz = __webpack_require__("83271c7588396d2d5e59");
var globalTime = undefined,
retry = 0;
var hasGetTime = undefined;
Date.prototype.format = function (fmt) {
var o = {
"M+": this.getMonth() + 1, //月份
"d+": this.getDate(), //日
"h+": this.getHours(), //小时
"m+": this.getMinutes(), //分
"s+": this.getSeconds(), //秒
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
"S": this.getMilliseconds() //毫秒
};
if (/(y+)/.test(fmt)) {
fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
}
for (var k in o) {
if (new RegExp("(" + k + ")").test(fmt)) {
fmt = fmt.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length));
}
}
return fmt;
};
// 最接近的半小时时间
// 12:31 -> 12:30
// 12:29 -> 12:30
Date.prototype.toHalfHourTime = function () {
var original = this.getTime();
return new Date(Math.round(original / (30 * 60000)) * (30 * 60000));
};
var userInfo = {};
module.exports.init = function callee$0$0() {
return regeneratorRuntime.async(function callee$0$0$(context$1$0) {
while (1) switch (context$1$0.prev = context$1$0.next) {
case 0:
// let res = await $.ajax({
// url: 'https://www.gwdang.com/user/info',
// dataType: 'jsonp',
// jsonp: 'callback',
// xhrFields: {
// withCredentials: true
// }
// })
getSeckill();
case 1:
case 'end':
return context$1$0.stop();
}
}, null, _this);
};
var seckillRule = {
"360buy": [{
"secDom": "#yuyue-banner",
"timeType": "t11",
"secDom2": "#yuyue-banner .activity-type:contains('预约抢购')",
"secTime": "#yuyue-banner .activity-message .J-time"
}, {
"secDom": "#banner-miaosha",
"timeType": "M月D日H时M分",
"secDom2": "#banner-miaosha .activity-type:contains('秒杀预告')",
"secTime": "#banner-miaosha .activity-price strong"
}, {
"secDom": "#banner-miaosha",
"timeType": "t12",
"secDom2": "#banner-miaosha .activity-type:contains('京东秒杀')",
"secTime": "#banner-miaosha .activity-message"
}, {
"secDom": "#pingou-banner",
"timeType": "t13",
"secDom2": "#pingou-banner .activity-type:contains('预售')",
"secTime": "#pingou-banner .activity-message .J-time"
}, {
"secDom": "#banner-shangou .activity-type:contains('京东闪购')",
//"timeType": "t14",
"timeType": "t12",
"secDom2": "#banner-shangou .activity-message:contains('预计')",
"secTime": "#banner-shangou .activity-message"
}, {
// 预售商品,还没开始付定金
"secDom": "#pingou-banner .activity-message:contains('距预售还需')",
"timeType": "timeRangeSplitBy`-`",
"secDom2": "#pingou-process dt:contains('支付定金')",
"secTime": "#pingou-process .J-presale-time"
}, {
// 预售商品,使用尾款时间
"secDom": "#pingou-process .J-balance-time",
"timeType": "timeRangeSplitBy`-`",
"secDom2": "#pingou-process dt:contains('支付尾款')",
"secTime": "#pingou-process .J-balance-time"
}, {
// 预售商品,使用尾款时间
"secDom": "#yuyue-process .J-step4",
"timeType": "timeRangeSplitBy`-`",
"secDom2": "#yuyue-process dt:contains('抢购中')",
"secTime": "#yuyue-process .J-step4"
}],
"taobao-ju": [{
"secDom": ".buyaction.J_JuSMSRemind",
"timeType": "t21",
"secDom2": ".ju-clock.J_juItemTimer>p:contains('开抢')",
"secTime": ".ju-clock.J_juItemTimer>p"
}],
"taobao": [{
"secDom": "#J_TaoQiangGou",
"timeType": "t21",
"secDom2": "#J_TaoQiangGou:contains('开始抢购')",
"secTime": "#J_TaoQiangGou"
}],
"tmall": [{
"secDom": "#tm-yushou-process-banner",
"timeType": "t31",
"secDom2": "#tm-yushou-process-banner .tm-yushou-process-title.tm-ys-title-one-row:contains('天猫预售')",
"secTime": "#tm-yushou-process-banner .J_step2Time"
}, {
"secDom": ".tm-countdown .tb-btn-wait:contains('即将开始')",
"timeType": "t32",
"secDom2": ".tm-countdown .tm-countdown-notice:contains('距开售')",
"secTime": ".tm-countdown .tm-countdown-timer"
}],
"suning": [{
"secDom": "#timePanel",
"timeType": "t41",
"secDom2": "#timePanel .djh-title:contains('预定')",
"secTime": "#timePanel .proinfo-cd"
}, {
"secDom": ".snqg-logo",
"timeType": "M月D日 H时M分",
"secDom2": ".djh-cd",
"secTime": "#bigPolyTime"
}, {
"secDom": "#buyTime",
"timeType": "X月X日X时X分X秒",
"secDom2": ".step-4",
"secTime": "#buyTime dd:contains('开始')"
}],
"xiaomi": [{
"secDom": ".pro-time.J_proBook",
"timeType": "t51",
"secDom2": ".pro-time.J_proBook .pro-time-head:contains('预售')",
"secTime": ".pro-time.J_proBook .time.J_bookTime"
}],
"kaola": [{
"secDom": ".m-promotionbar",
"timeType": "t61",
"secDom2": ".m-promotionbar .prelimit .txt:contains('开抢')",
"secTime": ".m-promotionbar .prelimit .txt"
}],
"dangdang": [{
"secDom": "#count-down",
"timeType": "t71",
"secDom2": "#count-down .J-time-text:contains('尚未开始')",
"secTime": "#count-down .J-time"
}],
"vmall": [{
"secDom": "#buyProcessIDD",
"timeType": "t81",
"secDom2": "#buyProcessIDD ul li:first-child:contains('支付订金')",
"secTime": "#startDateIDD"
}]
};
var getSeckillTime = function getSeckillTime(type, ori_str) {
if (ori_str.length < 3) {
return false;
}
var str = undefined;
if (type !== "t81") {
str = ori_str.replace(/\s/g, "");
} else {
str = ori_str;
}
var arr = undefined,
newtime = undefined;
var nowTime = undefined;
var month = undefined,
d = undefined,
h = undefined,
m = undefined,
ss = undefined,
ms = undefined;
var year = new Date().getFullYear();
switch (type) {
case "X月X日X时X分X秒":
arr = ori_str.match(/开始:(\d+)月(\d+)日(\d+)时(\d+)分(\d+)秒/);
if (!arr) return false;
nowTime = new Date();
newtime = nowTime.getFullYear() + '/' + arr[1] + '/' + arr[2] + '/' + arr[3] + ':' + arr[4];
break;
case 'M月D日 H时M分':
arr = ori_str.match(/(\d+)月(\d+)日 (\d+):(\d+)/);
if (!arr) return false;
nowTime = new Date();
newtime = nowTime.getFullYear() + '/' + arr[1] + '/' + arr[2] + '/' + arr[3] + ':' + arr[4];
break;
case 'M月D日H时M分':
arr = ori_str.match(/(\d+)月(\d+)日(\d+):(\d+)/);
if (!arr) return false;
nowTime = new Date();
newtime = nowTime.getFullYear() + '/' + arr[1] + '/' + arr[2] + '/' + arr[3] + ':' + arr[4];
break;
case "timeRangeSplitBy`-`":
// eg: 2019-07-0300:00-2019-07-0700:00
var date = ori_str.split(' ')[0].replace(/-/g, '/');
newtime = date + '/' + ori_str.split(' ')[1].split('-')[0];
break;
case "t11":
nowTime = new Date().getTime();
arr = str.match(/(?:(\d+)|)(?:天|日|)(\d+)小时(\d+)分(\d+)秒/);
if (!arr) return false;
if ($('#yuyue-banner .activity-message .J-text').text() === '抢购剩余') {
return false;
}
if ($('#pingou-banner .activity-message .J-text').text() === '距预售还需') {
return false;
}
d = arr[1] || 0;
h = arr[2] || 0;
m = arr[3] || 0;
ss = arr[4] || 0;
ms = d * 86400000 + h * 3600 * 1000 + m * 60 * 1000 + ss * 1000;
newtime = timeUtil(nowTime + ms, "6");
break;
case "t12":
nowTime = new Date().getTime();
arr = str.match(/预计([0-9:月日]+)开始/);
if (!arr) return false;
var htime = arr[1];
newtime = timeUtil(nowTime, "5");
if (htime.indexOf('日') > -1) {
var _month = htime.split('月')[0];
var day = htime.split('日')[0].split('月')[1];
newtime = newtime.split('/')[0] + ('/' + _month + '/' + day);
htime = htime.split('日')[1];
}
newtime = newtime + '/' + htime;
break;
case "t13":
nowTime = new Date().getTime();
arr = str.match(/(?:(\d+)|)(?:天|日|)(\d+)小?时(\d+)分(\d+)秒/);
if (!arr) return false;
if ($('.activity-message .J-text').text() === '预售剩余') {
return false;
}
d = arr[1] || 0;
h = arr[2] || 0;
m = arr[3] || 0;
ss = arr[4] || 0;
ms = d * 86400000 + h * 3600 * 1000 + m * 60 * 1000 + ss * 1000;
newtime = timeUtil(nowTime + ms, "6");
break;
case "t14":
arr = str.match(/(\d+)月(\d+)日(\d+)\:(\d+)/);
if (!arr) return false;
month = Number(arr[1]) || 0;
if (month < 10) month = "0" + month.toString();
d = Number(arr[2]) || 0;
if (d < 10) d = "0" + d.toString();
h = arr[3] || 0;
m = arr[4] || 0;
// ms = month + d * 86400000 + h * 3600 * 1000 + m * 60 * 1000;
newtime = year + '/' + month + '/' + d + '/' + h + ':' + m;
break;
case "t21":
arr = str.match(/(\d+)月(\d+)日(\d+)\:(\d+)/);
if (!arr) return false;
month = Number(arr[1]) || 0;
if (month < 10) month = "0" + month.toString();
d = Number(arr[2]) || 0;
if (d < 10) d = "0" + d.toString();
h = arr[3] || 0;
m = arr[4] || 0;
// ms = month + d * 86400000 + h * 3600 * 1000 + m * 60 * 1000;
newtime = year + '/' + month + '/' + d + '/' + h + ':' + m;
break;
case "t31":
arr = ori_str.split("~");
if (!arr) return false;
newtime = arr[0].replace(/(?:\.|\s)/g, "/");
break;
case "t32":
nowTime = new Date().getTime();
arr = str.match(/(?:(\d+)|)(?:天|日|)(\d+)小?时(\d+)分/);
if (arr && arr.length) {
d = Number(arr[1]) || 0;
if (d < 10) d = "0" + d.toString();
h = arr[2] || 0;
m = arr[3] || 0;
} else {
arr = str.match(/(\d+)分(\d+)秒/);
d = 0;
h = 0;
m = arr[1];
}
ms = d * 86400000 + h * 3600 * 1000 + m * 60 * 1000;
newtime = timeUtil(nowTime + ms, "6");
break;
case "t41":
//苏宁
nowTime = new Date().getTime();
arr = str.match(/(?:(\d+)|)(?:天|日|)(\d+)小?时(\d+)分([0-9.]+)秒/);
if (!arr) return false;
d = parseInt(arr[1]) || 0;
h = parseInt(arr[2]) || 0;
m = parseInt(arr[3]) || 0;
ss = parseInt(arr[4]) || 0;
ms = d * 86400000 + h * 3600 * 1000 + m * 60 * 1000 + ss * 1000;
newtime = timeUtil(nowTime + ms, "6");
break;
case "t51":
nowTime = new Date().getTime();
arr = str.match(/\s?(?:(\d+)|)\s?(?:天|日|)\s?(\d+)\s?小?时\s?(\d+)\s?分\s?(\d+)\s?秒/);
if (!arr) return false;
d = arr[1] || 0;
h = arr[2] || 0;
m = arr[3] || 0;
ss = arr[4] || 0;
ms = d * 86400000 + h * 3600 * 1000 + m * 60 * 1000 + ss * 1000;
newtime = timeUtil(nowTime + ms, "6");
break;
case "t61":
//kaola
arr = str.match(/(\d+)月(\d+)日(\d+)\:(\d+)/);
if (!arr) return false;
month = Number(arr[1]) || 0;
if (month < 10) month = "0" + month.toString();
d = Number(arr[2]) || 0;
if (d < 10) d = "0" + d.toString();
h = arr[3] || 0;
m = arr[4] || 0;
// ms = month + d * 86400000 + h * 3600 * 1000 + m * 60 * 1000;
newtime = year + '/' + month + '/' + d + '/' + h + ':' + m;
break;
case "t71":
//dangdang
nowTime = new Date().getTime();
arr = str.match(/(?:(\d+)(?:天|日)|)(\d+)时(\d+)分(\d+)秒/);
if (!arr) return;
d = arr[1] || 0;
h = arr[2] || 0;
m = arr[3] || 0;
ss = arr[4] || 0;
ms = d * 86400000 + h * 3600 * 1000 + m * 60 * 1000 + ss * 1000;
newtime = timeUtil(nowTime + ms, "6");
break;
case "t81":
arr = str.split("~");
if (!arr) return;
newtime = arr[1].trim();
newtime = newtime.replace(/[\s\.]/g, "/");
break;
}
return newtime;
};
var getSeckill = function getSeckill() {
var seckillItem = seckillRule[G.site];
if (!seckillItem) return;
for (var i = 0; i < seckillItem.length; i++) {
var sitem = seckillItem[i];
if ($(sitem["secDom"]).length > 0 && $(sitem["secDom2"]).length > 0) {
var newtime = getSeckillTime(sitem["timeType"], $(sitem["secTime"]).text());
if (newtime) {
globalTime = newtime;
//console.log('newtime:', newtime)
var strTime = newtime.split('/');
var d = new Date(strTime[0] + '/' + strTime[1] + '/' + strTime[2] + ' ' + strTime[3]);
if (d.getTime() - new Date().getTime() < 300000) {
continue;
}
renderSeckill();
break;
}
}
}
if (!globalTime && retry < 5) {
retry++;
setTimeout(getSeckill, 500);
}
};
var needLog = false;
var renderSeckill = function renderSeckill() {
var res, html, CommonLogin, dp_query, currentStatus;
return regeneratorRuntime.async(function renderSeckill$(context$1$0) {
while (1) switch (context$1$0.prev = context$1$0.next) {
case 0:
context$1$0.next = 2;
return regeneratorRuntime.awrap(request.get('https://www.gwdang.com/user/info'));
case 2:
res = context$1$0.sent;
userInfo = res.data;
html = __webpack_require__("3a55f579c2446fd758f7");
$('#gwd_mini_remind').remove();
$('#gwd_mini_compare').after(html);
CommonLogin = __webpack_require__("2d53f53e0179317f1fdf")['default'];
new Vue({
el: '#gwd-bjd-login-box',
render: function render(h) {
return h(CommonLogin, {
props: {
position: 'gwd-mini',
showAlterLogin: true,
alterLoginPosition: 'row'
}
});
}
});
// 获取当前提醒状态
dp_query = userData.get('dp_query');
context$1$0.next = 12;
return regeneratorRuntime.awrap(request.get(G.c_server + '/brwext/remind_intime?opt=get&id=' + dp_query.dp.dp_id));
case 12:
currentStatus = context$1$0.sent;
addEvent();
if (currentStatus.msg === "未收藏" || currentStatus.msg === "用户未登录") {
log('detected:seckillRemind');
cnzz.log('抢购提醒', '监测到页面抢购');
needLog = true;
SeckillSetState(false);
} else {
SeckillSetState(true);
}
case 15:
case 'end':
return context$1$0.stop();
}
}, null, _this);
};
var secKillState = undefined;
var SeckillSetState = function SeckillSetState(state) {
secKillState = state;
if (state) {
$('.sk-remind-btn').hide();
if (userInfo.wx == "1") {
$('.sk-remind-state1').show();
} else {
$('.sk-remind-state1').hide();
}
$('#gwd_mini_seckill').addClass('seckillSet');
$('#gwd_mini_seckill .minibar-btn-box>span').text("已设抢购提醒");
if (needLog) {}
} else {
//$('.sk-remind-btn').hide()
}
};
var socketSet = false;
var showedOnce = false; // 抢购提醒是否展示过一次
var addEvent = function addEvent() {
price_remind.getQRcode();
window.refQRCode = price_remind.getQRcode;
$('#gwd_mini_seckill').on('mouseenter', function () {
if (G.email) {
$('.seckill-detail').show();
$('.seckill-detail').css('width', '205px');
if (!socketSet && userInfo.wx == "0") {
// 未绑定微信的情况,不显示提醒按钮
// 同时打开websocket
log('notBind:seckillRemind');
cnzz.log('抢购提醒', '未绑定');
$('.sk-remind-state0').show();
if (!secKillState) {
$('.sk-remind-state1').hide();
}
$('.sk-remind-btn').hide();
renderWebsocket();
}
if (needLog) {
if ($('.sk-remind-btn').css('display') !== 'none') {
if (!showedOnce) {
log('showButton:seckillRemind');
cnzz.log('抢购提醒', '显示设置提醒按钮');
}
}
}
showedOnce = true;
} else {
$('.login-detail').show();
}
});
$('#gwd_mini_seckill').on('mouseleave', function () {
$('.seckill-common-detail').hide();
});
$('.sk-remind-btn').on('click', function callee$1$0() {
var dp, time, title, res;
return regeneratorRuntime.async(function callee$1$0$(context$2$0) {
while (1) switch (context$2$0.prev = context$2$0.next) {
case 0:
log('click:seckillRemind');
cnzz.log('抢购提醒', '设置按钮点击');
dp = userData.get('dp_query');
time = new Date(globalTime).toHalfHourTime().format("yyyy-MM-dd hh:mm:ss");
title = G.dp.name.replace(' ', '');
context$2$0.next = 7;
return regeneratorRuntime.awrap(request.get(G.c_server + '/brwext/remind_intime?opt=add&id=' + dp.dp.dp_id + '&title=' + encodeURIComponent(title) + '&stime=' + time + '&url=' + encodeURIComponent(location.href)));
case 7:
res = context$2$0.sent;
if (res.code === 1 || res.msg === '重复收藏') {
if (res.code === 1) {
log('setComplete:seckillRemind');
cnzz.log('抢购提醒', '设置成功');
}
SeckillSetState(true);
}
case 9:
case 'end':
return context$2$0.stop();
}
}, null, _this);
});
//price_remind.init()
$('#loginClickBtn').on('click', function () {
var userN = $('.bjd-login-box .username').val();
var psd = $('.bjd-login-box .password').val();
if (userN && psd) {
price_remind.loginRenderTop();
__webpack_require__("472c3193857af11233c9").userLogin(userN, psd, function () {
location.reload();
});
} else {
$('#login_remind_tle').css('display', 'block').fadeOut(5000);
return;
}
});
};
var heartInterval = 0;
var renderWebsocket = function renderWebsocket() {
// $.ajax({
// url: 'https://www.gwdang.com/user/info',
// xhrFields: {
// withCredentials: true
// },
// //crossDomain: true
// })
var socket = new WebSocket("wss://www.gwdang.com/sck");
socket.onopen = function () {};
socket.onmessage = function (evt) {
var res = JSON.parse(evt.data);
if (res.msg == "Bind") {
userInfo.wx = "1";
$('.sk-remind-state0').hide();
if (secKillState) {
$('.sk-remind-state1').show();
} else {
$('.sk-remind-btn').show();
}
if (needLog) {
cnzz.log('抢购提醒', '用户已绑定');
log('userBindComplete:seckillRemind');
}
window.clearInterval(heartInterval);
socket.close();
}
};
socket.onclose = function () {};
socket.addEventListener('open', function callee$1$0(evt) {
var accountInfo;
return regeneratorRuntime.async(function callee$1$0$(context$2$0) {
while (1) switch (context$2$0.prev = context$2$0.next) {
case 0:
socketSet = true;
accountInfo = {
action: 'bindWechatExt',
msg: {
uid: userInfo.uid
}
};
socket.send(JSON.stringify(accountInfo));
heartInterval = setInterval(function () {
socket.send('{"ping": "pong"}');
}, 10000);
case 4:
case 'end':
return context$2$0.stop();
}
}, null, this);
});
};
module.exports.getNewTime = function () {
hasGetTime = true;
return globalTime;
};
//return
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("3deef7cc191860c0adf2")["default"]))
/***/ }),
/***/ "721313853b51564e29d6":
/***/ (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'];
/***/ }),
/***/ "735bc3c8e2dc98526bc5":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")();
// imports
// module
exports.push([module.i, ".gwd-qr-container[data-v-44c0e93e] {\n display: none;\n position: absolute;\n right: 0px;\n width: 153px;\n height: 156px;\n background: #FFF6F4;\n border: 1px solid #FF6132;\n flex-direction: column;\n z-index: 9;\n bottom: 28px;\n align-items: center;\n}\n.mainbar-fold .gwd-member-coupon-top[data-v-44c0e93e] {\n display: none;\n}\n.gwd-member-coupon-top[data-v-44c0e93e] {\n height: 28px;\n background: linear-gradient(to right, #f28936, #ff351e);\n position: relative;\n background-size: cover;\n display: inline-flex;\n align-items: center;\n margin-top: 2px;\n cursor: pointer;\n border-radius: 2px;\n margin-right: 5px;\n}\n.gwd-member-coupon-top .gwd-qr-container[data-v-44c0e93e] {\n display: none;\n position: absolute;\n}\n.gwd-member-coupon-top[data-v-44c0e93e]::before,\n.gwd-member-coupon-top[data-v-44c0e93e]::after {\n content: '';\n position: absolute;\n left: 115px;\n width: 4px;\n height: 4px;\n background: white;\n border-radius: 2px;\n top: -2px;\n}\n.gwd-member-coupon-top[data-v-44c0e93e]::after {\n top: unset;\n bottom: -2px;\n}\n.gwd-member-coupon-top[data-v-44c0e93e]:hover {\n text-decoration: none;\n}\n.gwd-member-coupon-top:hover .gwd-qr-container[data-v-44c0e93e] {\n display: flex;\n}\n", ""]);
// exports
/***/ }),
/***/ "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__("0d878046564e4ef2113b")))
/***/ }),
/***/ "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")))
/***/ }),
/***/ "766fd038b176b031d158":
/***/ (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__("6f8accb28fad2fefbeeb");
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("4310ff0d1d73bb2c547a").default
var update = add("26e49ca1", content, false, {});
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./MiniSameList.vue?vue&type=style&index=2&id=caa5e08c&scoped=true&lang=less&", function() {
var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./MiniSameList.vue?vue&type=style&index=2&id=caa5e08c&scoped=true&lang=less&");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent);
});
}
// When the module is disposed, remove the <style> tags
module.hot.dispose(function() { update(); });
}
/***/ }),
/***/ "77798c4d5223dfcaa522":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Share_vue_vue_type_template_id_3489a5d0_scoped_true___ = __webpack_require__("2193187ed80a32f46368");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Share_vue_vue_type_template_id_3489a5d0_scoped_true___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Share_vue_vue_type_template_id_3489a5d0_scoped_true___["b"]; });
/***/ }),
/***/ "780b4040d8a36cc48b8e":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TooltipViewBar_vue_vue_type_template_id_da945952_scoped_true___ = __webpack_require__("3fa903f63ab27085d5c8");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TooltipViewBar_vue_vue_type_template_id_da945952_scoped_true___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TooltipViewBar_vue_vue_type_template_id_da945952_scoped_true___["b"]; });
/***/ }),
/***/ "781592f0f5e474de23a5":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
Object.defineProperty(exports, "__esModule", {
value: true
});
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _commonComponentsMemberCouponMixin = __webpack_require__("1fffec0778a8d8b2e8e2");
var _commonComponentsMemberCouponMixin2 = _interopRequireDefault(_commonComponentsMemberCouponMixin);
exports["default"] = {
mixins: [_commonComponentsMemberCouponMixin2["default"]]
};
module.exports = exports["default"];
/***/ }),
/***/ "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__("bc03cf22f4af5cb519ec");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__JdSearchEnhance_vue_vue_type_script_lang_js___ = __webpack_require__("d0581cf6c59611cef43e");
/* 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__("7a0ed06d68bf5e10203f");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc");
/* normalize component */
var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])(
__WEBPACK_IMPORTED_MODULE_1__JdSearchEnhance_vue_vue_type_script_lang_js___["default"],
__WEBPACK_IMPORTED_MODULE_0__JdSearchEnhance_vue_vue_type_template_id_209e5606_scoped_true___["a" /* render */],
__WEBPACK_IMPORTED_MODULE_0__JdSearchEnhance_vue_vue_type_template_id_209e5606_scoped_true___["b" /* staticRenderFns */],
false,
null,
"209e5606",
null
)
/* hot reload */
if (false) {
var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js")
api.install(require('vue'))
if (api.compatible) {
module.hot.accept()
if (!api.isRecorded('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);
/***/ }),
/***/ "7a0ed06d68bf5e10203f":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdSearchEnhance_vue_vue_type_style_index_0_id_209e5606_scoped_true_lang_css___ = __webpack_require__("f6569dbb4d3a004e9c1c");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdSearchEnhance_vue_vue_type_style_index_0_id_209e5606_scoped_true_lang_css____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdSearchEnhance_vue_vue_type_style_index_0_id_209e5606_scoped_true_lang_css___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdSearchEnhance_vue_vue_type_style_index_0_id_209e5606_scoped_true_lang_css____default.a);
/***/ }),
/***/ "7a46bbbd2e1ff8e12ffc":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Switch_vue_vue_type_script_lang_js___ = __webpack_require__("c3a425f04d968f800674");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Switch_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Switch_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Switch_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "7b5dc02d8d3142c015cd":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("div", { staticClass: "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($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($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($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($event) {
$event.preventDefault()
return _vm.open("self")
}
}
},
[_c("i"), _vm._v("自营/旗舰店\n ")]
)
]),
_vm._v(" "),
_c("li", [
_c(
"a",
{
attrs: { href: "#" },
on: {
click: function($event) {
$event.preventDefault()
return _vm.open("coupon")
}
}
},
[_c("i"), _vm._v("优惠券\n ")]
)
])
])
])
}
var staticRenderFns = []
render._withStripped = true
/***/ }),
/***/ "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")))
/***/ }),
/***/ "7d8fd934530dc5da3fdc":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("div", { staticClass: "gwd-quest" }, [
_c("div", { staticClass: "gwd-hint-text" }, [
_c("span", { staticClass: "gwd-hint-2x" }, [_vm._t("default")], 2)
])
])
}
var staticRenderFns = []
render._withStripped = true
/***/ }),
/***/ "7d96823596453ce40ef0":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_style_index_0_id_caa5e08c_scoped_true_lang_less___ = __webpack_require__("dfad5c6dbfc1e10f989e");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_style_index_0_id_caa5e08c_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_style_index_0_id_caa5e08c_scoped_true_lang_less___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniSameList_vue_vue_type_style_index_0_id_caa5e08c_scoped_true_lang_less____default.a);
/***/ }),
/***/ "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")))
/***/ }),
/***/ "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;
};
/***/ }),
/***/ "812cd2e9043c15acf109":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"div",
{
staticClass: "minibar-btn-box 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
/***/ }),
/***/ "817cf5489444460b05d0":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"div",
{
staticClass: "gwd-inline-row gwd-align gwd-jd-rank",
class: _vm.additionalClass,
style: "margin-top: " + _vm.mt + "px"
},
[
_c("img", {
staticClass: "gwd-icon-rank",
attrs: {
src: "https://cdn.gwdang.com/images/extensions/jdRanking/icon.svg",
alt: ""
}
}),
_vm._v(" "),
_vm.additionalClass === "gwd-w217"
? _c("img", {
staticStyle: { "margin-left": "-2px" },
attrs: {
src:
"https://cdn.gwdang.com/images/extensions/jdRanking/text.svg",
alt: ""
}
})
: _vm._e(),
_vm._v(" "),
_vm.additionalClass === "gwd-w210" || _vm.additionalClass === "gwd-w235"
? _c("img", {
staticStyle: { "margin-left": "2px", "margin-right": "1px" },
attrs: {
src:
"https://cdn.gwdang.com/images/extensions/jdRanking/text-w210.svg",
alt: ""
}
})
: _vm._e(),
_vm._v(" "),
_c("hr", { staticClass: "gwd-vline" }),
_vm._v(" "),
_c(
"div",
{
staticClass: "gwd-rank-list gwd-row gwd-align",
class: _vm.data.length > 1 ? "gwd-rotate" : "",
staticStyle: { position: "relative" }
},
[
_c(
"a",
{
staticClass: "gwd-row gwd-align gwd-rank-first",
attrs: {
title: _vm.data[0].rname,
href: _vm.data[0].rurl,
target: "_blank"
}
},
[
_c("span", { staticClass: "gwd-font11" }, [
_c("span", { staticClass: "gwd-mw" }, [
_vm._v(_vm._s(_vm.data[0].rname))
]),
_vm.data[0].rank
? _c("span", [_vm._v("第" + _vm._s(_vm.data[0].rank) + "名")])
: _vm._e()
])
]
),
_vm._v(" "),
_vm.data.length > 1
? _c(
"div",
{ staticClass: "gwd-rank-addition" },
_vm._l(_vm.addition, function(item) {
return _c(
"a",
{
key: item.rurl,
attrs: {
title: item.rname,
href: item.rurl,
target: "_blank"
}
},
[
_c("span", { staticClass: "gwd-font11 gwd-mw" }, [
_vm._v(_vm._s(item.rname))
])
]
)
}),
0
)
: _vm._e()
]
),
_vm._v(" "),
_c(
"form",
{
staticStyle: { display: "none" },
attrs: {
action: _vm.debugMode
? "https://localdev.gwdang.com:3000/v2/ext/jd_rank"
: "https://www.gwdang.com/v2/ext/jd_rank",
method: "post",
target: "_blank"
}
},
[
_c("input", {
directives: [
{
name: "model",
rawName: "v-model",
value: _vm.content,
expression: "content"
}
],
attrs: { type: "hidden", name: "products" },
domProps: { value: _vm.content },
on: {
input: function($event) {
if ($event.target.composing) {
return
}
_vm.content = $event.target.value
}
}
}),
_vm._v(" "),
_c("input", {
directives: [
{
name: "model",
rawName: "v-model",
value: _vm.search,
expression: "search"
}
],
attrs: { type: "hidden", name: "search" },
domProps: { value: _vm.search },
on: {
input: function($event) {
if ($event.target.composing) {
return
}
_vm.search = $event.target.value
}
}
}),
_vm._v(" "),
_c("input", {
directives: [
{
name: "model",
rawName: "v-model",
value: _vm.rankName,
expression: "rankName"
}
],
attrs: { type: "hidden", name: "rank" },
domProps: { value: _vm.rankName },
on: {
input: function($event) {
if ($event.target.composing) {
return
}
_vm.rankName = $event.target.value
}
}
}),
_vm._v(" "),
_c("input", {
directives: [
{
name: "model",
rawName: "v-model",
value: _vm.from,
expression: "from"
}
],
attrs: { type: "hidden", name: "from" },
domProps: { value: _vm.from },
on: {
input: function($event) {
if ($event.target.composing) {
return
}
_vm.from = $event.target.value
}
}
}),
_vm._v(" "),
_c("input", {
staticStyle: {
display: "inline-block",
"font-size": "20px",
color: "#666"
},
attrs: {
type: "submit",
value: "测试",
id: "gwd-jdrank-submit-" + _vm.id
}
})
]
)
]
)
}
var staticRenderFns = []
render._withStripped = true
/***/ }),
/***/ "820955a54449cb94cc9a":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _vm.data.time
? _c("div", [
_c(
"p",
{
staticClass: "prifontf",
staticStyle: {
"margin-left": "16px",
"line-height": "14px",
"margin-top": "10px",
"text-align": "left"
}
},
[_vm._v(_vm._s(_vm.data.time))]
),
_vm._v(" "),
_vm.data.pagePrice && _vm.domclass === ""
? _c(
"div",
{ staticClass: "tip-item tip-pagepri tip-pagepri2" },
[
_c("em"),
_vm._v(" "),
!_vm.aliSite
? [
_c(
"span",
{
staticClass: "tip-item-sp1",
staticStyle: { width: "120px" }
},
[_vm._v("到手价(单件) / 页面价")]
),
_vm._v(" "),
_c("span", { staticClass: "tip-item-sp2" }, [_vm._v(":")])
]
: _vm._e(),
_vm._v(" "),
_c("span", { staticClass: "tip-item-sp3 prifontf" }, [
_vm._v(_vm._s(_vm.data.pagePrice))
])
],
2
)
: _vm.data.pagePrice
? _c("div", { staticClass: "tip-item tip-pagepri" }, [
_c("em"),
_vm._v(" "),
_c("span", { staticClass: "tip-item-sp1" }, [_vm._v("页面价")]),
_vm._v(" "),
_c("span", { staticClass: "tip-item-sp2" }, [_vm._v(":")]),
_vm._v(" "),
_c("span", { staticClass: "tip-item-sp3 prifontf" }, [
_vm._v(_vm._s(_vm.data.pagePrice))
])
])
: _vm._e(),
_vm._v(" "),
_vm.data.directpro
? _c("div", { staticClass: "tip-item tip-directpro" }, [
_c("em"),
_vm._v(" "),
_c("span", { staticClass: "tip-item-sp1" }, [
_vm._v("到手价(单件)")
]),
_vm._v(" "),
_c("span", { staticClass: "tip-item-sp2" }, [_vm._v(":")]),
_vm._v(" "),
_c("span", { staticClass: "tip-item-sp3 prifontf" }, [
_vm._v("¥" + _vm._s(_vm.data.directpro))
]),
_vm._v(" "),
_c("span", {
staticClass: "tip-item-sp4",
domProps: { innerHTML: _vm._s(_vm.data.promo2) }
})
])
: _vm._e(),
_vm._v(" "),
_vm.data.addpro
? _c("div", { staticClass: "tip-item tip-addpro" }, [
_c("em"),
_vm._v(" "),
_c("span", { staticClass: "tip-item-sp1" }, [
_vm._v("到手价(多件)")
]),
_vm._v(" "),
_c("span", { staticClass: "tip-item-sp2" }, [_vm._v(":")]),
_vm._v(" "),
_c("span", { staticClass: "tip-item-sp3 prifontf" }, [
_vm._v("¥" + _vm._s(_vm.data.addpro))
]),
_vm._v(" "),
_c("span", {
staticClass: "tip-item-sp4",
domProps: { innerHTML: _vm._s(_vm.data.promo1) }
})
])
: _vm._e()
])
: _vm._e()
}
var staticRenderFns = []
render._withStripped = true
/***/ }),
/***/ "82146d02b9dd73e35b34":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Error_vue_vue_type_script_lang_js___ = __webpack_require__("54ed29046600a3e9868f");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Error_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Error_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Error_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "82410f902da08ba0a973":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("div", { staticClass: "gwd-row gwd-align" }, [
_c(
"a",
{
staticClass: "gwd-row gwd-align",
attrs: {
href: _vm.addLink(
"https://tb.gwdang.com/extension/qrpage?dp_id=" +
_vm.dpId +
"&tag=" +
_vm.tag +
"&limit=" +
_vm.coupon.limit +
"&discount=" +
_vm.coupon.discount
),
title: "点击领取",
target: "_blank"
}
},
[
_c(
"span",
{ staticClass: "gwd-content", staticStyle: { flex: "1" } },
[
_vm._v("\n 当前商品可领" + _vm._s(_vm.couponTypeText) + " "),
_vm.coupon
? [
_vm._v(
"满" +
_vm._s(_vm.coupon.limit) +
"减" +
_vm._s(_vm.coupon.discount)
)
]
: _vm._e()
],
2
),
_vm._v(" "),
_c("span", { staticClass: "gwd-take" }, [_vm._v("点击领取")])
]
),
_vm._v(" "),
_c("img", { attrs: { src: __webpack_require__("7dd623a3756f546cc3f6"), alt: "" } })
])
}
var staticRenderFns = []
render._withStripped = true
/***/ }),
/***/ "8244649ef63c66851bdd":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PriceInput_vue_vue_type_style_index_0_id_3ed325cb_scoped_true_lang_less___ = __webpack_require__("e91673f980d62bd3e24c");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PriceInput_vue_vue_type_style_index_0_id_3ed325cb_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PriceInput_vue_vue_type_style_index_0_id_3ed325cb_scoped_true_lang_less___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PriceInput_vue_vue_type_style_index_0_id_3ed325cb_scoped_true_lang_less____default.a);
/***/ }),
/***/ "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__("a3691c770cb606f8258c");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Index_vue_vue_type_script_lang_js___ = __webpack_require__("5a3842de4822d4a74039");
/* 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__("4c81c82ea327e81a71cc");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc");
/* normalize component */
var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])(
__WEBPACK_IMPORTED_MODULE_1__Index_vue_vue_type_script_lang_js___["default"],
__WEBPACK_IMPORTED_MODULE_0__Index_vue_vue_type_template_id_74d4d45d_scoped_true___["a" /* render */],
__WEBPACK_IMPORTED_MODULE_0__Index_vue_vue_type_template_id_74d4d45d_scoped_true___["b" /* staticRenderFns */],
false,
null,
"74d4d45d",
null
)
/* hot reload */
if (false) {
var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js")
api.install(require('vue'))
if (api.compatible) {
module.hot.accept()
if (!api.isRecorded('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);
/***/ }),
/***/ "837c92c61b383789362d":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("span", { staticClass: "gwd-price" }, [
_c("span", { staticStyle: { "font-size": "14px" } }, [_vm._v("¥")]),
_vm._v(" "),
_c(
"span",
{ style: { "font-size": (_vm.fontSize ? _vm.fontSize : 20) + "px" } },
[
_vm._v(
_vm._s(
parseFloat(_vm.price)
.toFixed(2)
.replace(".00", "")
)
)
]
)
])
}
var staticRenderFns = []
render._withStripped = true
/***/ }),
/***/ "83aa68cb9dd770e03a61":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")();
// 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
/***/ }),
/***/ "83c13f37011b24ec3e73":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_style_index_0_id_09436700_scoped_true_lang_less___ = __webpack_require__("f3072a0cf83cf2b5938a");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_style_index_0_id_09436700_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_style_index_0_id_09436700_scoped_true_lang_less___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_style_index_0_id_09436700_scoped_true_lang_less____default.a);
/***/ }),
/***/ "84636dd97cee8bc936cf":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_script_lang_js___ = __webpack_require__("349e2a33b311aaaed53d");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "85281123e954905c582b":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_script_lang_js___ = __webpack_require__("ce767cd931c590e338c6");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "85dfcf86535fc301312e":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_script_lang_js___ = __webpack_require__("cc31af1eaedff0b3df82");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TopMainBar_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "85f9e563e35dd4a4e51e":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function($, G) {
var template = __webpack_require__("274e32dfd54a6b0d18a9");
var request = __webpack_require__("91f250ebeb8d5987491c");
var userData = __webpack_require__("472a9b3fc8c8805a5dd7");
var renderBtn = function renderBtn() {
var t = '<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);
debugger;
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 = 45;
break;
}
return context$1$0.abrupt('return');
case 45:
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 52:
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__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("3deef7cc191860c0adf2")["default"], __webpack_require__("e081b2491b5c9b12b9da")))
/***/ }),
/***/ "8664a7203f5b233b45ed":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Error_vue_vue_type_template_id_8eca1ada_scoped_true___ = __webpack_require__("bbae99500c5d096a54f0");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Error_vue_vue_type_template_id_8eca1ada_scoped_true___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Error_vue_vue_type_template_id_8eca1ada_scoped_true___["b"]; });
/***/ }),
/***/ "87038ee9f896d5ddf0a2":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_style_index_0_id_b671e2be_scoped_true_lang_less___ = __webpack_require__("ba004501820aed46ea98");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_style_index_0_id_b671e2be_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_style_index_0_id_b671e2be_scoped_true_lang_less___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_style_index_0_id_b671e2be_scoped_true_lang_less____default.a);
/***/ }),
/***/ "8912b42075188a668b27":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")();
// imports
// module
exports.push([module.i, "#gwdang-trend:hover {\n background: #edf1f2;\n}\n#gwdang-trend:hover #gwdang-trend-detail {\n display: block;\n}\n.gwdang-tab .top-bar-detail {\n display: none!important;\n}\n.gwdang-tab:hover .top-bar-detail {\n display: flex!important;\n}\n", ""]);
// exports
/***/ }),
/***/ "891715269d3e347058b7":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"div",
{
staticStyle: {
display: "block !important",
"z-index": "9999999999 !important"
},
attrs: { id: _vm.domName }
},
[
_c(
"div",
{
staticClass: "gwdang-main",
style: "display: " + (_vm.fold === "1" ? "none" : "flex") + ";",
attrs: { id: "gwdang_main" }
},
[
_c("div", { staticClass: "gwd-topbar-logo" }, [
_c("em", { staticClass: "gwd_bg" }),
_vm._v(" "),
_c("div", { attrs: { id: "gwd_setting_div" } }, [
_c("div", { staticClass: "gwd-hover-helper" }),
_vm._v(" "),
_c(
"div",
{ staticClass: "gwd_setting_item gwd_setting_item_fst" },
[
_c("div", { staticClass: "gwd_bg gwd_function_setting" }),
_vm._v(" "),
_c(
"a",
{
on: {
click: function($event) {
return _vm.openTab()
}
}
},
[_vm._v("功能设置")]
)
]
),
_vm._v(" "),
_vm._m(0),
_vm._v(" "),
_vm._m(1),
_vm._v(" "),
_vm._m(2)
])
]),
_vm._v(" "),
_vm._m(3),
_vm._v(" "),
_vm.showAd
? _c(
"a",
{
staticStyle: { "line-height": "0" },
attrs: {
id: "gwdang-banner-ad",
title: "点击领取",
target: "_blank",
href: _vm.jdadUrl
}
},
[
_c("img", {
staticStyle: { height: "32px" },
attrs: {
src:
"https://cdn.gwdang.com/images/extensions/ad1111/gwdang_go.png"
}
})
]
)
: _vm._e(),
_vm._v(" "),
_c("div", { staticStyle: { flex: "1" }, attrs: { id: "gwd-space" } }),
_vm._v(" "),
_c("div", { staticClass: "gwd-topbar-right" }, [
_c("div", { staticClass: "search-mod" }),
_vm._v(" "),
_c(
"div",
{
staticClass: "feedback-close",
attrs: { id: "gwdang-feed-close" }
},
[
_vm._m(4),
_vm._v(" "),
_c(
"a",
{
staticClass: "gwdang-suggest",
attrs: {
href: _vm.f_url,
id: "gwdang-suggest",
target: "_blank",
title: "提建议或吐槽遇到的问题"
}
},
[
_c("em", { staticClass: "gwd_bg" }),
_vm._v(" "),
_c("span", { staticClass: "blkcolor1" }, [_vm._v("反馈")])
]
),
_vm._v(" "),
_c(
"a",
{
staticClass: "top-bar-setting",
attrs: {
href: _vm.s_url,
target: _vm.s_url ? "_blank" : "",
title: "功能设置"
}
},
[_c("em", { staticClass: "gwd_bg" })]
),
_vm._v(" "),
_vm._m(5)
]
)
])
]
),
_vm._v(" "),
_c(
"div",
{
staticClass: "gwdang-mini",
style: "display: " + (_vm.fold === "1" ? "block" : "none"),
attrs: { id: "gwdang-mini" }
},
[
_c(
"div",
{
staticClass: "gwdang-nav main",
attrs: { id: "gwdang-main-nav" }
},
[
_c(
"a",
{
staticClass: "gwd_logo gwd_bg",
attrs: { href: "#" },
on: {
click: function($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($event) {
return _vm.openTab()
}
}
},
[_vm._v("功能设置")]
)
]
),
_vm._v(" "),
_vm._m(6),
_vm._v(" "),
_vm._m(7),
_vm._v(" "),
_vm._m(8)
])
]
),
_vm._v(" "),
_c("a", {
staticClass: "unfold_pointer gwd_bg",
attrs: {
href: "javascript:",
title: "点击展开",
id: "gwd_fold_pointer"
}
})
]
)
]
)
]
)
}
var staticRenderFns = [
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("div", { staticClass: "gwd_setting_item" }, [
_c("div", { staticClass: "gwd_bg gwd_opinion_feedback" }),
_vm._v(" "),
_c(
"a",
{
attrs: {
href: "https://www.gwdang.com/brwext/suggest",
target: "_blank"
}
},
[_vm._v("意见反馈")]
)
])
},
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("div", { staticClass: "gwd_setting_item" }, [
_c("div", { staticClass: "gwd_bg gwd_use_help" }),
_vm._v(" "),
_c(
"a",
{
attrs: {
href: "https://www.gwdang.com/v2/app/questions",
target: "_blank"
}
},
[_vm._v("使用帮助")]
)
])
},
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("div", { staticClass: "gwd_setting_item" }, [
_c("div", { staticClass: "gwd_bg gwd_homepage" }),
_vm._v(" "),
_c(
"a",
{ attrs: { href: "https://www.gwdang.com/", target: "_blank" } },
[_vm._v("购物党首页")]
)
])
},
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("div", { staticClass: "gwd-topbar-left" }, [
_c("div", { staticClass: "gwdang-tab", attrs: { id: "amazon_compare" } }),
_vm._v(" "),
_c("div", { staticClass: "gwdang-tab", attrs: { id: "b2c_compare" } }),
_vm._v(" "),
_c("div", { staticClass: "gwdang-tab", attrs: { id: "tb_compare" } }),
_vm._v(" "),
_c("div", { staticClass: "gwdang-tab", attrs: { id: "tm_compare" } }),
_vm._v(" "),
_c("div", { staticClass: "gwdang-tab", attrs: { id: "gwdang-trend" } })
])
},
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"a",
{
staticClass: "gwdang-icon favor",
attrs: {
href: "javascript:",
id: "gwdang-favor",
title: "我的收藏夹",
target: "_self"
}
},
[
_c("em", { staticClass: "hasColor gwd_bg" }),
_vm._v(" "),
_c(
"span",
{
staticClass: "blkcolor1 favortle",
attrs: { title: "收藏并获得降价提醒" }
},
[_vm._v("我的收藏夹")]
)
]
)
},
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"a",
{
staticClass: "gwd_close",
attrs: { href: "javascript:", target: "_self", title: "关闭购物党" }
},
[_c("em", { staticClass: "gwd_bg" })]
)
},
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("div", { staticClass: "gwd_setting_item" }, [
_c("div", { staticClass: "gwd_bg gwd_opinion_feedback" }),
_vm._v(" "),
_c(
"a",
{
attrs: {
href: "https://www.gwdang.com/brwext/suggest",
target: "_blank"
}
},
[_vm._v("意见反馈")]
)
])
},
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("div", { staticClass: "gwd_setting_item" }, [
_c("div", { staticClass: "gwd_bg gwd_use_help" }),
_vm._v(" "),
_c(
"a",
{
attrs: {
href: "https://www.gwdang.com/v2/app/questions",
target: "_blank"
}
},
[_vm._v("使用帮助")]
)
])
},
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("div", { staticClass: "gwd_setting_item" }, [
_c("div", { staticClass: "gwd_bg gwd_homepage" }),
_vm._v(" "),
_c(
"a",
{ attrs: { href: "https://www.gwdang.com/", target: "_blank" } },
[_vm._v("购物党首页")]
)
])
}
]
render._withStripped = true
/***/ }),
/***/ "893503d294226ea0dddf":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TooltipView_vue_vue_type_template_id_4c623068_scoped_true___ = __webpack_require__("32dc5c815515f7c2847e");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__TooltipView_vue_vue_type_script_lang_js___ = __webpack_require__("6a8e7724d7ff1c2952d4");
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__TooltipView_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__TooltipView_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__TooltipView_vue_vue_type_style_index_0_id_4c623068_scoped_true_lang_css___ = __webpack_require__("1bf3d038228bc6453f54");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc");
/* normalize component */
var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])(
__WEBPACK_IMPORTED_MODULE_1__TooltipView_vue_vue_type_script_lang_js___["default"],
__WEBPACK_IMPORTED_MODULE_0__TooltipView_vue_vue_type_template_id_4c623068_scoped_true___["a" /* render */],
__WEBPACK_IMPORTED_MODULE_0__TooltipView_vue_vue_type_template_id_4c623068_scoped_true___["b" /* staticRenderFns */],
false,
null,
"4c623068",
null
)
/* hot reload */
if (false) {
var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js")
api.install(require('vue'))
if (api.compatible) {
module.hot.accept()
if (!api.isRecorded('4c623068')) {
api.createRecord('4c623068', component.options)
} else {
api.reload('4c623068', component.options)
}
module.hot.accept("./TooltipView.vue?vue&type=template&id=4c623068&scoped=true&", function () {
api.rerender('4c623068', {
render: render,
staticRenderFns: staticRenderFns
})
})
}
}
component.options.__file = "src/standard/module/components/PriceTrend/TooltipView.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ "89d1adbe1b58d82e839d":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")();
// imports
// module
exports.push([module.i, "\n#page #content #bd {\n z-index: 0!important;\n}\n", ""]);
// exports
/***/ }),
/***/ "8ab992f0581c1a15ead9":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Share_vue_vue_type_style_index_0_id_3489a5d0_scoped_true_lang_css___ = __webpack_require__("c59529271a81395195a3");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Share_vue_vue_type_style_index_0_id_3489a5d0_scoped_true_lang_css____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Share_vue_vue_type_style_index_0_id_3489a5d0_scoped_true_lang_css___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Share_vue_vue_type_style_index_0_id_3489a5d0_scoped_true_lang_css____default.a);
/***/ }),
/***/ "8bdd7635873d884ae573":
/***/ (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__("5d7928d15752ba1a221a");
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("4310ff0d1d73bb2c547a").default
var update = add("d2e303fc", content, false, {});
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./CollectionSettingMini.vue?vue&type=style&index=0&id=1a72083a&scoped=true&lang=less&", function() {
var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./CollectionSettingMini.vue?vue&type=style&index=0&id=1a72083a&scoped=true&lang=less&");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent);
});
}
// When the module is disposed, remove the <style> tags
module.hot.dispose(function() { update(); });
}
/***/ }),
/***/ "8c93e61de275d04e62e7":
/***/ (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__("f7871f42b02e673352d0");
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("4310ff0d1d73bb2c547a").default
var update = add("68afc49b", content, false, {});
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./LongCoupon.vue?vue&type=style&index=0&id=5ccff421&scoped=true&lang=less&", function() {
var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./LongCoupon.vue?vue&type=style&index=0&id=5ccff421&scoped=true&lang=less&");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent);
});
}
// When the module is disposed, remove the <style> tags
module.hot.dispose(function() { update(); });
}
/***/ }),
/***/ "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__("780b4040d8a36cc48b8e");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__TooltipViewBar_vue_vue_type_script_lang_js___ = __webpack_require__("0e362791ee0f61ecd4e4");
/* 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__("611ecdcc1f53fbb002e8");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc");
/* normalize component */
var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])(
__WEBPACK_IMPORTED_MODULE_1__TooltipViewBar_vue_vue_type_script_lang_js___["default"],
__WEBPACK_IMPORTED_MODULE_0__TooltipViewBar_vue_vue_type_template_id_da945952_scoped_true___["a" /* render */],
__WEBPACK_IMPORTED_MODULE_0__TooltipViewBar_vue_vue_type_template_id_da945952_scoped_true___["b" /* staticRenderFns */],
false,
null,
"da945952",
null
)
/* hot reload */
if (false) {
var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js")
api.install(require('vue'))
if (api.compatible) {
module.hot.accept()
if (!api.isRecorded('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);
/***/ }),
/***/ "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__("4331045ed79e8926b985");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__TbScrollLink_vue_vue_type_script_lang_js___ = __webpack_require__("0ba8a1bad1a0a3646cd4");
/* 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__("4546121da53c8909000c");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc");
/* normalize component */
var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])(
__WEBPACK_IMPORTED_MODULE_1__TbScrollLink_vue_vue_type_script_lang_js___["default"],
__WEBPACK_IMPORTED_MODULE_0__TbScrollLink_vue_vue_type_template_id_0ac72494_scoped_true___["a" /* render */],
__WEBPACK_IMPORTED_MODULE_0__TbScrollLink_vue_vue_type_template_id_0ac72494_scoped_true___["b" /* staticRenderFns */],
false,
null,
"0ac72494",
null
)
/* hot reload */
if (false) {
var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js")
api.install(require('vue'))
if (api.compatible) {
module.hot.accept()
if (!api.isRecorded('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);
/***/ }),
/***/ "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__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("3deef7cc191860c0adf2")["default"]))
/***/ }),
/***/ "91d14e46c642a51cb733":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"div",
{
staticClass: "minibar-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($event) {
return _vm.logHover($event)
}
}
},
[
!_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($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
/***/ }),
/***/ "92832b17df6166a79977":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")();
// 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
/***/ }),
/***/ "92c8ce234ce29d24ebc1":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Share_vue_vue_type_script_lang_js___ = __webpack_require__("da04c6435d323fafe137");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Share_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Share_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Share_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "93201dafc10fe2ec927e":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_script_lang_js___ = __webpack_require__("ed91e916f05d2986bcd1");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "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__("0daa7b76a1bcf522cd5c");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QuestHint_vue_vue_type_script_lang_js___ = __webpack_require__("2095ef3d16e7efc5a0fb");
/* 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__("17346ce3fbd01930d295");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc");
/* normalize component */
var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])(
__WEBPACK_IMPORTED_MODULE_1__QuestHint_vue_vue_type_script_lang_js___["default"],
__WEBPACK_IMPORTED_MODULE_0__QuestHint_vue_vue_type_template_id_39a606fa_scoped_true___["a" /* render */],
__WEBPACK_IMPORTED_MODULE_0__QuestHint_vue_vue_type_template_id_39a606fa_scoped_true___["b" /* staticRenderFns */],
false,
null,
"39a606fa",
null
)
/* hot reload */
if (false) {
var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js")
api.install(require('vue'))
if (api.compatible) {
module.hot.accept()
if (!api.isRecorded('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);
/***/ }),
/***/ "943197de5d5f506919a6":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
_vm.type === "link" ? "a" : "div",
{
tag: "component",
staticClass: "gwd-row gwd-align gwd-coupon-bar",
attrs: {
href: _vm.alterHref,
target: "_blank",
title: _vm.type === "link" ? "点击领取" : ""
},
on: {
mouseenter: function($event) {
return _vm.over()
}
}
},
[
_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
/***/ }),
/***/ "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__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3")))
/***/ }),
/***/ "94fe90607e65c3a84fb6":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniBarCollectionButton_vue_vue_type_template_id_1e4a0206_scoped_true___ = __webpack_require__("812cd2e9043c15acf109");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniBarCollectionButton_vue_vue_type_template_id_1e4a0206_scoped_true___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniBarCollectionButton_vue_vue_type_template_id_1e4a0206_scoped_true___["b"]; });
/***/ }),
/***/ "95245dbd2c2c8f1d13db":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponMiniBjg_vue_vue_type_script_lang_js___ = __webpack_require__("781592f0f5e474de23a5");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponMiniBjg_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponMiniBjg_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponMiniBjg_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponMiniBjg_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponMiniBjg_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "95c5d769aeceb09647ef":
/***/ (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'
};
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")
};
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()
}
};
},
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' && 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: {
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');
}
this.doSearch(this.currentViewing);
}
};
module.exports = exports['default'];
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3")))
/***/ }),
/***/ "962235a213fd8454d736":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")();
// 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
/***/ }),
/***/ "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__("94fe90607e65c3a84fb6");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__MiniBarCollectionButton_vue_vue_type_script_lang_js___ = __webpack_require__("085f3fb7b82c1ffb9351");
/* 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__("05d87f9c2657332b20fe");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc");
/* normalize component */
var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])(
__WEBPACK_IMPORTED_MODULE_1__MiniBarCollectionButton_vue_vue_type_script_lang_js___["default"],
__WEBPACK_IMPORTED_MODULE_0__MiniBarCollectionButton_vue_vue_type_template_id_1e4a0206_scoped_true___["a" /* render */],
__WEBPACK_IMPORTED_MODULE_0__MiniBarCollectionButton_vue_vue_type_template_id_1e4a0206_scoped_true___["b" /* staticRenderFns */],
false,
null,
"1e4a0206",
null
)
/* hot reload */
if (false) {
var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js")
api.install(require('vue'))
if (api.compatible) {
module.hot.accept()
if (!api.isRecorded('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);
/***/ }),
/***/ "978146b782ec93ad0583":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"div",
{ staticClass: "gwd-row gwd-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($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($$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($$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
var _h = _vm.$createElement
var _c = _vm._self._c || _h
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
var _h = _vm.$createElement
var _c = _vm._self._c || _h
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
/***/ }),
/***/ "984fb26cd63aa11f2f19":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")();
// imports
// module
exports.push([module.i, ".gwd-ww-logo[data-v-4148f062] {\n display: inline-block;\n width: 20px;\n height: 22px;\n background-image: -webkit-image-set(url(\"//img.alicdn.com/tps/i1/T15AD7FFFaXXbJnvQ_-130-60.gif\") 1x, url(\"//img.alicdn.com/tps/i4/T1Rsz7FPJaXXbZhKn7-520-240.gif\") 4x);\n background-position: -110px 0;\n margin-right: 5px;\n}\n.gwd-qr-bottom-line[data-v-4148f062] {\n transform: scale(0.5);\n transform-origin: top center;\n white-space: nowrap;\n height: 20px;\n line-height: 20px;\n}\n.gwd-qr-bottom-line span.bold[data-v-4148f062] {\n font-size: 22px;\n font-weight: bold;\n color: #EF6701;\n}\n.gwd-qr-bottom-line span.normal[data-v-4148f062] {\n font-size: 16px;\n color: #070707;\n}\n.gwd-qr-logo[data-v-4148f062] {\n position: absolute;\n left: 50%;\n top: 50%;\n width: 20px;\n height: 20px;\n margin-left: -10px;\n margin-top: -10px;\n}\n.gwd-contact-link[data-v-4148f062] {\n margin-left: 7px;\n top: -3px;\n display: inline-block;\n font-size: 12px;\n color: #333333;\n text-decoration: underline;\n cursor: pointer;\n position: relative;\n z-index: 999999;\n}\n.gwd-contact-link .gwd-app-qr-content[data-v-4148f062] {\n position: absolute;\n width: 123px;\n height: 137px;\n background: #FFF3ED;\n border-radius: 0px 0px 2px 2px;\n border: 1px solid #FF9851;\n top: 24px;\n left: -38px;\n visibility: hidden;\n z-index: 999;\n}\n.gwd-contact-link:hover .gwd-app-qr-content[data-v-4148f062] {\n visibility: visible;\n}\n.gwd-contact-link.gwd-new-tm-style[data-v-4148f062] {\n text-decoration: none;\n position: relative;\n top: 18px;\n display: inline-flex;\n align-items: center;\n z-index: 0;\n}\n.gwd-contact-link.gwd-new-tm-style .gwd-contact-text[data-v-4148f062] {\n text-decoration: underline;\n}\n.gwd-contact-link.gwd-new-tm-style .gwd-app-qr-content[data-v-4148f062] {\n left: -14px;\n}\n", ""]);
// exports
/***/ }),
/***/ "98a443f9100b8a4eb42a":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"a",
{
staticClass: "gwd-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 } }),
_vm._v(" "),
_c("span", { staticClass: "gwd-sales" }, [
_vm._v(
_vm._s(_vm.salesText) +
_vm._s(_vm.item.dpId.endsWith("-3") ? "评论" : "已售")
)
])
],
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
/***/ }),
/***/ "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__("0d878046564e4ef2113b"), __webpack_require__("3deef7cc191860c0adf2")["default"]))
/***/ }),
/***/ "98e93ed4a85e80c55160":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function($, G, regeneratorRuntime) {
var _this = this;
var getCoupon = __webpack_require__("2eb8d6935e044e0d6d06");
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 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--]'
},
'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();
}
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 link = G.tb_server + '/extension/qrpage?dp_id=' + id + '-83&tag=9_' + browser + '&discount=' + data.coupon.coupon_money + '&union=' + G.union;
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['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');
// 获取商品id
i = 0;
case 11:
if (!(i < list.length)) {
context$1$0.next = 38;
break;
}
dom = list.eq(i);
if (obj['url']) {
dom = dom.find(obj['url']);
}
if (!$(dom).attr('gwd-coupon-checked')) {
context$1$0.next = 16;
break;
}
return context$1$0.abrupt('continue', 35);
case 16:
id = null;
site = 'taobao';
if (!dom.length) {
context$1$0.next = 27;
break;
}
href = dom.attr('href');
if (href) {
context$1$0.next = 22;
break;
}
return context$1$0.abrupt('continue', 35);
case 22:
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 = 29;
break;
case 27:
id = list.eq(i).find('.ww-light.ww-small').attr('data-item');
__webpack_require__("316f9c352c6202560d16").log('find new type id', id);
case 29:
if (id) {
context$1$0.next = 31;
break;
}
return context$1$0.abrupt('continue', 35);
case 31:
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 35:
i++;
context$1$0.next = 11;
break;
case 38:
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 39:
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:
if ($('[class^=Card--doubleCard--]').length) {
listenDom();
}
if (location.href === 'https://www.taobao.com/' && ($('.tb-recommend-content').length || $('.tb-pick-feeds-container').length)) {
cb = __webpack_require__("3e983ecbff4e1a29654c").debounce(renderInit);
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);
}
}
case 4:
case 'end':
return context$2$0.stop();
}
}, null, this);
}, 1000);
};
// 监听dom 有更新, 再一次加载优惠券
// listenDom()
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("0d878046564e4ef2113b")))
/***/ }),
/***/ "9920f8981151f34ffc09":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(regeneratorRuntime, $, Vue) {
var _this = this;
module.exports.init = function callee$0$0(mode) {
var className, allowedList, subClass, text;
return regeneratorRuntime.async(function callee$0$0$(context$1$0) {
while (1) switch (context$1$0.prev = context$1$0.next) {
case 0:
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:
days = 30;
if ($('#ns_services').text().includes('天价保')) {
days = parseInt($('#ns_services').text().match(/(\d+)天价保/)[1]);
}
__webpack_require__("83271c7588396d2d5e59").log('jdPriceProtect:show');
GwdPriceProtectMiddle = __webpack_require__("a48225d279d5cbed8beb")['default'];
new Vue({
el: '.gwd-price-protect',
render: function render(h) {
return h(GwdPriceProtectMiddle, {
props: {
mode: mode,
days: days
}
});
}
});
// $('#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)
case 5:
case 'end':
return context$1$0.stop();
}
}, null, _this);
};
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"]))
/***/ }),
/***/ "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")))
/***/ }),
/***/ "9c9b99688069c7c98a03":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__QRLinkTaobaoLogin_vue_vue_type_template_id_6179ab9e_scoped_true___ = __webpack_require__("664f6df1f2ec50016f49");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QRLinkTaobaoLogin_vue_vue_type_script_lang_js___ = __webpack_require__("d7b8bdfd8cae885025eb");
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__QRLinkTaobaoLogin_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__QRLinkTaobaoLogin_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__QRLinkTaobaoLogin_vue_vue_type_style_index_0_id_6179ab9e_scoped_true_lang_less___ = __webpack_require__("db518a3e544b1a3c4e0f");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc");
/* normalize component */
var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])(
__WEBPACK_IMPORTED_MODULE_1__QRLinkTaobaoLogin_vue_vue_type_script_lang_js___["default"],
__WEBPACK_IMPORTED_MODULE_0__QRLinkTaobaoLogin_vue_vue_type_template_id_6179ab9e_scoped_true___["a" /* render */],
__WEBPACK_IMPORTED_MODULE_0__QRLinkTaobaoLogin_vue_vue_type_template_id_6179ab9e_scoped_true___["b" /* staticRenderFns */],
false,
null,
"6179ab9e",
null
)
/* hot reload */
if (false) {
var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js")
api.install(require('vue'))
if (api.compatible) {
module.hot.accept()
if (!api.isRecorded('6179ab9e')) {
api.createRecord('6179ab9e', component.options)
} else {
api.reload('6179ab9e', component.options)
}
module.hot.accept("./QRLinkTaobaoLogin.vue?vue&type=template&id=6179ab9e&scoped=true&", function () {
api.rerender('6179ab9e', {
render: render,
staticRenderFns: staticRenderFns
})
})
}
}
component.options.__file = "src/standard/module/components/QRLinkTaobaoLogin.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ "9d9187f017fae783da67":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_AmazonSameLinks_vue_vue_type_style_index_0_id_e09aa000_scoped_true_lang_less___ = __webpack_require__("65aa645f63b53adae510");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_AmazonSameLinks_vue_vue_type_style_index_0_id_e09aa000_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_AmazonSameLinks_vue_vue_type_style_index_0_id_e09aa000_scoped_true_lang_less___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_AmazonSameLinks_vue_vue_type_style_index_0_id_e09aa000_scoped_true_lang_less____default.a);
/***/ }),
/***/ "9da5f4760618b9fa7a9d":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__QRLinkContact_vue_vue_type_template_id_9a793014_scoped_true___ = __webpack_require__("03bec9e018c5e5127ba6");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QRLinkContact_vue_vue_type_script_lang_js___ = __webpack_require__("38c3da6a2366a559454c");
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__QRLinkContact_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__QRLinkContact_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__QRLinkContact_vue_vue_type_style_index_0_id_9a793014_scoped_true_lang_less___ = __webpack_require__("246ceb42c05cc162aaa5");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc");
/* normalize component */
var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])(
__WEBPACK_IMPORTED_MODULE_1__QRLinkContact_vue_vue_type_script_lang_js___["default"],
__WEBPACK_IMPORTED_MODULE_0__QRLinkContact_vue_vue_type_template_id_9a793014_scoped_true___["a" /* render */],
__WEBPACK_IMPORTED_MODULE_0__QRLinkContact_vue_vue_type_template_id_9a793014_scoped_true___["b" /* staticRenderFns */],
false,
null,
"9a793014",
null
)
/* hot reload */
if (false) {
var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js")
api.install(require('vue'))
if (api.compatible) {
module.hot.accept()
if (!api.isRecorded('9a793014')) {
api.createRecord('9a793014', component.options)
} else {
api.reload('9a793014', component.options)
}
module.hot.accept("./QRLinkContact.vue?vue&type=template&id=9a793014&scoped=true&", function () {
api.rerender('9a793014', {
render: render,
staticRenderFns: staticRenderFns
})
})
}
}
component.options.__file = "src/standard/module/components/QRLinkContact.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ "9dd6cec84ada5cb63221":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(G, $) {//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
Object.defineProperty(exports, '__esModule', {
value: true
});
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _qrcode = __webpack_require__("22c6d528618fc14b5d1c");
var _qrcode2 = _interopRequireDefault(_qrcode);
var _commonCommonUtil = __webpack_require__("3e983ecbff4e1a29654c");
var _commonCommonUtil2 = _interopRequireDefault(_commonCommonUtil);
exports['default'] = {
//props: ['mode', 'dpId', 'tag'],
props: {
mode: {
'default': '',
type: String
},
dpId: String,
tag: Number,
url: String
},
data: function data() {
return {
site: this.mode ? '360buy' : G.site,
qr: '',
loading: false,
hasBuyButton: true
};
},
mounted: function mounted() {
var _this = this;
setTimeout(function () {
if ($('#J_ButtonWaitWrap').length) {
_this.hasBuyButton = false;
}
}, 500);
},
computed: {
actionText: function actionText() {
if (this.dpId !== '1-3') {
return '领' + (this.mode.includes('gift') ? '红包' : '券') + (this.mode.includes('cfe') ? ',无需验证' : '');
}
return '参加活动';
}
},
methods: {
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.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'];
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da")))
/***/ }),
/***/ "9edc88f739fb33f2c091":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CouponArrow_vue_vue_type_template_id_4f0f1e98___ = __webpack_require__("6c4158d4a8844af2f16e");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__CouponArrow_vue_vue_type_script_lang_js___ = __webpack_require__("31565daf77a36862a767");
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__CouponArrow_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__CouponArrow_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc");
/* normalize component */
var component = Object(__WEBPACK_IMPORTED_MODULE_2__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])(
__WEBPACK_IMPORTED_MODULE_1__CouponArrow_vue_vue_type_script_lang_js___["default"],
__WEBPACK_IMPORTED_MODULE_0__CouponArrow_vue_vue_type_template_id_4f0f1e98___["a" /* render */],
__WEBPACK_IMPORTED_MODULE_0__CouponArrow_vue_vue_type_template_id_4f0f1e98___["b" /* staticRenderFns */],
false,
null,
null,
null
)
/* hot reload */
if (false) {
var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js")
api.install(require('vue'))
if (api.compatible) {
module.hot.accept()
if (!api.isRecorded('4f0f1e98')) {
api.createRecord('4f0f1e98', component.options)
} else {
api.reload('4f0f1e98', component.options)
}
module.hot.accept("./CouponArrow.vue?vue&type=template&id=4f0f1e98&", function () {
api.rerender('4f0f1e98', {
render: render,
staticRenderFns: staticRenderFns
})
})
}
}
component.options.__file = "src/standard/module/components/CouponArrow.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ "a1313d717c0ac7f3c9cc":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_template_id_79b5dd44_scoped_true___ = __webpack_require__("4d32fa92ab619cc79d1f");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_template_id_79b5dd44_scoped_true___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_BarTrendInfo_vue_vue_type_template_id_79b5dd44_scoped_true___["b"]; });
/***/ }),
/***/ "a2b1d3cff2c290194eca":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"div",
{
directives: [
{ name: "show", rawName: "v-show", value: _vm.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($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($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 }
})
: _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($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($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($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
/***/ }),
/***/ "a3691c770cb606f8258c":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_template_id_74d4d45d_scoped_true___ = __webpack_require__("a2b1d3cff2c290194eca");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_template_id_74d4d45d_scoped_true___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Index_vue_vue_type_template_id_74d4d45d_scoped_true___["b"]; });
/***/ }),
/***/ "a3752ec682eda733a057":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"div",
{
staticClass: "gwd-minibar-element",
staticStyle: {
height: "36px",
width: "460px",
background: "white",
"align-items": "center",
display: "flex",
position: "relative"
},
attrs: { id: "gwd-price-protect" },
on: { mouseover: _vm.over }
},
[
_c("img", {
staticStyle: { "margin-left": "11px", width: "16px" },
attrs: {
src: "https://cdn.gwdang.com/images/extensions/price-protect@2x.png",
alt: ""
}
}),
_vm._v(" "),
_vm.mode === "qr"
? _c(
"span",
{
staticStyle: {
"margin-left": "10px",
"font-size": "12px",
color: "#ff3532",
"margin-top": "-2px"
}
},
[_vm._v("扫码下单,买贵就返差价!")]
)
: _vm._e(),
_vm._v(" "),
_vm.mode === "redpack"
? _c(
"span",
{
staticClass: "gwd-hui999 gwd-font12",
staticStyle: { "margin-left": "10px" }
},
[
_vm._v(
"\n 当前商品支持价格保护,扫码领红包下单后为您添加降价提醒\n "
)
]
)
: _vm._e(),
_vm._v(" "),
_c("div", { staticStyle: { flex: "1" } }),
_vm._v(" "),
_vm.mode === "qr"
? _c("img", {
attrs: {
src: __webpack_require__("2bc18901559a2d6a8c66"),
alt: ""
}
})
: _vm._e(),
_vm._v(" "),
_vm.mode === "qr"
? _c("span", { staticClass: "gwd-qr-scan" }, [_vm._v("微信扫码")])
: _vm._e(),
_vm._v(" "),
_vm.mode === "qr"
? _c(
"div",
{ staticClass: "gwd-price-protect-qr gwd-column gwd-align" },
[
_vm.qrLink
? _c("img", { attrs: { src: _vm.qrLink, alt: "" } })
: _vm._e(),
_vm._v(" "),
_vm._m(0)
]
)
: _vm._e()
]
)
}
var staticRenderFns = [
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"span",
{ staticClass: "gwd-font12", staticStyle: { "margin-top": "6px" } },
[
_c("span", { staticClass: "gwd-red" }, [_vm._v("微信扫码")]),
_vm._v(" "),
_c(
"span",
{ staticClass: "gwd-hui333", staticStyle: { "margin-left": "3px" } },
[_vm._v("获取价保提醒")]
)
]
)
}
]
render._withStripped = true
/***/ }),
/***/ "a39cbf70bd2e92e85f98":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"svg",
{
attrs: {
width: "48px",
height: "24px",
viewBox: "0 0 48 24",
version: "1.1",
xmlns: "http://www.w3.org/2000/svg",
"xmlns:xlink": "http://www.w3.org/1999/xlink"
}
},
[
_c(
"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
/***/ }),
/***/ "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__("77798c4d5223dfcaa522");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Share_vue_vue_type_script_lang_js___ = __webpack_require__("92c8ce234ce29d24ebc1");
/* 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__("8ab992f0581c1a15ead9");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc");
/* normalize component */
var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])(
__WEBPACK_IMPORTED_MODULE_1__Share_vue_vue_type_script_lang_js___["default"],
__WEBPACK_IMPORTED_MODULE_0__Share_vue_vue_type_template_id_3489a5d0_scoped_true___["a" /* render */],
__WEBPACK_IMPORTED_MODULE_0__Share_vue_vue_type_template_id_3489a5d0_scoped_true___["b" /* staticRenderFns */],
false,
null,
"3489a5d0",
null
)
/* hot reload */
if (false) {
var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js")
api.install(require('vue'))
if (api.compatible) {
module.hot.accept()
if (!api.isRecorded('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);
/***/ }),
/***/ "a48225d279d5cbed8beb":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__GwdPriceProtectMiddle_vue_vue_type_template_id_09436700_scoped_true___ = __webpack_require__("1933d89a9414ea50fbbd");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__GwdPriceProtectMiddle_vue_vue_type_script_lang_js___ = __webpack_require__("1b7cd483fef8d06be5bd");
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__GwdPriceProtectMiddle_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__GwdPriceProtectMiddle_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__GwdPriceProtectMiddle_vue_vue_type_style_index_0_id_09436700_scoped_true_lang_less___ = __webpack_require__("83c13f37011b24ec3e73");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc");
/* normalize component */
var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])(
__WEBPACK_IMPORTED_MODULE_1__GwdPriceProtectMiddle_vue_vue_type_script_lang_js___["default"],
__WEBPACK_IMPORTED_MODULE_0__GwdPriceProtectMiddle_vue_vue_type_template_id_09436700_scoped_true___["a" /* render */],
__WEBPACK_IMPORTED_MODULE_0__GwdPriceProtectMiddle_vue_vue_type_template_id_09436700_scoped_true___["b" /* staticRenderFns */],
false,
null,
"09436700",
null
)
/* hot reload */
if (false) {
var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js")
api.install(require('vue'))
if (api.compatible) {
module.hot.accept()
if (!api.isRecorded('09436700')) {
api.createRecord('09436700', component.options)
} else {
api.reload('09436700', component.options)
}
module.hot.accept("./GwdPriceProtectMiddle.vue?vue&type=template&id=09436700&scoped=true&", function () {
api.rerender('09436700', {
render: render,
staticRenderFns: staticRenderFns
})
})
}
}
component.options.__file = "src/standard/module/components/GwdPriceProtectMiddle.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ "a5dfcc2fa5c9fea38d1e":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Price_vue_vue_type_script_lang_js___ = __webpack_require__("1e298dd729854816851a");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Price_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Price_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_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_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Price_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "a67ae8abc77de2e0df06":
/***/ (function(module, exports, __webpack_require__) {
var $imports = __webpack_require__("9f47c636f849c23a0c20");
module.exports = function ($data) {
'use strict';
$data = $data || {};
var $$out = '', $escape = $imports.$escape, extClass = $data.extClass, img = $data.img, qr = $data.qr;
$$out += '<div style="display: inline-flex; position: relative; vertical-align: middle; margin-left: 5px; width: auto" class="gwd-bottom-tmall ';
$$out += $escape(extClass);
$$out += '">\n <img src="';
$$out += $escape(img);
$$out += '" alt="" style="height: 44px">\n <div class="gwd-qr-act-bottom" style="margin-left: -74px;">\n <img class="gwd-act-qr-img" loading="lazy" src="';
$$out += $escape(qr);
$$out += '" alt="" style="width: 130px; height: 130px; margin-top: 7px">\n <span style="margin-top: 5px; vertical-align: middle; font-size: 0; height: 14px; line-height: 14px;">\n <span style="font-size: 14px; color: #ff1a78; font-weight: bold">微信扫码</span>\n <span style="margin-left: 3px; color: #070707; font-size: 12px; transform-origin: center center; transform: scale(0.9166)">领红包</span>\n </span>\n </div>\n</div>\n<style>\n .gwd-bottom-tmall {\n height: 100%;\n align-items: center;\n }\n\n .gwd-qr-act-bottom {\n display: none;\n flex-direction: column;\n position: absolute;\n width: 144px;\n height: 167px;\n box-sizing: border-box;\n border: 1px solid #ff471a;\n background: #fff9f6;\n bottom: 62px;\n left: 50%;\n align-items: center;\n margin-left: -72px;\n }\n\n .gwd-qr-act-bottom span {\n width: initial;\n margin: 0;\n }\n\n .gwd-bottom-tmall:hover .gwd-qr-act-bottom {\n display: flex;\n }\n</style>';
return $$out;
};
/***/ }),
/***/ "a6944a8f1fb80e92210e":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TipCenter_vue_vue_type_template_id_9f16b84a_scoped_true___ = __webpack_require__("3207beb8fdf4d3d4ed2c");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TipCenter_vue_vue_type_template_id_9f16b84a_scoped_true___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TipCenter_vue_vue_type_template_id_9f16b84a_scoped_true___["b"]; });
/***/ }),
/***/ "a6c4b624300d4e56f587":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")();
// 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
/***/ }),
/***/ "a710c33ca97ead6a5b7f":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Switch_vue_vue_type_template_id_222e987e_scoped_true___ = __webpack_require__("f9ff781f9088de39bd10");
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Switch_vue_vue_type_template_id_222e987e_scoped_true___["a"]; });
/* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Switch_vue_vue_type_template_id_222e987e_scoped_true___["b"]; });
/***/ }),
/***/ "a8d04aabebd76e8bb3f7":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function($, G) {
var userData = __webpack_require__("472a9b3fc8c8805a5dd7");
var request = __webpack_require__("91f250ebeb8d5987491c");
var calWidth = __webpack_require__("54be372a53153922dc13");
// const replaceHref = require('common/replaceHref')
var golbal2 = __webpack_require__("1c640a99db9f6f8a16c2");
var htmlObj = {
'taobao': __webpack_require__("8a0927a3ad9eaa0e7f96"),
'tmall': __webpack_require__("503933f10716083fddfd")
};
var tmData = {};
var renderBtnTop = function renderBtnTop(data) {
var html = __webpack_require__("86bd79d95549896902d6");
data.ss = 0;
if (data.tmall.length !== 0 && data.tmall.product) {
$('#tm_compare').append(html({
store_tle: '天猫',
min_price: data.tmall.min_price
})).css("display", "block");
tmData['tmall'] = data.tmall;
data.ss++;
data.tmm = true;
renderTopDetail('tmall');
}
if (data.taobao.length !== 0 && data.taobao.product) {
$('#tb_compare').append(html({
store_tle: '淘宝',
min_price: data.taobao.min_price
})).css("display", "block");
tmData['taobao'] = data.taobao;
data.ss++;
data.tbb = true;
renderTopDetail('taobao');
}
__webpack_require__("1c640a99db9f6f8a16c2").autoFixWidth();
userData.set('tbData', data);
if (G.site === 'suning') {
$('#tb_compare, #tm_compare').on('click', 'a', function (e) {
if ($(this).find('.coupon_span')) return;
var url = $(this).attr('href');
if (url && url.indexOf('http') > -1) {
window.open($(this).attr('href'));
e.preventDefault();
}
});
}
};
var render = function render(data) {
var permanent = userData.get('permanent');
if (permanent.style === 'top') {
renderTop(data);
} else {
__webpack_require__("73e5d235bd431b446c03").renderBt(data);
}
};
var renderTopDetail = function renderTopDetail(id) {
var data = tmData[id];
// if (!G.aliSite && G.from_device !== '360')
// replaceHref.init(id, data.product, '&column=b2c')
var len = data.product.length;
var str = 'tb';
if (id === 'tmall') str = 'tm';
var widthObj = calWidth.init();
var sale_tle = "最近销量";
if (data.from_self === true) sale_tle = "总销量";
var html = htmlObj[id];
var pages = Math.ceil(len / widthObj.showListNum);
$('#' + str + '_compare').append(html({
data: data.product,
s_server: G.s_server,
width: widthObj.turnpW,
link: data.more_link,
pages: pages,
imgLoad: G.imgLoad,
sale_tle: sale_tle,
allProductW: widthObj.allProductW
}));
if (G.from_device !== '360') __webpack_require__("b8226e22112290600083").init(data.product, id, false, data.min_price);
// $(`#gwdang-${id}-dp-detail`).show()
};
var renderTop = function renderTop(data) {
renderBtnTop(data);
};
var getTmInfo = function getTmInfo(callback) {
var code_server = '1';
var other_info = userData.get('other_info');
var msg = other_info.exact_arr;
var code = other_info['code-server'];
var coreword = encodeURIComponent(other_info.now.coreword);
if (!code) {
code = {};
code_server = '0';
}
var price = G.dp.price * 100;
var url = G.server + '/brwext/tbres?union=' + G.union + '&url=' + encodeURIComponent(msg.url) + '&site=' + msg.site + '&isbn=' + msg.isbn + '&keywords=' + encodeURIComponent(msg.keywords) + '&brand=' + encodeURIComponent(msg.brand) + '&type=' + encodeURIComponent(msg.type) + '&price=' + price + '&class_id=' + msg.class_id + '&name=' + encodeURIComponent(G.dp.name) + '&code_brand_id=' + code.brand_id + '&code_clean_title=' + encodeURIComponent(code.clean_title) + '&code_code=' + code.code + '&code_display_brand=' + encodeURIComponent(code.display_brand) + '&code_brand=' + encodeURIComponent(code.brand) + '&code_class_id=' + encodeURIComponent(code.class_id) + '&code_price=' + encodeURIComponent(code.price) + '&code_spec=' + encodeURIComponent(code.spec) + '&code-server=' + code_server + '&coreword=' + coreword + '&catid=' + G.dp.cat_id;
request.get(url).done(function (data) {
if (data) {
if (G.site == 'taobao' || G.site == 'tmall') {
getUniqPid(data, function (mm) {
callback(mm);
});
} else {
getImgSearch(data, function (mm) {
callback(mm);
});
}
}
});
};
var getImgSearch = function getImgSearch(msg, callback) {
var buildTaobaoUrl = __webpack_require__("cc45d932d8dbdb86f2f3");
msg = buildTaobaoUrl.buildCommon(msg);
if (G.btype == 'luyou') {
callback(msg);
return;
}
var dataShare = __webpack_require__("cde79cb5670e8bdeb4fb");
var brandId = dataShare.get('dp_data') && dataShare.get('dp_data')['exact_arr']['brand_id'];
if (G.site == '360buy' && brandId && (!msg.taobao.sort || !msg.tmall.sort)) {
// 在京东有brand 有比价结果的情况下, 不走图片检索
callback(msg);
return;
}
__webpack_require__("ff881c8b15091819a13e").init(function (data) {
if (data) {
if (msg.tmall.sort) msg.tmall = {};
if (data.tmall.length > 0) {
msg.tmall.min_price = data.tmall[0].price;
msg.tmall.max_price = data.tmall[data.tmall.length - 1].price;
msg.tmall.store = data.tmall;
msg.tmall.product = data.tmall;
}
if (msg.taobao.sort) msg.taobao = {};
if (data.taobao.length > 0) {
msg.taobao.product = data.taobao;
msg.taobao.store = data.taobao;
msg.taobao.min_price = data.taobao[0].price;
msg.taobao.max_price = data.taobao[data.taobao.length - 1].price;
}
if (!msg.tmall.more_link) msg.tmall.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union;
if (!msg.taobao.more_link) msg.taobao.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union;
callback(msg);
} else {
callback(msg);
}
});
};
var getUniqPid = function getUniqPid(msg, callback) {
var buildTaobaoUrl = __webpack_require__("cc45d932d8dbdb86f2f3");
msg = buildTaobaoUrl.buildCommon(msg);
__webpack_require__("75d41ad7d5a1bceb52d2").getTaobaouniqData(function (data) {
if (data) {
if (msg.tmall.sort) {
msg.tmall = {};
}
if (data.tmall.length > 0) {
msg.tmall.min_price = data.tmall[0].price;
msg.tmall.max_price = data.tmall[data.tmall.length - 1].price;
msg.tmall.store = data.tmall;
msg.tmall.product = data.tmall;
}
if (msg.taobao.sort) {
msg.taobao = {};
}
if (data.taobao.length > 0) {
msg.taobao.product = data.taobao;
msg.taobao.store = data.taobao;
msg.taobao.min_price = data.taobao[0].price;
msg.taobao.max_price = data.taobao[data.taobao.length - 1].price;
}
if (!msg.tmall.more_link) msg.tmall.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union;
if (!msg.taobao.more_link) msg.taobao.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union;
callback(msg);
} else {
callback(msg);
}
});
};
module.exports.init = function () {
getTmInfo(render);
};
module.exports.renderTopDetail2 = function (id) {
var widthObj = calWidth.init();
golbal2.loadImg(0, widthObj.showListNum, $('#' + id + '-item-list li .small-img img'));
$('#gwdang-' + id + '-dp-detail').show();
};
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3")))
/***/ }),
/***/ "aa51cc982b2c1333cb43":
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__("b01e5dfe9f7aa1861635");
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("4310ff0d1d73bb2c547a").default
var update = add("4dd64b1e", content, false, {});
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QRLink.vue?vue&type=style&index=1&id=673c66fa&scoped=true&lang=less&", function() {
var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QRLink.vue?vue&type=style&index=1&id=673c66fa&scoped=true&lang=less&");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent);
});
}
// When the module is disposed, remove the <style> tags
module.hot.dispose(function() { update(); });
}
/***/ }),
/***/ "aaed1c8884508bf25f88":
/***/ (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__("ebcfed4623bc1191346a");
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("4310ff0d1d73bb2c547a").default
var update = add("37945b47", content, false, {});
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!../../../../../node_modules/.0.20.2@css-loader/index.js!../../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./Price.vue?vue&type=style&index=0&id=26424954&scoped=true&lang=less&", function() {
var newContent = require("!!../../../../../node_modules/.0.20.2@css-loader/index.js!../../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./Price.vue?vue&type=style&index=0&id=26424954&scoped=true&lang=less&");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent);
});
}
// When the module is disposed, remove the <style> tags
module.hot.dispose(function() { update(); });
}
/***/ }),
/***/ "ad3ab4b4cd0a839309d6":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponMiniBjg_vue_vue_type_style_index_0_id_c1c2cbdc_scoped_true_lang_less___ = __webpack_require__("eaa0b9c74f60eb2bb295");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponMiniBjg_vue_vue_type_style_index_0_id_c1c2cbdc_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponMiniBjg_vue_vue_type_style_index_0_id_c1c2cbdc_scoped_true_lang_less___);
/* unused harmony reexport namespace */
/* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponMiniBjg_vue_vue_type_style_index_0_id_c1c2cbdc_scoped_true_lang_less____default.a);
/***/ }),
/***/ "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")))
/***/ }),
/***/ "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__("a1313d717c0ac7f3c9cc");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__BarTrendInfo_vue_vue_type_script_lang_js___ = __webpack_require__("85281123e954905c582b");
/* 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__("54fb323cedf4e373fd63");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc");
/* normalize component */
var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])(
__WEBPACK_IMPORTED_MODULE_1__BarTrendInfo_vue_vue_type_script_lang_js___["default"],
__WEBPACK_IMPORTED_MODULE_0__BarTrendInfo_vue_vue_type_template_id_79b5dd44_scoped_true___["a" /* render */],
__WEBPACK_IMPORTED_MODULE_0__BarTrendInfo_vue_vue_type_template_id_79b5dd44_scoped_true___["b" /* staticRenderFns */],
false,
null,
"79b5dd44",
null
)
/* hot reload */
if (false) {
var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js")
api.install(require('vue'))
if (api.compatible) {
module.hot.accept()
if (!api.isRecorded('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);
/***/ }),
/***/ "ae7435035efbf2ee40ac":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"div",
{ staticClass: "gwd-inline-row gwd-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($event) {
return _vm.$emit("input", $event.target.value)
}
}
})
]
)
}
var staticRenderFns = []
render._withStripped = true
/***/ }),
/***/ "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")))
/***/ }),
/***/ "b01e5dfe9f7aa1861635":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")();
// imports
// module
exports.push([module.i, ".gwd-qr-bottom-line[data-v-673c66fa] {\n transform: scale(0.5);\n transform-origin: top center;\n white-space: nowrap;\n}\n.gwd-qr-bottom-line span.bold[data-v-673c66fa] {\n font-size: 22px;\n font-weight: bold;\n color: #EF6701;\n}\n.gwd-qr-bottom-line span.normal[data-v-673c66fa] {\n font-size: 16px;\n color: #070707;\n}\n.gwd-qr-logo[data-v-673c66fa] {\n position: absolute;\n left: 50%;\n top: 50%;\n width: 20px;\n height: 20px;\n margin-left: -10px;\n margin-top: -10px;\n}\n.gwd-app-button[data-v-673c66fa] {\n width: 123px;\n height: 26px;\n background: #FFF3ED;\n border-radius: 2px;\n border: 1px solid #FF9851;\n line-height: 26px;\n text-align: center;\n font-size: 0;\n justify-content: center;\n position: relative;\n cursor: pointer;\n}\n.gwd-app-button span[data-v-673c66fa] {\n font-size: 12px;\n color: #ee6701;\n margin-left: 4px;\n white-space: nowrap;\n}\n.gwd-app-button .gwd-app-qr-content[data-v-673c66fa] {\n position: absolute;\n width: 123px;\n height: 137px;\n background: #FFF3ED;\n border-radius: 0px 0px 2px 2px;\n border: 1px solid #FF9851;\n top: 24px;\n left: -1px;\n visibility: hidden;\n z-index: 999;\n}\n.gwd-app-button:hover .gwd-app-qr-content[data-v-673c66fa] {\n visibility: visible;\n}\n.gwd-app-button.gwd-mode-login[data-v-673c66fa] {\n position: absolute;\n left: 50%;\n margin-left: -93px;\n bottom: 310px;\n background: none!important;\n border: none!important;\n width: 186px;\n}\n.gwd-app-button.gwd-mode-login .gwd-app-qr-content[data-v-673c66fa] {\n width: 186px;\n height: 212px;\n background: none!important;\n border: none!important;\n top: 35px;\n visibility: visible;\n}\n.gwd-app-button.gwd-mode-login .gwd-app-qr-content .gwd-qr-img[data-v-673c66fa] {\n margin: 0;\n padding: 7px;\n border: 1px solid #d4d4d4;\n}\n.site-tmall .gwd-qr-img[data-v-673c66fa] {\n margin-bottom: 4px;\n}\n.site-tmall .gwd-app-button[data-v-673c66fa] {\n margin-left: 40px;\n}\n.site-taobao .gwd-qr-img[data-v-673c66fa] {\n margin-bottom: 4px;\n}\n.site-360buy[data-v-673c66fa] {\n margin-top: 15px;\n}\n.site-360buy .gwd-qr-img[data-v-673c66fa] {\n margin-bottom: 4px;\n}\n.site-360buy .gwd-app-button[data-v-673c66fa] {\n background: #FFEDED;\n border: 1px solid #FF3220;\n}\n.site-360buy .gwd-app-button span[data-v-673c66fa] {\n color: #ff3220;\n}\n.site-360buy .gwd-app-button .gwd-app-qr-content[data-v-673c66fa] {\n background: #FFEDED;\n border: 1px solid #FF3220;\n}\n.site-360buy .gwd-app-button .gwd-app-qr-content .gwd-qr-bottom-line .bold[data-v-673c66fa] {\n color: #ff3220;\n}\n.site-360buy .gwd-app-button .gwd-app-qr-content .gwd-qr-bottom-line .normal[data-v-673c66fa] {\n color: #070707;\n}\n.gwd-qr-hint[data-v-673c66fa] {\n font-size: 12px;\n color: #7d7e80;\n margin-left: 11px;\n font-family: 'microsoft yahei';\n}\n", ""]);
// exports
/***/ }),
/***/ "b07b8c01972d46373e29":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")();
// 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
/***/ }),
/***/ "b12786f17e483addefd7":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_script_lang_js___ = __webpack_require__("426d7c3d6bd989255c92");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_script_lang_js___);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_script_lang_js____default.a);
/***/ }),
/***/ "b194ab71c349c2a72948":
/***/ (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")))
/***/ }),
/***/ "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 produc