在您安装前,Greasy Fork镜像 希望您知道此脚本包含可能不受欢迎的功能,也许会帮助脚本作者获利,而不能给你带来任何收益。
作者从这份脚本获得佣金,例如透过改写链接或提供优惠券代码以包含推荐或附属代码。
脚本作者的说明:
含有购物党官方返利
[含有购物党的返利]浏览商品页面时,自动比较同款商品在淘宝/京东/亚马逊/当当/苏宁/等百家商城的最低价,提供价格历史、口碑评分等查询。支持商品促销活动,商城优惠信息查询,商品可全网收藏,降价提醒。支持链家、我爱我家、中原地产等主流房产网站房源价格走势查询,为买房人士提供决策参考。
目前为
// ==UserScript== // @name 购物党比价工具【官方正版,持续维护】 // @author 购物党 // @name:zh-cn 购物党比价工具【官方正版,持续维护】 // @antifeature referral-link 含有购物党官方返利 // @description [含有购物党的返利]浏览商品页面时,自动比较同款商品在淘宝/京东/亚马逊/当当/苏宁/等百家商城的最低价,提供价格历史、口碑评分等查询。支持商品促销活动,商城优惠信息查询,商品可全网收藏,降价提醒。支持链家、我爱我家、中原地产等主流房产网站房源价格走势查询,为买房人士提供决策参考。 // @description:zh-hk [含有购物党的返利]浏览商品页面时,自动比较同款商品在淘宝/京东/亚马逊/当当/苏宁/等百家商城的最低价,提供价格历史、口碑评分等查询。支持商品促销活动,商城优惠信息查询,商品可全网收藏,降价提醒。支持链家、我爱我家、中原地产等主流房产网站房源价格走势查询,为买房人士提供决策参考。 // @run-at document-idle // @version 3.1.5 // @grant none // @require https://cdn.gwdang.com/js/vendor-gwd.js?v=1.3 // @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"]; /***/ }), /***/ "00c99715365e333b6472": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MemberCouponMini_vue_vue_type_template_id_42d39176_scoped_true___ = __webpack_require__("8474f357316d313d73fa"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__MemberCouponMini_vue_vue_type_script_lang_js___ = __webpack_require__("cc869e1f4fd78e0a5473"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__MemberCouponMini_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__MemberCouponMini_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__MemberCouponMini_vue_vue_type_style_index_0_id_42d39176_scoped_true_lang_less___ = __webpack_require__("9ea3993fbe926fac1855"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__MemberCouponMini_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__MemberCouponMini_vue_vue_type_template_id_42d39176_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__MemberCouponMini_vue_vue_type_template_id_42d39176_scoped_true___["b" /* staticRenderFns */], false, null, "42d39176", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('42d39176')) { api.createRecord('42d39176', component.options) } else { api.reload('42d39176', component.options) } module.hot.accept("./MemberCouponMini.vue?vue&type=template&id=42d39176&scoped=true&", function () { api.rerender('42d39176', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/MemberCouponMini.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "034f9176860d52edf6c0": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, Highcharts) { var timeFormat = function timeFormat(date) { var x = new Date(date); var year = x.getFullYear(); if (G.IE7 || G.IE8) { year = x.getFullYear(); } var month = x.getMonth() + 1; var day = x.getDate(); if (month < 10) { month = '0' + month + ''; } if (day < 10) { day = '0' + day + ''; } // let hour = x.getHours(); var timeStr = year + '/' + month + '/' + day; return timeStr; }; var supplementPoint = function supplementPoint(data) { if (data.length === 1) { data.unshift([data[0][0] - 1000, data[0][1]]); } console.log(data); return data; // let newdata = [] // for (let i=0; i<data.length-1; i++) { // newdata.push(data[i]) // let days = parseInt( (data[i+1][0] - data[i][0]) / (3600*1000*24) ); // if (days >= 2) { // for (let j=1; j<days; j++) { // newdata.push([ // data[i][0] + (3600*1000*24)*j, data[i][1] // ]) // } // } // } // newdata.push(data[data.length-1]) // return newdata; }; module.exports = function (data) { console.log(data); try { var obj = { chart: { renderTo: data.el, type: 'line', style: { marginLeft: '4px', paddingLeft: '0px', marginTop: '0', paddingTop: '0px', marginBottom: '0px', paddingBottom: '0px' }, events: { load: function load() { this.xAxis[0].update({ max: this.xAxis[0].max + 3600 * 1000 * 24 * 10 }); } } }, credits: { enabled: false }, colors: ['#d150f0', '#f0b507', '#3ebdf7'], title: { text: data.title || '', x: -20, style: { color: '#2f7ed8' } }, xAxis: { type: 'datetime', dateTimeLabelFormats: { day: '%Y/%m', week: '%Y/%m', month: '%Y/%m' }, minTickInterval: 3600 * 24 * 1000 * 30, plotLines: [{ color: 'red', dashStyle: 'longdashdot', value: 3, width: 2 }], minorGridLineColor: "#dfdfdf", labels: { rotation: -25, y: 30, style: { fontSize: '12px', fontFamily: 'Arial', color: '#323333' }, align: 'center' } }, yAxis: { title: { text: '', rotation: 0, align: 'high', y: -16, x: -12, offset: -55, margin: 0, style: { color: '#585858' } }, plotLines: [{ value: 0, width: 1, color: '#808080' }], gridLineColor: '#c0d0e0', minorGridLineColor: '#dfdfdf', tickPixelInterval: 50 }, tooltip: { xDateFormat: '%Y-%m-%d', shared: true, valueDecimals: 2, valuePrefix: '', useHTML: true, valueSuffix: ' 万', borderColor: 'none', padding: 20, formatter: function formatter() { var timeStr = timeFormat(this.x); var result = '<table style="margin-left:12px"><tr><td width="100%" colspan="8" style="text-align: center;font-weight: bold;font-family: Arial;font-size:14px">' + timeStr + '</td></td></tr>'; for (var i = 0; i < this.points.length; i++) { var priceStr = parseFloat(Number(this.points[i].y).toFixed(2)) + '万'; result += '<tr><td style="width: 80px; text-align: left"><span style="color: ' + this.points[i].point.series.color + ';font-size:12px;font-family:arial;float:none;margin-right:5px;">●</span>' + this.points[i].point.series.name + '</td>\n <td style="padding-left:4px;">' + priceStr + '</td></tr>'; } result += '</table>'; return result; } }, plotOptions: { series: { marker: { radius: 1, states: { hover: { radius: 2 } } }, lineWidth: 1.5, shadow: false, states: { hover: { lineWidth: 1 } } } }, legend: { enabled: true, borderWidth: 0, verticalAlign: 'top', x: 228, y: -8, itemStyle: { color: '#585858', fontWeight: 'normal', fontSize: '14px', marginBottom: '0px' }, symbolWidth: 12, symbolHeight: 3, itemMarginBottom: 0, itemMarginTop: 0, margin: 12 }, series: [] }; obj.title.style.display = 'none'; var msg = data.msg; if (data.mainTrend) { obj.series[0] = { visible: true, name: '房源价格走势', marker: { symbol: 'circle' }, data: [] }; obj.series[0].data = msg.price_history; obj.series[0].data = supplementPoint(obj.series[0].data); obj.colors = ['#3ebdf7']; obj.legend.enabled = false; } else { var index1 = 0, index2 = 0, index3 = 0; var colorArr = []; if (msg.onsale.length >= 1) { obj.series[index1] = { visible: true, name: '挂牌单价', marker: { symbol: 'circle' }, data: [] }; index2++; index3++; colorArr.push('#d150f0'); obj.legend.x = obj.legend.x - 48; for (var i = 0; i < data.msg.onsale.length; i++) { var arr = new Array(2); arr[0] = data.msg.onsale[i][0] * 1000; arr[1] = Math.round(data.msg.onsale[i][1] * 100) / 100; obj.series[index1].data.push(arr); } obj.series[index1].data = supplementPoint(obj.series[index1].data); } if (msg.dealt.length >= 1) { obj.series[index2] = { visible: true, name: '成交单价', marker: { symbol: 'circle' }, data: [] }; index3++; colorArr.push('#f0b507'); obj.legend.x = obj.legend.x - 48; for (var i = 0; i < data.msg.dealt.length; i++) { var arr = new Array(2); arr[0] = data.msg.dealt[i][0] * 1000; arr[1] = Math.round(data.msg.dealt[i][1] * 100) / 100; obj.series[index2].data.push(arr); } obj.series[index2].data = supplementPoint(obj.series[index2].data); } obj.yAxis.title.text = '单位(万)'; obj.colors = colorArr; } new Highcharts.Chart(obj); } catch (e) {} }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("ff50e367dd130fa205e3"))) /***/ }), /***/ "03bec9e018c5e5127ba6": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_template_id_9a793014_scoped_true___ = __webpack_require__("e756d69fbda7cdc8ade7"); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_template_id_9a793014_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_template_id_9a793014_scoped_true___["b"]; }); /***/ }), /***/ "03dd60018ce5ed1344a1": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {var __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var tm = undefined; var globalEvent = undefined; var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); function goLog(event) { var userid = __webpack_require__("d82c9248d08dbd7e46d4").getInfo('user_extension_id') || ''; userid = userid || G.userid; var t_server = G.tj_server; if (G.new_extension && !G.fdsMod) t_server = G.server; if (!event) event = ""; if (!t_server) t_server = G.server; var n = 'img_random' + Math.random(); var img = window[n] = new Image(); img.onload = img.onerror = function () { window[n] = null; }; img.src = t_server + '/visit/?version=' + G.version + '&userid=' + userid + '&ext_v=' + G.ext_v + '&from_device=' + G.from_device + '&permanent_id=' + userData.get('p_id') + '&random=' + Math.random() + '&action=' + event + '&refer=' + encodeURIComponent(document.referrer) + '&url=' + encodeURIComponent(location.href) + '&title=' + encodeURIComponent(document.title); } if (G.from_type === 'bjg_360') return; return function (event) { if (G.from_device === '360') return; if (globalEvent === event) { globalEvent = event; clearTimeout(tm); tm = setTimeout(function () { goLog(event); }, 500); } else { globalEvent = event; goLog(event); } }; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "041f80fea3d67bf79b22": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__QRLink_vue_vue_type_template_id_673c66fa_scoped_true___ = __webpack_require__("6e9dc8f3fe8ed1fd40dc"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QRLink_vue_vue_type_script_lang_js___ = __webpack_require__("399d3eb4adfb0281eed0"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__QRLink_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__QRLink_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__QRLink_vue_vue_type_style_index_0_lang_css___ = __webpack_require__("580fdef2bbaa9f2dc7e9"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__QRLink_vue_vue_type_style_index_1_id_673c66fa_scoped_true_lang_less___ = __webpack_require__("2e99c26f3c749e77922a"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_4__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__QRLink_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__QRLink_vue_vue_type_template_id_673c66fa_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__QRLink_vue_vue_type_template_id_673c66fa_scoped_true___["b" /* staticRenderFns */], false, null, "673c66fa", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('673c66fa')) { api.createRecord('673c66fa', component.options) } else { api.reload('673c66fa', component.options) } module.hot.accept("./QRLink.vue?vue&type=template&id=673c66fa&scoped=true&", function () { api.rerender('673c66fa', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/QRLink.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "047b30291b8b83e043ed": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var callbacks = undefined, hasreq = undefined, urls = undefined; var request = __webpack_require__("91f250ebeb8d5987491c"); var getPageInfo = function getPageInfo(info, callback) { var infoObj = {}; if (hasreq) { callbacks = callback; urls = info.click_url; return; } var itemId = G.dp.itemId; if (!itemId && G.site === 'taobao-ju') { itemId = location.href.match(/item_id=(\d+)/)[1]; } var obj = { itemNumId: itemId }; var url = 'https://acs.m.taobao.com/h5/mtop.taobao.detail.getdetail/6.0/?data=' + encodeURIComponent(JSON.stringify(obj)); request.getPure(url).done(function (data) { try { var item = data.data.item; var seller = data.data.seller; var item2 = JSON.parse(data.data.apiStack[0].value); infoObj.title = item.title; infoObj.picUrl = item.images[0]; infoObj.shopName = seller.shopName; infoObj.shopLogo = seller.shopIcon; infoObj.shopUrl = seller.shopUrl; infoObj.biz30Day = item2.item.sellCount; infoObj.discountPrice = (Number(item2.skuCore.sku2info['0'].price.priceMoney) / 100).toFixed(2); } catch (e) { //require('common/extConsole').error(e) } if (!infoObj.title) { infoObj.title = document.title; } if (!infoObj.title) { infoObj.title = $('.tb-detail-hd > h1').text().trim(); } if (!infoObj.picUrl) { infoObj.picUrl = $('#J_ImgBooth').attr('src'); } if (!infoObj.discountPrice) { infoObj.discountPrice = G.dp.price; } infoObj.id = itemId; infoObj.amount = info.coupon.coupon_money; infoObj.effectiveStartTime = info.coupon.start_time; infoObj.effectiveEndTime = info.coupon.end_time; infoObj.pid = info.pid; infoObj.tkl = info.tkl; infoObj.tmall = location.host.indexOf('tmall') > -1 ? true : false; if (G.site === 'taobao-ju') { infoObj.shopName = $('.sellername:eq(0)').text(); } callback(infoObj, info.click_url); //console.log(infoObj) if (callbacks) { callbacks(infoObj, urls); } }); }; module.exports = getPageInfo; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "04a1e812dbb979983ae6": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__EpicTrend_vue_vue_type_template_id_bc2362ee_scoped_true___ = __webpack_require__("549da4e43b9ab5780ba3"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__EpicTrend_vue_vue_type_script_lang_js___ = __webpack_require__("31d452087f8bb0fc12f2"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__EpicTrend_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__EpicTrend_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__EpicTrend_vue_vue_type_style_index_0_id_bc2362ee_scoped_true_lang_less___ = __webpack_require__("fe07faa726be683793d3"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__EpicTrend_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__EpicTrend_vue_vue_type_template_id_bc2362ee_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__EpicTrend_vue_vue_type_template_id_bc2362ee_scoped_true___["b" /* staticRenderFns */], false, null, "bc2362ee", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('bc2362ee')) { api.createRecord('bc2362ee', component.options) } else { api.reload('bc2362ee', component.options) } module.hot.accept("./EpicTrend.vue?vue&type=template&id=bc2362ee&scoped=true&", function () { api.rerender('bc2362ee', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/EpicTrend.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "04dcccd8601de1b226fb": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-qr-bottom-line[data-v-9a793014] {\n transform: scale(0.5);\n transform-origin: top center;\n white-space: nowrap;\n height: 20px;\n line-height: 20px;\n}\n.gwd-qr-bottom-line span.bold[data-v-9a793014] {\n font-size: 22px;\n font-weight: bold;\n color: #EF6701;\n}\n.gwd-qr-bottom-line span.normal[data-v-9a793014] {\n font-size: 16px;\n color: #070707;\n}\n.gwd-qr-logo[data-v-9a793014] {\n position: absolute;\n left: 50%;\n top: 50%;\n width: 20px;\n height: 20px;\n margin-left: -10px;\n margin-top: -10px;\n}\n.gwd-contact-link[data-v-9a793014] {\n display: inline-block;\n font-size: 12px;\n color: #333333;\n text-decoration: underline;\n cursor: pointer;\n position: relative;\n z-index: 999999;\n}\n.gwd-contact-link .gwd-app-qr-content[data-v-9a793014] {\n position: absolute;\n width: 123px;\n height: 137px;\n background: #FFF3ED;\n border-radius: 0px 0px 2px 2px;\n border: 1px solid #FF9851;\n top: 24px;\n left: -38px;\n visibility: hidden;\n z-index: 999;\n}\n.gwd-contact-link:hover .gwd-app-qr-content[data-v-9a793014] {\n visibility: visible;\n}\n", ""]); // exports /***/ }), /***/ "05dfce086a5faeee4991": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['tag', 'coupon'], data: function data() { return { dpId: G.dp.dpId }; }, computed: { couponTypeText: function couponTypeText() { var tag = parseInt(this.tag); return ['', '', '会员券', '', '', '', '店铺券'][tag]; } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "0652a96425157e5f02e5": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TbGiftMoney_vue_vue_type_style_index_0_id_53cb8bb8_scoped_true_lang_less___ = __webpack_require__("c71237894d7ceec4e973"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TbGiftMoney_vue_vue_type_style_index_0_id_53cb8bb8_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TbGiftMoney_vue_vue_type_style_index_0_id_53cb8bb8_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_TbGiftMoney_vue_vue_type_style_index_0_id_53cb8bb8_scoped_true_lang_less____default.a); /***/ }), /***/ "06def2eafc3328454ad8": /***/ (function(module, exports) { module.exports = "<div class=\"house-trend-box {{pagetype}} trend-box{{data.trend}}\">\n <div class=\"houset-btn\">\n <a class=\"house-trend-bg\" title=\"撸房价\"></a>\n <div class=\"ht-trend-desc\">\n <span class=\"h-color{{data.trend}}\">{{data.trendMsg}}</span>\n <em class=\"trend-icon{{data.trend}} house-trend-bg\"></em>\n </div>\n <div class=\"ht-price-remind\" data-id=\"{{housecode}}\">\n <em class=\"house-trend-bg\"></em>\n <span>降价提醒</span> \n </div>\n </div>\n <div class=\"houset-detail\">\n <div class=\"house-trend-img\" id=\"house-trend-{{housecode}}\" >\n <img src=\"\" data-src=\"{{server}}{{data.trendImg}}&width=460&height=210&plotFontSize=10\">\n </div>\n <div class=\"house-price-qrcode\">\n <span class=\"mgtop\">每日成交行情</span>\n <span class=\"red-pri\">最新降价房源</span>\n <img src=\"{{s_server}}/images/extensions/newbar/housepri-qrcode2.png\">\n <p>扫码关注撸房价</p>\n <p class=\"house-p-p2\">降价提醒你</p>\n </div>\n <div class=\"price-range\">\n {{if data.maxPrice == data.minPrice}}\n <span >现价:{{data.maxPrice}}万</span>\n {{else}}\n <span class=\"toppri\">最高价:{{data.maxPrice}}万</span>\n <span class=\"lowpri\">最低价:{{data.minPrice}}万</span>\n {{/if}}\n </div>\n <div class=\"change_trend_btn\">\n <div>\n <span class=\"house-trend-b trend-choose\">房源行情</span>\n <span class=\"community-trend-b\">小区行情</span>\n </div>\n \n </div>\n <div class=\"community-price\" id=\"community-{{housecode}}\" data-u=\"{{server}}{{data.communityPrice}}\" data-c=\"{{data.community}}\"></div>\n </div>\n <div class=\"ht-wxqrcode\">\n <span class=\"ht-wx-sp1\">关注公众号</span>\n <span class=\"ht-wx-sp2\">房源降价实时提醒</span>\n <img src=\"{{s_server}}/images/extensions/newbar/housepri-qrcode2.png\">\n <span class=\"ht-wx-sp3\">不再提示</span>\n </div>\n\n</div>" /***/ }), /***/ "077190fa6c9d23369f6d": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("1067ba4203a634ac3435"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("6653ec6a", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!./jdPromoLink.less", function() { var newContent = require("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!./jdPromoLink.less"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "081526742bfe6e0e4762": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { function getCurrentScript() { if (document.currentScript) { return document.currentScript; } var scripts = document.getElementsByTagName("script"); for (var i = 0; i < scripts.length; i++) { if (new RegExp(G.extName + "-notifier", "i").test(scripts[i].src)) { return scripts[i]; } } } module.exports = getCurrentScript(); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "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 /***/ }), /***/ "0927c7d6df6287c77814": /***/ (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_GiftMoneyTop_vue_vue_type_template_id_770fdd33_scoped_true___ = __webpack_require__("f5273d7ea7d204de1d23"); /* 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_GiftMoneyTop_vue_vue_type_template_id_770fdd33_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_GiftMoneyTop_vue_vue_type_template_id_770fdd33_scoped_true___["b"]; }); /***/ }), /***/ "096940133ad1c1c2cd59": /***/ (function(module, exports) { module.exports = "<div style=\"display: inline-flex; position: relative; vertical-align: middle; margin-left: 5px; width: auto\" class=\"gwd-bottom-tmall {{ extClass }}\">\n <img src=\"{{ img }}\" 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=\"{{ qr }}\" 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>" /***/ }), /***/ "0a074eb0202bcf717388": /***/ (function(module, exports) { module.exports = "<div class=\"mini-compare-detail\">\n <div class=\"mini-com-box\">\n <ul>\n {{each data}}\n <li class=\"mini-b2c-list\">\n <a href=\"{{$value.url}}\" target=\"_blank\" class=\"mini-bigimg\">\n <img src=\"{{$value.img_url2}}\" onerror=\"this.src = 'https://cdn.gwdang.com/images/extensions/gwd-noimg.png'\">\n </a>\n <a href=\"{{$value.url}}\" target=\"_blank\" class=\"mini-tle\" title=\"{{$value.title}}\">\n {{$value.title}}\n </a>\n <div class=\"ot-info-box\">\n <span>\n <img src=\"{{$value.icon_url}}\">\n <a href=\"{{$value.url}}\" target=\"_blank\" class=\"mini-site-name\">{{$value.site_name}}</a>\n </span>\n </div>\n <span class=\"mini-price prifontf\">¥{{$value.price}}</span>\n </li>\n {{/each}}\n </ul>\n </div>\n <div class=\"mini-com-foot\"> \n <span class=\"mini-com-turnbtn mini-com-tleft\" data-type=\"-1\">< 上一页</span>\n {{if totalPages > 1}}\n <span class=\"mini-com-turnbtn mini-com-tright\" data-type=\"1\">下一页 ></span>\n {{/if}}\n {{if linkAll}}\n <a href=\"{{linkAll}}\" class=\"linkAll\" target=\"_blank\">查看全部</a>\n {{/if}}\n </div>\n \n <style type=\"text/css\">\n .mini-compare-detail {\n height: 284px;\n width: 460px;\n overflow: hidden;\n position: absolute;\n top: 36px;\n left: -1px;\n z-index: 99999999;\n display: none;\n background-color: #fff;\n border: 1px solid #E6E9EB;\n }\n .mini-com-box ul:after {\n display: block;\n clear: both;\n content: \"\";\n }\n .mini-com-box {\n margin-top: 10px;\n height: 247px;\n width: 460px;\n overflow: hidden;\n position: relative;\n }\n .mini-com-box ul {\n position: absolute;\n height: 247px;\n left: 0px;\n padding: 0px;\n margin: 0px;\n }\n .mini-compare-detail .mini-b2c-list {\n float: left;\n margin-left: 10px;\n width: 140px;\n height: 247px;\n clear: none;\n list-style: none;\n }\n .mini-bigimg {\n width: 140px;\n height: 140px;\n float: left;\n line-height: 140px;\n }\n .mini-bigimg img {\n max-width: 100%;\n max-height: 100%;\n vertical-align: middle;\n }\n .ot-info-box {\n float: left;\n margin-top: 10px;\n width: 100%;\n height: 16px!important;\n line-height: 16px!important;\n text-align: center;\n }\n .ot-info-box>span {\n display: inline-block;\n margin:0 auto;\n float: none!important;\n }\n .ot-info-box>span:after {\n content: \"\";\n display: block;\n clear: both;\n }\n .ot-info-box>span * {\n float: left;\n }\n .ot-info-box>span img {\n height: 16px;\n width: 16px;\n }\n .ot-info-box>span a {\n margin-left: 6px;\n line-height: 16px!important;\n height: 16px!important;\n width: auto;\n overflow: hidden;\n max-width: 114px;\n font-size: 12px;\n color: #666;\n text-decoration: none!important;\n }\n .mini-compare-detail .mini-tle {\n float: left;\n margin-top: 10px;\n width: 136px;\n height: 32px;\n line-height: 16px;\n font-size: 12px;\n color: #5C6266;\n text-align: center;\n overflow: hidden;\n }\n .mini-price {\n float: left!important;\n margin-top: 10px!important;\n width: 100%;\n height: 19px;\n line-height: 19px!important;\n text-align: center;\n font-size: 14px;\n color: #E4393C;\n font-weight: bold;\n }\n .mini-com-foot {\n width: 100%;\n height: 26px;\n }\n .mini-com-foot .mini-com-turnbtn {\n color: #999;\n font-size: 12px;\n position: absolute;\n line-height: 16px;\n bottom: 8px;\n cursor: pointer;\n }\n .mini-com-foot .linkAll {\n position: absolute;\n bottom: 8px;\n right: 10px;\n font-size: 12px;\n line-height: 16px;\n color: #999;\n display: none;\n }\n .mini-com-foot .mini-com-turnbtn:hover,.mini-tle:hover,.mini-com-foot .linkAll:hover, .mini-site-name:hover {\n color: #48BEFF!important;\n }\n .mini-com-tleft {\n left: 10px;\n display: none;\n }\n .mini-com-tright {\n right: 10px;\n }\n </style>\n</div>\n" /***/ }), /***/ "0a3b1f8666118ebd3443": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['data', 'type'], data: function data() { return { rendered: false }; }, methods: { draw: function draw() { if (this.rendered) return; this.rendered = true; __webpack_require__("7bc264230157b5cefc24")({ el: this.$refs.plotArea, msg: this.data.store[0], unit: ' ', bg: '#1e1e1e' }); } }, mounted: function mounted() { console.log(this.data); }, computed: { priceStatusText: function priceStatusText() { return ['历史最低', '价格下降', '价格平稳', '价格上涨'][this.data.price_status + 2]; }, priceTrendIcon: function priceTrendIcon() { return [G.s_server + '/images/extensions/newbar/[email protected]', G.s_server + '/images/extensions/newbar/[email protected]', G.s_server + '/images/extensions/newbar/[email protected]', G.s_server + '/images/extensions/newbar/[email protected]'][this.data.price_status + 2]; } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "0a495424a371aad0e27a": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-common-login.gwd-mini .gwd-main-login[data-v-5efee9c0] {\n box-sizing: border-box;\n}\n.gwd-common-login.gwd-mini .gwd-main-login .gwd-login-methods[data-v-5efee9c0] {\n padding-left: 21px;\n padding-right: 21px;\n}\n.gwd-common-login.gwd-mini .gwd-main-login .gwd-login-methods button[data-v-5efee9c0] {\n font-size: 12px;\n color: #666666;\n}\n.gwd-common-login.gwd-mini .gwd-main-login .gwd-login-methods .gwd-login-active[data-v-5efee9c0] {\n color: #333333;\n}\n.gwd-common-login.gwd-mini .gwd-main-login button[data-v-5efee9c0] {\n width: 340px;\n}\n", ""]); // exports /***/ }), /***/ "0acb2fc6a638869b1543": /***/ (function(module, exports) { module.exports = "<div class=\"gwd_continue1 bjd_btn_box\">\n <a href=\"{{c_server}}\" target=\"_blank\" title=\"购物党\"></a>\n <span class=\"bjd_addcart\">点此进入下一步</span>\n <span class=\"bjd_close\"></span>\n</div>\n<style type=\"text/css\">\n .gwd_continue1 {\n width: 210px;\n height: 36px;\n background-color: #fff;\n color: #494b4d;\n position: absolute;\n left: -253px;\n top: -4px;\n text-align: center;\n line-height: 35px;\n border-bottom-left-radius: 28px;\n border-top-left-radius: 28px;\n font-size: 14px;\n border: 1px solid #47befe;\n font-family: 'Microsoft Yahei';\n }\n .gwd_continue1 a, .gwd_continue1 span {\n float: left;\n margin-left: 19px;\n }\n .gwd_continue1 .bjd_addcart {\n cursor: text;\n }\n .gwd_continue1 a {\n background: url('{{s_server}}/images/extensions/haitao_siteicon.png') 0px 6px no-repeat;\n background-size: 24px 22px;\n height: 35px;\n width: 26px;\n }\n .bjd_close {\n background: url('{{s_server}}/images/extensions/haitao_closeicon.png') 0px 0px no-repeat;\n width: 20px;\n height: 20px;\n margin-top: 12px;\n background-size: 12px 12px;\n }\n .gwd_continue1:before{\n border: 18px solid transparent;\n border-left-color: #47befe;\n content: \"\";\n position: absolute;\n left: 208px;\n width: 0px;\n height: 0px;\n top: -1px;\n }\n .gwd_continue1:after{\n border: 17px solid transparent;\n border-left-color: #fff;\n content: \"\";\n position: absolute;\n left: 208px;\n width: 0px;\n height: 0px;\n top: 0px;\n }\n #shippingOptionFormId .a-box-inner span.a-button-inner, #shippingOptionFormId .a-box-inner .continue-button{\n overflow: visible;\n }\n</style>" /***/ }), /***/ "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(); }); } /***/ }), /***/ "0c4497b5d7aa90d42b50": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MemberCouponQr_vue_vue_type_template_id_498face2_scoped_true___ = __webpack_require__("73027d3bf1a467cf5ac2"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__MemberCouponQr_vue_vue_type_script_lang_js___ = __webpack_require__("447e76262f8a59c30810"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__MemberCouponQr_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__MemberCouponQr_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__MemberCouponQr_vue_vue_type_style_index_0_id_498face2_scoped_true_lang_less___ = __webpack_require__("217a460079a2fc75e411"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__MemberCouponQr_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__MemberCouponQr_vue_vue_type_template_id_498face2_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__MemberCouponQr_vue_vue_type_template_id_498face2_scoped_true___["b" /* staticRenderFns */], false, null, "498face2", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('498face2')) { api.createRecord('498face2', component.options) } else { api.reload('498face2', component.options) } module.hot.accept("./MemberCouponQr.vue?vue&type=template&id=498face2&scoped=true&", function () { api.rerender('498face2', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/MemberCouponQr.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "0d422131ba03d315b596": /***/ (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_PddActivityQr_vue_vue_type_template_id_984546bc_scoped_true___ = __webpack_require__("28e788fa96c9526d57e5"); /* 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_PddActivityQr_vue_vue_type_template_id_984546bc_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_PddActivityQr_vue_vue_type_template_id_984546bc_scoped_true___["b"]; }); /***/ }), /***/ "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); /***/ }), /***/ "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__("882193f0b82bf82cfec1"); /* 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__("d8d0a82c2d012f5f4a3d"); 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__("5a3f695f5285af8ca91b"); 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'); addEvent(); }; module.exports.init = function (data) { if (!data || data instanceof Array || data.store[0].all_line.length === 0) return; renderChart(data); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "0f986364e7409b7b0cf1": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "gwd-qrlink", staticStyle: { "font-family": "'microsoft yahei'" } }, [ _c("div", { staticStyle: { clear: "both" } }), _vm._v(" "), _vm.site === "360buy" ? _c( "div", { staticClass: "gwd-row gwd-align", class: "site-" + _vm.site }, [ _c( "div", { staticClass: "gwd-app-button gwd-row gwd-align", class: _vm.mode, on: { mouseover: _vm.over } }, [ _vm.site !== "360buy" ? _c("img", { staticStyle: { width: "17px", height: "17px" }, attrs: { src: __webpack_require__("a8cce0aefd2314ea2dfa"), alt: "" } }) : _vm._e(), _vm._v(" "), _vm.site === "360buy" ? _c("img", { staticStyle: { width: "17px", height: "17px" }, attrs: { src: __webpack_require__("7a9d74c2e201b514421b"), alt: "" } }) : _vm._e(), _vm._v(" "), _c("span", { style: _vm.mode ? "font-size: 18px;" : "" }, [ _vm._v( "用" + _vm._s(_vm.site === "360buy" ? "京东" : "淘宝") + "APP" + _vm._s( _vm.mode && _vm.mode.includes("login") ? "扫码领" + (_vm.mode.includes("gift") ? "红包" : "券") : "扫码" ) ) ]), _vm._v(" "), _vm.qr ? _c( "div", { staticClass: "gwd-app-qr-content gwd-column gwd-align" }, [ _c( "div", { staticClass: "gwd-qr-img", style: "margin-top: 7px; margin-left: 7px; margin-right: 7px; height: " + (_vm.mode ? 168 : 111.04) + "px; position: relative; " + (_vm.mode ? "width: 168px;" : "") }, [ !_vm.mode && _vm.site !== "360buy" ? _c("img", { staticClass: "gwd-qr-logo", attrs: { src: __webpack_require__("c9085187c37fc1ab0e5e"), alt: "" } }) : _vm._e(), _vm._v(" "), !_vm.mode && _vm.site === "360buy" ? _c("img", { staticClass: "gwd-qr-logo", attrs: { src: __webpack_require__("a152c7c5032ac533e0b1"), alt: "" } }) : _vm._e(), _vm._v(" "), _c("img", { staticStyle: { width: "100%" }, attrs: { src: _vm.qr, alt: "" } }) ] ), _vm._v(" "), _c( "div", { staticClass: "gwd-row gwd-align gwd-qr-bottom-line", style: _vm.mode ? "margin-top: 8px;" : "" }, [ _c( "span", { staticClass: "bold", style: _vm.mode ? "font-size: 32px;" : "" }, [ _vm._v( _vm._s( _vm.site === "360buy" ? "京东" : "淘宝" ) + "APP" ) ] ), _vm._v(" "), _c( "span", { staticClass: "normal", style: _vm.mode ? "font-size: 30px" : "font-size: 22px" }, [ _vm._v( _vm._s(_vm.mode ? " " : "") + "扫码" + _vm._s( _vm.mode ? "" + (_vm.mode.includes("gift") ? "领红包" : "直接领券") : "" ) ) ] ), _vm._v(" "), !_vm.mode ? _c("span", { staticClass: "normal" }, [ _vm._v( _vm._s( _vm.site === "360buy" ? "查看商品" : _vm.hasBuyButton ? "查看优惠" : "快捷购买" ) ) ]) : _vm._e() ] ) ] ) : _vm._e() ] ), _vm._v(" "), !_vm.mode ? _c("span", { staticClass: "gwd-qr-hint" }, [ _vm._v( "在" + _vm._s(_vm.site === "360buy" ? "京东APP" : "手淘") + "内" + _vm._s( _vm.site === "360buy" ? "浏览该商品" : _vm.hasBuyButton ? "查看优惠详情" : "快捷购买" ) ) ]) : _vm._e() ] ) : _vm._e() ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "1067ba4203a634ac3435": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-single-coupon {\n display: inline-block;\n}\n.gwd-single-coupon a {\n display: inline-block;\n width: 143px;\n height: 20px;\n line-height: 20px;\n text-align: center;\n font-size: 12px;\n color: #ee2f36;\n text-decoration: underline;\n}\n.gwd-single-coupon a img {\n display: none;\n}\n.gwd-jd-promo-coupons-wrapper {\n display: inline-block;\n position: relative;\n height: 22px;\n margin-left: 5px;\n margin-top: -2px;\n}\n.gwd-jd-promo-coupons {\n display: inline-block;\n position: absolute;\n top: 0;\n left: 0;\n height: 20px;\n overflow: hidden;\n border-bottom: 1px solid transparent;\n border-top: 1px solid transparent;\n}\n.gwd-jd-promo-coupons a {\n display: block;\n width: 150px;\n height: 20px;\n line-height: 20px;\n text-align: center;\n font-size: 12px;\n color: #999999;\n border-bottom: 1px solid transparent;\n border-left: 1px solid transparent;\n border-right: 1px solid transparent;\n text-decoration: underline;\n white-space: nowrap;\n}\n.gwd-jd-promo-coupons a:hover {\n background: #ededed;\n color: #ee2f36;\n}\n.gwd-jd-promo-coupons a:first-of-type {\n color: #ee2f36;\n}\n.gwd-jd-promo-coupons a:first-of-type img {\n transform: rotate(90deg);\n margin-top: -3px;\n margin-left: 2px;\n}\n.gwd-jd-promo-coupons:hover {\n height: unset;\n z-index: 9;\n border-bottom: 1px solid #e3e3e3;\n border-top: 1px solid #e3e3e3;\n background: #ffffff;\n}\n.gwd-jd-promo-coupons:hover a {\n border-bottom: 1px solid #e3e3e3;\n border-left: 1px solid #e3e3e3;\n border-right: 1px solid #e3e3e3;\n text-decoration: none;\n}\n.gwd-jd-promo-coupons:hover a img {\n transform: rotate(-90deg);\n margin-top: 0px;\n}\n.lh:hover {\n overflow: visible;\n}\n", ""]); // exports /***/ }), /***/ "10bcddd0827eacb5d2f5": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "gwd-member-coupon-top gwd-member-coupon", on: { mouseenter: _vm.over } }, [ _c("span", { staticStyle: { color: "white", "margin-left": "5px" } }, [ _vm._v("当前商品可领会员券") ]), _vm._v(" "), _c( "span", { staticStyle: { color: "white", "margin-left": "9px", "margin-right": "9px" } }, [_vm._v("领取")] ), _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(" "), _vm._m(0) ]) : _vm._e() ] ) } var staticRenderFns = [ function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticStyle: { "margin-top": "4px", "text-align": "center" } }, [ _c( "span", { staticStyle: { "font-weight": "bold", color: "#ff6132", "font-size": "14px" } }, [_vm._v("手淘扫码")] ), _vm._v(" "), _c( "span", { staticStyle: { "margin-left": "4px", color: "#333333", "font-size": "12px" } }, [_vm._v("联系客服领取")] ) ] ) } ] 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( "div", { staticClass: "bjgou-subsidy-bar bjgou-component", on: { mouseover: _vm.over } }, [ _c( "span", { staticClass: "bjg-coupon-white", staticStyle: { "font-size": "18px", "font-weight": "bold", "margin-left": "75px", "margin-top": "6px" } }, [_vm._v("当前商品可领会员券")] ), _vm._v(" "), _c("div", { staticStyle: { flex: "1" } }), _vm._v(" "), _c( "span", { staticClass: "bjg-coupon-white", staticStyle: { "font-size": "18px", "font-weight": "bold", "margin-right": "22px" } }, [_vm._v("立即领取")] ), _vm._v(" "), _vm.qr ? _c("div", { staticClass: "qrcode" }, [ _c("img", { staticStyle: { "margin-top": "7px", width: "120px", height: "120px" }, attrs: { src: _vm.qr, alt: "" } }), _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( "div", { staticStyle: { "margin-top": "4px", "text-align": "center" } }, [ _c( "span", { staticStyle: { "font-weight": "bold", color: "#ff6132", "font-size": "14px" } }, [_vm._v("手淘扫码")] ), _vm._v(" "), _c( "span", { staticStyle: { "margin-left": "4px", color: "#333333", "font-size": "12px" } }, [_vm._v("联系客服领取")] ) ] ) } ] render._withStripped = true /***/ }), /***/ "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([email protected]) * @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"))) /***/ }), /***/ "1218bc0e0168071cebb8": /***/ (function(module, exports) { module.exports = "<div class=\"gwd_promocode bjd_btn_box\">\n <a href=\"{{c_server}}\" target=\"_blank\" title=\"购物党\"></a>\n <span class=\"bjd_addcart\">如有优惠码,此处添加优惠码</span>\n <span class=\"bjd_close\"></span>\n</div>\n<style type=\"text/css\">\n .gwd_promocode {\n width: 293px;\n height: 36px;\n background-color: #fff;\n color: #494b4d;\n position: absolute;\n left: -69px;\n top: 45px;\n text-align: center;\n line-height: 35px;\n border-radius: 28px;\n font-size: 14px;\n border: 1px solid #47befe;\n font-family: 'Microsoft Yahei';\n }\n .gwd_promocode a, .gwd_promocode span {\n float: left;\n margin-left: 19px;\n }\n .gwd_promocode .bjd_addcart {\n cursor: text;\n }\n .gwd_promocode a {\n background: url('{{s_server}}/images/extensions/haitao_siteicon.png') 0px 6px no-repeat;\n background-size: 24px 22px;\n height: 35px;\n width: 26px;\n }\n .bjd_close {\n background: url('{{s_server}}/images/extensions/haitao_closeicon.png') 0px 0px no-repeat;\n width: 20px;\n height: 20px;\n margin-top: 12px;\n cursor: pointer;\n background-size: 12px 12px;\n }\n .gwd_promocode:before{\n border: 10px solid transparent;\n border-bottom-color: #47befe;\n content: \"\";\n position: absolute;\n left: 149px;\n width: 0px;\n height: 0px;\n top: -21px;\n }\n .gwd_promocode:after{\n border: 10px solid transparent;\n border-bottom-color: #fff;\n content: \"\";\n position: absolute;\n left: 149px;\n width: 0px;\n height: 0px;\n top: -20px;\n }\n .pmts-redeem-claim-code-form {\n position: relative;\n }\n</style>" /***/ }), /***/ "12353e6c503e80823ba4": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_template_id_b671e2be_scoped_true___ = __webpack_require__("23aafd2ad4b6e88819f1"); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_template_id_b671e2be_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_template_id_b671e2be_scoped_true___["b"]; }); /***/ }), /***/ "12aab5fd482f5627ccd1": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, $, Vue) { var request = __webpack_require__("91f250ebeb8d5987491c"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var CommonCouponBarMini = __webpack_require__("bf749102803a6e48eddc")['default']; module.exports = { init: function init(hasCoupon) { var config, onlyCenter, _ret; return regeneratorRuntime.async(function init$(context$1$0) { var _this = this; while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!window.gwdActivity) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: window.gwdActivity = true; config = undefined; if (!G.allowBackgroundRequest) { context$1$0.next = 10; break; } context$1$0.next = 7; return regeneratorRuntime.awrap(request.get('https://cdn.bijiago.com/js/configs/activity-online.json')); case 7: config = context$1$0.sent; context$1$0.next = 13; break; case 10: context$1$0.next = 12; return regeneratorRuntime.awrap(request.requestXHR('https://cdn.bijiago.com/js/configs/activity-online.json', false)); case 12: config = context$1$0.sent; case 13: onlyCenter = false; if (!(config.aliActivity && G.aliSite)) { context$1$0.next = 20; break; } context$1$0.next = 17; return regeneratorRuntime.awrap((function callee$1$0() { var c, shopCoupon, memberCoupon, giftMoney, t, s, e, use, link, html, html2; return regeneratorRuntime.async(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: c = config.aliActivity; if (c.disableWhenHasCoupon && hasCoupon) { onlyCenter = true; } context$2$0.next = 4; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('shopCouponGot')); case 4: shopCoupon = context$2$0.sent; if (shopCoupon) { onlyCenter = true; } if (!(!hasCoupon && !shopCoupon)) { context$2$0.next = 13; break; } context$2$0.next = 9; return regeneratorRuntime.awrap(__webpack_require__("5c2efa94913e2ffc627b").init()); case 9: memberCoupon = context$2$0.sent; console.log(memberCoupon); if (!memberCoupon) { context$2$0.next = 13; break; } return context$2$0.abrupt('return', { v: undefined }); case 13: if (!(!hasCoupon && !shopCoupon)) { context$2$0.next = 20; break; } context$2$0.next = 16; return regeneratorRuntime.awrap(__webpack_require__("fe179e544c8fafeea4a2").init()); case 16: giftMoney = context$2$0.sent; console.log('giftmoney', giftMoney); if (!giftMoney) { context$2$0.next = 20; break; } return context$2$0.abrupt('return', { v: undefined }); case 20: t = new Date(); s = new Date(c.start); e = new Date(c.end); use = 'link'; if (G.from_device === 'chrome') { use = 'qr'; // use = 'link' } //let link = 'https://tb.gwdang.com/static_page/618/618Scan.html' link = c.link; if (t < e && t > s) { if (!onlyCenter) { if ($('#gwd-space').outerWidth() >= 230) { html = template.compile(use === 'link' ? __webpack_require__("32e21676b7e7687a50e8") : __webpack_require__("f37a41a323a3e8d8897a"))({ img: c.top.img, qr: c.top.qr, link: link }); $('.gwd-topbar-left').append(html); setTimeout(function () { var topLogged = false; var topTmall = $('.gwd-top-tmall'); if (topTmall.length) { __webpack_require__("83271c7588396d2d5e59").log('顶部活动二维码', '曝光'); } topTmall.hover(function () { if (!topLogged) { topLogged = true; __webpack_require__("83271c7588396d2d5e59").log('顶部活动二维码', '悬浮'); } }); }, 0); } if (!hasCoupon && c.middle.text) { if (use === 'link') { new Vue({ el: '#gwd-coupon-placeholder', render: function render(h) { return h(CommonCouponBarMini, { props: { type: 'link', href: link, mainColor: '#ff6132', secondColor: '#ff7d38', text: c.middle.text, icon: 'https://cdn.bijiago.com/images/extensions/activity/[email protected]' } }); } }); } else { html2 = template.compile(__webpack_require__("5da7ab7bd297c0f5dff1"))({ qr: c.top.qr, text: c.middle.text, link: link }); $('#gwd-coupon-placeholder').replaceWith(html2); } } if (window.innerWidth - $('#bjd_bottom_detail').outerWidth() > 160) { (function () { // 购物党底部 var html = template.compile(use === 'link' ? __webpack_require__("bffd1ad7085454d93e70") : __webpack_require__("096940133ad1c1c2cd59"))({ img: c.bottom.img, qr: c.bottom.qr, extClass: 'rinfo-btn', link: link }); $('#bjd_bottom_detail .right-info .search-mod').after(html); var bottomLogged = false; setTimeout(function () { var bottomTmall = $('.gwd-bottom-tmall'); if (bottomTmall.length) { __webpack_require__("83271c7588396d2d5e59").log('底部活动二维码', '曝光'); } bottomTmall.hover(function () { if (!bottomLogged) { bottomLogged = true; __webpack_require__("83271c7588396d2d5e59").log('底部活动二维码', '悬浮'); } }); }, 0); })(); } } if ($('#mini-price-history') && c.center.text) { (function () { // 购物党中间 var html = template.compile(use === 'link' ? __webpack_require__("67e7ec3ad30622808c87") : __webpack_require__("1bdb575b0e1065a8ec36"))({ img: c.top.img, qr: c.top.qr, text: c.center.text, extClass: 'minibar-tab', qrText: c.qrText, link: link }); $('#mini_price_history').after(html); $('.minibar-tab').css('width', '128px'); $('.gwd-middle-tmall').css('width', '159px;'); var centerLogged = false; __webpack_require__("83271c7588396d2d5e59").log('中间活动二维码', '曝光'); setTimeout(function () { $('.gwd-middle-tmall').hover(function () { if (!centerLogged) { centerLogged = true; __webpack_require__("83271c7588396d2d5e59").log('中间活动二维码', '悬浮'); } }); $('.gwd-take').hover(function () { if (!centerLogged) { centerLogged = true; __webpack_require__("83271c7588396d2d5e59").log('中间活动二维码', '悬浮'); } }); }, 0); })(); } } case 27: case 'end': return context$2$0.stop(); } }, null, _this); })()); case 17: _ret = context$1$0.sent; if (!(typeof _ret === 'object')) { context$1$0.next = 20; break; } return context$1$0.abrupt('return', _ret.v); case 20: if (config.jdActivity && G.site === '360buy') { (function () { var c = config.jdActivity; var t = new Date(); if (t < new Date(c.end) && t > new Date(c.start)) { //$('#gwdang-banner-ad').remove() if (!hasCoupon) { // if ($('#gwd-space').outerWidth() >= 230) { // // 购物党顶部 // let html = `<a href="${c.top.link}" target="_blank"><img style="height: 32px" src="${c.top.img}"/></a>` // $('.gwd-topbar-left').append(html) // } if (c.center.textlong) { // 购物党中间 // let html = template.compile(require('raw-loader!activities/gwd-jd-middle.html'))({ // link: c.center.link, // text: c.center.textlong // }); // $('#gwd_minibar').after(html) new Vue({ el: '#gwd-coupon-placeholder', render: function render(h) { return h(CommonCouponBarMini, { props: { type: 'link', href: c.center.link, mainColor: '#ff3b5c', secondColor: '#ff809a', text: c.center.textlong, icon: 'https://cdn.bijiago.com/images/extensions/activity/[email protected]' } }); } }); } } if (window.innerWidth - $('#bjd_bottom_detail').outerWidth() > 160) { // 购物党底部 var html = '<a href="' + c.bottom.link + '" target="_blank" class="rinfo-btn" style="width: initial; margin-top: 8px; margin-left: 8px; margin-right: 8px"><img style="height: 48px" src="' + c.bottom.img + '"/></a>'; $('#bjd_bottom_detail .right-info .search-mod').after(html); } } })(); } case 21: case 'end': return context$1$0.stop(); } }, null, this); } }; // 购物党顶部 /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "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 /***/ }), /***/ "1366da12f7e36765c3a2": /***/ (function(module, exports) { module.exports = "<div class=\"gwd_creditinfo bjd_btn_box\">\n <p>信用卡识别</p>\n <span>单币信用卡:信用卡上只有银联标志;</span>\n <span>双币信用卡:信用卡上有<b>Vista</b>、<b>MasterCard</b>、<b>JCB</b>、</span>\n <span class=\"bjd_span_2\"><b>AmericanExpress</b>标志的,一般都是双币信用卡</span>\n <a href=\"{{c_server}}\" target=\"_blank\" title=\"购物党\" class=\"bjd_site_icon\"></a>\n <span class=\"bjd_close\"></span>\n</div>\n<style type=\"text/css\">\n .gwd_creditinfo {\n width: 454px;\n height: 140px;\n position: absolute;\n right: -469px;\n top: 30px;\n border-radius: 20px;\n background-color: #fff;\n border: 1px solid #47befe;\n font-family: 'Microsoft Yahei';\n }\n .amazon-jp .gwd_creditinfo {\n top: -60px;\n }\n .amazon-de .gwd_creditinfo {\n top: -75px;\n z-index: 999;\n }\n .gwd_creditinfo p {\n font-size: 16px;\n color: #3F4142;\n font-weight: bold;\n margin: 17px 0 16px 60px;\n }\n .gwd_creditinfo span {\n display: block;\n width: auto;\n font-size: 14px;\n color: #494b4d;\n line-height: 22px;\n padding-left: 32px;\n }\n .gwd_creditinfo .bjd_span_2 {\n padding-left: 118px;\n }\n .bjd_site_icon {\n background: url('{{s_server}}/images/extensions/haitao_siteicon2.png') 0px 0px no-repeat;\n background-size: 47px 45px;\n display: inline-block;\n width: 48px;\n height: 48px;\n position: absolute;\n top: -1px;\n left: 0px;\n border-top-left-radius: 20px;\n }\n .bjd_close {\n background: url('{{s_server}}/images/extensions/haitao_closeicon.png') 0px 0px no-repeat;\n width: 20px;\n height: 20px;\n margin-top: 12px;\n background-size: 12px 12px;\n cursor: pointer;\n }\n .gwd_creditinfo .bjd_close {\n position: absolute;\n right: 0px;\n top: 0px;\n }\n #identity-add-new-address #enterAddressFullNameContainer{\n position: relative;\n }\n</style>" /***/ }), /***/ "1529c418281de0d4e4b2": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { module.exports = function () { var match = navigator.userAgent.match(/(?:MSIE |Trident\/.*; rv:)(\d+)/); if (match) G['IE' + parseInt(match[1])] = true; if (navigator.userAgent.toLowerCase().indexOf('msie') > -1) return true; if (navigator.userAgent.toLowerCase().indexOf('edge') > -1) return true; return match ? parseInt(match[1]) : undefined; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "15f190fd9ef61a3cd23c": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, regeneratorRuntime, $) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _PromoHistoryNormalVue = __webpack_require__("69b83ab67396df893d0b"); var _PromoHistoryNormalVue2 = _interopRequireDefault(_PromoHistoryNormalVue); var _PromoHistorySpecialVue = __webpack_require__("820ada4eda60a4c0283e"); var _PromoHistorySpecialVue2 = _interopRequireDefault(_PromoHistorySpecialVue); var _PromoHistoryAppDownloadVue = __webpack_require__("5e0d66879d722b2ada2c"); var _PromoHistoryAppDownloadVue2 = _interopRequireDefault(_PromoHistoryAppDownloadVue); var _standardModuleUtil = __webpack_require__("d54879e983a83d07f093"); var _standardModuleUtil2 = _interopRequireDefault(_standardModuleUtil); var _commonGlobalCondition = __webpack_require__("9c38beef5ff283e15bd2"); var _commonGlobalCondition2 = _interopRequireDefault(_commonGlobalCondition); exports['default'] = { components: { Normal: _PromoHistoryNormalVue2['default'], Special: _PromoHistorySpecialVue2['default'], AppDownload: _PromoHistoryAppDownloadVue2['default'] }, props: ['promoHistory', 'showApp'], data: function data() { return { lineHeight: 200, left: -492, price: '', tip: '', ready: false, priceType: '', currentPromo: '', promoUrl: '', currency: '¥', isAliSite: G.aliSite, showingPromo: [], showingType: 'special' // special/normal }; }, methods: { syncHeight: function syncHeight() { var p; return regeneratorRuntime.async(function syncHeight$(context$1$0) { var _this = this; while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(_commonGlobalCondition2['default'].met('lastPointPos')); case 2: p = context$1$0.sent; _commonGlobalCondition2['default'].clear('lastPointPos'); this.$nextTick(function () { var lHeight = $('.max-min-priinfo').height(); if (lHeight < 64) lHeight = 64; var left = gwd_chart.axes[0].left; _this.left = -452 + left; _this.lineHeight = p.plotY + parseInt(lHeight) + 5; _this.price = p.y; if (_this.promoHistory.analysis) _this.tip = _this.promoHistory.analysis.tip; _this.priceType = p.series.name.indexOf('页面价') > -1 ? '到手价' : '凑单价'; var promos = []; _this.ready = true; if (_this.promoHistory.promoShow) { (function () { var lastPromo = _this.promoHistory.promoShow[0]; _this.currentPromo = lastPromo.msg.promotion ? lastPromo.msg.promotion + ';' : ''; if (lastPromo.msg.coupon) { _this.currentPromo += lastPromo.msg.coupon; } var type = '凑单价'; if (_this.promoHistory.store.length > 1 && _this.promoHistory.store[1].name === '到手价') { type = '到手价'; } promos = promos.concat(_this.promoHistory.promoShow.map(function (x) { x.type = type; return x; }).filter(function (x) { return x.time * 1000 >= _this.promoHistory.store[1].all_line_begin_time - 19 * 3600000; })); if (_standardModuleUtil2['default'].getTimeNumber(new Date(lastPromo.time * 1000), '2') !== _standardModuleUtil2['default'].getTimeNumber(new Date(), '2')) { _this.currentPromo = ''; } })(); } // if (this.promoHistory.nopuzzle_promo) { // promos = promos.concat(this.promoHistory.nopuzzle_promo.map(x => { // x.type = '页面价' // return x // })) // } _this.setShowingPromo(promos); _this.currentPromo = _this.currentPromo.replace(/;/g, ';'); }); case 5: case 'end': return context$1$0.stop(); } }, null, this); }, getTimePrice: function getTimePrice(time) { var current = this.promoHistory.store[0].all_line_begin_time, idx = 0; while (_standardModuleUtil2['default'].getTimeNumber(current, '2') !== time) { current += 86400000; idx++; if (idx > this.promoHistory.store[0].all_line.length - 1) return null; } return { price: this.promoHistory.store[0].all_line[idx], time: current }; }, urlClick: function urlClick() { window.open(this.promoUrl); }, setShowingPromo: function setShowingPromo(promos) { var obj = {}; promos.map(function (x) { var t = new Date(x.time * 1000); return { pagePrice: '', price: x.price / 100, oriPrice: x.ori_price / 100, promo: x.msg.promotion, coupon: x.msg.coupon, dateStr: _standardModuleUtil2['default'].getTimeNumber(t, '2'), time: x.time * 1000, type: x.isDSJ ? '到手价' : '凑单价', isDSJ: x.isDSJ }; }).forEach(function (x) { if (obj[x.dateStr]) { if (obj[x.dateStr].price > x.price) { obj[x.dateStr] = x; } } else { obj[x.dateStr] = x; } }); var key618 = undefined, key1111 = undefined; this.promoHistory.analysis.promo_days.forEach(function (item) { if (item.show === '618价格') { key618 = item.date.substr(5); } if (item.show === '双11价格') { key1111 = item.date.substr(5); } }); var pri618 = this.getTimePrice('06-18'); var pri1111 = this.getTimePrice('11-11'); if (obj[key1111] || obj[key618] || pri618 || pri1111) { if (obj[key1111]) { obj[key1111].type = '凑单价'; obj[key1111].date = new Date(obj[key1111].time).getFullYear() + '-' + key1111; obj[key1111].dateStr = '11-11'; this.showingPromo.push(obj[key1111]); } if (obj[key618]) { obj[key618].type = '凑单价'; obj[key618].date = new Date(obj[key618].time).getFullYear() + '-' + key618; obj[key618].dateStr = '06-18'; this.showingPromo.push(obj[key618]); } if (pri618 && !obj[key618]) { this.showingPromo.push({ pagePrice: '', price: pri618.price, dateStr: '06-18', time: pri618.time, date: new Date(pri618.time).getFullYear() + '-' + '06-18', type: '到手价' }); } if (pri1111 && !obj[key1111]) { this.showingPromo.push({ pagePrice: '', price: pri1111.price, dateStr: '11-11', time: pri1111.time, date: new Date(pri1111.time).getFullYear() + '-' + '11-11', type: '到手价' }); } this.showingPromo.sort(function (a, b) { return b.time - a.time; }); this.showingType = 'special'; return; } this.showingType = 'normal'; var todayPoint = obj[_standardModuleUtil2['default'].getTimeNumber(new Date(), '2')]; var r = Object.keys(obj).map(function (k) { return obj[k]; }).filter(function (x) { return x.dateStr !== _standardModuleUtil2['default'].getTimeNumber(new Date(), '2'); }); r.sort(function (a, b) { return b.time - a.time; }); var nearest = r[0]; var lowest = r[0]; r.forEach(function (x) { if (x.price < lowest.price) { lowest = x; } }); if (todayPoint && todayPoint.price <= lowest.price) { r = r.filter(function (x) { return x.dateStr !== _standardModuleUtil2['default'].getTimeNumber(new Date(), '2'); }); if (r.length) { r[0].badge = '最近'; this.showingPromo = [r[0]]; if (r.length > 1) { this.showingPromo.push(r[1]); } } return; } if (!nearest) return; if (nearest.time !== lowest.time) { nearest.badge = '最近'; lowest.badge = '最低'; this.showingPromo = [nearest, lowest]; } else { lowest.badge = '最低'; var secondLowest = r.filter(function (x) { return x.time !== lowest.time; }).reverse()[0]; this.showingPromo = [lowest, secondLowest]; } } }, computed: { strokeColor: function strokeColor() { return this.priceType === '到手价' ? '#5acffb' : '#ffc06d'; }, textColor: function textColor() { return this.priceType === '到手价' ? '#5acffb' : '#fba500'; }, width: function width() { if (this.showingPromo && this.showingPromo.length > 0) { $('#mini_price_history_detail').css('width', '690px'); return 690; } else { if (this.promoHistory.analysis) { $('#mini_price_history_detail').css('width', '640px'); } return 640; } } }, mounted: function mounted() { var _this2 = this; this.syncHeight(); _commonGlobalCondition2['default'].met('promoUrl').then(function (res) { _this2.promoUrl = res; }); } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "1611f279bc42ac74950b": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-pdd-act-bottom-qr[data-v-984546bc] {\n display: inline-block;\n font-family: \"Microsoft YaHei\";\n margin-top: 3px;\n box-sizing: border-box !important;\n}\n.gwd-pdd-act-bottom-qr .top[data-v-984546bc] {\n position: relative;\n width: 150px;\n height: 28px;\n background: #f40209;\n display: flex;\n align-items: center;\n cursor: pointer;\n}\n.gwd-pdd-act-bottom-qr .top .bold[data-v-984546bc] {\n font-size: 12px;\n height: 12px;\n line-height: 11px;\n color: white;\n font-weight: bold;\n}\n.gwd-pdd-act-bottom-qr .top .circle[data-v-984546bc] {\n width: 22px;\n height: 22px;\n border-radius: 11px;\n display: inline-block;\n margin-right: 4px;\n line-height: 22px;\n font-size: 12px;\n color: white;\n text-align: center;\n font-weight: bold;\n background: #FFC034;\n}\n.gwd-pdd-act-bottom-qr .top .qr-area[data-v-984546bc] {\n position: absolute;\n left: 0;\n width: 150px;\n box-sizing: border-box !important;\n top: 28px;\n height: 158px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #FFF7F6;\n border: 1px solid #EF2C29;\n}\n.gwd-pdd-act-bottom-qr .top .qr-area img[data-v-984546bc] {\n width: 120px;\n height: 120px;\n}\n.gwd-pdd-act-bottom-qr .top:hover .qr-area[data-v-984546bc] {\n display: flex!important;\n}\n.gwd-pdd-act-bottom-qr .top-2[data-v-984546bc] {\n width: 158px;\n background: url(" + __webpack_require__("f70922c524ca27f98c79") + ");\n background-size: cover;\n}\n", ""]); // exports /***/ }), /***/ "165a6a29b755ef153829": /***/ (function(module, exports, __webpack_require__) { "use strict"; function touchHandler(event) { if (event.target.tagName === 'INPUT') return; //if (!isMouseDown) return var touches = event.changedTouches, first = event, type = ""; switch (event.type) { case "mousedown": type = "touchstart";break; case "mousemove": type = "touchmove";break; case "mouseup": type = "touchend";break; default: return; } if (type === 'touchstart') { isMouseDown = true; } else if (type === 'touchend') { isMouseDown = false; } // initMouseEvent(type, canBubble, cancelable, view, clickCount, // screenX, screenY, clientX, clientY, ctrlKey, // altKey, shiftKey, metaKey, button, relatedTarget); // var simulatedEvent = document.createEvent("TouchEvent"); // simulatedEvent.initTouchEvent(type, true, true, window, 1, // first.screenX, first.screenY, // first.clientX, first.clientY, false, // false, false, false, 0/*left*/, null); // // first.target.dispatchEvent(simulatedEvent); if (type === 'touchmove' && !isMouseDown) return; sendTouchEvent(first.clientX, first.clientY, first.target, type); event.preventDefault(); } function sendTouchEvent(x, y, element, eventType) { var touchObj = new Touch({ identifier: Date.now(), target: element, clientX: x, clientY: y, radiusX: 2.5, radiusY: 2.5, rotationAngle: 10, force: 0.5 }); var touchEvent = new TouchEvent(eventType, { cancelable: true, bubbles: true, touches: [touchObj], targetTouches: [], changedTouches: [touchObj], shiftKey: true }); element.dispatchEvent(touchEvent); } var isMouseDown = false; function mouseDown() { isMouseDown = true; } function mouseUp() { isMouseDown = false; } function init() { document.addEventListener("mousedown", touchHandler, true); document.addEventListener("mousemove", touchHandler, true); document.addEventListener("mouseup", touchHandler, true); } module.exports.init = init; /***/ }), /***/ "17bd0a8188e0c1f7d7ba": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__PromotionPlan_vue_vue_type_template_id_24d41b24_scoped_true___ = __webpack_require__("f07a854b46071e85aa67"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__PromotionPlan_vue_vue_type_script_lang_js___ = __webpack_require__("314ddba7e03fe1fca042"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__PromotionPlan_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__PromotionPlan_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__PromotionPlan_vue_vue_type_style_index_0_id_24d41b24_lang_less_scoped_true___ = __webpack_require__("3c102bca554f27879709"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__PromotionPlan_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__PromotionPlan_vue_vue_type_template_id_24d41b24_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__PromotionPlan_vue_vue_type_template_id_24d41b24_scoped_true___["b" /* staticRenderFns */], false, null, "24d41b24", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('24d41b24')) { api.createRecord('24d41b24', component.options) } else { api.reload('24d41b24', component.options) } module.hot.accept("./PromotionPlan.vue?vue&type=template&id=24d41b24&scoped=true&", function () { api.rerender('24d41b24', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/PromotionPlan.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "18e29106b21ecba1b1f4": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_AppDownload_vue_vue_type_style_index_0_id_4c125ee6_lang_less_scoped_true___ = __webpack_require__("afcfbe92108085df7c1c"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_AppDownload_vue_vue_type_style_index_0_id_4c125ee6_lang_less_scoped_true____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_AppDownload_vue_vue_type_style_index_0_id_4c125ee6_lang_less_scoped_true___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_AppDownload_vue_vue_type_style_index_0_id_4c125ee6_lang_less_scoped_true____default.a); /***/ }), /***/ "18e8e3ed308157c61508": /***/ (function(module, exports) { module.exports = "<div class=\"gwd_shipping1 bjd_btn_box\">\n <p>温馨提示</p>\n <span>如选择直邮,请直接填写国内收货地址;</span>\n <span>如使用转运,请在此页面填写转运公司地址;</span>\n <a href=\"{{c_server}}/app/haitao_intr\" target=\"_blank\" class=\"trans_a\">转运攻略</a>\n <a href=\"{{c_server}}\" target=\"_blank\" title=\"购物党\" class=\"bjd_site_icon\"></a>\n <span class=\"bjd_close\"></span>\n</div>\n<style type=\"text/css\">\n .gwd_shipping1 {\n width: 340px;\n height: 160px;\n position: absolute;\n right: -365px;\n top: 87px;\n border-radius: 20px;\n background-color: #fff;\n border: 1px solid #47befe;\n font-family: 'Microsoft Yahei';\n }\n .amazon-de .gwd_shipping1 {\n top: 350px;\n }\n .gwd_shipping1 p {\n font-size: 16px;\n color: #3F4142;\n font-weight: bold;\n margin: 17px 0 16px 60px;\n }\n .gwd_shipping1 span {\n display: block;\n width: auto;\n font-size: 14px;\n color: #494b4d;\n line-height: 22px;\n padding-left: 32px;\n }\n .bjd_site_icon {\n background: url('{{s_server}}/images/extensions/haitao_siteicon2.png') 0px 0px no-repeat;\n background-size: 47px 45px;\n display: inline-block;\n width: 48px;\n height: 48px;\n position: absolute;\n top: -1px;\n left: 0px;\n border-top-left-radius: 20px;\n }\n .gwd_shipping1 .trans_a{\n float: left;\n margin: 17px 32px;\n color: #40ACE6;\n }\n .bjd_close {\n background: url('{{s_server}}/images/extensions/haitao_closeicon.png') 0px 0px no-repeat;\n width: 20px;\n height: 20px;\n margin-top: 12px;\n background-size: 12px 12px;\n cursor: pointer;\n }\n .gwd_shipping1 .bjd_close {\n position: absolute;\n right: 0px;\n top: 0px;\n }\n #identity-add-new-address #enterAddressFullNameContainer{\n position: relative;\n }\n</style>" /***/ }), /***/ "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"]; }); /***/ }), /***/ "19d783aa5f74a9e4ac9c": /***/ (function(module, exports) { module.exports = "<div class=\"bjgou-component dsj-content bjg-minibar-visible-component\" style=\"display: flex; clear: both;\">\n <em class=\"setting-bg\"></em>\n <span class=\"dsj-pri-info\">\n <span class=\"dsj-sp1\">{{if lang == 'en'}}Promotion Price{{else}}到手价{{/if}}:</span>\n <span class=\"dsj-sp2\">¥{{pri}}</span>\n {{if tle}}\n <span class=\"dsj-sp3\">({{tle}})</span>\n {{/if}}\n </span>\n <span class=\"dsj-promo-link\" style=\"flex: 1\">\n {{=desc}}\n <div id=\"bjg-pp\" style=\"position: absolute\"></div>\n <div id=\"bjg-pp-hoverhelper\"></div>\n </span>\n <span class=\"dsj-remind-icon setting-bg\"></span>\n <div class=\"dsj-content-detail\">{{if lang == 'en'}}Promotion price is the theoretical price after perfect promotions combined and coupons,not the actual price you paid.{{else}}到手价指促销活动完美凑单和使用优惠券后的理论到手价,不代表您的实际支付价格。{{/if}}</div>\n <style type=\"text/css\">\n #bjg-pp-hoverhelper {\n position: absolute;\n top: 34px;\n bottom: -6px;\n left: 0;\n right: 0;\n }\n\n .bjgou-component.dsj-content {\n border: 1px solid transparent;\n margin-top: 2px;\n }\n\n .bjgou-component.dsj-content:hover {\n border: 1px solid #e6e9eb;\n background: white;\n }\n\n .dsj-content>em {\n float: left;\n width:16px;\n height:16px;\n margin: 9px 10px 9px 12px;\n background-position: -251px -111px;\n }\n .dsj-content {\n width:460px;\n height:34px;\n position: relative;\n line-height: 34px;\n border: 1px solid #e6e9eb;\n border-top: none;\n background: transparent;\n }\n .dsj-pri-info {\n margin-right: 10px;\n }\n .dsj-content * {\n font-family: 'Microsoft YaHei';\n }\n .dsj-pri-info span {\n line-height: 34px;\n height: 34px;\n }\n .dsj-sp1, .dsj-sp2 {\n color: #E4393C;\n font-size: 13px;\n height: 17px;\n width: auto;\n font-weight: bold;\n }\n .dsj-sp2 {\n margin-right: 10px;\n margin-left: 3px;\n }\n .dsj-sp3, .dsj-promo-link {\n font-size: 12px;\n color: #7D7E80;\n }\n .dsj-promo-link {\n width: 210px;\n height: 34px;\n line-height: 34px;\n overflow: hidden;\n text-decoration: none!important;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .dsj-promo-link:hover {\n cursor: text;\n }\n .dsj-content:hover .gwd-promo-plan {\n display: block;\n }\n .dsj-promo-link.islink:hover {\n cursor: pointer;\n color: #f30213;\n }\n .dsj-content .dsj-remind-icon {\n width:14px;\n height:14px;\n float: right;\n margin-right: 12px;\n margin-top: 10px;\n background-position: -272px -112px;\n }\n .dsj-content .dsj-content-detail {\n position: absolute;\n height: 73px;\n width: 132px;\n line-height: 18px;\n padding: 10px;\n text-align: left;\n color: #999;\n top: 31px;\n right: 3px;\n background: rgba(254,255,247,1);\n border: 1px solid #e5e5e5;\n z-index: 9999999;\n display: none;\n }\n .dsj-content .dsj-remind-icon:hover+.dsj-content-detail {\n display: block;\n }\n .dsj-content .dsj-content-detail:before {\n display: block;\n content: \"\";\n width: 0;\n height: 0;\n border-width: 0px 5px 5px;\n border-style: solid;\n border-color: transparent transparent #b4b4b4;\n position: absolute;\n top: -5px;\n left: 142px;\n margin-left: -10px;\n }\n .dsj-content .dsj-content-detail:after {\n display: block;\n content: \"\";\n width: 0;\n height: 0;\n border-width: 0 5px 5px;\n border-style: solid;\n border-color: transparent transparent #fff;\n position: absolute;\n top: -4px;\n left: 132px;\n }\n </style>\n <style>\n .bjgou-component .setting-bg {\n background: url(\"https://cdn.bijiago.com/images/extensions/bijiago/[email protected]\");\n background-size: contain;\n }\n\n .bjgou-component .dsj-sp1, .bjgou-component .dsj-sp2 {\n color: #ff6132;\n font-size: 13px;\n font-weight: bold;\n }\n\n .bjgou-component .dsj-sp3, .bjgou-component .dsj-promo-link {\n color: #8c847b;\n font-size: 12px;\n }\n\n .bjgou-component .dsj-remind-icon {\n background: url(\"https://cdn.bijiago.com/images/extensions/bijiago/[email protected]\");\n background-size: contain;\n background-position: initial!important;\n }\n </style>\n {{if lang == 'en'}}\n <style>\n .dsj-content .dsj-content-detail {\n height: 113px;\n }\n </style>\n {{/if}}\n</div>" /***/ }), /***/ "1a0cda2f74042332262b": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__JdRankList_vue_vue_type_template_id_a48d90ba_scoped_true___ = __webpack_require__("fc02c8246c40af764545"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__JdRankList_vue_vue_type_script_lang_js___ = __webpack_require__("93201dafc10fe2ec927e"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__JdRankList_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__JdRankList_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__JdRankList_vue_vue_type_style_index_0_id_a48d90ba_scoped_true_lang_less___ = __webpack_require__("0e53a0c44eeffdc5af61"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__JdRankList_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__JdRankList_vue_vue_type_template_id_a48d90ba_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__JdRankList_vue_vue_type_template_id_a48d90ba_scoped_true___["b" /* staticRenderFns */], false, null, "a48d90ba", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('a48d90ba')) { api.createRecord('a48d90ba', component.options) } else { api.reload('a48d90ba', component.options) } module.hot.accept("./JdRankList.vue?vue&type=template&id=a48d90ba&scoped=true&", function () { api.rerender('a48d90ba', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/JdRankList.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "1b62f754a85a57168a27": /***/ (function(module, exports, __webpack_require__) { "use strict"; var browser = { 'url': '', 'utype': '' }; var chromeType = navigator.userAgent.toLowerCase(); module.exports.getBrowser = function () { if ("ActiveXObject" in window) { //mozilla/5.0 (compatible; msie 10.0; windows nt 6.1; wow64; trident/6.0; slcc2; .net clr 2.0.50727; .net clr 3.5.30729; .net clr 3.0.30729; .net4.0c; infopath.3; .net4.0e) browser.utype = "ie"; browser.utitle = "IE"; browser.background = "-401px -81px"; } else if (chromeType.indexOf('firefox') > -1) { //mozilla/5.0 (windows nt 6.1; wow64; rv:42.0) gecko/20100101 firefox/42.0 browser.utype = "firefox"; browser.utitle = "火狐"; browser.background = "-401px -44px"; } else if (chromeType.indexOf('opera') > -1 || chromeType.indexOf('opr') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/46.0.2490.86 safari/537.36 opr/33.0.1990.115 browser.utype = "opera"; browser.utitle = "Opera"; browser.background = "-2px -120px"; } else if (chromeType.indexOf('safari') > -1 && chromeType.indexOf('chrome') == -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/534.57.2 (khtml, like gecko) version/5.1.7 safari/534.57.2 browser.utype = "safari"; browser.utitle = "Safari"; browser.background = "-301px -44px"; } else if (chromeType.indexOf('chrome') > -1) { var check360 = checkChromeWeight(); if (chromeType.indexOf('qqbrowser') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/45.0.2454.87 safari/537.36 qqbrowser/9.2.5542.400 browser.utype = "qq"; browser.utitle = "QQ"; browser.background = "-104px -81px"; } else if (chromeType.indexOf('maxthon') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) maxthon/4.4.8.1000 chrome/30.0.1599.101 safari/537.36 browser.utype = "maxthon"; browser.utitle = "傲游"; browser.background = "-401px -4px"; } else if (chromeType.indexOf('bidubrowser') > -1) { //mozilla/5.0 (compatible; msie 10.0; windows nt 6.1; wow64; trident/6.0; bidubrowser 8.1) browser.utype = 'baidu'; browser.utitle = '百度'; browser.background = "-104px -120px"; } else if (chromeType.indexOf('ubrowser') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/44.0.2403.157 ubrowser/5.5.6743.207 safari/537.36 browser.utype = 'uc'; browser.utitle = "UC"; browser.background = "-2px -44px"; } else if (chromeType.indexOf('lbbrowser') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/42.0.2311.154 safari/537.36 lbbrowser browser.utype = 'liebao'; browser.utitle = "猎豹安全"; browser.background = "-301px -4px"; } else if (chromeType.indexOf('taobrowser') > -1) { //Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.11 TaoBrowser/3.5 Safari/536.11 browser.utype = 'taobao'; browser.utitle = "淘宝"; browser.background = "-104px -44px"; } else if (chromeType.indexOf('2345explorer') > -1) { //Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36 2345Explorer/6.4.0.10356 browser.utype = '2345'; browser.utitle = "2345王牌"; browser.background = "-301px -81px"; } else if (chromeType.indexOf('2345chrome') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/39.0.2171.99 safari/537.36 2345chrome v3.0.0.9739 browser.utype = '2345jiasu'; browser.utitle = "2345加速"; } else if (chromeType.indexOf('coolnovo') > -1) { //Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36 CoolNovo/2.0.9.20 browser.utype = 'fengshu'; browser.utitle = "枫树"; browser.background = "-2px -81px"; } else if (chromeType.indexOf('greenbrowser') > -1) { //Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; InfoPath.3; .NET4.0E; GreenBrowser) browser.utype = 'gb'; browser.utitle = "GB"; browser.background = "-203px -81px"; } else if (check360 === "Chrome") { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/46.0.2490.80 safari/537.36 browser.utype = 'chrome'; browser.utitle = 'Chrome'; browser.background = "-2px -4px"; } else if (check360 === "360SE") { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/31.0.1650.63 safari/537.36 browser.utype = '360se'; browser.utitle = '360安全'; browser.background = "-203px -4px"; } else if (check360 === "360EE") { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/45.0.2454.101 safari/537.36 browser.utype = '360se'; browser.utitle = '360极速 '; browser.background = "-104px -4px"; } else if (chromeType.indexOf('se') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/38.0.2125.122 safari/537.36 se 2.x metasr 1.0 browser.utype = 'sogou'; browser.utitle = "搜狗"; browser.background = "-401px -120px"; } else { browser.utype = 'chrome'; browser.utitle = 'Chromium内核'; } } else { browser.utype = 'chrome'; browser.utitle = '未知浏览器'; } return browser; }; var chrome_weight = { "result": "Chrome", "details": { "Chrome": 5, "Chromium": 0, "_360SE": 0, "_360EE": 0 }, "sorted": ["Chrome", "360SE", "360EE", "Chromium"], "exec": function exec(results) { var details = { "Chrome": 5, "Chromium": 0, "_360SE": 0, "_360EE": 0 }; var _ua = window.navigator.userAgent; if (/Chrome\/([\d.])+\sSafari\/([\d.])+$/.test(_ua)) { if (window.navigator.platform == "Win32") { if (!window.clientInformation.languages) { details._360SE += 8; } if (/zh/i.test(navigator.language)) { details._360SE += 3; details._360EE += 3; } if (window.clientInformation.languages) { var lang_len = window.clientInformation.languages.length; if (lang_len >= 3) { details.Chrome += 10; details.Chromium += 6; } else if (lang_len == 2) { details.Chrome += 3; details.Chromium += 6; details._360EE += 6; } else if (lang_len == 1) { details.Chrome += 4; details.Chromium += 4; } } for (var i in window.navigator.plugins) { if (window.navigator.plugins[i].filename == "np-mswmp.dll") { details._360SE += 20; details._360EE += 20; } } if (Object.keys(window.chrome.webstore).length <= 1) { details._360SE += 7; } else if (Object.keys(window.chrome.webstore).length == 2) { details._360SE += 4; details.Chromium += 3; } if (window.navigator.plugins.length >= 30) { details._360EE += 7; details._360SE += 7; details.Chrome += 7; } else if (window.navigator.plugins.length < 30 && window.navigator.plugins.length > 10) { details._360EE += 3; details._360SE += 3; details.Chrome += 3; } else if (window.navigator.plugins.length <= 10) { details.Chromium += 6; } } else { details._360SE -= 50; details._360EE -= 50; if (/Linux/i.test(window.navigator.userAgent)) { details.Chromium += 5; } } var found = 0; var respdf = undefined; for (var i in window.navigator.plugins) { if (!!(respdf = /^(.+) PDF Viewer$/.exec(window.navigator.plugins[i].name))) { if (respdf[1] == "Chrome") { details.Chrome += 6; details._360SE += 6; found = 1; break; } if (respdf[1] == "Chromium") { details.Chromium += 10; details._360EE += 6; found = 1; break; } } } if (!found) { details.Chromium += 9; } } var chrome_result = new Object(); chrome_result['Chrome'] = details.Chrome; chrome_result['Chromium'] = details.Chromium; chrome_result['360SE'] = details._360SE; chrome_result['360EE'] = details._360EE; var sortable = []; for (var value in chrome_result) { sortable.push([value, chrome_result[value]]); }sortable.sort(function (a, b) { return b[1] - a[1]; }); this.sorted = sortable; this.details = details; this.result = sortable[0][0]; if (results == "result") { return sortable[0][0]; } else if (results == "details") { return chrome_result; } else if (results == "sorted") { return sortable; } } }; var checkChromeWeight = function checkChromeWeight() { var _ua = window.navigator.userAgent; try { chrome_weight.exec(); if (/Chrome\/([\d.])+\sSafari\/([\d.])+$/.test(_ua)) { return chrome_weight.result; } else {} } catch (e) { return; } }; module.exports.getChromeVersion = function () { var raw = navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./); return raw ? parseInt(raw[2], 10) : false; }; /***/ }), /***/ "1b6e543795a8607b10bc": /***/ (function(module, exports) { module.exports = "<div class=\"dsj-content\" style=\"display: flex; flex-direction: row; position: relative\">\n <em class=\"setting-bg\"></em>\n <span class=\"dsj-promo-link\" >\n <span class=\"dsj-pri-info\">\n <span class=\"dsj-sp1\">到手价:</span>\n <span class=\"dsj-sp2\">¥{{pri}}</span>\n {{if tle}}\n <span class=\"dsj-sp3\">({{tle}})</span>\n {{/if}}\n </span>\n <span class=\"dsj-text\">{{=desc}}</span><img class=\"gwd-arrow\" src=\"https://cdn.gwdang.com/images/extensions/[email protected]\" alt=\"\" style=\"margin-left: 6px; width: 9px; height: 6px;\">\n <div id=\"gwd-pp\" style=\"position: absolute\"></div>\n <div id=\"gwd-pp-hoverhelper\"></div>\n </span>\n <span class=\"dsj-remind-icon setting-bg\"></span>\n <div class=\"dsj-content-detail\">到手价指促销活动完美凑单和使用优惠券后的理论到手价,不代表您的实际支付价格。</div>\n <style type=\"text/css\">\n #gwd-pp-hoverhelper {\n position: absolute;\n top: 34px;\n bottom: -6px;\n left: 0;\n right: 0;\n }\n\n .dsj-content>em {\n float: left;\n width:16px;\n height:16px;\n margin: 9px 10px 9px 12px;\n background-position: -251px -111px;\n }\n .dsj-text {\n max-width: 240px;\n display: inline-block;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .dsj-content {\n width:460px;\n height:34px;\n position: relative;\n line-height: 34px;\n background-color: #fff;\n border: 1px solid #e6e9eb;\n border-top: none;\n }\n .dsj-pri-info {\n margin-right: 10px;\n }\n .dsj-content * {\n font-family: 'Microsoft YaHei';\n }\n .dsj-pri-info span {\n line-height: 34px;\n height: 34px;\n }\n .dsj-sp1, .dsj-sp2 {\n color: #E4393C;\n font-size: 13px;\n height: 17px;\n width: auto;\n font-weight: bold;\n }\n .dsj-sp2 {\n margin-right: 10px;\n margin-left: 3px;\n }\n .dsj-sp3, .dsj-promo-link {\n font-size: 12px;\n color: #7D7E80;\n }\n .dsj-promo-link {\n /*width: 210px;*/\n flex: 1;\n height: 34px;\n line-height: 34px;\n overflow: hidden;\n text-decoration: none!important;\n text-overflow: ellipsis;\n white-space: nowrap;\n display: flex;\n align-items: center;\n }\n .dsj-promo-link:hover {\n cursor: text;\n }\n .dsj-promo-link.islink:hover {\n cursor: pointer;\n color: #f30213;\n }\n .dsj-content .dsj-remind-icon {\n width:14px;\n height:14px;\n float: right;\n margin-right: 12px;\n margin-top: 10px;\n background-position: -272px -112px;\n }\n .dsj-content .dsj-content-detail {\n position: absolute;\n height: 73px;\n width: 132px;\n line-height: 18px;\n padding: 10px;\n text-align: left;\n color: #999;\n top: 31px;\n right: 3px;\n background: rgba(254,255,247,1);\n border: 1px solid #e5e5e5;\n z-index: 9999999;\n display: none;\n }\n .dsj-content .dsj-remind-icon:hover+.dsj-content-detail {\n display: block;\n }\n .dsj-content .dsj-content-detail:before {\n display: block;\n content: \"\";\n width: 0;\n height: 0;\n border-width: 0px 5px 5px;\n border-style: solid;\n border-color: transparent transparent #b4b4b4;\n position: absolute;\n top: -5px;\n left: 142px;\n margin-left: -10px;\n }\n .dsj-content .dsj-content-detail:after {\n display: block;\n content: \"\";\n width: 0;\n height: 0;\n border-width: 0 5px 5px;\n border-style: solid;\n border-color: transparent transparent #fff;\n position: absolute;\n top: -4px;\n left: 132px;\n }\n .dsj-promo-link:hover .gwd-promo-plan {\n display: block;\n }\n\n .dsj-promo-link:hover .gwd-arrow {\n transform: rotate(180deg);\n }\n </style>\n</div>" /***/ }), /***/ "1b7cd483fef8d06be5bd": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_script_lang_js___ = __webpack_require__("6da42464ccd75a83a065"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "1bdb575b0e1065a8ec36": /***/ (function(module, exports) { module.exports = "<div style=\"display: inline-flex; position: relative; vertical-align: middle;\" class=\"gwd-middle-tmall {{extClass}}\">\n <img src=\"https://cdn.bijiago.com/images/extensions/activity/tmall-redpack-middle.png\" 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'\">{{ text }}</span>\n <div class=\"gwd-qr-act\">\n <img class=\"gwd-act-qr-img\" loading=\"lazy\" src=\"{{ qr }}\" 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\">{{ qrText }}</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 }\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>" /***/ }), /***/ "1c640a99db9f6f8a16c2": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var b2cCompare = __webpack_require__("c912948d535762b7172f"); var tbCompare2 = __webpack_require__("a8d04aabebd76e8bb3f7"); var amazonGlobal = __webpack_require__("b222cbd907f0b4aea97f"); var calWidth = __webpack_require__("54be372a53153922dc13"); var utils = __webpack_require__("d54879e983a83d07f093"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var runDp = {}; var moduleControl = function moduleControl(id) { log('track:' + id); switch (id) { case 'b2c_compare': b2cCompare.renderTopDetail(); break; case 'tb_compare': tbCompare2.renderTopDetail2('taobao'); break; case 'tm_compare': tbCompare2.renderTopDetail2('tmall'); break; case 'amazon_compare': amazonGlobal.renderTopDetail('tmall'); break; } }; var checkImage = function checkImage(dom, src) { var image = new Image(); image.onload = function () { $(dom).attr('src', src); }; image.onerror = function () { $(dom).attr('src', G.noImg); }; image.src = src; }; var turnPage = function turnPage(type, dom, id) { var widthObj = calWidth.init(); var list = dom.find('.all-products li'); var totalP = Number(dom.find('.page-num').text()); var curentP = Number(dom.find('.current-page').text()); var sNum = widthObj.b2cShowListNum; if (id.indexOf('b2c') === -1) { sNum = widthObj.showListNum; } list.hide(); if (type === 1) { if (curentP === totalP) curentP = 0; module.exports.loadImg(sNum * curentP, sNum * (curentP + 1), dom.find('.all-products li img')); for (var i = sNum * curentP; i < sNum * (curentP + 1); i++) { list.eq(i).show(); } curentP++; } else { if (curentP === 1) curentP = totalP + 1; module.exports.loadImg(sNum * (curentP - 2), sNum * (curentP - 1), dom.find('.all-products li img')); for (var i = sNum * (curentP - 2); i < sNum * (curentP - 1); i++) { list.eq(i).show(); } curentP--; } dom.find('.current-page').text(curentP); }; module.exports.loadImg = function (start, end, dom) { for (var i = start; i < end; i++) { var itemimg = $(dom).eq(i)[0]; if (!itemimg) return; var src = itemimg.getAttribute('data-original'); var defaultsrc = itemimg.src; if (src !== defaultsrc) checkImage(itemimg, src); } }; var autoFixWidth = function autoFixWidth() { var reset = arguments.length <= 0 || arguments[0] === undefined ? true : arguments[0]; var barW = $(window).width(); if (reset) { $('.gwd-hidden').removeClass('gwd-hidden'); } var feedW = $('#gwdang-feed-close').outerWidth(); var history = $('#gwd_history').outerWidth(); var searchW = $('.search-mod').outerWidth(); var lowW = $('#gwd_lowpri').outerWidth(); var leftW = $('.gwd-topbar-left').outerWidth(); var logoW = $('.gwd-topbar-logo').outerWidth(); var promoW = $('#promo_quan_btn').outerWidth(); var adWidth = $('#gwdang-banner-ad').outerWidth(); var adWidth2 = $('#gwdang-banner-ad2').outerWidth(); var shareBtn = $('.shareExt').outerWidth(); var suggestW = $('.gwdang-suggest').outerWidth(); //let freeW = barW - (feedW + history + searchW + lowW + leftW + logoW + adWidth + adWidth2 + shareBtn); //if (freeW < -1000) return; var freeW = $('#gwd-space').outerWidth(); if ($('#gwd-space').outerWidth() > 10) { return; } var list = ['.shareExt', '.gwdang-suggest', '.search-mod', '#gwd_history', '#gwdang-favor']; if (freeW < 5) { for (var i = 0; i < list.length; i++) { var toCheck = list[i]; if (!$(toCheck)[0]) continue; if (!$(toCheck).hasClass('gwd-hidden')) { $(toCheck).addClass('gwd-hidden'); setTimeout(function () { autoFixWidth(false); }, 0); return; } } } if (freeW < 50) { $('.shareExt').addClass('gwd-hidden'); freeW += searchW; } if (freeW < 50) { $('.gwdang-suggest').addClass('gwd-hidden'); freeW += searchW; } if (freeW < 50) { $('.search-mod').addClass('gwd-hidden'); freeW += searchW; } if (freeW < 50) { $('#gwd_history').addClass('gwd-hidden'); freeW += history; } if (freeW < 50) { $('#gwdang-banner-ad2').addClass('gwd-hidden'); freeW += adWidth2; } if (freeW < 50) { $('#gwd_lowpri').addClass('gwd-hidden'); $('.gwd-topbar-right').css('min-width', 'auto'); freeW += lowW; } if (freeW < 50) { $('#promo_quan_btn').addClass('gwd-hidden'); freeW += promoW; } if ($('.gwd-topbar-right').outerWidth() === 400) { $('.gwd-topbar-right').css('min-width', 'auto'); } }; module.exports.autoFixWidth = autoFixWidth; module.exports.listenBar = function (style) { var renderSetting = undefined; if (style === 'top') { $(G.dval).on('mouseenter', '.gwdang-tab', function () { var id = $(this).attr('id'); if (!runDp[id] && id !== 'gwdang-trend') { runDp[id] = true; moduleControl(id); } else { //$(this).find('.top-bar-detail').show() $(document).trigger('renderAgain'); } $(this).addClass('tab-hover'); }); $(G.dval).on('mouseleave', '.gwdang-tab', function () { var id = $(this).attr('id'); // 价格走势的展开框因为有特殊情况, 所以不在这里隐藏, 单独添加事件监控 if (id === 'gwdang-trend') return false; //$('.top-bar-detail').hide() $(this).removeClass('tab-hover'); }); $(G.dval).on('click', '.turn-page a', function () { var id = $(this).attr('id'); var dom = $(this).parent().parent(); if (id.match(/(?:b2c|taobao|tmall|fuzzy)-prev-page/)) { turnPage(-1, dom, id); } else if (id.match(/(?:b2c|taobao|tmall|fuzzy)-next-page/)) { turnPage(1, dom, id); } }); $('.gwd_close').on('click', function () { $('#gwdang_main').hide(); $('#gwdang-mini').show(); utils.setLocal('top_fold', '1'); utils.settings('set_p_fold', 'p_fold', '1'); $('body').css('padding-top', '0px').removeClass('gwd_unfold'); }); $('.gwd-topbar-logo').on('mouseenter', function () { if (!renderSetting) { __webpack_require__("aab666384cabf081c4de").insertSettingView(); renderSetting = true; } $("#gwd_setting_div").show(); }); $('.gwd-topbar-logo').on('mouseleave', function () { $("#gwd_setting_div").hide(); }); $('#gwd_fold_pointer').on('click', function () { $('#gwdang_main').show(); $('#gwdang-mini').hide(); utils.setLocal('top_fold', '0'); utils.settings('set_p_fold', 'p_fold', '0'); $('body').css('padding-top', '36px').addClass('gwd_unfold'); autoFixWidth(); }); } else { $('#bjd_bottom_detail').on('mouseenter', '.btm-tab', function () { $(this).find('.gwd-btn-detail').show(); }); $('#bjd_bottom_detail').on('mouseleave', '.btm-tab', function () { $(this).find('.gwd-btn-detail').hide(); }); } var resizeT = undefined; $(window).resize(function () { clearTimeout(resizeT); resizeT = setTimeout(function () { autoFixWidth(); }, 500); }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "1f2fc6d8a8045863aace": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { if ("ActiveXObject" in window) { G.browser = { engine: "trident", agent: "msie", ver: window.XMLHttpRequest ? document.querySelector ? document.addEventListener ? window.atob ? window.execScript ? 10 : 11 : 9 : 8 : 7 : 6 }; } // G.browser.version = G.browser.ver; // if (G.browser.agent === 'msie') // G.browser.msie = true; // G.IE6 = G.browser.agent == "msie" && G.browser.ver === 6; // G.IE7 = G.browser.agent == "msie" && G.browser.ver === 7; // G.IE8 = G.browser.agent == "msie" && G.browser.ver === 8; // G.IE9 = G.browser.agent == "msie" && G.browser.ver === 9; // G.IE10 = G.browser.agent == "msie" && G.browser.ver === 10; // G.IE11 = G.browser.agent == "msie" && G.browser.ver === 11; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "1f677ede70b4f8bcb282": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var globalObj = undefined, callbacks = []; var hascallback = undefined; var init = function init() { var nowurl = location.href; var itemId = nowurl.match(/[?&]id=([0-9]+)/) && nowurl.match(/[?&]id=([0-9]+)/)[1]; if (!itemId) return; var website = G.dp && G.dp.site || G.site; if (website.indexOf('95095') > -1) { globalObj = { 'nodata': true }; return; } if (website == 'ai-taobao') website = 'taobao'; // let price = Number(G.dp.price)*100; // let url = 'https://browserre.taotaosou.com/priceHistory.do?itemId='+ itemId + '&website=' + website + '&price=' + price.toString(); var url = __webpack_require__("7a162262fe305871f8d9").init(); communicate.trigger({ 'type': 'getTaobaoTrend', 'info': url }); communicate.on(function (data) { if (typeof data === 'string') { data = JSON.parse(data); } if (data.type == 'getTaobaoTrend') { if (data.value) try { globalObj = JSON.parse(data.value).priceHistoryData; if (!globalObj) globalObj = { 'nodata': true }; if (callbacks.length > 0 && !hascallback) { //hascallback = true; // debug for (var i = 0; i < callbacks.length; i++) { callbacks[i](globalObj); } hascallback = true; } } catch (e) {} } }); }; module.exports._init = function () { // G.on('pageType=2', () => { // init() // }) }; module.exports.init2 = function () { // init() }; module.exports.getTrend = function (callback) { if (globalObj) { if (globalObj['nodata']) globalObj = null; hascallback = true; callback(globalObj); return; } else { callbacks.push(callback); } setTimeout(function () { if (!hascallback) { hascallback = true; callback(null); } }, 3000); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "1fe950940db4316946fc": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, "\n.qrcode[data-v-5b302872] {\n display: none;\n position: absolute;\n top: 27px;\n right: -15px;\n width: 148px;\n height: 156px;\n background: #FFF7F7;\n border: 1px solid #FF2D53;\n z-index: 9;\n}\n.bjgou-subsidy-bar:hover .qrcode[data-v-5b302872] {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n#coupon_box.coupon-box1[data-v-5b302872] {\n width: 460px;\n height: 34px;\n background-color: #fff;\n border: 1px solid #e8e8e8;\n border-top: none;\n position: relative;\n margin: 0px;\n padding: 0px;\n float: left;\n display: block;\n}\n#coupon_box[data-v-5b302872]:after {\n display: block;\n content: \"\";\n clear: both;\n}\n.gwd_tmall #gwd_minibar[data-v-5b302872] {\n float: none;\n}\n#coupon_box *[data-v-5b302872] {\n cursor: pointer;\n}\n.minicoupon_detail[data-v-5b302872] {\n position: absolute;\n top: 35px;\n right: -1px;\n height: 150px;\n width: 132px;\n display: none;\n z-index: 99999999999;\n background: #FFF7F8;\n border: 1px solid #F95774;\n}\n#coupon_box:hover .minicoupon_detail[data-v-5b302872] {\n display: block;\n}\n#coupon_box:hover .gwd-qrcode-container[data-v-5b302872] {\n display: flex;\n}\n#coupon_box:hover .gwd-qrcode-container[data-v-5b302872] {\n right: 0!important;\n margin-right: 0!important;\n z-index: 999;\n}\n#coupon_box:hover .gwd-qrcode-jd[data-v-5b302872] {\n top: 6px;\n}\n.minicoupon_detail img[data-v-5b302872] {\n width: 114px;\n height: 114px;\n float: left;\n margin-left: 9px;\n margin-top: 9px;\n}\n.minicoupon_detail span[data-v-5b302872] {\n font-size: 14px;\n color: #F95572;\n letter-spacing: 0;\n font-weight: bold;\n float: left;\n height: 12px;\n line-height: 14px;\n width: 100%;\n margin-top: 6px;\n text-align: center;\n}\n.coupon-box1 *[data-v-5b302872] {\n font-family: 'Microsoft YaHei',Arial,SimSun;\n}\n.coupon-icon[data-v-5b302872] {\n float: left;\n width: 20px;\n height: 20px;\n background: url('https://cdn.gwdang.com/images/extensions/newbar/coupon_icon.png') 0px 0px no-repeat;\n margin: 9px 8px 9px 12px;\n}\n#coupon_box .coupon-tle[data-v-5b302872] {\n color: #FF3B5C;\n font-size: 12px;\n margin-right: 11px;\n float: left;\n height: 34px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: 301px;\n line-height: 34px;\n text-decoration: none!important;\n}\n#coupon_box .coupon-tle *[data-v-5b302872] {\n color: #f15672;\n}\n#coupon_box .coupon-tle span[data-v-5b302872] {\n margin-right: 5px;\n}\n.coupon_gif[data-v-5b302872] {\n background: url('https://cdn.gwdang.com/images/extensions/newbar/turn.gif') 0px 0px no-repeat;\n float: right;\n height: 20px;\n width: 56px;\n margin-top: 9px;\n}\n.click2get[data-v-5b302872] {\n width: 70px;\n height: 18px;\n background: linear-gradient(90deg, #EF2525 0%, #FF2F20 100%);\n border-radius: 9px;\n text-align: center;\n}\n.click2get span[data-v-5b302872] {\n font-size: 12px;\n color: #fff;\n}\n.c2g-sp1[data-v-5b302872] {\n width: 50px;\n color: #FF3B5C;\n text-align: center;\n font-size: 14px;\n line-height: 24px!important;\n}\n.c2g-sp2[data-v-5b302872] {\n width: 44px;\n line-height: 24px!important;\n color: #fff!important;\n text-align: center;\n}\ndiv#gwd_wishlist_div.gwd_wishlist_div[data-v-5b302872] {\n border-bottom-right-radius: 0px;\n border-bottom-left-radius: 0px;\n}\n", ""]); // exports /***/ }), /***/ "1fffec0778a8d8b2e8e2": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['tag'], data: function data() { return { qr: '', loading: false }; }, methods: { over: function over() { var _this = this; if (this.tag === 2) { __webpack_require__("83271c7588396d2d5e59").logOnce('淘宝会员券:悬浮'); } if (this.loading || this.qr) return; this.loading = true; __webpack_require__("91f250ebeb8d5987491c").rawGet(G.u_server + ('/helper/qrcode?event=appQrcode' + (this.tag ? '&tag=' + this.tag : '') + '&dp_id=') + (this.dpId ? this.dpId : G.dp.dpId)).then(function (res) { if (typeof res === 'string') { res = JSON.parse(res); } _this.qr = res.data.qrImgStr; }); } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "216fab13e1b023587a5c": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Normal_vue_vue_type_script_lang_js___ = __webpack_require__("8b0ac201d3fddea2e383"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Normal_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Normal_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Normal_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Normal_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Normal_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "217a460079a2fc75e411": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponQr_vue_vue_type_style_index_0_id_498face2_scoped_true_lang_less___ = __webpack_require__("c19dcdaa9e39f34d9e04"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponQr_vue_vue_type_style_index_0_id_498face2_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponQr_vue_vue_type_style_index_0_id_498face2_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponQr_vue_vue_type_style_index_0_id_498face2_scoped_true_lang_less____default.a); /***/ }), /***/ "21eec4aa13ef0038a0ea": /***/ (function(module, exports) { module.exports = "<div id=\"bjd_bottom_detail\" class=\"{{hidemod}}\">\n <a id=\"bjd_logo\" >\n <span class=\"gwd_bg\"></span>\n </a>\n <div class=\"left-compare close-module {{hidemod}}\">\n <span class=\"com-lowpri\">\n <em class=\"gwd_bg\"></em>\n </span>\n <span class=\"com-zdm\">\n <em class=\"gwd_bg\"></em>\n </span>\n <span class=\"com-hym\">\n <em class=\"gwd_bg\"></em>\n </span>\n </div>\n <div class=\"nbt-adinfo close-module {{hidemod}}\"></div>\n <div class=\"main-compare close-module {{hidemod}}\">\n <span class=\"gwd_bg mbar-turnpage tleft\"></span>\n <div class=\"compare-box\">\n <ul class=\"compare-list\">\n \n </ul>\n </div>\n <span class=\"gwd_bg mbar-turnpage tright\"></span>\n </div>\n <div class=\"right-info close-module {{hidemod}}\" style=\"display: flex\">\n <div class=\"price-trend-btn btm-tab\" id=\"gwdang-trend\">\n <div class=\"trend-box-dev\">\n <em class=\"gwd_bg\"></em>\n <span></span>\n </div>\n \n <div id=\"gwdang-trend-detail\" class=\"gwd-trend-detail gwd-btn-detail\" style=\"width:{{detailW}}px;\" >\n <div class=\"panel-wrap\">\n <div class=\"chart\" id=\"gwdang-pri-trend-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>\n </div>\n </div>\n <div class=\"search-mod\"></div>\n <div class=\"bjd-history-btn rinfo-btn\" id=\"gwd_history\">\n <span class=\"gwd_bg\"></span>\n </div>\n <div class=\"bjd-favor-btn rinfo-btn\" id=\"gwdang-favor\">\n <span class=\"gwd_bg\"></span>\n </div>\n <a href=\"{{f_url}}\" target=\"_blank\" title=\"反馈\" class=\"bjd-feedback-btn rinfo-btn\" id=\"gwdang-feedback\">\n <span class=\"gwd_bg\"></span>\n </a>\n <a {{if settingUrl}} href=\"{{settingUrl}}\" target=\"_blank\"{{/if}} title=\"功能设置\" class=\"bjd-setting-btn rinfo-btn\" id=\"gwdang-setting\">\n <span class=\"gwd_bg\"></span>\n </a>\n </div>\n <div class=\"nbt-close-btn {{hidemod}}\">\n <span class=\"gwd_bg\"></span>\n </div>\n <div ></div>\n</div>\n<style>\n .right-info.b-hidden {\n display: none!important;\n }\n</style>" /***/ }), /***/ "238322f76284ba9e93e3": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var request = __webpack_require__("91f250ebeb8d5987491c"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var posDict = { 'taobao': '#J_Social', 'tmall': '#J_DetailMeta .tm-action.tm-clear' }; var tokenCache = undefined; module.exports.init = function () { if (G.from_device.indexOf('bijiago') > -1 && $('html').hasClass('gwd_taobao_ju')) return; if (window.bjd_tkl_exist && window.bjd_tkl_exist.indexOf('bijiago') === -1) { return; } window.bjd_tkl_exist = G.from_device; if (G.forbidTkl) return; if (location.host.indexOf('taobao') === -1 && location.host.indexOf('tmall') === -1) { return; } if (G.site === 'taobao-ju') { if ($('#bjg-tkl').length) { $('#bjg-tkl').remove(); } renderJu(); return; } render(); }; var renderJu = function renderJu() { var html = __webpack_require__("7cadd8d25c22f502154a"); var res = template.compile(html)({ s_server: G.s_server }); window.$ = $; $('.botbar .operation').append(res); addEventJu(); }; var addEventJu = function addEventJu() { var tklOK = false; $('#bjg-tkl').on('click', function (e) { if (tklOK) { clipboard(); e.preventDefault(); return; } else { cnzz.log("gettklinfo"); getTkl(function (data) { if (data) { $('#gwd-tkl-text').text("点击复制淘口令"); tklOK = true; var dptle = getTbTle(); var newTxt = '7' + data; $('#box_btn').text(newTxt); $('.gggbox-input').val(newTxt); } else { // $('.cptkl-remind-err').show() cnzz.log("gettklerr"); $('#bjg-tkl').addClass('gwd-notkl-error'); } }); } e.preventDefault(); }); }; var getTkl = function getTkl(callback) { if (tokenCache) { callback(tokenCache); return; } var id = location.href.match(/id=(\d+)/)[1]; if (G.site === 'taobao-ju') { id = location.href.match(/item_id=(\d+)/)[1]; } var url = G.server + '/extension/TaoKL?id=' + id; if (G.ss_name === 'priceDog') { url = G.u_server + '/redirect/tao?id=' + id + '&format=json&tkl=1'; } request.get(url).then(function (data) { if (data && data.ios_token) { tokenCache = data.ios_token; callback(data.ios_token); } else { callback(); } })['catch'](function () { callback(); }); }; var getTbTle = function getTbTle() { var tle = ''; if (G.site === 'taobao') { tle = $('#J_Title h3').text().trim(); } else if (G.site === 'taobao-ju') { tle = $('.title').text().trim(); } else { tle = $('.tb-detail-hd>h1').text().trim(); } return tle; }; var render = function render() { var html = __webpack_require__("fd74a65531354a645822"); var pos = posDict[G.site]; var str = 'is_tb_site'; if (G.site === 'tmall') str = 'is_tm_site'; if ($(pos).length > 0) { $(pos).after(template.compile(html)({ s_server: G.s_server, str: str })); } addEvent(); }; var clicked = undefined; var clipboard = function clipboard() { //if (clicked) return; var element = document.getElementById('box_btn'); var element2 = document.querySelectorAll('.gggbox-input')[0]; if (element.hasAttribute('contenteditable')) { element.focus(); } var selection = window.getSelection(); var range = document.createRange(); range.selectNodeContents(element); selection.removeAllRanges(); selection.addRange(range); window.selectedText = selection.toString(); if (!window.selectedText) { element2.select(); element2.setSelectionRange(0, element2.value.length); window.selectedText = element2.value; } try { var t = window.document.execCommand("copy"); if (t) { clicked = true; cnzz.log("copytklss"); if (G.site === 'taobao-ju') { $('#gwd-tkl-text').text("复制成功"); $('#bjg-tkl img').attr('src', G.s_server + '/images/extensions/[email protected]'); } $('.cptkl-btn span').text("复制成功"); $('.cptkl-btn').removeClass('cpready').addClass('cpsuccess'); } } catch (e) { __webpack_require__("316f9c352c6202560d16").error(e); } }; var addEvent = function addEvent() { var tklOK = undefined; $('.cptkl-btn').on('click', function () { if (tklOK) { clipboard(); return; } else { cnzz.log("gettklinfo"); } getTkl(function (data) { if (data) { $('.cptkl-btn span').text("点击复制淘口令"); $('.cptkl-btn').addClass('cpready'); tklOK = true; var dptle = getTbTle(); var newTxt = '7' + data; $('#box_btn').text(newTxt); $('.gggbox-input').val(newTxt); } else { $('.cptkl-remind-err').show(); cnzz.log("gettklerr"); } }); }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "23aafd2ad4b6e88819f1": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "gwd-qrlink-left gwd-row gwd-align", style: "left: " + _vm.left + "px", on: { mouseenter: _vm.over } }, [ _c( "span", { staticStyle: { "margin-left": "8px", "font-size": "12px", color: "#7d7e80", width: "48px" } }, [ _vm._v( "手淘扫码" + _vm._s(_vm.hasBuyButton ? "查看优惠" : "快捷购买") ) ] ), _vm._v(" "), _c("img", { staticStyle: { width: "22px", height: "22px", "margin-left": "8px" }, attrs: { src: __webpack_require__("4274a17d553e5317d58f"), alt: "" } }), _vm._v(" "), _c( "svg", { staticStyle: { "margin-left": "4px", width: "11px", height: "6px" }, attrs: { viewBox: "0 0 11 6" } }, [ _c("polygon", { attrs: { points: "0,0 11,0 5.5,6", fill: "#c4c5c6" } }) ] ), _vm._v(" "), _c("div", { staticClass: "gwd-qr-content gwd-align gwd-column" }, [ _vm.qr ? _c("img", { staticStyle: { width: "98px", height: "98px" }, attrs: { src: _vm.qr, alt: "" } }) : _vm._e(), _vm._v(" "), _c("img", { staticStyle: { width: "20px", height: "20px", position: "absolute", left: "50%", top: "42px", transform: "translate(-50%, 0%)" }, attrs: { src: __webpack_require__("c9085187c37fc1ab0e5e"), alt: "" } }) ]) ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "2434f337fd6a094fb5fe": /***/ (function(module, exports) { module.exports = "<div id=\"gwd_setting_div\" style=\"display:none;\">\n <div class=\"gwd_setting_item gwd_setting_item_fst\">\n <div class=\"gwd_bg gwd_function_setting\"></div>\n <a {{if settingUrl}} href=\"{{settingUrl}}\" target=\"_blank\"{{/if}} >功能设置</a>\n </div>\n <div class=\"gwd_setting_item\">\n <div class=\"gwd_bg gwd_opinion_feedback\"></div>\n <a href=\"{{fdbkUrl}}\" target=\"_blank\">意见反馈</a>\n </div>\n <div class=\"gwd_setting_item\">\n <div class=\"gwd_bg gwd_use_help\"></div>\n <a href=\"{{helpUrl}}\" target=\"_blank\">使用帮助</a>\n </div>\n <div class=\"gwd_setting_item\">\n <div class=\"gwd_bg gwd_homepage\"></div>\n <a href=\"{{homeUrl}}\" target=\"_blank\">购物党首页</a>\n </div>\n</div>" /***/ }), /***/ "246ceb42c05cc162aaa5": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_style_index_0_id_9a793014_scoped_true_lang_less___ = __webpack_require__("6524c6395176cac4885b"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_style_index_0_id_9a793014_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_style_index_0_id_9a793014_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_style_index_0_id_9a793014_scoped_true_lang_less____default.a); /***/ }), /***/ "2471c34a1449a65b6e88": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var request = __webpack_require__("91f250ebeb8d5987491c"); var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var buildTaobaoUrl = __webpack_require__("cc45d932d8dbdb86f2f3"); var globalData = undefined, callbacks = undefined; var hasrun = false; var timeOUT = 2500; var getuniqPid = function getuniqPid(id) { if (id == '') return; var url = G.server + '/extension?ac=getuniqpid&nid=' + id; request.get(url).done(function (data) { if (data && data.uniqid) { sendPid(id, data.uniqid); } else { requestTaobaoImgSearch(); } }); }; var sendPid = function sendPid(id, pid) { var info = { 'nid': id, 'uniqid': pid }; communicate.trigger({ 'type': 'getTaobaouniq', 'info': JSON.stringify(info) }); communicate.on(function (data) { if (typeof data === 'string') { data = JSON.parse(data); } if (data.type == 'getTaobaouniq') { var text = $('#gwd_uniq_info').text(); if (text != '') editData(text); } }); }; var sortData = function sortData(data) { if (!data.sort) return; data = data.sort(function (value1, value2) { if (Number(value1.price) > Number(value2.price)) return 1;else if (Number(value1.price) == Number(value2.price)) return 0;else return -1; }); return data; }; var editData = function editData(txt) { try { var data = JSON.parse(txt); data = data.mods.recitem.data.items; var taobaoarr = [], tmallarr = []; if (!data) return; for (var i = 0, len = data.length; i < len; i++) { var item = {}; var feeDesc = data[i].view_fee == '0.00' ? '包邮' : ''; item.nick = data[i].nick; item.num_iid = data[i].nid; item.title = data[i].title; item.price = data[i].view_price; item.item_location = data[i].item_loc; item.store_name = data[i].nick + feeDesc; item.pic_url = 'http:' + data[i].pic_url; item.same_style = true; item.volume = data[i].view_sales.replace('人付款', ''); var obj = { 'source': 'same_style', 'img_url': 'http:' + data[i].pic_url, 'title': data[i].title, 'price': data[i].view_price, 'shop_name': data[i].nick + feeDesc, 'sales': data[i].view_sales.replace('人付款', ''), 'id': data[i].nid, 'url': 'https:' + data[i].detail_url, 'discuss': data[i].comment_count, 'istaobao': data[i].detail_url.indexOf('detail.tmall.com') > -1 ? '0' : '1', 'dp_id': data[i].nid + '-' + (data[i].detail_url.indexOf('detail.tmall.com') > -1 ? '83' : '123'), 'site_id': data[i].detail_url.indexOf('detail.tmall.com') > -1 ? '83' : '123' }; item.url = buildTaobaoUrl(obj); if (data[i].detail_url.indexOf('detail.tmall.com') > -1) { tmallarr.push(item); } else { taobaoarr.push(item); } } taobaoarr = sortData(taobaoarr); tmallarr = sortData(tmallarr); globalData = { 'taobao': taobaoarr, 'tmall': tmallarr }; if (callbacks && !hasrun) { callbacks(globalData); hasrun = true; } } catch (e) {} }; var requestTaobaoImgSearch = function requestTaobaoImgSearch() { console.log('taobaoImgSearch'); /*taobao root_id 筛选需要做图片检索的分类*/ var rootIdArr = ["50510002", "50012029", "50013864", "50011397", "50010404", "1625", "50006842", "50006843", "16", "50011740", "50011699", "50008165", "50008163", "30", "50020857", "50020808", "50013886"]; var root_id = G.dp.root_id; if (root_id && rootIdArr.indexOf(root_id) > -1) { __webpack_require__("ff881c8b15091819a13e").uniqPidGetImg(function (data) { if (callbacks) { callbacks(data); hasrun = true; } else { globalData = data; } }); timeOUT = 6000; } else { timeOUT = 1; } }; var getNid = function getNid() { if (location.host.indexOf('taobao') > -1 || location.host.indexOf('tmall') > -1) { var id = location.href.match(/[?&]id=([0-9]+)/); if (id && id.length) { id = id[1]; getuniqPid(id); } } }; module.exports.init = function () { /*淘宝价格走势*/ if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) { communicate.trigger({ type: 'get_etao_info' }); } if (G.site == 'taobao' || G.site == 'tmall') getNid(); }; module.exports.clear = function () { globalData = null; callbacks = null; hasrun = false; }; module.exports.getTaobaouniqData = function (callback) { //callback() // if (globalData) { // callback(globalData) // hasrun = true; // } else callbacks = callback; setTimeout(function () { // if (callbacks && hasrun === false) { // callbacks(null) // hasrun = true; // } callback(null); }, timeOUT); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "2517c4f5c89f34233e53": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var browser = { 'url': '', 'utype': '' }; var chromeType = navigator.userAgent.toLowerCase(); module.exports.getBrowser = function () { if ("ActiveXObject" in window) { //mozilla/5.0 (compatible; msie 10.0; windows nt 6.1; wow64; trident/6.0; slcc2; .net clr 2.0.50727; .net clr 3.5.30729; .net clr 3.0.30729; .net4.0c; infopath.3; .net4.0e) browser.url = G.c_server + ('/files/ext/' + G.extName + '_install_IE.exe'); browser.utype = "ie"; browser.utitle = "IE"; browser.background = "-401px -81px"; } else if (chromeType.indexOf('firefox') > -1) { //mozilla/5.0 (windows nt 6.1; wow64; rv:42.0) gecko/20100101 firefox/42.0 browser.url = "https://addons.mozilla.org/firefox/downloads/latest/405940/addon-405940-latest.xpi?src=dp-btn-primary"; browser.bjgUrl = "https://addons.mozilla.org/zh-CN/firefox/addon/%E6%AF%94%E4%BB%B7%E7%8B%97-%E7%BD%91%E8%B4%AD%E7%9C%81%E9%92%B1%E7%A5%9E%E5%99%A8/?src=search"; browser.utype = "firefox"; browser.utitle = "火狐"; browser.background = "-401px -44px"; } else if (chromeType.indexOf('opera') > -1 || chromeType.indexOf('opr') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/46.0.2490.86 safari/537.36 opr/33.0.1990.115 browser.url = G.c_server + "/files/ext/opera.crx"; browser.utype = "opera"; browser.utitle = "Opera"; browser.background = "-2px -120px"; } else if (chromeType.indexOf('safari') > -1 && chromeType.indexOf('chrome') == -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/534.57.2 (khtml, like gecko) version/5.1.7 safari/534.57.2 browser.url = G.c_server + ('/files/ext/' + G.extName + '.safariextz'); browser.utype = "safari"; browser.utitle = "Safari"; browser.background = "-301px -44px"; } else if (chromeType.indexOf('chrome') > -1) { var check360 = checkChromeWeight(); if (chromeType.indexOf('qqbrowser') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/45.0.2454.87 safari/537.36 qqbrowser/9.2.5542.400 browser.url = "https://pcbrowser.dd.qq.com/pcbrowserbig/qbextension/update/20160122/jgphnjokjhjlcnnajmfjlacjnjkhleah.crx"; browser.bjgUrl = "https://pcbrowser.dd.qq.com/pcbrowserbig/qbextension/update/20180615/lpmlfjjccfdcnfplffgcmnkaafcigoil.crx"; browser.utype = "qq"; browser.utitle = "QQ"; browser.background = "-104px -81px"; } else if (chromeType.indexOf('maxthon') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) maxthon/4.4.8.1000 chrome/30.0.1599.101 safari/537.36 browser.url = "http://extension.maxthon.cn/detail/index.php?view_id=358"; browser.utype = "maxthon"; browser.utitle = "傲游"; browser.background = "-401px -4px"; } else if (chromeType.indexOf('bidubrowser') > -1) { //mozilla/5.0 (compatible; msie 10.0; windows nt 6.1; wow64; trident/6.0; bidubrowser 8.1) browser.url = "http://chajian.baidu.com/2015/#all/39/mcgoibhhihpolaiioggajoipieefgmoa"; browser.utype = 'baidu'; browser.utitle = '百度'; browser.background = "-104px -120px"; } else if (chromeType.indexOf('ubrowser') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/44.0.2403.157 ubrowser/5.5.6743.207 safari/537.36 browser.url = "http://extensions.uc.cn/newindex.htm#!detail/bpdlhpjkjbdiflnankpohpfepecdjgag"; browser.bjgUrl = "https://www.bijiago.com/static/extensions/chrome_bijiago_uc.crx"; browser.utype = 'uc'; browser.utitle = "UC"; browser.background = "-2px -44px"; } else if (chromeType.indexOf('lbbrowser') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/42.0.2311.154 safari/537.36 lbbrowser browser.url = "http://store.liebao.cn/admin/extensions/201511/ea878d5a4d2a008ad78978a94eea62a1.crx"; browser.utype = 'liebao'; browser.utitle = "猎豹安全"; browser.background = "-301px -4px"; } else if (chromeType.indexOf('taobrowser') > -1) { //Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.11 TaoBrowser/3.5 Safari/536.11 browser.url = G.c_server + "/files/ext/chrome.crx"; browser.utype = 'taobao'; browser.utitle = "淘宝"; browser.background = "-104px -44px"; } else if (chromeType.indexOf('2345explorer') > -1) { //Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36 2345Explorer/6.4.0.10356 browser.url = "http://extension.ie.2345.com/#nfbikdkjfjcejddbdcpbafnclkfdhijd"; browser.utype = '2345'; browser.utitle = "2345王牌"; browser.background = "-301px -81px"; } else if (chromeType.indexOf('2345chrome') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/39.0.2171.99 safari/537.36 2345chrome v3.0.0.9739 browser.url = "http://extension.chrome.2345.com/#nfbikdkjfjcejddbdcpbafnclkfdhijd"; browser.utype = '2345jiasu'; browser.utitle = "2345加速"; } else if (chromeType.indexOf('coolnovo') > -1) { //Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36 CoolNovo/2.0.9.20 browser.url = G.c_server + "/files/ext/chrome.crx"; browser.utype = 'fengshu'; browser.utitle = "枫树"; browser.background = "-2px -81px"; } else if (chromeType.indexOf('greenbrowser') > -1) { //Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; InfoPath.3; .NET4.0E; GreenBrowser) browser.url = G.c_server + ('/files/ext/' + G.extName + '_for_greenbrowser.zip'); browser.utype = 'gb'; browser.utitle = "GB"; browser.background = "-203px -81px"; } else if (check360 === "Chrome") { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/46.0.2490.80 safari/537.36 browser.url = G.c_server + "/app/extension?from_device=" + G.from_device_num; browser.bjgUrl = "https://www.bijiago.com/chromeGuide/"; browser.utype = 'chrome'; browser.utitle = 'Chrome'; browser.background = "-2px -4px"; } else if (check360 === "360SE") { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/31.0.1650.63 safari/537.36 browser.url = "https://ext.se.360.cn/webstore/detail/nfbikdkjfjcejddbdcpbafnclkfdhijd"; browser.bjgUrl = "https://ext.se.360.cn/webstore/detail/dikcgfcdhfcmnicjknpmaakimonplclf"; browser.utype = '360se'; browser.utitle = '360安全'; browser.background = "-203px -4px"; } else if (check360 === "360EE") { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/45.0.2454.101 safari/537.36 browser.url = "https://ext.chrome.360.cn/webstore/detail/nfbikdkjfjcejddbdcpbafnclkfdhijd"; browser.bjgUrl = "https://ext.se.360.cn/webstore/detail/dikcgfcdhfcmnicjknpmaakimonplclf"; browser.utype = '360se'; browser.utitle = '360极速 '; browser.background = "-104px -4px"; } else if (chromeType.indexOf('se') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/38.0.2125.122 safari/537.36 se 2.x metasr 1.0 browser.url = "http://ie.sogou.com/tools/tool_337.html"; browser.bjgUrl = "http://ie.sogou.com/app/s/YXBwXzU5Njc="; browser.utype = 'sogou'; browser.utitle = "搜狗"; browser.background = "-401px -120px"; } else { browser.url = G.c_server + "/app/extension"; browser.bjgUrl = "https://www.bijiago.com/chromeGuide/"; browser.utype = 'chrome'; browser.utitle = 'Chromium内核'; } } else { browser.url = G.c_server + "/app/extension"; browser.bjgUrl = "https://www.bijiago.com/chromeGuide/"; browser.utype = 'chrome'; browser.utitle = '未知浏览器'; } return browser; }; var chrome_weight = { "result": "Chrome", "details": { "Chrome": 5, "Chromium": 0, "_360SE": 0, "_360EE": 0 }, "sorted": ["Chrome", "360SE", "360EE", "Chromium"], "exec": function exec(results) { var details = { "Chrome": 5, "Chromium": 0, "_360SE": 0, "_360EE": 0 }; var _ua = window.navigator.userAgent; if (/Chrome\/([\d.])+\sSafari\/([\d.])+$/.test(_ua)) { if (window.navigator.platform == "Win32") { if (!window.clientInformation.languages) { details._360SE += 8; } if (/zh/i.test(navigator.language)) { details._360SE += 3; details._360EE += 3; } if (window.clientInformation.languages) { var lang_len = window.clientInformation.languages.length; if (lang_len >= 3) { details.Chrome += 10; details.Chromium += 6; } else if (lang_len == 2) { details.Chrome += 3; details.Chromium += 6; details._360EE += 6; } else if (lang_len == 1) { details.Chrome += 4; details.Chromium += 4; } } for (var i in window.navigator.plugins) { if (window.navigator.plugins[i].filename == "np-mswmp.dll") { details._360SE += 20; details._360EE += 20; } } if (Object.keys(window.chrome.webstore).length <= 1) { details._360SE += 7; } else if (Object.keys(window.chrome.webstore).length == 2) { details._360SE += 4; details.Chromium += 3; } if (window.navigator.plugins.length >= 30) { details._360EE += 7; details._360SE += 7; details.Chrome += 7; } else if (window.navigator.plugins.length < 30 && window.navigator.plugins.length > 10) { details._360EE += 3; details._360SE += 3; details.Chrome += 3; } else if (window.navigator.plugins.length <= 10) { details.Chromium += 6; } } else { details._360SE -= 50; details._360EE -= 50; if (/Linux/i.test(window.navigator.userAgent)) { details.Chromium += 5; } } var found = 0; var respdf = undefined; for (var i in window.navigator.plugins) { if (!!(respdf = /^(.+) PDF Viewer$/.exec(window.navigator.plugins[i].name))) { if (respdf[1] == "Chrome") { details.Chrome += 6; details._360SE += 6; found = 1; break; } if (respdf[1] == "Chromium") { details.Chromium += 10; details._360EE += 6; found = 1; break; } } } if (!found) { details.Chromium += 9; } } var chrome_result = new Object(); chrome_result['Chrome'] = details.Chrome; chrome_result['Chromium'] = details.Chromium; chrome_result['360SE'] = details._360SE; chrome_result['360EE'] = details._360EE; var sortable = []; for (var value in chrome_result) { sortable.push([value, chrome_result[value]]); }sortable.sort(function (a, b) { return b[1] - a[1]; }); this.sorted = sortable; this.details = details; this.result = sortable[0][0]; if (results == "result") { return sortable[0][0]; } else if (results == "details") { return chrome_result; } else if (results == "sorted") { return sortable; } } }; var checkChromeWeight = function checkChromeWeight() { var _ua = window.navigator.userAgent; try { chrome_weight.exec(); if (/Chrome\/([\d.])+\sSafari\/([\d.])+$/.test(_ua)) { return chrome_weight.result; } else {} } catch (e) { return; } }; module.exports.getChromeVersion = function () { var raw = navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./); return raw ? parseInt(raw[2], 10) : false; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "25e0cebb2e3d42787857": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <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(); }); } /***/ }), /***/ "260b6f8353fad73d488f": /***/ (function(module, exports) { module.exports = "<style type=\"text/css\">\n .house_centanet2 .house-item {\n position: relative;\n overflow: visible;\n }\n .house_5i5j #bdext_mb_bg.dppage, .house_centanet2 #bdext_mb_bg.dppage {\n position: relative;\n }\n #bdext_mb_bg.dppage {\n height: 40px;\n }\n .house-trend-bg {\n background: url(\"{{s_server}}/images/extensions/xbt/house-trend-icon3.png\") no-repeat;\n }\n .house-trend-box {\n position: absolute;\n right: 0px;\n bottom: 50px;\n width: 282px;\n height: 32px;\n border: 1px solid #eee;\n border-radius: 5px;\n background: #fff;\n display: block!important;\n box-sizing: content-box;\n font-family: \"Microsoft Yahei\",\"微软雅黑\"\n }\n #bdext_mb_bg #bdext_minibar {\n position: absolute;\n right: 0px;\n bottom: 56px;\n display: block;\n }\n .house_centanet2 #bdext_mb_bg #bdext_minibar {\n right: 6px;\n bottom: 29px;\n }\n .house_centanet2 #bdext_mb_bg.dppage #bdext_minibar {\n right: -32px;\n }\n .house_centanet #bdext_mb_bg.dppage #bdext_minibar {\n right: -18px;\n }\n .house_5i5j #bdext_mb_bg #bdext_minibar {\n bottom: 30px;\n }\n .house_centanet #bdext_mb_bg #bdext_minibar {\n bottom: 20px;\n }\n #bdext_mb_bg.dppage #bdext_minibar {\n bottom: -8px;\n position: relative;\n display: block;\n }\n .house-trend-box * {\n box-sizing: content-box;\n }\n .house-trend-box.trend-box-1 .ht-trend-desc {\n background-color: #f0f0f0;\n }\n .house_lianjia2 .house-trend-box {\n bottom: 32px;\n }\n .house_centanet .house-trend-box {\n right: 40px;\n bottom: 22px;\n }\n .house_centanet2 .house-trend-box {\n right: 52px;\n bottom: 32px;\n }\n .house_centanet .house-trend-box.dppage {\n right: -16px;\n bottom: 0px;\n }\n .house_centanet2 .house-trend-box.dppage {\n right: -38px;\n bottom: -15px;\n }\n .{{extBrand}}_5i5j .house-trend-box {\n bottom: 29px;\n }\n .house-trend-box.dppage, .gwd_lianjia .house-trend-box.dppage {\n position: relative;\n bottom: 0px;\n }\n .house_lianjia2 .house-trend-box.dppage {\n bottom: 1px;\n }\n .houset-btn {\n width: 100%;\n height: 100%;\n }\n .houset-btn:after {\n content: \"\";\n display: block;\n clear: both;\n }\n .houset-detail {\n position: absolute;\n top: 32px;\n right: 0px;\n height: 285px;\n width: 580px;\n z-index: 999999999;\n border: 1px solid #eee;\n background-color: #fff;\n box-sizing: content-box;\n box-shadow: 0px 5px 15px 0 rgba(23,25,27,0.15);\n display: none;\n }\n #bdext_mb_bg .houset-detail {\n top: 188px;\n right: 0px;\n }\n .house_centanet2 #bdext_mb_bg .houset-detail {\n top: 196px;\n right: 5px;\n }\n .house_5i5j #bdext_mb_bg .houset-detail {\n top: 133px;\n }\n .house_centanet #bdext_mb_bg .houset-detail {\n top: 230px;\n }\n #bdext_mb_bg.dppage .houset-detail {\n top: 97px;\n right: 149px;\n }\n .house_centanet2 #bdext_mb_bg.dppage .houset-detail {\n top: 48px;\n right: 235px;\n }\n .house_centanet #bdext_mb_bg.dppage .houset-detail {\n top: 152px;\n right: 51px;\n }\n .house_5i5j #bdext_mb_bg.dppage .houset-detail {\n top: 46px;\n right: 78px;\n }\n .house-trend-img {\n float: left;\n width: 452px;\n height: 217px;\n margin-top: 28px;\n }\n .houset-detail .house-trend-img img {\n width: 100%;\n height: 100%;\n }\n .houset-btn a {\n float: left;\n width: 32px;\n height: 32px;\n background-position: -6px -48px;\n border-top-left-radius: 5px;\n border-bottom-left-radius: 5px;\n }\n .ht-trend-desc {\n float: left;\n height: 32px;\n width: 124px;\n cursor: pointer;\n }\n .ht-price-remind {\n float: left;\n width: 124px;\n height: 32px;\n border-left: 1px solid #e6e6e6;\n cursor: pointer;\n }\n .ht-price-remind:hover {\n background-color: #f1f5f6;\n }\n .ht-price-remind span {\n color: #f7705b;\n font-size: 14px;\n float: right;\n height: 32px;\n width: auto;\n line-height: 32px;\n margin-right: 6px;\n }\n .ht-price-remind em {\n background-position: -30px -22px;\n height: 16px;\n width: 16px;\n float: right;\n margin-right: 22px;\n margin-top: 8px;\n }\n .ht-price-remind.hasremind span {\n color: #333;\n }\n .ht-price-remind.hasremind em {\n background-position: -57px -22px;\n margin-right: 16px;\n }\n .bdext-mini-trend.mshover{\n border: 1px solid #425766;\n z-index: 2;\n }\n .ht-trend-desc.mshover {\n background-color: #f1f5f6;\n }\n .ht-trend-desc span {\n line-height: 32px;\n font-size: 14px;\n float: left;\n cursor: pointer;\n margin-left: 22px;\n }\n .ht-trend-desc span.h-color0 {\n color: #f7a82b;\n }\n .ht-trend-desc span.h-color1 {\n color: #ff1e1e;\n }\n .ht-trend-desc span.h-color2, .ht-trend-desc span.h-color3 {\n color: #0baa74;\n }\n .ht-trend-desc span.h-color3 {\n margin-left: 10px;\n }\n .ht-trend-desc span.h-color-1 {\n color: #888;\n }\n .ht-trend-desc em {\n float: left;\n height: 20px;\n width: 26px;\n margin-top: 6px;\n margin-left: 8px;\n }\n .ht-trend-desc .trend-icon0 {\n background-position: -32px -2px;\n }\n .ht-trend-desc .trend-icon1 {\n background-position: -66px -2px;\n }\n .ht-trend-desc .trend-icon2 {\n background-position: -5px -2px;\n }\n .ht-trend-desc .trend-icon3 {\n background-position: -4px -20px;\n }\n .ht-trend-desc .trend-icon-1 {\n display: none;\n }\n #bdext_mb_bg .trend-icon2, #bdext_mb_bg .trend-icon3 {\n background-position: 0px -109px;\n }\n #bdext_mb_bg .trend-icon0 {\n background-position: 0px -84px;\n }\n #bdext_mb_bg .trend-icon1 {\n background-position: 0px -57px;\n }\n #bdext_mb_bg .trend-icon-1 {\n display: none;\n }\n .price-range {\n position: absolute;\n top: 8px;\n right: 129px;\n width: auto;\n text-align: right;\n }\n .price-range span {\n line-height: 20px;\n font-size: 14px;\n color: #505050;\n }\n .price-range .toppri {\n color: #e64340;\n }\n .price-range .lowpri {\n color: #0baa74;\n margin-left: 14px;\n }\n .house-price-qrcode {\n float: right;\n height: 100%;\n width: 123px;\n text-align: center;\n border-left: 1px solid #f0f0f0;\n }\n .house-price-qrcode span {\n font-size: 14px;\n float: left;\n width: 100%;\n height: 14px;\n margin-bottom: 8px;\n line-height: 14px!important;\n text-align: center;\n color: #353535;\n }\n .house-price-qrcode .mgtop {\n margin-top: 51px;\n margin-bottom: 10px;\n }\n .house-price-qrcode img {\n display: inline-block!important;\n width: 100px!important;\n height: auto!important;\n float: left;\n margin-left: 11px;\n }\n .house-price-qrcode p {\n font-size: 12px;\n line-height: 12px;\n margin-top: 5px;\n float: left;\n margin-left: 20px;\n }\n .house-price-qrcode p.house-p-p2{\n margin-left: 32px;\n margin-top: 8px;\n }\n #exchangeList .list-body>li {\n overflow: visible;\n height: 166px;\n }\n .house-basic-main {\n overflow: visible;\n height: 378px;\n }\n .{{extBrand}}_lianjia .content {\n padding-bottom: 70px;\n }\n .house_lianjia2 .m-list li {\n height: 214px;\n overflow: visible;\n position: relative;\n }\n .ht-wxqrcode {\n position: absolute;\n top: 32px;\n right: 0px;\n width: 124px;\n height: 176px;\n border: 1px solid #dadee1;\n background-color: #fff;\n z-index: 999999999999;\n box-shadow: 0px 5px 15px 0 rgba(23,25,27,0.15);\n display: none;\n }\n .ht-wxqrcode * {\n float: left;\n }\n .ht-wxqrcode span {\n width: 100%;\n height: 14px;\n line-height: 14px;\n font-size: 14px;\n text-align: center;\n }\n .ht-wxqrcode img {\n width: 100px!important;\n height: 100px!important;\n margin-top: 4px;\n margin-left: 11px;\n }\n .ht-wx-sp1 {\n margin-top: 10px;\n color: #585858;\n }\n .ht-wx-sp2 {\n margin-top: 8px;\n color: #eb6862;\n }\n .ht-wx-sp3 {\n color: #b2b2b2;\n text-decoration: underline!important;\n font-size: 12px!important;\n cursor: pointer;\n }\n\n .community-price {\n position: absolute;\n height: 247px;\n width: 452px;\n top: 0px;\n display: none;\n background: #fff;\n }\n .change_trend_btn {\n text-align: center;\n position: absolute;\n bottom: 16px;\n width: 462px;\n z-index: 99;\n }\n .change_trend_btn div {\n margin: 0 auto;\n display: inline-block;\n width: auto;\n height: 22px;\n }\n .change_trend_btn span {\n float: left;\n cursor: pointer;\n height: 22px;\n width: 80px;\n font-size: 12px;\n border: 1px solid #3ebdef;\n border-radius: 20px;\n color: #3ebdef;\n margin-left: 70px;\n line-height: 22px;\n text-align: center;\n }\n .change_trend_btn span.trend-choose {\n background-color: #3ebdef;\n color: #fff;\n }\n .change_trend_btn .house-trend-b {\n margin-left: 0px;\n }\n .pList li {\n position: relative;\n height: 195px;\n overflow: visible!important;\n }\n .gwd_maitian .list_wrap ul li {\n overflow: visible!important;\n }\n .gwd_maitian .house-trend-box {\n float: left;\n }\n .gwd_lianjia .house-trend-box {\n bottom: 37px;\n }\n .houset-detail .community-price table {\n width: auto!important;\n }\n</style>" /***/ }), /***/ "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); /***/ }), /***/ "28ca786b072dc40c7e4b": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__GiftMoneyTop_vue_vue_type_template_id_770fdd33_scoped_true___ = __webpack_require__("0927c7d6df6287c77814"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__GiftMoneyTop_vue_vue_type_script_lang_js___ = __webpack_require__("9e4c2dea34add1526306"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__GiftMoneyTop_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__GiftMoneyTop_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__GiftMoneyTop_vue_vue_type_style_index_0_id_770fdd33_scoped_true_lang_less___ = __webpack_require__("b0295bcaad015de0c785"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__GiftMoneyTop_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__GiftMoneyTop_vue_vue_type_template_id_770fdd33_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__GiftMoneyTop_vue_vue_type_template_id_770fdd33_scoped_true___["b" /* staticRenderFns */], false, null, "770fdd33", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('770fdd33')) { api.createRecord('770fdd33', component.options) } else { api.reload('770fdd33', component.options) } module.hot.accept("./GiftMoneyTop.vue?vue&type=template&id=770fdd33&scoped=true&", function () { api.rerender('770fdd33', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/GiftMoneyTop.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "28e788fa96c9526d57e5": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "gwd-pdd-act-bottom-qr" }, [ _c("div", { class: _vm.rnd > 0.5 ? "top" : "top top-2" }, [ _vm.rnd > 0.5 ? _c("img", { staticStyle: { width: "28px", height: "28px", "margin-left": "1px" }, attrs: { src: __webpack_require__("d4697eba6ac505e60559"), alt: "" } }) : _vm._e(), _vm._v(" "), _vm.rnd <= 0.5 ? _c("div", { staticStyle: { width: "9px" } }) : _vm._e(), _vm._v(" "), _c("span", { staticClass: "bold", staticStyle: { "margin-left": "4px" }, domProps: { innerHTML: _vm._s(_vm.text) } }), _vm._v(" "), _c("div", { staticStyle: { flex: "1" } }), _vm._v(" "), _vm.rnd > 0.5 ? _c("span", { staticClass: "circle" }, [_vm._v("领")]) : _vm._e(), _vm._v(" "), _vm.rnd <= 0.5 ? _c("img", { staticStyle: { width: "23px", height: "20px", "margin-right": "9px" }, attrs: { src: __webpack_require__("468535b5894053c41a55"), alt: "" } }) : _vm._e(), _vm._v(" "), _c( "div", { staticClass: "qr-area", style: _vm.needMouseOver ? "display: none" : "" }, [ _c("img", { staticStyle: { "margin-top": "8px" }, attrs: { src: _vm.qr, alt: "" } }), _vm._v(" "), _c( "div", { staticStyle: { "margin-top": "6px", "text-align": "center", "vertical-align": "middle", height: "14px", "line-height": "14px" } }, [ _c( "span", { staticStyle: { color: "#f4010a", "font-size": "14px", "font-weight": "bold" } }, [_vm._v("微信扫码")] ), _vm._v(" "), _c( "span", { staticStyle: { "margin-left": "4px", color: "#333333", "font-size": "12px" } }, [_vm._v(_vm._s(_vm.rnd > 0.5 ? "领券" : "抢购"))] ) ] ) ] ) ]) ]) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "2b14a6ec322d5724c6b1": /***/ (function(module, exports) { module.exports = "<div class=\"prifontf tip-time\">{{data.time}}</div>\n<div class=\"pri-right-info {{domclass}}\">\n {{if data.pagePrice && domclass == \"\"}}\n <div class=\"tip-item tip-pagepri tip-pagepri2\">\n <em></em>\n {{if !aliSite}}\n <span class=\"tip-item-sp1\">到手价 / 页面价</span>\n <span class=\"tip-item-sp2\">:</span>\n {{/if}}\n <span class=\"tip-item-sp3 prifontf\">{{data.pagePrice}}</span>\n </div>\n {{else if data.pagePrice}}\n <div class=\"tip-item tip-pagepri\">\n <em></em>\n <span class=\"tip-item-sp1\">页面价</span>\n <span class=\"tip-item-sp2\">:</span>\n <span class=\"tip-item-sp3 prifontf\">{{data.pagePrice}}</span>\n </div>\n {{/if}}\n {{if data.directpro}}\n <div class=\"tip-item tip-directpro\">\n <em></em>\n <span class=\"tip-item-sp1\">到手价</span>\n <span class=\"tip-item-sp2\">:</span>\n <span class=\"tip-item-sp3 prifontf\">¥{{data.directpro}}</span>\n <span class=\"tip-item-sp4\"> {{#data.promo2}}</span>\n </div>\n {{/if}}\n {{if data.addpro}}\n <div class=\"tip-item tip-addpro\">\n <em></em>\n <span class=\"tip-item-sp1\">凑单价</span>\n <span class=\"tip-item-sp2\">:</span>\n <span class=\"tip-item-sp3 prifontf\">¥{{data.addpro}}</span>\n <span class=\"tip-item-sp4\">{{#data.promo1}}</span>\n </div>\n {{/if}}\n</div>" /***/ }), /***/ "2b6ed47fb40018872f18": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function (l) { var x = "0123456789qwertyuioplkjhgfdsazxcvbnm"; var tmp = ""; for (var i = 0; i < l; i++) { tmp += x.charAt(Math.ceil(Math.random() * 100000000) % x.length); } return tmp; }; /***/ }), /***/ "2b7dc049f5da0912d4f2": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PddActivityQr_vue_vue_type_style_index_0_id_984546bc_scoped_true_lang_less___ = __webpack_require__("4997413a8890416480d7"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PddActivityQr_vue_vue_type_style_index_0_id_984546bc_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PddActivityQr_vue_vue_type_style_index_0_id_984546bc_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PddActivityQr_vue_vue_type_style_index_0_id_984546bc_scoped_true_lang_less____default.a); /***/ }), /***/ "2bc18901559a2d6a8c66": /***/ (function(module, exports) { module.exports = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjNweCIgaGVpZ2h0PSIxMHB4IiB2aWV3Qm94PSIwIDAgMjMgMTAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjEgKDY3MDQ4KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT7nrq3lpLQ8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0iMeaciOS/ruaUuSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IuaPkuS7tue6ouWMhSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTExNDguMDAwMDAwLCAtNTU3LjAwMDAwMCkiIGZpbGw9IiNGRjU2NTIiPgogICAgICAgICAgICA8ZyBpZD0i5YiG57uELTQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDgyMi4wMDAwMDAsIDU0NS4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxnIGlkPSLnrq3lpLQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDMyNi4wMDAwMDAsIDEyLjAwMDAwMCkiPgogICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSLot6/lvoQiIHBvaW50cz0iMTYuNjk4MTYxOCA5LjE0MjU4MjQgMjEuMjgyNTUwMiA1IDE2LjY5ODE2MTggMC44NTc0MTc2MDMgMTcuMzUzMDc0NCAwLjI2NTYyMDExOCAyMi41OTIzNzU0IDUgMTcuMzUzMDc0NCA5LjczNDM3OTg4Ij48L3BvbHlnb24+CiAgICAgICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9Iui3r+W+hC1jb3B5IiBvcGFjaXR5PSIwLjgiIHBvaW50cz0iOC40NDE3ODIwOSA5LjE0MjU4MjQgMTMuMDI2MTcwNCA1IDguNDQxNzgyMDkgMC44NTc0MTc2MDMgOS4wOTY2OTQ3MSAwLjI2NTYyMDExOCAxNC4zMzU5OTU3IDUgOS4wOTY2OTQ3MSA5LjczNDM3OTg4Ij48L3BvbHlnb24+CiAgICAgICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9Iui3r+W+hC1jb3B5LTIiIG9wYWNpdHk9IjAuNCIgcG9pbnRzPSIwLjE4NTQwMjM3NCA5LjE0MjU4MjQgNC43Njk3OTA3MiA1IDAuMTg1NDAyMzc0IDAuODU3NDE3NjAzIDAuODQwMzE0OTk2IDAuMjY1NjIwMTE4IDYuMDc5NjE1OTcgNSAwLjg0MDMxNDk5NiA5LjczNDM3OTg4Ij48L3BvbHlnb24+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==" /***/ }), /***/ "2bf2a7edf97ee4557731": /***/ (function(module, exports) { module.exports = "<div class=\"gwd-qrcode-container\">\n <div class=\"gwd-qrcode-jd\">\n <a style=\"height: 33px; line-height: 33px; text-align: center; white-space: nowrap\" href=\"https://www.gwdang.com/app/mobile\" class=\"topper\" target=\"_blank\">\n <span style=\"font-size: 12px; color: white; margin-right: 5px;\">打开</span>\n <span class=\"fontBig\">购物党APP</span>\n <span style=\"font-size: 12px; color: white; margin-left: 5px;\">扫码领券</span>\n </a>\n <div style=\"width: 148px; height: 148px; background: white; margin-top: 10px;\">\n <img src=\"{{ picUrl }}\" alt=\"\" style=\"width: 138px; height: 138px; margin: 5px;\">\n </div>\n <a style=\"text-align: center; margin-top: 4px;\" href=\"https://www.gwdang.com/app/mobile\" target=\"_blank\">\n <span class=\"download\" style=\"display: inline-block; font-size: 12px; transform: scale(0.83333); color: white; transform-origin: top; color: #666666\">立即下载</span>\n </a>\n </div>\n</div>\n<style>\n .gwd-qrcode-container {\n position: absolute;\n right: 50%!important;\n margin-right: -63px!important;\n top: 28px;\n width: 126px!important;\n display: none;\n font-family: 'Microsoft YaHei';\n }\n\n .gwd-qrcode-jd {\n width: 172px!important;\n height: 215px!important;\n background: url(\"https://cdn.gwdang.com/images/extensions/couponQr/[email protected]\")!important;\n background-size: contain!important;\n border: none!important;\n right: 50%!important;\n margin-right: -63px!important;\n top: 5px;\n flex-direction: column;\n align-items: center;\n position: absolute;\n display: flex;\n }\n\n .gwd-qrcode-jd span {\n cursor: pointer!important;\n }\n\n .gwd-qrcode-jd .topper {\n cursor: pointer!important;\n }\n\n .gwd-qrcode-jd .fontBig {\n font-size: 12px;\n font-weight: 600;\n color: white;\n }\n\n .gwd-qrcode-jd .topper:hover .fontBig {\n color: #ffeb9e!important;\n }\n\n .gwd-qrcode-container .download:hover {\n color: #fe4866!important;\n }\n\n .gwd-qrcode-container .download::after {\n content: '';\n position: absolute;\n background: url(https://cdn.gwdang.com/images/extensions/couponQr/[email protected]);\n width: 3px;\n height: 5px;\n transform: scale(1.66);\n left: 56px;\n background-size: cover;\n top: 7px;\n }\n\n .gwd-qrcode-container .download:hover::after {\n background: url(https://cdn.gwdang.com/images/extensions/couponQr/[email protected]);\n width: 3px;\n height: 5px;\n transform: scale(1.66);\n left: 56px;\n background-size: cover;\n top: 7px;\n }\n\n\n</style>" /***/ }), /***/ "2c7fa747888a567cd254": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_style_index_0_id_4148f062_scoped_true_lang_less___ = __webpack_require__("398e7c903a0cfb55f9a0"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_style_index_0_id_4148f062_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_style_index_0_id_4148f062_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_style_index_0_id_4148f062_scoped_true_lang_less____default.a); /***/ }), /***/ "2d4b8eb27024a4d711c9": /***/ (function(module, exports) { module.exports = "<div class=\"gwd_continue2 bjd_btn_box\">\n <a href=\"{{c_server}}\" target=\"_blank\" title=\"购物党\"></a>\n <span class=\"bjd_addcart\">点此进入下一步</span>\n <span class=\"bjd_close\"></span>\n</div>\n<style type=\"text/css\">\n .gwd_continue2 {\n width: 210px;\n height: 36px;\n background-color: #fff;\n color: #494b4d;\n position: absolute;\n left: -253px;\n top: -33px;\n text-align: center;\n line-height: 35px;\n border-bottom-left-radius: 28px;\n border-top-left-radius: 28px;\n font-size: 14px;\n border: 1px solid #47befe;\n font-family: 'Microsoft Yahei';\n }\n .gwd_continue2 a, .gwd_continue2 span {\n float: left;\n margin-left: 19px;\n }\n .gwd_continue2 .bjd_addcart {\n cursor: text;\n }\n .gwd_continue2 a {\n background: url('{{s_server}}/images/extensions/haitao_siteicon.png') 0px 6px no-repeat;\n background-size: 24px 22px;\n height: 35px;\n width: 26px;\n }\n .bjd_close {\n background: url('{{s_server}}/images/extensions/haitao_closeicon.png') 0px 0px no-repeat;\n width: 20px;\n height: 20px;\n margin-top: 12px;\n background-size: 12px 12px;\n }\n .gwd_continue2:before{\n border: 18px solid transparent;\n border-left-color: #47befe;\n content: \"\";\n position: absolute;\n left: 208px;\n width: 0px;\n height: 0px;\n top: -1px;\n }\n .gwd_continue2:after{\n border: 17px solid transparent;\n border-left-color: #fff;\n content: \"\";\n position: absolute;\n left: 208px;\n width: 0px;\n height: 0px;\n top: 0px;\n }\n #order-summary-container .a-box-inner span, #shippingOptionFormId .a-box-inner .continue-button .a-button-primary{\n overflow: visible;\n }\n</style>" /***/ }), /***/ "2d53f53e0179317f1fdf": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CommonLogin_vue_vue_type_template_id_5efee9c0_scoped_true___ = __webpack_require__("7b3df266cd171136e29d"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__CommonLogin_vue_vue_type_script_lang_js___ = __webpack_require__("aac1e6668367bfac2185"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__CommonLogin_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__CommonLogin_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__CommonLogin_vue_vue_type_style_index_0_id_5efee9c0_scoped_true_lang_less___ = __webpack_require__("d4471c1ebb687e8949a5"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__CommonLogin_vue_vue_type_style_index_1_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_favor___ = __webpack_require__("5998ce42bfa5570c8c29"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__CommonLogin_vue_vue_type_style_index_2_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_remind___ = __webpack_require__("2d6b5ab789900f0fec3a"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__CommonLogin_vue_vue_type_style_index_3_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_mini___ = __webpack_require__("3d2b96fda42baaf44d48"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__CommonLogin_vue_vue_type_style_index_4_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_popup___ = __webpack_require__("60eb72a5b7f6781306c9"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_7__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__CommonLogin_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__CommonLogin_vue_vue_type_template_id_5efee9c0_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__CommonLogin_vue_vue_type_template_id_5efee9c0_scoped_true___["b" /* staticRenderFns */], false, null, "5efee9c0", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('5efee9c0')) { api.createRecord('5efee9c0', component.options) } else { api.reload('5efee9c0', component.options) } module.hot.accept("./CommonLogin.vue?vue&type=template&id=5efee9c0&scoped=true&", function () { api.rerender('5efee9c0', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/CommonLogin.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "2d6b5ab789900f0fec3a": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_2_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_remind___ = __webpack_require__("5fe051e2197cc54d1b43"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_2_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_remind____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_2_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_remind___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_2_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_remind____default.a); /***/ }), /***/ "2da79097fdc184b40ede": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var utils = __webpack_require__("d54879e983a83d07f093"); var deviceEncode = __webpack_require__("57981fc895e0110a4346"); // const productMonitor = require('productMonitor') var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); // var vipSearch = require('vipSearch') var template = __webpack_require__("274e32dfd54a6b0d18a9"); // let log = require('log') // let cnzz = require('cnzz') var renderBottomBar = function renderBottomBar() { var perinfo = userData.get('permanent'); var hideClass = ''; if (perinfo.bottom_fold === '1') hideClass = 'b-hidden'; var html = __webpack_require__("21eec4aa13ef0038a0ea"); var refer = encodeURIComponent(document.location.href); var feedbackUrl = 'https://www.gwdang.com/brwext/suggest?refer=' + refer + '&from_device=' + deviceEncode(G.from_device); var settingUrl = undefined; if (!perinfo.setPage) { settingUrl = G.server + '/brwext/setting?from=' + deviceEncode(G.from_device) + '&btype=' + (G.btype ? G.btype : ''); } $('body').append(template.compile(html)({ hidemod: hideClass, settingUrl: settingUrl, detailW: $(window).width(), f_url: feedbackUrl })); // if (G.site == 'lenovo') { // if ($('#container_buygroup').length > 0 && $('#container_buygroup').css('position') == 'fixed') { // $('#bjd_bottom_detail').css('bottom', '80px') // } // } }; var addBtBarEvent = function addBtBarEvent() { var perinfo = userData.get('permanent'); $('#gwdang-trend').on('mouseenter', function () { $('#gwdang-trend-detail').css('display', 'flex'); $('#gwdang-trend-detail .panel-wrap').css('flex', 1); $(document).trigger('renderAgain'); $(this).addClass('mshover'); }); $('#gwdang-trend, #gwdang-trend-detail').on('mouseleave', function () { // $('#gwdang-trend-detail').hide() $(this).removeClass('mshover'); }); $('#gwdang-setting').on('click', function () { utils.openTab(); }); $('.nbt-close-btn').on('click', function () { if (perinfo.bottom_fold !== '1') { $('.close-module').addClass('b-hidden'); $(this).addClass('b-hidden'); $('#bjd_bottom_detail').css('width', '94px'); $('.right-info').css('display', 'none'); perinfo.bottom_fold = '1'; } else { $('.close-module').removeClass('b-hidden'); $(this).removeClass('b-hidden'); $('#bjd_bottom_detail').css('width', 'auto'); $('.right-info').css('display', 'flex'); perinfo.bottom_fold = '0'; } // 用户设置插件之后需要保存 utils.setLocal('bottom_fold', perinfo.bottom_fold); utils.settings('set_p_fold', 'p_fold', perinfo.bottom_fold); }); }; module.exports.init2 = function (data) { if (G.IE6 && G.site == 'ccb') { return; } if (G.site === 'smzdm') { return; } // 加载本地插件UI renderBottomBar(); // require('lowestPrice').init(data.now) // // require('haoym').init() // // require('zhidemai').init(data.now.site_id) // require('compare').init(data) // require('topFavor').init() // 加载底部设置 __webpack_require__("7ffda7d29dfea4a64d16").init(); addBtBarEvent(); // priceTrend.init(G.where_buy_dps, G.now_dp_id, "bottom"); // taobaoCompare.init(data, "bottom"); // wishlist.init(data.share_good, data.now); // //加载促销活动 // promo.addPromo(promo.getPromoData(data)); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "2e185af694cfa8c5397c": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_template_id_5ccff421_scoped_true___ = __webpack_require__("82410f902da08ba0a973"); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_template_id_5ccff421_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_template_id_5ccff421_scoped_true___["b"]; }); /***/ }), /***/ "2e99c26f3c749e77922a": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_1_id_673c66fa_scoped_true_lang_less___ = __webpack_require__("aa51cc982b2c1333cb43"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_1_id_673c66fa_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_1_id_673c66fa_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_1_id_673c66fa_scoped_true_lang_less____default.a); /***/ }), /***/ "2eb8d6935e044e0d6d06": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var requestInfo = function requestInfo(url, callback) { var cbrun = false; if (G.allowBackgroundRequest) { __webpack_require__("91f250ebeb8d5987491c").getCouponFromUrl(url).then(function (res) { if (cbrun) return; cbrun = true; callback(res); }); setTimeout(function () { if (!cbrun) { cbrun = true; callback(); } }, 3000); } else { __webpack_require__("91f250ebeb8d5987491c").getCouponFromUrl(url).then(function (res) { callback(res); }); } // var xmlhttp = new XMLHttpRequest(); // xmlhttp.addEventListener('load', function() { // try { // callback(JSON.parse(xmlhttp.responseText)) // } catch (e) { // callback({}) // } // // }) // xmlhttp.open("GET", url, true); // xmlhttp.send(); // require('common/request').get(`${G.server}/extension/CouponHandler?op=get&rawApi=${encodeURIComponent(url)}`).then(data => { // // }) }; module.exports.init = function (id, adzone_id, callback) { var direct = arguments.length <= 3 || arguments[3] === undefined ? true : arguments[3]; var cbrun = false; if (G.forbidCoupon) { return; } if (!id) { callback && callback(); cbrun = true; return; } id = ('' + id).replace('-83', ''); id = ('' + id).replace('-8', ''); var hosts = "open.lesiclub.cn"; // if ((G.from_device === 'bijiago' && navigator.userAgent.toLocaleLowerCase().indexOf('firefox') > -1)) // hosts = "browser.gwdang.com/adbats" var url = location.protocol + "//" + hosts + "/coupon/get_ext/10005/" + adzone_id + "/" + id; if (!direct) { __webpack_require__("91f250ebeb8d5987491c").rawGet(url).then(function (data) { if (data && data.data) { data.data.reqid = id; data.data.click_url2 = G.u_server + '/?url=' + encodeURIComponent(data.data.click_url); data.data.cpid = adzone_id; if (callback) callback(data); } else { callback(null); } cbrun = true; }); return; } requestInfo(url, function (data) { if (data && data.data) { data.data.reqid = id; data.data.click_url2 = G.u_server + '/?url=' + encodeURIComponent(data.data.click_url); if (G.ss_name === 'priceDog') { data.data.click_url2 = G.u_server + '/redirect/tao?id=' + id; if (G.aliSite) { data.data.click_url2 = G.u_server + '/redirect/tao?id=' + id + '&page=1'; } } data.data.cpid = adzone_id; if (callback) callback(data); } else { callback(null); } cbrun = true; }); }; module.exports.byIdAndAdzone = function (id, adzone_id) { if (!id) { return new Promise(function (resolve) { return resolve(null); }); } id = ('' + id).replace('-83', ''); id = ('' + id).replace('-8', ''); var hosts = "open.lesiclub.cn"; if (G.from_device === 'bijiago' && navigator.userAgent.toLocaleLowerCase().indexOf('firefox') > -1) hosts = "browser.gwdang.com/adbats"; var url = location.protocol + "//" + hosts + "/coupon/get_ext/10005/" + adzone_id + "/" + id; return new Promise(function (resolve) { requestInfo(url, function (data) { if (data && data.data) { data.data.reqid = id; data.data.click_url2 = G.u_server + '/?url=' + encodeURIComponent(data.data.click_url); if (G.ss_name === 'priceDog') { data.data.click_url2 = G.u_server + '/redirect/tao?id=' + id; if (G.aliSite) { data.data.click_url2 = G.u_server + '/redirect/tao?id=' + id + '&page=1'; } } resolve(data); } else { resolve(null); } }); }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "2f77f5f9070b5907552e": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G, Vue) {// const getCoupon = require('common/getCoupon') var template = __webpack_require__("274e32dfd54a6b0d18a9"); var detect = __webpack_require__("60624e018be49fb2d959"); var priceParser = __webpack_require__("e29ce4c2a4af273fcade"); var html = __webpack_require__("8e8507d71ff6e8b54aa2"); var request = __webpack_require__("91f250ebeb8d5987491c"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var getCoupon = __webpack_require__("2eb8d6935e044e0d6d06"); var QRReloader = __webpack_require__("95b5a8392f3e95ca15b5"); var randomNum = undefined; var renderTop = function renderTop(data) { if (!data || data.code !== 200) { // require('tbHbQrcode').init() $('#gwdang-banner-ad2').show(); setTimeout(function () { __webpack_require__("12aab5fd482f5627ccd1").init(false); }, 3000); return; } data = data.data; if (data) { setTimeout(function () { __webpack_require__("12aab5fd482f5627ccd1").init(true); }, 3000); } else { setTimeout(function () { __webpack_require__("12aab5fd482f5627ccd1").init(false); }, 3000); } data.pid = '30002'; if (navigator.userAgent.indexOf('Firefox') > -1) { data.pid = 'firefox-top'; } data.rendering = 'renderTop'; getPageInfo(data, function (newData, url) { var html = __webpack_require__("487014f393da302d31f6"); var isShowPic = randomNum > -1 ? true : false; var tle = "点击领券"; if (isShowPic) { tle = ""; } var views = template.compile(html)({ price: data.coupon.coupon_money, url: 'https://tb.gwdang.com/extension/qrpage?dp_id=' + G.dp.dpId + '&tag=9_' + G.browser + '&discount=' + data.coupon.coupon_money, tle: tle, isShowPic: false, picUrl: false, useTaobao: false }); $('.gwd-topbar-left').append(views); cnzz.log('淘宝优惠券顶部二维码', '曝光'); var hasQr = false; $('.gwd-topbar-left .coupon_detail img').css('visibility', 'hidden'); $('#top_coupon_btn').hover(function () { if (!hasQr) { QRReloader.init(newData, url, '.gwd-topbar-left .coupon_detail > img', function (newData2) { hasQr = true; cnzz.log('淘宝优惠券顶部二维码', '悬浮'); cnzz.log('track:topcoupon:' + G.from_device); log('track:topcoupon:' + G.from_device); addEvent('click:topcoupon:' + G.from_device); }); } }); }); }; var renderTop2 = function renderTop2(data) { if (data instanceof Array) { return; } var html = __webpack_require__("487014f393da302d31f6"); $('.gwd-topbar-left').append(template.compile(html)({ price: data.discount, url: data.click_url2 })); cnzz.log('track:topcoupon_2:' + G.from_device); log('track:topcoupon_2:' + G.from_device); addEvent('click:topcoupon_2:' + G.from_device); }; var addEvent = function addEvent(str) { var showQRcode = undefined; $('#top_coupon_btn').on('click', function () { cnzz.log(str); log(str); }); $('.coupon-close-btn').on('click', function (e) { $('#top_coupon_btn').remove(); return false; }); $('#top_coupon_btn').on('mouseenter', function () { if (!showQRcode) { cnzz.log("track:coupon:qrcode:top"); log("track:coupon:qrcode:top"); showQRcode = true; } }); }; var getPageInfo = __webpack_require__("047b30291b8b83e043ed"); var renderMini = function renderMini(data) { if (!data || data && data.code !== 200) { if (G.runminiCoupon2) { $(document).trigger('runminiCoupon2'); } else { G.runminiCoup = '1'; } __webpack_require__("48e72e71ca8baf5916e2").init(); __webpack_require__("9c38beef5ff283e15bd2").setMet('coupon'); //renderRedPack() return; } __webpack_require__("9c38beef5ff283e15bd2").setMet('shopCouponGot', false); G.runminiCoup = '2'; data = data.data; data.pid = '30001'; if (navigator.userAgent.indexOf('Firefox') > -1) { data.pid = 'firefox-middle'; } __webpack_require__("9c38beef5ff283e15bd2").setMet('coupon', data.coupon.coupon_money); getPageInfo(data, function (newData, url) { data.coupon.lastPrice = Number(G.dp.price - data.coupon.coupon_money).toFixed(2); var isShowPic = randomNum > -1 ? true : false; var tle = "点击领券"; if (isShowPic) { tle = ""; } // new coupon var CommonCouponBarMini = __webpack_require__("bf749102803a6e48eddc")['default']; new Vue({ el: '#gwd-coupon-placeholder', render: function render(h) { return h(CommonCouponBarMini, { props: { type: 'link', href: 'https://tb.gwdang.com/extension/qrpage?dp_id=' + G.dp.dpId + '&tag=9_' + G.browser + '&discount=' + data.coupon.coupon_money, icon: __webpack_require__("7c92b815f92d7fc350e4"), text: '当前商品领券立减' + data.coupon.coupon_money + '元', mainColor: '#fd0937', secondColor: '#ff5e97', couponValue: data.coupon.coupon_money, takeBg: __webpack_require__("5c6fd9247ce2328b1c0e"), qrTitle: '领商品券', qrParams: newData } }); } }); // let views = template.compile(html)({ // data: data, // tle: tle, // isShowPic: isShowPic, // picUrl: 'xx', // useTaobao: false // }); // $('#gwd-coupon-placeholder').replaceWith(views) // cnzz.log('track:minicoupon:' + G.from_device) // log('track:minicoupon:' + G.from_device) // $('#coupon_box').on('click', function() { // cnzz.log('click:minicoupon:' + G.from_device) // log('click:minicoupon:' + G.from_device) // }) // setTimeout(() => { // require('global2').autoFixWidth(false) // }, 0) // let showQRcode // $('#coupon_box .minicoupon_detail img').css('visibility', 'hidden') // cnzz.log('淘宝优惠券中间二维码', '曝光') // $('#coupon_box').on('mouseenter', function() { // if (!showQRcode) { // QRReloader.init(newData, url, '#coupon_box .minicoupon_detail > img', function(newData2) { // showQRcode = true; // cnzz.log('淘宝优惠券中间二维码', '悬浮') // }, false, false) // cnzz.log("track:coupon:qrcode:mini") // log("track:coupon:qrcode:mini") // } // }) }); }; var renderMini2 = function renderMini2(data) { if (data instanceof Array) { return; } data = { 'click_url': data.click_url2, 'coupon': { 'coupon_money': data.discount, 'lastPrice': data.couponPricePC } }; var views = template.compile(html)({ data: data }); $('.' + G.wishdom).append(views); cnzz.log('track:topcoupon_2:' + G.from_device); log('track:topcoupon_2:' + G.from_device); $('#coupon_box').on('click', function () { cnzz.log('click:minicoupon_2:' + G.from_device); log('click:minicoupon_2:' + G.from_device); }); }; var getCouponInfo = function getCouponInfo(callback) { var dp_query = userData.get('dp_query'); var dp_id = dp_query && dp_query.dp && dp_query.dp.dp_id; var url = 'https://browser.gwdang.com/app/quanbtc?dpid=' + dp_id; request.get(url).done(function (data) { callback(data); }); }; var render2 = function render2(data) { if (data.length === 0 || !data.lt_short_link && !data.click_url) { return; } if (data.lt_short_link) data.click_url = data.lt_short_link; if (!data.couponPricePC) { data.couponPricePC = (Number(data.pcPrice) - Number(data.discount)).toFixed(2); } renderMini2(data); renderTop2(data); }; var renderIndex = function renderIndex() { randomNum = parseInt(Math.random() * 100); // // duoshoubang 接口 var dp_id = G.dp.itemId; var adzone_id = '30001'; var adzone_id2 = '30002'; // if (navigator.userAgent.indexOf('Firefox') > -1) { // require('./getCouponNew').init("pid-firefox", "mini", renderMini) // } else { getCoupon.init(dp_id, adzone_id, renderMini); // } // 微淘客接口 // require('./getCouponNew').init("pid-1", "mini", renderMini) // if (navigator.userAgent.indexOf('Firefox') > -1) { // require('./getCouponNew').init("pid-firefox", "top", renderTop) // } else { //require('./getCouponNew').init("pid-1", "top", renderTop) getCoupon.init(dp_id, adzone_id2, renderTop); // } }; module.exports.init = function (dom) { if (G.forbidCoupon) return; if (G.from_device === '360') return; var siteName = G.site; var siteId = detect.getSiteId(siteName); priceParser.init(siteId, function (price) { if (price && price > 0) { G.dp.oldPrice = price; G.dp.price = price; } renderIndex(); }); }; module.exports.init2 = function () { getCouponInfo(render2); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "2f8dd37a70f60d60581b": /***/ (function(module, exports) { module.exports = "<div class=\"gwd_checkout bjd_btn_box\">\n <a href=\"{{c_server}}\" target=\"_blank\" title=\"购物党\"></a>\n <span class=\"bjd_addcart\">去结算</span>\n <span class=\"bjd_close\"></span>\n</div>\n<style type=\"text/css\">\n .gwd_checkout {\n width: 148px;\n height: 36px;\n background-color: #fff;\n color: #494b4d;\n position: absolute;\n line-height: 35px;\n border-bottom-right-radius: 28px;\n border-top-right-radius: 28px;\n font-size: 14px;\n border: 1px solid #47befe;\n font-family: 'Microsoft Yahei';\n top: 2px;\n z-index: 99;\n right: -211px;\n }\n .gwd_checkout a, .gwd_checkout span {\n float: left;\n margin-left: 19px;\n }\n .gwd_checkout .bjd_addcart {\n cursor: text;\n }\n .gwd_checkout a {\n background: url('{{s_server}}/images/extensions/haitao_siteicon.png') 0px 6px no-repeat;\n background-size: 24px 22px;\n height: 35px;\n width: 26px;\n margin-left: 7px;\n }\n .bjd_close {\n background: url('{{s_server}}/images/extensions/haitao_closeicon.png') 0px 0px no-repeat;\n width: 20px;\n height: 20px;\n margin-top: 12px;\n background-size: 12px 12px;\n }\n .gwd_checkout:before{\n border: 29px solid transparent;\n border-right-color: #47befe;\n content: \"\";\n border-bottom-width: 18px;\n border-top-width: 18px;\n position: absolute;\n left: -58px;\n width: 0px;\n height: 0px;\n top: -1px;\n }\n .gwd_checkout:after {\n border: 27px solid transparent;\n border-right-color: #fff;\n content: \"\";\n border-bottom-width: 17px;\n border-top-width: 17px;\n border-left-width: 30px;\n position: absolute;\n left: -57px;\n width: 0px;\n height: 0px;\n top: 0px;\n }\n#hlb-ptc-btn span.a-button-inner{\n overflow: visible;\n}\n\n</style>" /***/ }), /***/ "2fcb34d56f979fea4637": /***/ (function(module, exports) { module.exports = "<div id=\"size_detail\" class=\"ht_size_detail gwd_haitao\" style=\"top: {{pos.posy}}px;left: {{pos.posx}}px;\">\n <span class=\"closebar closebg\" title=\"关闭\"></span>\n \n <div class=\"size_head\">\n <div class=\"clothes_nav\">\n <ul>\n <li class=\"select\">男装</li>\n <li>女装</li>\n <li>童装</li>\n <li>男鞋</li>\n <li>女鞋</li>\n <li>童鞋</li>\n </ul>\n </div>\n <div class=\"unit_desc unit_cm\">单位:厘米(CM)</div>\n <div class=\"unit_desc unit_mm\">单位:毫米(MM)</div>\n </div>\n <div class=\"size_content\">\n <div class=\"detail_left\">\n <span class=\"shangyi size_hover\">上装</span>\n <span class=\"xiazhuang\">下装</span>\n <span class=\"tongzhuang tongzhuang0\">0 ~ 4岁</span>\n <span class=\"tongzhuang tongzhuang4\">4 ~ 12岁</span>\n <span class=\"shoes\">鞋子</span>\n <span class=\"tongxie tongxie0\">0 ~ 4岁</span>\n <span class=\"tongxie tongxie4\">4 ~ 12岁</span>\n <span class=\"cloth_icon ht_shangyi manshangzhuang\"></span>\n </div>\n <div class=\"detail_right\">\n <div class=\"content_center\">\n <div class=\"size_s\">\n </div>\n <div id=\"size_item\">\n <a class=\"size_item_img\"></a>\n </div>\n \n </div>\n <div class=\"size_desc\">\n <span class=\"red\"></span>\n <span >此尺码为一般尺码,不同品牌可能会存在相应不同</span>\n </div>\n </div>\n </div>\n <div class=\"size_foot\">\n <div class=\"size_con\">在线尺寸转换工具</div>\n <div class=\"size_op\">\n <input id=\"first_size\" type=\"text\">\n <input class=\"size_xiala first_xiala\" value=\"厘米\" readonly>\n <div class=\"size_xialabox\" data-size=\"first_xiala\">\n <a href=\"javascript:void(0);\"></a>\n <a href=\"javascript:void(0);\">米</a>\n <a href=\"javascript:void(0);\">厘米</a>\n <a href=\"javascript:void(0);\">毫米</a>\n <a href=\"javascript:void(0);\">英尺</a>\n <a href=\"javascript:void(0);\">英寸</a>\n <a href=\"javascript:void(0);\">码</a>\n <a href=\"javascript:void(0);\">尺</a>\n <a href=\"javascript:void(0);\">寸</a>\n <a href=\"javascript:void(0);\">分</a>\n <a href=\"javascript:void(0);\">厘</a>\n </div>\n <span class=\"conversion\">转换为</span>\n <input id=\"second_size\">\n <input class=\"size_xiala second_xiala\" value=\"英寸\" readonly>\n <div class=\"size_xialabox\" data-size=\"second_xiala\">\n <a href=\"javascript:void(0);\"></a>\n <a href=\"javascript:void(0);\">米</a>\n <a href=\"javascript:void(0);\">厘米</a>\n <a href=\"javascript:void(0);\">毫米</a>\n <a href=\"javascript:void(0);\">英尺</a>\n <a href=\"javascript:void(0);\">英寸</a>\n <a href=\"javascript:void(0);\">码</a>\n <a href=\"javascript:void(0);\">尺</a>\n <a href=\"javascript:void(0);\">寸</a>\n <a href=\"javascript:void(0);\">分</a>\n <a href=\"javascript:void(0);\">厘</a>\n </div>\n </div>\n </div>\n </div>" /***/ }), /***/ "314ddba7e03fe1fca042": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_script_lang_js___ = __webpack_require__("f3d02ced7d319b2030c9"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "31565daf77a36862a767": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_script_lang_js___ = __webpack_require__("4dbc4849707ea6484a05"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "316f9c352c6202560d16": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = { log: console.log ? console.log : function (x) {}, error: function error(e) { if (console.error) { console.error(e); } } }; /***/ }), /***/ "31b428c6916433ff2380": /***/ (function(module, exports) { module.exports = "<div id=\"history_detail\" class=\"history_detail\">\n <div class=\"history_head\">\n <span class=\"history_head_tle blkcolor1\">浏览历史</span>\n {{if his_size != 0}}\n <span class=\"clear_his blkcolor4\">清空历史</span>\n {{/if}}\n </div>\n <div class=\"history_content his_size_{{his_size}}\">\n <ul>\n {{each data}}\n <li >\n <a class=\"item_img\" href=\"{{$value.url}}\" target=\"_blank\" title=\"{{$value.title}}\"><img src=\"https://cdn.gwdang.com/images/extensions/newbar/120.gif\" data-original=\"{{$value.img_url}}\"></a>\n <div class=\"item_desc\">\n <a class=\"item_title blkcolor3\" href=\"{{$value.url}}\" target=\"_blank\" title=\"{{$value.title}}\">{{$value.title}}</a>\n <a class=\"other_desc\">\n <span class=\"site_icon\" title=\"{{$value.site_name}}\"><img src=\"{{s_server}}/images/favicon/{{$value.site_id}}.ico\"></span>\n <span class=\"item_price prifontf\">{{$value.currency}}{{$value.price}}</span>\n <span class=\"item_close_btn blkcolor4\" data-id=\"{{$value.dp_id}}\">删除</span>\n </a>\n </div>\n </li>\n {{/each}}\n </ul>\n <div class=\"no-history\">暂无浏览历史</div>\n </div>\n <style type=\"text/css\">\n #history_detail {\n width: 288px;\n min-height: 140px;\n max-height: 405px;\n overflow-y: auto;\n background-color: #fff;\n position: absolute;\n display: none;\n box-shadow: 0 5px 10px 0 rgba(22,24,26,0.15);\n border: 1px solid #edf1f2;\n }\n .history_head {\n height: 45px;\n width: 100%;\n position: relative;\n }\n .no-history {\n width: 100%;\n height: 70px;\n line-height: 70px;\n color: #323333;\n font-size: 14px;\n text-align: center;\n display: none;\n }\n .history_head span {\n display: inline-block;\n position: absolute;\n }\n #history_detail .history_head_tle {\n font-size: 14px;\n font-weight: bold;\n top: 14px;\n left: 14px;\n line-height: 14px;\n }\n #history_detail .clear_his {\n font-size: 12px;\n top: 14px;\n right: 19px;\n line-height: 12px;\n cursor: pointer;\n }\n #history_detail .clear_his:hover {\n color: #48befe;\n }\n #history_detail .history_content {\n margin: 0px 0px 17px 0;\n width: 272px;\n margin-left: 16px;\n height: 341px;\n overflow-y: scroll;\n }\n #history_detail .history_content.his_size_0, #history_detail .history_content.his_size_1 {\n height: 76px;\n }\n #history_detail .history_content.his_size_0, #history_detail .history_content.no-his-content {\n overflow: hidden;\n }\n #history_detail .history_content.his_size_2 {\n height: 165px;\n }\n #history_detail .history_content.his_size_3 {\n height: 254px;\n }\n #history_detail .history_content.his_size_0 .no-history, #history_detail .history_content.no-his-content .no-history {\n display: block;\n }\n #history_detail ul {\n margin: 0px;\n padding: 0px;\n }\n #history_detail ul li{\n list-style: none;\n height: 72px;\n margin-top: 17px;\n overflow: hidden;\n float: none;\n }\n #history_detail ul li:first-child{\n margin-top: 0px;\n }\n #history_detail .item_img {\n height: 70px;\n width: 70px;\n float: left;\n border: 1px solid #edf1f2;\n text-align: center;\n }\n #history_detail .item_img:after {\n content:'';\n width:0;\n height:100%;\n display:inline-block;\n vertical-align:middle;\n }\n #history_detail .item_desc {\n display: inline-block;\n margin-left: 14px;\n float: left;\n -margin-left: 10px;\n width: 167px;\n }\n #history_detail a.item_title, #history_detail a.other_desc {\n height: 16px;\n width: 159px;\n line-height: 16px;\n float: left;\n text-align: left;\n overflow: hidden;\n }\n #history_detail a.other_desc {\n margin-top: 24px;\n width: 167px;\n }\n #history_detail a.item_title{\n font-size: 12px;\n line-height: 16px;\n height: 32px;\n width: 159px;\n text-decoration: none;\n }\n #history_detail a.item_title:hover{\n text-decoration: none;\n color: #48befe;\n }\n .other_desc:after {\n content: \"\";\n display: block;\n clear: both;\n }\n .other_desc span {\n float: left;\n display: inline-block;\n }\n span.item_price {\n margin-left: 8px;\n margin-top: 2px;\n color: #E4393C;\n cursor: text;\n display: inline-block;\n height: 14px;\n line-height: 14px;\n font-size: 14px;\n font-weight: bold;\n }\n #history_detail span.item_price:hover {\n color: #E4393C;\n cursor: text;\n }\n #history_detail .item_img img {\n max-height: 70px;\n max-width: 70px;\n display: inline-block;\n margin: 0 auto;\n vertical-align: middle;\n }\n #history_detail span.site_icon {\n height: 16px;\n line-height: 16px;\n cursor: text;\n }\n\n span.item_close_btn {\n font-size: 12px;\n height: 12px;\n width: 25px;\n float: right;\n text-align: center;\n line-height: 17px;\n cursor: pointer;\n }\n span.item_close_btn:hover {\n color: #48befe!important;\n }\n\n\n </style>\n</div>" /***/ }), /***/ "31d452087f8bb0fc12f2": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_script_lang_js___ = __webpack_require__("0a3b1f8666118ebd3443"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "323113ff2d32291051fe": /***/ (function(module, exports) { module.exports = "{{each data}}\n <li class=\"index_{{$index}}\" data-id=\"{{$value.dp_id}}\">\n <div class=\"item-box-dev\">\n <span class=\"com-item-pri prifontf\">¥{{$value.price}}</span>\n <span class=\"com-item-store blkcolor1\">{{$value.site_name2 || $value.site_name}}</span>\n </div>\n </li>\n{{/each}}" /***/ }), /***/ "326c042b7a879d19324e": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, " #gwd_ht_main a{\n display: inline-block;\n }\n .gwd_haitao {\n font-size: 12px;\n font-family: 'Microsoft Yahei'\n }\n #gwd_ht_main .unit_price #ht_addcollect{\n border: 1px solid #f07860;\n cursor: pointer;\n height: 24px;\n line-height: 24px;\n text-align: center;\n width: 77px;\n border-radius: 12px;\n background-color: #fff;\n margin-bottom: 6px;\n margin-top: 4px;\n color: #f07860;\n }\n #gwd_ht_main .unit_price #ht_addcollect.trend_wait.c_adding{\n background-color: #f07860;\n color: #fff;\n }\n #gwd_ht_main .unit_price #ht_addcollect.trend_wait.c_added{\n background-color: #f07860;\n color: #fff;\n }\n .gwd_haitao .div_detail {\n display: none;\n position: absolute;\n width: 146px;\n border: 1px solid #e6e9eb;\n background-color: #fff;\n z-index: 99;\n line-height: 19px;\n font-size: 12px;\n color: #888;\n padding: 6px 6px 9px 6px;\n box-shadow: 2px 2px 12px 2px #e6e9eb;\n height: auto;\n }\n .gwd_haitao .content_default_left .weight_type_detail {\n top: 7px;\n left: 156px;\n position: absolute;\n width: 113px;\n height: 24px;\n line-height: 22px;\n padding: 0px 6px;\n }\n .pro_type_detail {\n top: 9px;\n left: 350px;\n }\n .gwd_haitao .pro_type_detail.div_detail {\n padding: 0 6px;\n width: 134px;\n }\n .size_detail {\n top: 130px;\n left: 350px;\n }\n .gwd_haitao .size_detail.div_detail {\n padding: 0px 6px;\n width: 110px;\n }\n .pro_type:hover,.mail_type:hover {\n cursor: text;\n }\n .gwd_haitao .ht_getprice:hover{\n text-decoration: none;\n color: #454A4D;\n }\n .gwd_haitao .content_default_left{\n height: 160px;\n width: 254px;\n border-right: 1px solid #e6e9eb;\n float: left;\n display: inline-block;\n }\n .gwd_haitao .ht_freight,.gwd_haitao .del_line{\n display: inline-block;\n text-align: left;\n font-size: 14px;\n margin-left: 12px;\n }\n a.ht_transport_btn span, .ht_tariff_btn span {\n display: inline-block;\n width: 60px;\n height: 40px;\n overflow: hidden;\n float: left;\n font-size: 12px;\n margin-right: 5px;\n }\n a.ht_transport_btn span:hover, .ht_tariff_btn span:hover {\n text-decoration: underline;\n }\n .gwd_haitao .content_default_right{\n display: inline-block;\n height: 160px;\n width: 119px;\n }\n .gwd_haitao .content_default_right a{\n width: 120px;\n height: 40px;\n line-height: 40px;\n color: #383835;\n border-bottom: 1px solid #e6e9eb;\n padding: 0 0 0 14px;\n text-decoration: none;\n }\n .gwd_haitao .content_default_right a span {\n font-size: 12px;\n margin-left: 7px;\n }\n .gwd_haitao .content_default_right a:hover{\n text-decoration: none;\n color: #383835;\n }\n #gwd_ht_main .size_help{\n cursor: pointer;\n border-bottom: none;\n }\n #gwd_ht_main .size_help span {\n text-decoration: none;\n color: #5aa4cc;\n }\n #gwd_ht_main .size_help span:hover {\n text-decoration: underline;\n }\n .gwd_haitao .content_default_right em{\n display: inline-block;\n width: 20px;\n height: 20px;\n position: relative;\n top: 5px;\n }\n .gwd_haitao .size_help em{\n background: url('https://s1.gwdang.com/images/extensions/haitao_sizeicon.png') 0px 0px no-repeat;\n background-size: 20px 20px;\n }\n .gwd_haitao .ht_translate em{\n background: url('https://s1.gwdang.com/images/extensions/haitao_transicon.png') 0px 0px no-repeat;\n background-size: 20px 20px;\n }\n .gwd_haitao .pro_type .ziying{\n background: url('https://s1.gwdang.com/images/extensions/haitao_ziyingicon.png') 0px 0px no-repeat;\n }\n .gwd_haitao .pro_type .sanfang{\n background: url('https://s1.gwdang.com/images/extensions/haitao_sanicon.png') 0px 0px no-repeat;\n background-size: 20px 20px;\n }\n .gwd_haitao .mail_type .zhiyou{\n background: url('https://s1.gwdang.com/images/extensions/haitao_zhiicon.png') 0px 0px no-repeat;\n }\n .gwd_haitao .mail_type .feizhiyou{\n background: url('https://s1.gwdang.com/images/extensions/haitao_zhuanicon.png') 0px 0px no-repeat;\n background-size: 20px 20px;\n }\n .gwd_haitao .same-style em {\n background: url('https://s1.gwdang.com/images/extensions/haitao_samestyle.png') 0px 0px no-repeat;\n }\n .gwd_haitao .vip_tle em {\n background: url('https://s1.gwdang.com/images/extensions/haitao_vipicon.png') 0px 0px no-repeat;\n }\n .gwd_haitao .gwd_wishlist_trend_detail_wrapper{\n float: left;\n }\n .gwd_haitao .ht_content{\n height: 162px;\n border-top: 1px solid #e6e9eb;\n position: relative;\n }\n .content_default {\n float: left;\n }\n .content_default:after, .gwd_haitao .content_default_right:after {\n content: \"\";\n display: block;\n clear: both;\n }\n #cate_select_box{\n text-align: center;\n margin-top: 4px;\n position: relative;\n }\n .gwd_haitao #cate_select_box input{\n height: 30px;\n width: 109px;\n background: url('https://s1.gwdang.com/images/extensions/haitao_downgrayicon.png') no-repeat 89px 11px;\n background-size: 12px 7px;\n cursor: pointer;\n border: 1px solid #fff;\n box-shadow: none;\n box-sizing: border-box;\n padding: 3px 7px;\n border-radius: 4px;\n color: #9ca7ad;\n font-size: 12px;\n }\n .gwd_haitao #cate_select_box input.sel_info{\n background-color: #e1e1e1;\n }\n .gwd_haitao #cate_select_box input.input_hover{\n border-bottom: 1px solid #fff;\n color: #9ca7ad;\n }\n .gwd_haitao .cate_select_1{\n display: inline-block;\n float: left;\n margin-left: 22px;\n border: 1px solid #969899;\n border-radius: 4px;\n position: relative;\n }\n .gwd_haitao .cate_select_1.select_hover , .gwd_haitao .cate_select_2.select_hover{\n height: 218px;\n z-index: 9999;\n background-color: #fff;\n\n }\n .gwd_haitao .cate_select_2{\n margin-left: 16px;\n display: inline-block;\n border: 1px solid #969899;\n border-radius: 4px;\n position: relative;\n float: left;\n }\n .gwd_haitao .xialabox{\n display: none;\n background-color: #fff;\n overflow-y: scroll;\n overflow-x: hidden;\n height: 185px;\n text-align: left;\n border-top: none;\n position: absolute;\n width: 109px;\n font-size: 12px;\n }\n .ie_hack.gwd_haitao .xialabox {\n width: 111px;\n }\n .gwd_haitao #select_btn{\n display: inline-block;\n width: 60px;\n height: 24px;\n background-color: #47befe;\n border-radius: 12px;\n margin: 0 auto;\n color: #fff;\n text-align: center;\n line-height: 23px;\n cursor: pointer;\n position: absolute;\n top: 54px;\n left: 116px;\n }\n #transport_detail{\n position: fixed;\n width: 755px;\n height: 314px;\n border: 1px solid #e6e9eb;\n background-color: #fff;\n top: 400px;\n left: 400px;\n display: none;\n z-index: 99999;\n box-shadow: 0px 5px 19px 0px #d7d8d9;\n }\n #transport_detail *{\n box-sizing: border-box;\n }\n #transport_detail .trans_nav .span_0 {\n margin-left: 10px;\n }\n #transport_detail .trans_nav .span_1{\n text-align: left;\n width: 146px;\n margin-left: 17px;\n }\n #transport_detail .trans_nav .span_2{\n text-align: left;\n width: 147px;\n margin-left: 4px;\n }\n .ht_trans_detail .trans_head{\n height: 51px;\n border-bottom: 1px solid #e6e9eb;\n }\n .gwd_haitao .closebar{\n display: inline-block;\n text-align: center;\n font-size: 30px;\n position: absolute;\n top: 4px;\n right: 7px;\n color: #666;\n cursor: pointer;\n }\n .gwd_haitao .closebar.closebg {\n background: url(\"https://s1.gwdang.com/images/extensions/haitao_closeicon.png\") 6px 6px no-repeat;\n background-size: 9px 9px;\n height: 22px;\n width: 22px;\n top: 1px;\n right: 1px;\n }\n .gwd_haitao .closebar.closebg:hover {\n background: url(\"https://s1.gwdang.com/images/extensions/haitao_closehovericon.png\") 3px 3px no-repeat;\n background-size: 15px 15px;\n }\n\n .size_desc {\n color: #9f9f9f;\n line-height: 35px;\n }\n\n\n /* 尺码帮助 */\n #size_detail{\n width: 618px;\n height: 440px;\n position: fixed;\n top: 400px;\n left: 400px;\n display: none;\n text-align: left;\n z-index: 9999999;\n box-sizing: border-box;\n background-color: #fff;\n border: 1px solid #e6e9eb; \n box-shadow: 0px 5px 19px 0px #d7d8d9; \n }\n .ht_size_detail .shangyi, .tongzhuang0, .tongxie0{\n position: absolute;\n left: 38px;\n }\n .ht_size_detail .xiazhuang, .tongzhuang4, .tongxie4{\n position: absolute;\n top: 50px;\n left: 38px;\n }\n .ht_size_detail .shoes,.ht_size_detail .tongzhuang, .ht_size_detail .tongxie{\n display: none;\n }\n .ht_size_detail span.shoes {\n position: absolute;\n top: 39px;\n left: 38px;\n color: #fff;\n background-color: #47befe;\n border: 1px solid #47befe;\n }\n .ht_size_detail .shangyi.size_hover,.ht_size_detail .xiazhuang.size_hover, .ht_size_detail .xiazhuang.size_hover, .ht_size_detail .tongzhuang.size_hover, .ht_size_detail .tongxie.size_hover{\n background-color: #47befe;\n border: 1px solid #47befe;\n color: #fff;\n }\n .ht_size_detail .shangyi,.ht_size_detail .xiazhuang,.ht_size_detail .shoes,.ht_size_detail .tongzhuang, .ht_size_detail .tongxie{\n height: 30px;\n width: 60px;\n text-align: center;\n line-height: 30px;\n cursor: pointer;\n border-radius: 15px;\n border: 1px solid #969899;\n color: #8A9499;\n }\n .ht_size_detail .cloth_icon{\n position: absolute;\n top: 100px;\n left: 22px;\n }\n \n .ht_size_detail .manshangzhuang {\n background: url('https://s1.gwdang.com/images/extensions/man_shangzhuang.png') -4px 0px no-repeat;\n height: 191px;\n width: 93px;\n }\n .ht_size_detail .womanshangzhuang {\n background: url('https://s1.gwdang.com/images/extensions/woman_shangzhuang.png') 0px 0px no-repeat;\n height: 187px;\n width: 87px;\n }\n .ht_size_detail .kid0 {\n background: url('https://s1.gwdang.com/images/extensions/kids0_4.png') 0px 0px no-repeat;\n height: 187px;\n width: 87px;\n margin-left: 8px;\n }\n .ht_size_detail .kid4 {\n background: url('https://s1.gwdang.com/images/extensions/kids4_12.png') -2px 0px no-repeat;\n height: 187px;\n width: 87px;\n margin-left: 0px;\n }\n .ht_size_detail .manxiazhuang {\n background: url('https://s1.gwdang.com/images/extensions/man_xiazhuang.png') -17px 0px no-repeat;\n height: 216px;\n width: 63px;\n margin-left: 13px;\n }\n .ht_size_detail .womanxiazhuang {\n background: url('https://s1.gwdang.com/images/extensions/woman_xiazhuang.png') 0px 0px no-repeat;\n height: 220px;\n width: 66px;\n margin-left: 11px;\n }\n \n .ht_size_detail .ht_shoes.man_foot {\n background: url('https://s1.gwdang.com/images/extensions/man_foot.png') 4px 0px no-repeat;\n height: 170px;\n width: 111px;\n }\n .ht_size_detail .ht_shoes.woman_foot {\n background: url('https://s1.gwdang.com/images/extensions/woman_foot.png') 4px 0px no-repeat;\n height: 170px;\n width: 111px;\n }\n .ht_size_detail .ht_shoes.kids_foot {\n background: url('https://s1.gwdang.com/images/extensions/kid_shoes.png') 0px 0px no-repeat;\n height: 171px;\n width: 131px;\n left: 4px;\n }\n .ht_size_detail .clothes_nav{\n margin-top: 13px;\n line-height: 30px;\n height: 30px;\n width: 567px;\n margin-left: 55px;\n }\n .ht_size_detail .clothes_nav ul{\n padding: 0;\n margin: 0px;\n }\n .ht_size_detail .size_s{\n height: 40px;\n display: inline-block;\n border-right: 2px solid #e6e9eb;\n }\n .detail_left {\n float: left;\n width: 136px;\n height: 367px;\n position: relative;\n }\n .detail_left span {\n display: inline-block;\n }\n .ht_size_detail #size_item{\n height: 180px;\n width: 452px;\n overflow-y: scroll;\n border: 1px solid #e6e9eb;\n }\n .ht_size_detail .clothes_nav ul li{\n list-style: none;\n float: left;\n font-size: 16px;\n width: 32px;\n margin-right: 57px;\n color: #000;\n cursor: pointer;\n border-bottom: 3px solid #fff;\n }\n .ht_size_detail .clothes_nav ul li:hover {\n color: #47befe;\n }\n .ht_size_detail .clothes_nav ul li.select{\n border-bottom: 3px solid #47befe;\n color: #47befe;\n }\n .ht_size_detail .size_head{\n height: 60px;\n }\n .ht_size_detail .unit_desc{\n display: inline-block;\n float: right;\n margin-right: 27px;\n margin-top: 8px;\n position: relative;\n }\n .ht_size_detail .size_con{\n text-align: right;\n margin-top: 16px;\n margin-bottom: 11px;\n margin-right: 26px;\n color: #575e61;\n }\n .ht_size_detail .size_op{\n width: 440px;\n display: inline-block;\n position: relative;\n }\n\n .ht_size_detail .size_op input+input {\n margin-left: 0px; \n }\n #first_size+.first_xiala {\n position: absolute;\n right: 267px;\n }\n .ht_size_detail .size_op input{\n width: 100px;\n height: 31px;\n box-sizing: border-box;\n }\n #first_size, #second_size {\n border-radius: 4px;\n outline: none;\n padding: 0 7px;\n border: 1px solid #969899;\n box-shadow: none;\n }\n #first_size:focus, #second_size:focus {\n border-color: #47befe;\n }\n .ht_size_detail .size_xialabox {\n display: none;\n width: 60px;\n height: 190px;\n border: 1px solid #999;\n border-bottom: none;\n position: absolute;\n text-align: left;\n line-height: 19px;\n top: -189px;\n right: 267px;\n box-sizing: border-box;\n background-color: #fff;\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n }\n #second_size+.second_xiala{\n position: absolute;\n right: -14px;\n }\n .ht_size_detail #second_size+input+.size_xialabox{\n right: -14px;\n }\n .ht_size_detail .size_xialabox a{\n display: block;\n padding-left: 7px;\n color: #5c6266;\n }\n .ht_size_detail .size_xialabox a:hover{\n text-decoration: underline;\n color: #47befe;\n }\n .ht_size_detail .size_op .size_xiala{\n width: 60px;\n border: 1px solid #999;\n padding-left: 7px;\n border-radius: 4px;\n color: #8a9499;\n }\n .ht_size_detail .size_op .size_xiala.msHover {\n border-radius: 0px;\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n background: url('https://s1.gwdang.com/images/extensions/haitao_upgrayicon.png') no-repeat 42px 12px;\n background-size: 12px 7px;\n }\n .ht_size_detail .size_xiala{\n background: url('https://s1.gwdang.com/images/extensions/haitao_downgrayicon.png') no-repeat 42px 12px;\n background-size: 12px 7px;\n cursor: pointer;\n }\n .ht_size_detail .conversion{\n margin: 0 30px 0 105px;\n }\n /* fanyi */\n .ht_fanyi{\n display: block;\n position: absolute;\n width: 200px;\n z-index: 99;\n background: #fff url('https://s1.gwdang.com/images/extensions/haitao_fanyi_icon.png') 0px 0px no-repeat;\n border: 1px solid #47befe;\n border-radius: 8px;\n min-height: 25px;\n color: #494b4d;\n text-indent: 32px;\n padding: 2px 12px;\n line-height: 19px;\n }\n .ht_fanyi a{\n display: block;\n width: 130px;\n text-decoration: none;\n color: #494b4d;\n }\n .ht_fanyi a:hover{\n text-decoration: none;\n color: #494b4d;\n }\n #ht_top{\n position: absolute;\n width: 0px;\n height: 0px;\n line-height: 0px;\n border-bottom: 8px solid #278ac9;\n border-left: 9px solid transparent;\n border-right: 9px solid transparent;\n left: 58px;\n top: -8px;\n }\n #ht_top:after {\n content: \"\";\n display: block;\n position: absolute;\n width: 0px;\n height: 0px;\n line-height: 0px;\n border-bottom: 7px solid #fff;\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n left: -8px;\n top: 1px;\n }\n /* 滚动条样式 */\n .gwd_haitao ::-webkit-scrollbar {width:6px;height: 6px;}\n .gwd_haitao ::-webkit-scrollbar-track {background:#f0f0f0;}\n .gwd_haitao ::-webkit-scrollbar-thumb {\n background: #cdcdcd;\n border-radius: 4px;\n }\n #size_detail ::-webkit-scrollbar {width:2px;height: 6px;}\n /* 亚马逊遮挡 */\n div#actionPanelWrapper.burj {\n overflow: visible!important;\n }\n\n ", ""]); // exports /***/ }), /***/ "32e21676b7e7687a50e8": /***/ (function(module, exports) { module.exports = "<a style=\"display: inline-flex; position: relative; vertical-align: middle; margin-left: 5px;\" class=\"gwd-top-tmall\"\n target=\"_blank\"\n href=\"{{ link }}\">\n <img src=\"{{ img }}\" alt=\"\" style=\"height: 28px\">\n</a>\n<style>\n .gwd-top-tmall {\n height: 100%;\n align-items: center;\n }\n\n .gwd-qr-act {\n display: none;\n flex-direction: column;\n position: absolute;\n width: 144px;\n height: 167px;\n box-sizing: border-box;\n border: 1px solid #ff471a;\n background: #fff9f6;\n top: 37px;\n left: 50%;\n align-items: center;\n margin-left: -72px;\n }\n\n .gwd-top-tmall:hover .gwd-qr-act {\n display: flex;\n }\n</style>" /***/ }), /***/ "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"]; /***/ }), /***/ "349e2a33b311aaaed53d": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, "__esModule", { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var _commonComponentsMemberCouponMixin = __webpack_require__("1fffec0778a8d8b2e8e2"); var _commonComponentsMemberCouponMixin2 = _interopRequireDefault(_commonComponentsMemberCouponMixin); var _commonComponentsMemberCouponQr = __webpack_require__("0c4497b5d7aa90d42b50"); var _commonComponentsMemberCouponQr2 = _interopRequireDefault(_commonComponentsMemberCouponQr); exports["default"] = { mixins: [_commonComponentsMemberCouponMixin2["default"]], components: { MemberCouponQr: _commonComponentsMemberCouponQr2["default"] }, data: function data() { return { G: G }; } }; module.exports = exports["default"]; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "355921d1b4aed281311d": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjgou-subsidy-bar[data-v-53cb8bb8] {\n background: white;\n border-left: 1px solid #e6e9eb;\n border-right: 1px solid #e6e9eb;\n border-bottom: 1px solid #e6e9eb;\n width: 460px;\n display: inline-flex;\n align-items: center;\n font-family: \"Microsoft YaHei\", \"Arial\", \"SimSun\";\n height: 34px;\n}\n.bjgou-subsidy-bar .bjg-badge[data-v-53cb8bb8] {\n font-size: 0;\n margin-left: 12px;\n position: relative;\n text-align: center;\n}\n.bjgou-subsidy-bar .bjg-badge span[data-v-53cb8bb8] {\n position: absolute;\n left: 0;\n top: 0;\n width: 32px;\n height: 32px;\n display: block;\n line-height: 32px;\n font-size: 22px;\n color: white;\n transform: scale(0.5);\n transform-origin: top left;\n}\n.bjgou-subsidy-bar .bjg-bold[data-v-53cb8bb8] {\n font-size: 13px;\n font-weight: bold;\n color: #ff2d53;\n}\n.bjgou-subsidy-bar .bjg-take[data-v-53cb8bb8] {\n min-width: 87px;\n height: 22px;\n border: 1px solid #FF2D53;\n position: relative;\n display: flex;\n cursor: pointer;\n}\n.bjgou-subsidy-bar .bjg-take span[data-v-53cb8bb8] {\n font-size: 12px;\n text-align: center;\n line-height: 22px;\n}\n.bjgou-subsidy-bar .bjg-take .taker[data-v-53cb8bb8] {\n color: white;\n width: 36px;\n height: 24px;\n line-height: 24px;\n background: linear-gradient(90deg, #FF3A62 0%, #FF665B 100%);\n display: inline-block;\n}\n.bjgou-subsidy-bar .bjg-take .qrcode[data-v-53cb8bb8] {\n display: none;\n position: absolute;\n top: 27px;\n right: -15px;\n width: 148px;\n height: 156px;\n background: #FFF7F7;\n border: 1px solid #FF2D53;\n z-index: 9;\n}\n", ""]); // exports /***/ }), /***/ "3690f6d076b37bda66b7": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, $) { var _this = this; var template = __webpack_require__("274e32dfd54a6b0d18a9"); var deviceEncode = __webpack_require__("57981fc895e0110a4346"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var util = __webpack_require__("d54879e983a83d07f093"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); var request = __webpack_require__("91f250ebeb8d5987491c"); var renderBar = function renderBar(permanent) { var fold, domName, showAd, showJHS, noCoupon, settingUrl, feedbackUrl, html, jdadUrl, config, c, t, jdadImg; return regeneratorRuntime.async(function renderBar$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: fold = permanent.top_fold; domName = G.dval.replace('#', ''); showAd = undefined, showJHS = undefined, noCoupon = undefined; if (G.site.indexOf('360buy') > -1 || G.site == 'zol' || G.site == 'douban') { showAd = true; } if (G.site.indexOf('taobao') > -1 || G.site == 'zol' || G.site == 'douban' || G.site == 'tmall') { showJHS = true; } if (G.site == 'zol' || G.site == 'douban') { noCoupon = true; } settingUrl = undefined; if (!permanent.setPage) { settingUrl = G.server + '/brwext/setting?from=' + deviceEncode(G.from_device) + '&btype=' + (G.btype ? G.btype : ''); } feedbackUrl = 'https://www.' + G.extName + '.com/brwext/suggest?refer=' + encodeURIComponent(document.location.href) + '&from_device=' + deviceEncode(G.from_device) + '&btype=' + (G.btype ? G.btype : ''); html = __webpack_require__("3ca15150d9511e1a5d50"); jdadUrl = "https://p.gouwuke.com/8Hjg3k"; $('body').append(template.compile(html)({ domName: domName, s_url: settingUrl, f_url: feedbackUrl, showAd: showAd, jdadUrl: jdadUrl, noCoupon: noCoupon, showJHS: showJHS, fold: fold })); $('.top-bar-setting').on('click', function () { util.openTab(); }); if (fold !== '1') { $('body').css('padding-top', '36px').addClass('gwd_unfold'); } __webpack_require__("cf8f469df8ae6c96f344")(); // 分享插件 __webpack_require__("98e571e6ad843edfcada").init(); if (!showAd) { context$1$0.next = 24; break; } context$1$0.next = 19; return regeneratorRuntime.awrap($.getJSON('https://cdn.bijiago.com/js/configs/activity-online.json')); case 19: config = context$1$0.sent; c = config.jdActivity; t = new Date(); jdadImg = 'https://cdn.bijiago.com/images/extensions/ad1111/bijiago_go.png'; if (t < new Date(c.end) && t > new Date(c.start)) { jdadUrl = c.top.link; jdadImg = c.top.img; $('#gwdang-banner-ad').attr('href', jdadUrl); $('#gwdang-banner-ad img:eq(0)').attr('src', jdadImg); $('#gwdang-banner-ad img:eq(0)').css('height', '32px'); $('#gwdang-banner-ad img:eq(1)').css('display', 'none'); } case 24: return context$1$0.abrupt('return', new Promise(function (resolve) { return resolve(); })); case 25: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports.init = function callee$0$0() { var permanent, count, t; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: permanent = userData.get('permanent'); if (!(location.hostname.indexOf('smzdm.com') > -1)) { context$1$0.next = 3; break; } return context$1$0.abrupt('return'); case 3: context$1$0.next = 5; return regeneratorRuntime.awrap(renderBar(permanent)); case 5: count = 0; t = setInterval(function () { // 加载完成之后 做一个自动适配 避免屏幕宽度不够出现错位现象 __webpack_require__("1c640a99db9f6f8a16c2").autoFixWidth(); window.fixWidth = __webpack_require__("1c640a99db9f6f8a16c2").autoFixWidth; count++; if (count > 5) { clearInterval(t); } }, 1000); case 7: case 'end': return context$1$0.stop(); } }, null, _this); }; // 工具条上展示小banner AD // let redpack = await $.getJSON(`https://cdn.gwdang.com/js/configs/jdRedpack.json`) // if (redpack.url) { // jdadUrl = redpack.url // $('#gwdang-banner-ad').attr('href', jdadUrl) // } // 获取配置信息 比如插件是否折叠 /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "379c1f0148813ff54069": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, "__esModule", { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var _commonComponentsMemberCouponMixin = __webpack_require__("1fffec0778a8d8b2e8e2"); var _commonComponentsMemberCouponMixin2 = _interopRequireDefault(_commonComponentsMemberCouponMixin); exports["default"] = { props: ['dpId'], mixins: [_commonComponentsMemberCouponMixin2["default"]], mounted: function mounted() { this.over(); } }; module.exports = exports["default"]; /***/ }), /***/ "3832d7e2010c4bcbbba2": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { directives: [ { name: "show", rawName: "v-show", value: _vm.data.length, expression: "data.length" } ], staticClass: "gwd-promo-plan" }, [ _c("table", [ _vm._m(0), _vm._v(" "), _c( "tbody", _vm._l(_vm.data, function(item, idx) { return _c("tr", [ _c("td", { staticStyle: { "padding-left": "10px" } }, [ _vm._v(_vm._s(item.plan_text)) ]), _vm._v(" "), _c( "td", { class: idx === 0 ? "red" : "", staticStyle: { "padding-right": "10px", "text-align": "right" } }, [_vm._v(_vm._s(parseFloat(item.total_price).toFixed(2)))] ), _vm._v(" "), _c( "td", { class: idx === 0 ? "red" : "", staticStyle: { "padding-right": "10px", "text-align": "right" } }, [_vm._v(_vm._s(parseFloat(item.current_price).toFixed(2)))] ), _vm._v(" "), _c( "td", { staticStyle: { padding: "10px" } }, _vm._l(item.promo_list, function(p) { return _c( p.url || p.id ? "a" : "span", { key: p.url, tag: "component", style: "color: #7d7e80;" + (p.url ? "text-decoration: underline" : ""), attrs: { href: p.id ? _vm.link(p.url_format, p.id) : p.url, target: "_blank" } }, [_vm._v(_vm._s(p.text) + " ")] ) }), 1 ) ]) }), 0 ) ]), _vm._v(" "), _vm.G.aliSite ? _c( "div", { staticClass: "gwd-p-qrcode gwd-column gwd-align gwd-jcc" }, [ _c( "div", { staticStyle: { width: "100px", height: "100px", position: "relative" } }, [ _c("img", { staticStyle: { width: "100%" }, attrs: { src: _vm.qr, alt: "" } }), _vm._v(" "), _c("img", { staticStyle: { position: "absolute", top: "50%", left: "50%", width: "20px", height: "20px", transform: "translate(-50%, -50%)" }, attrs: { src: __webpack_require__("c9085187c37fc1ab0e5e"), alt: "" } }) ] ), _vm._v(" "), _vm._m(1) ] ) : _vm._e() ] ) } var staticRenderFns = [ function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("thead", [ _c("tr", { staticStyle: { "min-height": "30px" } }, [ _c("th", [_c("span", [_vm._v("购买方案")])]), _vm._v(" "), _c("th", [_c("span", [_vm._v("实付总价(¥)")])]), _vm._v(" "), _c("th", [_c("span", [_vm._v("折合每件(¥)")])]), _vm._v(" "), _c("th", [_c("span", [_vm._v("使用的促销")])]) ]) ]) }, function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "gwd-row", staticStyle: { "margin-top": "8px", "white-space": "nowrap", height: "10px", "line-height": "10px" } }, [ _c( "span", { staticClass: "gwd-font10", staticStyle: { color: "#ff3220", "font-weight": "bold", "transform-origin": "top left", width: "42px", "margin-left": "6px" } }, [_vm._v("淘宝APP")] ), _vm._v(" "), _c( "span", { staticClass: "gwd-font9", staticStyle: { color: "#070707", "transform-origin": "top left", width: "64px" } }, [_vm._v("扫码 参加活动")] ) ] ) } ] render._withStripped = true /***/ }), /***/ "386e47e61222ba76fe18": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) {/* product_id:12313, --产品Id product_name:"Nike耐克KD 8 Elite高帮男士篮球鞋", --产品名称 goods_id:12312, --商品Id(非精确匹配则给出的是最低价的商品Id) spec_name_desc:"颜色:红色 尺码:36", --商品规格描述 goods_original_price:1231, --商品官网原价 货币类型:官网货币 单位:分 currency:"USD", --货币类型(USD:美元,EUR:欧元,GBP:英镑,JPY:日元,KRW:日元,CNY:人民币) goods_price:69999, --商品剁手帮价格 货币类型:人民币 单位:分 official_original_postage:2000, --官网原运费 货币类型:人民币 单位:分 official_postage:2000, --官网邮费(剁手帮减免后) 货币类型:人民币 单位:分 official_postage_rule:"满500免邮", --官网邮费规则描述 international_original_postage:3000, --国际转运费 单位:分 单位:分 international_postage:3000, --国际转运费(剁手帮减免后) 单位:分 单位:分 tax_original_fee:1231, --应收税费 货币类型:人民币 单位:分 tax_fee:1231, --实收税费 货币类型:人民币 单位:分 weight:123, --重量 单位:克 max_buy_num:10 --限购最大购买数量 */ var template = __webpack_require__("274e32dfd54a6b0d18a9"); var request = __webpack_require__("91f250ebeb8d5987491c"); var parseprice = __webpack_require__("cb0906562effcf1b0e6c"); var globalObj = {}; globalObj['settime'] = 150; var priceDom = { amazon: ['#priceblock_dealprice span', '#priceblock_ourprice span .buyingPrice', '#priceblock_dealprice', '#priceblock_saleprice', '#priceblock_ourprice', '#price_feature_div .a-color-price'] }; var feeDom = { amazon: ['#priceBadging_feature_div .a-color-secondary', '#ourprice_shippingmessage .a-color-secondary'] }; var addMark = function addMark(url) { if (!url) return url; if (url.indexOf('?') > -1) { url = url + '&p_r=gouwudang&p_k=plug_' + G.style + '&outer_pid=8507'; } else { url = url + '?p_r=gouwudang&p_k=plug_' + G.style + '&outer_pid=8507'; } return url; }; var getPrice = function getPrice() { var price = 0, fee = 0; for (var i = 0; i < priceDom['amazon'].length; i++) { var item = priceDom['amazon'][i]; if ($(item).length > 0 && $(item).is(':visible')) { price = $(item).text().replace(/[¥$¥\s,]+/g, ''); if (price.indexOf('-') > -1) price = price.split('-')[0]; break; } } for (var i = 0; i < feeDom['amazon'].length; i++) { var item = feeDom['amazon'][i]; if ($(item).length > 0 && $(item).is(':visible')) { fee = $(item).text().match(/[0-9.]+/) && $(item).text().match(/[0-9.]+/)[1]; break; } } if (!fee) fee = 0; price = Number(price) + Number(fee); return price; }; var getInfo = function getInfo() { console.log('yjht get info'); var dp = G.dp; var price = dp.oldPrice; if (G.site === 'amazon') price = getPrice(); if (!price) price = dp.oldPrice || ''; if (!dp.url) dp.url = location.href; if (!dp.sku) dp.sku = dp.url.match(/(?:dp|product)\/([0-9a-zA-Z]+)/) && dp.url.match(/(?:dp|product)\/([0-9a-zA-Z]+)/)[1]; var price2 = (Number(price) * 100).toFixed(0); var url = G.server + '/api/haitao?price=' + price2 + '&url_crc=' + dp.sku + '&url=' + encodeURIComponent(dp.url); globalObj['requestUrl'] = url; globalObj['jumpinfo'] = 'url_crc=' + dp.sku + '&url=' + encodeURIComponent(dp.url); globalObj['fstTime'] = new Date().getTime(); request.get(url).done(function (data) { if (data && data.data.product_status === 1) { var obj = data.data.product_detail; obj.url = addMark(data.data.product_url); render(obj); } else if (data && (data.data.product_status === 2 || data.data.product_status === 3)) { var obj = undefined; if (data.data.product_detail_estimate) { obj = data.data.product_detail_estimate; obj.url = buildJumpUrl(); } else { obj = { goods_price: parseprice(price.toFixed(2)), url: 'javascript:void();', tle: "抱歉,该商品暂时无法一键海淘", noinfo: true }; } render(obj); } else { var tle = ""; if (data.data.product_status === 4) tle = "抱歉,由于相关法律或转运禁运的原因,该商品无法一键海淘。";else if (data.data.product_status === 5) tle = "抱歉,该商品已下架,无法一键海淘。"; var obj = { goods_price: parseprice(price).toFixed(2), url: 'javascript:void();', tle: tle, noinfo: true }; render(obj); } }); }; var calPrice = function calPrice(dp) { dp.goods_original_price = Number((dp.goods_original_price / 100).toFixed(2)); dp.goods_price = Number((dp.goods_price / 100).toFixed(2)); dp.official_original_postage = (dp.official_original_postage / 100).toFixed(2); dp.official_postage = Number((dp.official_postage / 100).toFixed(2)); dp.xm_official = Number(dp.official_original_postage) - dp.official_postage; dp.international_original_postage = Number((dp.international_original_postage / 100).toFixed(2)); dp.international_postage = Number((dp.international_postage / 100).toFixed(2)); dp.xm_international = dp.international_original_postage - dp.international_postage; dp.tax_original_fee = Number((dp.tax_original_fee / 100).toFixed(2)); dp.tax_fee = Number((dp.tax_fee / 100).toFixed(2)); dp.xm_fee = dp.tax_original_fee - dp.tax_fee; dp.purePrice = dp.goods_price + dp.official_postage + dp.international_postage + dp.tax_fee; dp.purePrice = dp.purePrice.toFixed(2); dp.goods_price = dp.goods_price.toFixed(2); for (var pattern in dp) { if (typeof dp[pattern] === 'number') { dp[pattern] = dp[pattern].toFixed(2); } } return dp; }; var renderMiniBar = function renderMiniBar(dp) { var d = new Date().getTime(); var t1 = getTimeStr(d + 24 * 3600 * 1000 * 20); var t2 = getTimeStr(d + 24 * 3600 * 1000 * 30); var timestr = t1 + '-' + t2; var htInfo = __webpack_require__("65cb632859494beda768").getHtInfo(); var html = __webpack_require__("46fef71c80ec1011c37c"); $('#yj_haitao').append(template.compile(html)({ data: dp, hosts: htInfo.HOST, timestr: timestr, protype: htInfo.protype, site: G.site == '6pm' ? '6PM' : '亚马逊' })).show(); }; var render = function render(dp) { if (!dp.noinfo) dp = calPrice(dp); globalObj['dpinfo'] = dp; renderMiniBar(dp); }; var getTimeStr = function getTimeStr(time) { var dateObj = new Date(time); var y = dateObj.getFullYear(); var m = dateObj.getMonth() + 1; var d = dateObj.getDate(); if (m < 10) m = '0' + m; if (d < 10) d = '0' + d; return y + '.' + m + '.' + d; }; var buildJumpUrl = function buildJumpUrl() { var url = 'https://www.gwdang.com/promotion/haitaomid?' + globalObj['jumpinfo'] + '&f_d=' + G.from_device; return url; }; module.exports.init = function () { if (location.host === 'www.amazon.de') return; getInfo(); // render() }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "3879e534af5afa81bdf4": /***/ (function(module, exports) { module.exports = "<div class=\"barTrendInfoBox {{if showcoudan}} showcoudan {{/if}}\">\n<div class=\"orign-pri-info\">\n {{if d1.nowprice}}\n <span class=\"opi-sp1 nowpri\">现价:</span>\n <span class=\"opi-sp2 nowpri\">{{d1.display_nowprice}}</span>\n {{else}}\n <span class=\"opi-sp1\">最高:</span>\n <span class=\"opi-sp2\">{{d1.display_Phighest}}</span>\n <span class=\"opi-sp3\">{{lowtle}}</span>\n <span class=\"opi-sp4\">{{d1.display_Plowest}}</span>\n <span class=\"opi-sp5\">{{d1.lowestDate}}</span>\n {{if !d2 && !aliSite && promoUrl}}\n <a href=\"{{promoUrl}}\" class=\"promo-history-link\" target=\"_blank\">历史促销明细></a>\n {{/if}}\n {{/if}}\n</div>\n{{if d2}}\n <div class=\"promo-pri-info\">\n {{if !d1.nowprice}}\n <span class=\"ppi-sp1\"></span>\n {{/if}}\n <span class=\"ppi-sp2\">最低(需凑单):</span>\n <span class=\"ppi-sp3\">{{d2.display_Plowest}}</span>\n <span class=\"ppi-sp4\">{{d2.lowestDate}}</span>\n {{if promoUrl}}\n <a href=\"{{promoUrl}}\" class=\"promo-history-link\" target=\"_blank\">历史促销明细></a>\n {{/if}}\n </div>\n{{/if}}\n<style type=\"text/css\">\n .gwdang-trend-detail .orign-pri-info {\n margin-top: 12px;\n }\n .gwdang-trend-detail .promo-pri-info {\n margin-top: 8px;\n }\n #gwdang-trend-detail .opi-sp1, #gwdang-trend-detail .ppi-sp1, #gwdang-trend-detail .ppi-sp2 {\n margin-left: 30px;\n }\n #gwdang-trend-detail .ppi-sp1+.ppi-sp2 {\n margin-left: 10px;\n }\n #gwdang-trend-detail .promo-history-link {\n margin-left: 20px;\n float: left!important;\n }\n </style>\n</div>\n\n" /***/ }), /***/ "38b9a004946728772bc4": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "gwd-epic-bar-container gwd-row", style: _vm.type === "top" ? "margin-top: 6px;" : "" }, [ _c( "div", { staticClass: "gwd-epic-price gwd-row gwd-align", style: _vm.type === "top" ? "margin-right: 0px;" : "", on: { mouseover: _vm.draw } }, [ _vm._v("\n " + _vm._s(_vm.priceStatusText) + "\n "), _c("img", { staticStyle: { "margin-left": "6px", transform: "scale(0.5)", "transform-origin": "left center" }, attrs: { src: _vm.priceTrendIcon, alt: "" } }), _vm._v(" "), _c("div", { staticClass: "gwd-price-trend-panel" }, [ _c("div", { staticClass: "gwd-top-price gwd-row" }, [ _c( "span", { staticClass: "gwd-price-text", staticStyle: { "border-color": "#ff5627", color: "#ff5627" } }, [ _vm._v( "最高: $" + _vm._s(parseFloat(_vm.data.store[0].highest).toFixed(2)) ) ] ), _vm._v(" "), _c( "span", { staticClass: "gwd-price-text", staticStyle: { "border-color": "#9ed81e", color: "#9ed81e" } }, [ _vm._v( "最低: $" + _vm._s(parseFloat(_vm.data.store[0].lowest).toFixed(2)) ) ] ) ]), _vm._v(" "), _c( "span", { staticStyle: { position: "absolute", color: "#777777", "font-size": "12px", top: "37px", left: "28px", "z-index": "3" } }, [_vm._v("价格(US$)")] ), _vm._v(" "), _c("div", { ref: "plotArea", staticStyle: { "margin-top": "-1px", height: "207px" } }) ]) ] ) ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "38c3da6a2366a559454c": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_script_lang_js___ = __webpack_require__("000bbf01d73ab546daa9"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "398e7c903a0cfb55f9a0": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("984fb26cd63aa11f2f19"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("6f5a3234", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QRLinkContactTmall.vue?vue&type=style&index=0&id=4148f062&scoped=true&lang=less&", function() { var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QRLinkContactTmall.vue?vue&type=style&index=0&id=4148f062&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "399d3eb4adfb0281eed0": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_script_lang_js___ = __webpack_require__("9dd6cec84ada5cb63221"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "39c432bd7bb3fe587696": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, $, Vue) { var _this = this; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _componentsQRLinkContactTmallVue = __webpack_require__("f48ba811c1b2ba7ef0c9"); var _componentsQRLinkContactTmallVue2 = _interopRequireDefault(_componentsQRLinkContactTmallVue); var _componentsQRLinkContact = __webpack_require__("9da5f4760618b9fa7a9d"); var _componentsQRLinkContact2 = _interopRequireDefault(_componentsQRLinkContact); var _componentsQRLinkLeft = __webpack_require__("b7625ccf65439ca48f6a"); var _componentsQRLinkLeft2 = _interopRequireDefault(_componentsQRLinkLeft); var QRLink = __webpack_require__("041f80fea3d67bf79b22")['default']; module.exports.init = function callee$0$0() { var e, tag, div, 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: e = document.createElement('DIV'); if (!(G.site === '360buy')) { context$1$0.next = 7; break; } $('.preview-wrap').append(e); context$1$0.next = 10; break; case 7: context$1$0.next = 9; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return $('#cptklbox').length > 0; })); case 9: if ($('#cptklbox').length) { $('#cptklbox').after(e); } else { $('.tb-gallery').append(e); } case 10: tag = 7; if (G.from_device === 'bijiago') { tag = 9; } $('.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; if (G.site === 'tmall') { $('.tb-gallery').append(e2); left = -96; } else { $('.tb-item-info-l').append(e2); } new Vue({ el: e2, render: function render(h) { return h(_componentsQRLinkLeft2['default'], { props: { tag: tag, left: left } }); } }); })(); } __webpack_require__("9c38beef5ff283e15bd2").setMet('QRLinkReady'); // 天猫顶部联系客服 if (!(G.site === 'tmall')) { context$1$0.next = 27; break; } context$1$0.next = 19; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return $('.ww-light.ww-static').length > 0; })); case 19: $('.gwd-contact-link').remove(); div = document.createElement('DIV'); $('.ww-light.ww-static').css({ whiteSpace: 'nowrap' }).append(div); new Vue({ el: div, render: function render(h) { return h(_componentsQRLinkContactTmallVue2['default'], { props: { tag: 4 } }); } }); dom = '#J_tbExtra'; if (G.site === 'tmall') { dom = '.tb-wrap'; } $(dom).append('\n <dl class="gwd-qrlink" style="overflow: inherit">\n <dt style="display: inline-block;' + (G.site === 'tmall' ? 'padding-left: 20px; color: #999' : '') + '">快捷联系</dt>\n <dd style="overflow: initial; display: inline-block">\n <div class="ww-light ww-static" style="display: inline-block; vertical-align: middle; overflow: inherit; width: 20px; height: 22px">\n <a href="" class="ww-inline ww-online"></a>\n </div>\n <div id="gwd-link" style="display: inline-block; vertical-align: middle"></div>\n </dd>\n </dl>\n '); new Vue({ el: '#gwd-link', render: function render(h) { return h(_componentsQRLinkContact2['default'], { props: { tag: '' } }); } }); case 27: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "3a55f579c2446fd758f7": /***/ (function(module, exports) { module.exports = "<div id=\"gwd_mini_seckill\" class=\"minibar-tab seckill-tab\">\n <div class=\"minibar-btn-box\">\n <em class=\"seckill-bg\"></em>\n <span>抢购提醒</span>\n </div>\n <div class=\"seckill-detail seckill-common-detail\">\n <span class=\"sk-remind-btn\">设置提醒</span>\n <span class=\"sk-remind-state1\">\n <em class=\"seckill-bg\"></em>\n <span>已设置抢购提醒</span>\n </span>\n <span class=\"sk-remind-state0\">\n 您还没有绑定公众号请先扫码绑定\n </span>\n <span class=\"sk-qrcode\">\n <img src=\"\">\n </span>\n <span class=\"sk-tle-sp1\">扫码关注购物党公众号</span>\n <span class=\"sk-tle-sp2\">开售前5分钟推送提醒</span>\n </div>\n <div class=\"login-detail seckill-common-detail\" style=\"padding-top: 40px;\">\n <div id=\"gwd-bjd-login-box\">\n </div>\n </div>\n</div>\n<style type=\"text/css\">\n #gwd_mini_seckill {\n width: 127px;\n display: inline-block;\n text-align: center;\n position: relative;\n }\n .login-detail {\n width: 460px;\n height: 283px;\n box-sizing: border-box;\n position: absolute;\n top: 36px;\n right: 0;\n display: none;\n z-index: 999999;\n border-top: 1px solid #eee;\n border-bottom: 1px solid #eee;\n background-color: #fff;\n box-shadow: 0 5px 15px 0 rgba(23,25,27,.15);\n }\n .seckill-bg {\n background: url(\"https://cdn.gwdang.com/images/extensions/xbt/seckill.png\") 0px 0px no-repeat;\n }\n .seckill-completed {\n background: url(../../assets/seckill/complete.svg)\n }\n .seckill-tab .minibar-btn-box em {\n float: left;\n width: 16px;\n height: 16px;\n margin-right: 9px;\n background-position: -9px -9px;\n margin-top: 10px;\n }\n .seckillSet.seckill-tab .minibar-btn-box em {\n background-position: -35px -9px;\n }\n .seckill-tab .minibar-btn-box span {\n cursor: default;\n }\n .seckill-detail {\n display: none;\n position: absolute;\n top: 35px;\n right: 0px;\n height: 220px;\n width: 180px;\n background-color: #fff;\n box-shadow:0px 2px 4px 0px rgba(0,0,0,0.1);\n border:1px solid rgba(230,233,235,1);\n z-index: 99999;\n }\n .seckill-detail * {\n float: left;\n }\n .seckill-detail .sk-remind-btn {\n width:94px;\n height:26px;\n position: absolute;\n background:rgba(255,232,226,1);\n border-radius:15px;\n line-height: 26px;\n text-align: center;\n color: #FF6132;\n font-size: 12px;\n top: 18px;\n left: 50%;\n margin-left: -47px;\n cursor: pointer;\n }\n .sk-remind-state1 {\n position: absolute;\n top: 23px;\n left: 50%;\n margin-left: -55px;\n height: 16px;\n width: 110px;\n display: none;\n }\n .sk-remind-state1 span, .sk-remind-state0 {\n line-height: 16px;\n color: #FF6132;\n font-size: 12px;\n }\n .sk-remind-state1 em {\n height: 12px;\n width: 12px;\n background-position: -4px -38px;\n margin-top: 2px;\n margin-right: 4px;\n }\n .sk-remind-state0 {\n position: absolute;\n top: 14px;\n left: 50%;\n margin-left: -54px;\n height: 32px;\n width: 108px;\n text-align: center;\n display: none;\n }\n .sk-qrcode {\n height: 110px;\n width: 110px;\n top: 52px;\n left: 50%;\n position: absolute;\n margin-left: -55px;\n }\n .sk-qrcode img {\n width: 100%;\n height: 100%;\n }\n .sk-tle-sp1, .sk-tle-sp2 {\n color: #666;\n line-height: 16px;\n width: 100%;\n }\n .sk-tle-sp1 {\n /*margin-left: 30px;*/\n margin-top: 170px;\n }\n .sk-tle-sp2 {\n /*margin-left: 32px;*/\n margin-top: 4px;\n }\n #gwd_mini_seckill .sp-border {\n background-position: -230px 7px;\n }\n #gwd_mini_seckill .login-input input {\n background-color: #fff!important;\n }\n input:-webkit-autofill,\n input:-webkit-autofill:hover, \n input:-webkit-autofill:focus, \n input:-webkit-autofill:active {\n -webkit-box-shadow: 0 0 0 30px white inset !important;\n }\n</style>" /***/ }), /***/ "3aa80349427b4df53881": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-mini-trend-right[data-v-54b7e36a] {\n /*width: 196px;*/\n padding-right: 16px;\n display: flex;\n}\n.gwd-mini-trend-right .gwd-top-price[data-v-54b7e36a] {\n margin-top: 17px;\n align-items: flex-start;\n}\n.gwd-mini-trend-right .gwd-top-price span[data-v-54b7e36a] {\n display: block;\n text-align: left;\n}\n.gwd-mini-trend-right .gwd-top-price .gwd-l1[data-v-54b7e36a] {\n font-size: 12px;\n color: #5c6266;\n height: 14px;\n line-height: 14px;\n}\n.gwd-mini-trend-right .gwd-top-price .gwd-l2[data-v-54b7e36a] {\n font-size: 12px;\n color: #fba500;\n margin-top: 6px;\n height: 11px;\n line-height: 11px;\n}\n.gwd-mini-trend-right .gwd-top-price .gwd-l3[data-v-54b7e36a] {\n margin-top: 13px;\n color: #969899;\n font-size: 12px;\n line-height: 18px;\n}\n.gwd-mini-trend-right .gwd-split[data-v-54b7e36a] {\n width: 100%;\n height: 1px;\n transform: scaleY(0.5);\n background: #edf1f2;\n margin-top: 13px;\n}\n.gwd-mini-trend-right .gwd-bottom-log[data-v-54b7e36a] {\n /*width: 354px;*/\n}\n", ""]); // exports /***/ }), /***/ "3b20e893040e45bc8dd9": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) {var __WEBPACK_AMD_DEFINE_RESULT__;/** * b2c 比价模块 * 包括普通的样式和模糊搜索的样式 * @author:mllong([email protected]) * @since:2013-07-24 * @version:1.0.0 */ !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var $ = __webpack_require__("e081b2491b5c9b12b9da"); var exports = {}; var template = __webpack_require__("274e32dfd54a6b0d18a9"); var viewB2cStore = __webpack_require__("d8451f9e6477c0bd7752"); var specialFilter = __webpack_require__("ce5673fceec6522bf6f5"); var calWidth = __webpack_require__("54be372a53153922dc13"); var rateSite = { '228': 'USD', '229': 'JPY', '238': 'USD', '246': 'EUR' }; var priceSite = { '228': '$', '238': '$', '229': '日元', '246': 'EUR' }; var fixedPrice = function fixedPrice(price) { if (!price) return price; try { var priarr = price.split('.'); price = priarr[0].replace(',', ''); if (Number(price) > 99999) { price = priarr[0]; } else { price = priarr[0] + '.' + priarr[1]; } } catch (e) { __webpack_require__("03dd60018ce5ed1344a1")('b2cCompare:fixedPrice:error'); return price; } return price; }; var transRate = function transRate(dp) { if (dp.price_rmb) return dp; var parseprice = __webpack_require__("cb0906562effcf1b0e6c"); if (!dp.dp_id) return dp; var site_id = dp.dp_id.split('-')[1]; var type = site_id && rateSite[site_id]; if (!type) return dp; var price2 = parseprice(dp.price, type); var price3 = fixedPrice(dp.price); if (site_id == '229') { dp.price_rmb = price2 + ('(' + price3 + priceSite[site_id] + ')'); } else { dp.price_rmb = price2 + ('(' + priceSite[site_id] + price3 + ')'); } dp.price = price2; return dp; }; function showExactView(data) { var widthObj = calWidth.init(); data.b2c.product = specialFilter(data.b2c.product); if (data.b2c.product.length === 0) return; data.b2c.product[0] = transRate(data.b2c.product[0]); data.b2c.min_price = data.b2c.product[0].price.replace(',', ''); //var dp_ids = '0-0';//统计当前有售的商家编号们 //顶栏商城比价模块 var b2cdom = '<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(template.compile(viewB2cStore)({ data: data, len: len, extName: G.extName, width: widthObj.b2cTurnpW, productW: widthObj.b2cProductW })); $('#' + G.extName + '-b2c-dp-detail li img.store').on('error', function () { if (!G.new_extension) $(this).attr('src', G.c_server + '/favicon.ico'); }); $('#b2c-prev-page').click(function () { G.change_page('b2c', -1); }); $('#b2c-next-page').click(function () { G.change_page('b2c', 1); }); } function showFuzzyView(data) { var widthObj = calWidth.init(); data.b2c_fuzzy.product = specialFilter(data.b2c_fuzzy.product); if (data.b2c_fuzzy.product.length === 0) return; data.b2c_fuzzy.product[0] = transRate(data.b2c_fuzzy.product[0]); data.b2c_fuzzy.min_price = data.b2c_fuzzy.product[0].price; var fuzzdom = '<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(template.compile(fuzzdom)()); for (var i = 0; i < data.b2c_fuzzy.product.length; i++) { var dp = data.b2c_fuzzy.product[i]; dp = transRate(dp); //添加商品的促销活动信息 dp.promo = editPromoIcon(dp.promo); if (dp.promo && dp.promo.length > 0) { dp.promodom = ''; for (var p = 0, plen = dp.promo.length; p < 3 && p < plen; p++) { var pinfo = dp.promo[p]; if (pinfo.hasSame) continue; dp.promodom += '<span title="' + (pinfo.hasSameTitle ? pinfo.hasSameTitle : pinfo.desc) + '" class="promo_icon promo_icon_' + pinfo.type + '"></span>'; } } } var fuzzyDetail = __webpack_require__("863c1f55a779c0593c30"); $('#' + G.extName + '-main').append(template.compile(fuzzyDetail)({ data: data.b2c_fuzzy.product, s_server: G.s_server, width: widthObj.turnpW, productW: widthObj.allProductW })); $('#b2c_fuzzy-prev-page').on('click', function (e) { e.preventDefault(); G.change_page('b2c_fuzzy', -1); }); $('#b2c_fuzzy-next-page').on('click', function (e) { e.preventDefault(); G.change_page('b2c_fuzzy', 1); }); $('#' + G.extName + '-b2c_fuzzy-dp-detail').append('<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 (G.IE6) { target_left = menu_li_width / 2 - bannerWidth / 2; if (target_left + menu_li_left < 0) { target_left = -menu_li_left; } menu_li.children('div.' + G.extBrand + '-compare-item-detail-fixed').css('position', 'absolute').css('left', target_left); menu_li.find('.' + G.extBrand + '-compare-item-detail-title-fixed').css('left', 0); } else { if (bannerWidth < remainWidth) { menu_li.children('div.' + G.extBrand + '-compare-item-detail-fixed').css('left', target_left); menu_li.find('.' + G.extBrand + '-compare-item-detail-title-fixed').css('left', target_left); } else { menu_li.children('div.' + G.extBrand + '-compare-item-detail-fixed').css('left', G.width - bannerWidth); menu_li.find('.' + G.extBrand + '-compare-item-detail-title-fixed').css('left', G.width - bannerWidth); } } } else { //非ie版本的压根不需要调整,这里的ie6版本需要进行调整。 if (G.IE6) { var menu_li_left = menu_li.offset().left; var target_left = 0 - menu_li_left; menu_li.children('div.' + G.extBrand + '-compare-item-detail-fixed').css('position', 'absolute').css('left', target_left); menu_li.find('.' + G.extBrand + '-compare-item-detail-title-fixed').css('left', 0); } } }); }; return exports; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "3bc49249739ef2a3c3f8": /***/ (function(module, exports) { module.exports = "<div id=\"gwd_mini_compare_detail\" class=\"minibar-detail\">\n <ul>\n {{each data}}\n <li>\n <a href=\"{{$value.url}}\" target=\"_blank\">\n <img src=\"{{$value.icourl}}\">\n <span class=\"m-item-sitename\">{{$value.site_name}}</span>\n <span class=\"m-item-price prifontf\">¥{{$value.price}}</span>\n </a>\n </li>\n {{/each}}\n </ul>\n <a href=\"{{allLink}}\" target=\"_blank\" class=\"m-all-link\">\n 查看全部({{storeSize}})\n </a>\n</div>\n" /***/ }), /***/ "3be7d467c6bac9354a1b": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-qr-login[data-v-6179ab9e] {\n position: fixed;\n bottom: 65px;\n left: 0;\n right: 0;\n}\n.gwd-qr-login .gwd-qr-box[data-v-6179ab9e] {\n margin-top: 6px;\n width: 190px;\n height: 217px;\n background: linear-gradient(180deg, #FFF9F6 0%, #FFF9F6 100%);\n opacity: 1;\n border: 1px solid #FF471A;\n}\n", ""]); // exports /***/ }), /***/ "3c102bca554f27879709": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_style_index_0_id_24d41b24_lang_less_scoped_true___ = __webpack_require__("719962cffbaf4ac55086"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_style_index_0_id_24d41b24_lang_less_scoped_true____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_style_index_0_id_24d41b24_lang_less_scoped_true___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_style_index_0_id_24d41b24_lang_less_scoped_true____default.a); /***/ }), /***/ "3c6362239b66cef1f39f": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-subsidy-top[data-v-770fdd33] {\n width: 194px;\n height: 32px;\n background: url(" + __webpack_require__("31392cf3d1f62c9e5859") + ");\n background-size: cover;\n display: inline-flex;\n align-items: center;\n position: relative;\n margin-top: 2px;\n cursor: pointer;\n}\n.gwd-subsidy-top span.value[data-v-770fdd33] {\n font-size: 13.5px;\n color: #fff1d8;\n margin-left: 124px;\n margin-top: -2px;\n font-weight: bold;\n}\n.gwd-subsidy-top .qrcode[data-v-770fdd33] {\n display: none;\n position: absolute;\n top: 33px;\n left: 25px;\n width: 144px;\n height: 167px;\n background: #FFF7F7;\n border: 1px solid #FF2D53;\n z-index: 9;\n}\n.gwd-subsidy-top:hover .qrcode[data-v-770fdd33] {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n", ""]); // exports /***/ }), /***/ "3ca15150d9511e1a5d50": /***/ (function(module, exports) { module.exports = "<div id=\"{{domName}}\" style=\"display:block !important;z-index:9999999999 !important;\">\n <div id=\"gwdang_main\" class=\"gwdang-main\" style=\"display: {{if fold === '1'}} none {{else}} flex {{/if}};\">\n <a href=\"javascript:\" class=\"gwd-topbar-logo\"><em class=\"gwd_bg\"></em></a>\n <div class=\"gwd-topbar-left\">\n <div id=\"amazon_compare\" class=\"gwdang-tab\"></div>\n <div id=\"b2c_compare\" class=\"gwdang-tab\"></div>\n <div id=\"tb_compare\" class=\"gwdang-tab\"></div>\n <div id=\"tm_compare\" class=\"gwdang-tab\"></div>\n <div id=\"gwdang-trend\" class=\"gwdang-tab\"></div>\n </div>\n {{ if showAd}}\n <a id=\"gwdang-banner-ad\" target=\"_blank\" href=\"{{ jdadUrl }}\" style=\"line-height: 0\">\n <img src=\"https://cdn.gwdang.com/images/extensions/ad1111/gwdang_go.png\" style=\"height: 32px;\">\n <img src=\"https://cdn.gwdang.com/images/extensions/newbar/hand.gif\" alt=\"\" style=\"height: 32px;\">\n </a>\n {{/if}}\n <div style=\"flex: 1\" id=\"gwd-space\"></div>\n\n\n\n <div class=\"gwd-topbar-right\">\n <div class=\"search-mod\"></div>\n <div class=\"feedback-close\" id=\"gwdang-feed-close\">\n <a href=\"javascript:\" class=\"gwdang-icon favor\" id=\"gwdang-favor\" title=\"我的收藏夹\" target=\"_self\">\n <em class=\"hasColor gwd_bg\"></em>\n <span class=\"blkcolor1 favortle\" title=\"收藏并获得降价提醒\">我的收藏夹</span>\n </a>\n <a href=\"{{f_url}}\" class=\"gwdang-suggest\" id=\"gwdang-suggest\" target=\"_blank\" title=\"提建议或吐槽遇到的问题\">\n <em class=\"gwd_bg\"></em>\n <span class=\"blkcolor1\">反馈</span>\n </a>\n <a {{if s_url}} href=\"{{s_url}}\" target=\"_blank\"{{/if}} title=\"功能设置\" class=\"top-bar-setting\">\n <em class=\"gwd_bg\"></em>\n </a>\n <a href=\"javascript:\" target=\"_self\" class=\"gwd_close\" title=\"关闭购物党\">\n <em class=\"gwd_bg\"></em>\n </a> </div>\n </div>\n </div>\n <div class=\"gwdang-mini\" id=\"gwdang-mini\" style=\"display: {{if fold === '1'}} block {{else}} none {{/if}};\">\n <div class=\"gwdang-nav main\" id=\"gwdang-main-nav\">\n <a class=\"gwd_logo gwd_bg\" href=\"http://www.gwdang.com\" target=\"_blank\"></a>\n <a class=\"unfold_pointer gwd_bg\" href=\"javascript:\" title=\"点击展开\" id=\"gwd_fold_pointer\"></a>\n </div>\n </div>\n</div>\n\n<style>\n .gwd-hidden {\n display: none!important;\n }\n\n .gwd-topbar-right {\n /*display: flex;*/\n flex-direction: column;\n justify-content: flex-end;\n flex-wrap: nowrap;\n }\n</style>" /***/ }), /***/ "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"])) /***/ }), /***/ "3d1e2b0181974f8586a2": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _MemberCouponMixin = __webpack_require__("1fffec0778a8d8b2e8e2"); var _MemberCouponMixin2 = _interopRequireDefault(_MemberCouponMixin); var _MemberCouponQr = __webpack_require__("0c4497b5d7aa90d42b50"); var _MemberCouponQr2 = _interopRequireDefault(_MemberCouponQr); var _standardModuleComponentsCommonCouponBarMini = __webpack_require__("bf749102803a6e48eddc"); var _standardModuleComponentsCommonCouponBarMini2 = _interopRequireDefault(_standardModuleComponentsCommonCouponBarMini); exports['default'] = { mixins: [_MemberCouponMixin2['default']], components: { CommonCouponBarMini: _standardModuleComponentsCommonCouponBarMini2['default'] }, data: function data() { return { icon: __webpack_require__("f91a94ff4014724ed642"), G: G }; } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "3d2b96fda42baaf44d48": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_3_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_mini___ = __webpack_require__("b4e3fee31f1bbca1519d"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_3_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_mini____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_3_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_mini___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_3_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_mini____default.a); /***/ }), /***/ "3e283580401dd2fcdc15": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var plugins = []; if (!G.plugins) G.plugins = []; G.plugins = G.plugins.concat(plugins); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "3e983ecbff4e1a29654c": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { function _toArray(arr) { return Array.isArray(arr) ? arr : Array.from(arr); } module.exports.checkimg = function (url, imgObj, size, callback) { var sz = typeof size == 'undefined' || size == "" || size == null ? 90 : size; var val = url; var img = new Image(); if (G.browser.msie && G.browser.version < 11) { img.onreadystatechange = function () { if (img.readyState == "complete" || img.readyState == "loaded") { if (img.width > 0 && img.height > 0) { var rate = sz / img.width < sz / img.height ? sz / img.width : sz / img.height; if (rate <= 1) { imgObj.css('width', img.width * rate); imgObj.css('height', img.height * rate); } else { imgObj.css('width', img.width); imgObj.css('height', img.height); } } imgObj.attr('src', url); } }; } else { img.onload = function () { if (img.complete == true) { if (img.width > 0 && img.height > 0) { var rate = sz / img.width < sz / img.height ? sz / img.width : sz / img.height; if (rate <= 1) { imgObj.css('width', img.width * rate); imgObj.css('height', img.height * rate); } else { imgObj.css('width', img.width); imgObj.css('height', img.height); } } imgObj.attr('src', url); if (callback) { callback(); } } }; } img.onerror = function () { imgObj.attr('src', G.s_server + "/images/extensions/default_load_image.png").css('width', 90); imgObj.attr('data-original', G.s_server + "/images/extensions/default_load_image.png"); }; img.src = val; }; module.exports.getParameterByName = function (name, url) { if (!url) { url = window.location.href; } name = name.replace(/[\[\]]/g, "\\$&"); var regex = new RegExp("[?#&]" + name + "(=([^&#]*)|&|#|$)"), results = regex.exec(url); if (!results) return null; if (!results[2]) return ''; return decodeURIComponent(results[2].replace(/\+/g, " ")); }; module.exports.sleep = function (time) { return new Promise(function (resolve) { setTimeout(function () { return resolve(); }, time); }); }; module.exports.getPageCookie = function () { return document.cookie.split('; ').reduce(function (prev, current) { var _current$split = current.split('='); var _current$split2 = _toArray(_current$split); var name = _current$split2[0]; var value = _current$split2.slice(1); prev[name] = value.join('='); return prev; }, {}); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "3fb8e5219d9e2232a6e9": /***/ (function(module, exports, __webpack_require__) { "use strict"; var DynamicDetails = __webpack_require__("f5b88856d10b03d040ca").DynamicDetails; var collectMovement = __webpack_require__("f5b88856d10b03d040ca").collectMovement; var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var Fingerprint2 = __webpack_require__("417dfc7154b0b46c50e9"); function readLocalStorage() { return new Promise(function (resolve) {}); } module.exports.init = function () { var details = new DynamicDetails(); try { (function () { var k = localStorage.getItem('gwdang-dfp-obj'); var r = JSON.parse(k); Object.keys(r).forEach(function (item) { details[item] = r[item]; }); })(); } catch (e) {} if (window.requestIdleCallback) { requestIdleCallback(function () { collectMovement(details); }); } else { setTimeout(function () { collectMovement(details); }, 500); } var fp = ''; Fingerprint2.get({ fonts: { extendedJsFonts: false }, excludes: { userAgent: true, enumerateDevices: true, pixelRatio: true, doNotTrack: true, fontsFlash: true } }, function (components) { var values = components.map(function (component) { return component.value; }); var murmur = Fingerprint2.x64hash128(values.join(''), 31); fp = murmur; communicate.trigger({ type: 'fp', value: fp }); localStorage.setItem('gwdang-fp', fp); }); var k = setInterval(function () { var collected = details.encode(); localStorage.setItem('gwdang-dfp-obj', JSON.stringify(details)); communicate.trigger({ type: 'fingerprint', value: collected }); localStorage.setItem('gwdang-dfp', collected); }, 2000); setTimeout(function () { clearInterval(k); }, 300000); }; /***/ }), /***/ "404ef3bf6016b988808a": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__GiftMoney_vue_vue_type_template_id_5b302872_scoped_true___ = __webpack_require__("62c93a90563418fef620"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__GiftMoney_vue_vue_type_script_lang_js___ = __webpack_require__("4ef480fb546c7b1dff9d"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__GiftMoney_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__GiftMoney_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__GiftMoney_vue_vue_type_style_index_0_id_5b302872_scoped_true_lang_less___ = __webpack_require__("dceb596ed0648574118e"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__GiftMoney_vue_vue_type_style_index_1_id_5b302872_scoped_true_lang_css___ = __webpack_require__("83e35fc844511575ba23"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_4__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__GiftMoney_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__GiftMoney_vue_vue_type_template_id_5b302872_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__GiftMoney_vue_vue_type_template_id_5b302872_scoped_true___["b" /* staticRenderFns */], false, null, "5b302872", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('5b302872')) { api.createRecord('5b302872', component.options) } else { api.reload('5b302872', component.options) } module.hot.accept("./GiftMoney.vue?vue&type=template&id=5b302872&scoped=true&", function () { api.rerender('5b302872', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/GiftMoney.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "4185256a225ebafc807c": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-epic-bar-container[data-v-bc2362ee] {\n position: relative;\n z-index: 2;\n margin-top: -10px;\n height: 45px;\n justify-content: flex-end;\n}\n.gwd-epic-bar-container .gwd-epic-price[data-v-bc2362ee] {\n width: 262px;\n height: 32px;\n background: #007feb;\n border-radius: 3px;\n color: white;\n justify-content: center;\n margin-right: 32px;\n position: relative;\n font-size: 12px;\n cursor: pointer;\n}\n.gwd-epic-bar-container .gwd-epic-price .gwd-price-trend-panel[data-v-bc2362ee] {\n position: absolute;\n width: 400px;\n height: 260px;\n background: #1E1E1E;\n box-shadow: 0px 4px 9px 0px #030303;\n border-radius: 2px 0px 0px 2px;\n overflow: hidden;\n top: 32px;\n right: 0;\n z-index: 3;\n display: none;\n}\n.gwd-epic-bar-container .gwd-epic-price[data-v-bc2362ee]:hover {\n background: #1e94f8;\n}\n.gwd-epic-bar-container .gwd-epic-price:hover .gwd-price-trend-panel[data-v-bc2362ee] {\n z-index: 3;\n display: block;\n}\n.gwd-epic-bar-container .gwd-top-price[data-v-bc2362ee] {\n margin-top: 18px;\n justify-content: center;\n position: relative;\n z-index: 3;\n}\n.gwd-epic-bar-container .gwd-top-price .gwd-price-text[data-v-bc2362ee] {\n display: inline-block;\n min-width: 88px;\n height: 26px;\n margin-left: 18px;\n margin-right: 18px;\n text-align: center;\n border-width: 1px;\n border-style: solid;\n line-height: 24px;\n}\n.ttip-discount[data-v-bc2362ee] {\n background: #000000;\n color: #aaaaaa;\n width: 110px;\n height: 52px;\n}\n", ""]); // exports /***/ }), /***/ "41e83fde2201068b50ba": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-qr-scan[data-v-09436700] {\n width: 64px;\n height: 22px;\n background: #FF3532;\n border-radius: 11px;\n font-size: 12px;\n color: white;\n margin-left: 31px;\n margin-right: 11px;\n text-align: center;\n line-height: 20px;\n cursor: pointer;\n position: relative;\n}\n.gwd-price-protect-qr[data-v-09436700] {\n display: none;\n position: absolute;\n box-sizing: border-box;\n width: 148px;\n height: 156px;\n right: 0;\n top: 36px;\n border: 1px solid #ff3532;\n background: #fff7f7;\n z-index: 99;\n}\n.gwd-price-protect-qr img[data-v-09436700] {\n margin-top: 7px;\n width: 120px;\n height: 120px;\n}\n#gwd-price-protect:hover .gwd-price-protect-qr[data-v-09436700] {\n display: flex;\n}\n", ""]); // exports /***/ }), /***/ "4244f82d21040fd55aca": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjgou-subsidy-bar[data-v-5b302872] {\n width: 460px;\n background: white;\n border-left: 1px solid #e6e9eb;\n border-right: 1px solid #e6e9eb;\n border-bottom: 1px solid #e6e9eb;\n display: inline-flex;\n align-items: center;\n height: 34px;\n}\n.bjgou-subsidy-bar .bjg-badge[data-v-5b302872] {\n margin-left: 13px;\n font-size: 0;\n}\n.bjgou-subsidy-bar .bjg-bold[data-v-5b302872] {\n font-size: 13px;\n font-weight: bold;\n color: #ff2d53;\n}\n.bjgou-subsidy-bar .bjg-take[data-v-5b302872] {\n min-width: 87px;\n height: 22px;\n border: 0.5px solid #FF2D53;\n position: relative;\n display: flex;\n cursor: pointer;\n border-radius: 2px;\n}\n.bjgou-subsidy-bar .bjg-take span[data-v-5b302872] {\n font-size: 12px;\n text-align: center;\n line-height: 22px;\n}\n.bjgou-subsidy-bar .bjg-take .taker[data-v-5b302872] {\n color: white;\n width: 36px;\n height: 24px;\n line-height: 24px;\n background: linear-gradient(90deg, #FF3A62 0%, #FF665B 100%);\n display: inline-block;\n}\n.bjgou-subsidy-bar .bjg-take .qrcode[data-v-5b302872] {\n display: none;\n position: absolute;\n top: 27px;\n right: -15px;\n width: 148px;\n height: 156px;\n background: #FFF7F7;\n border: 1px solid #FF2D53;\n z-index: 9;\n}\n.bjgou-subsidy-bar .bjgou-subsidy-bar:hover .qrcode[data-v-5b302872] {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n", ""]); // exports /***/ }), /***/ "426d7c3d6bd989255c92": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _CouponArrow = __webpack_require__("9edc88f739fb33f2c091"); var _CouponArrow2 = _interopRequireDefault(_CouponArrow); var _commonComponentsQrError = __webpack_require__("d57cd728628c618acba9"); var _commonComponentsQrError2 = _interopRequireDefault(_commonComponentsQrError); var getQRCode = __webpack_require__("657bad1e7f3b602f7d70"); exports['default'] = { props: ['type', // link, qr, 'href', 'text', 'icon', 'mainColor', 'secondColor', 'takeBg', 'couponValue', 'qrParams', 'qrTitle', 'qrUrl'], components: { CouponArrow: _CouponArrow2['default'], QRError: _commonComponentsQrError2['default'] }, data: function data() { return { loading: false, error: false, actualQr: '' }; }, methods: { over: function over() { var _this = this; this.$emit('over'); if (this.type !== 'qr' || this.loading) return; if (this.qrUrl) { this.actualQr = this.qrUrl; return; } this.loading = true; getQRCode(this.qrParams, '', function (res) { _this.loading = false; if (res[0].etag) { _this.error = true; } else { _this.error = false; _this.actualQr = res[0].imgSrc; } }); } } }; module.exports = exports['default']; /***/ }), /***/ "447e76262f8a59c30810": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponQr_vue_vue_type_script_lang_js___ = __webpack_require__("db913f6554d3c1ab33dc"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponQr_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponQr_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponQr_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponQr_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponQr_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "44e0d29f633dd5c5cbf0": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "gwd-promo-normal" }, [ _c("div", { staticClass: "gwd-tp-1" }, [ _c("span", { staticClass: "gwd-date" }, [_vm._v(_vm._s(_vm.date))]), _vm._v(" "), _c("span", { staticClass: "gwd-priceType" }, [ _vm._v(_vm._s(_vm.type) + ": "), _c("span", { staticClass: "gwd-price" }, [ _vm._v("¥" + _vm._s(parseFloat(_vm.price).toFixed(2))) ]) ]), _vm._v(" "), _vm.badge ? _c( "span", { class: "gwd-badge" + (_vm.badge === "最低" ? " gwd-lowest" : "") }, [_vm._v(_vm._s(_vm.badge))] ) : _vm._e() ]), _vm._v(" "), _c( "div", { staticStyle: { "margin-top": "4px", color: "#5c6266", "font-size": "10px", "line-height": "18px" } }, [_vm._t("default")], 2 ) ]) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "44ec1a43cd1da4b91bfd": /***/ (function(module, exports) { module.exports = "<div class=\"gwd-minibar-bg\">\n <div id=\"gwd_minibar\" class=\"\" style=\"display: flex;\">\n <a class=\"ht_website\" title=\"购物党\" id=\"gwd_website_icon\" target=\"_blank\" href=\"https://www.gwdang.com\">\n <em class=\"ht-bg website_icon\"></em>\n </a>\n <div id=\"mini_price_history\" class=\"minibar-tab\">\n <div class=\"trend-detail ht-com-detail\" id=\"ht_minitrend_detail\">\n <div class=\"ht-trend-otinfo\">\n <div class=\"ht-trend-minmax\">\n <span class=\"ht-mm-sp1\">最高:</span>\n <span class=\"ht-mm-sp2 ht-mm-max prifontf\"></span>\n <span class=\"ht-mm-sp3\">最低:</span>\n <span class=\"ht-mm-sp4 ht-mm-min prifontf\"></span>\n </div>\n <span class=\"ht-favor-btn\" id=\"ht_favor\">降价提醒</span>\n </div>\n <div id=\"big_tooltip\" class=\"big_tooltip_box\"></div>\n <div id=\"mini_ht_detail_chart\"></div>\n </div>\n </div>\n <div id=\"amazon_global_box\" class=\"minibar-tab\"></div>\n <div id=\"yj_haitao\" class=\"minibar-tab\">\n \n </div>\n <div style=\"flex: 1\" id=\"gwd_mini_remind\" class=\"minibar-tab\">\n <div class=\"minibar-btn-box\">\n <em class=\"setting-bg collect_mailout_icon\"></em>\n <span>降价提醒</span>\n </div>\n </div>\n </div>\n <style type=\"text/css\">\n .gwd-minibar-bg {\n /*float: left;*/\n width: 100%;\n margin: 10px 0;\n }\n .gwd-minibar-bg::after {\n clear: none!important;\n }\n .gwd_6pm .gwd-minibar-bg {\n max-width: 445px;\n margin-left: 118px;\n }\n .minibar-tab:hover .ht-com-detail {\n display: block;\n }\n #ht_minitrend_detail {\n height: 250px;\n left: -1px;\n }\n .ht-trend-otinfo {\n float: left;\n height: 56px;\n width: 100%;\n }\n .ht-trend-minmax span {\n float: left;\n margin-top: 15px;\n line-height: 16px;\n font-size: 12px;\n }\n .ht-com-detail .ht-mm-sp1 {\n margin-left: 18px;\n }\n .ht-com-detail .ht-mm-sp1, .ht-com-detail .ht-mm-sp2 {\n color: #E4393C;\n font-weight: bold;\n }\n .ht-com-detail .ht-mm-sp2, .ht-com-detail .ht-mm-sp4 {\n line-height: 18px;\n margin-left: 3px;\n }\n .ht-com-detail .ht-mm-sp3 {\n margin-left: 10px;\n }\n .ht-com-detail .ht-mm-sp3, .ht-com-detail .ht-mm-sp4 {\n color: #35BD67;\n font-weight: bold;\n }\n .ht-com-detail .ht-favor-btn {\n width: 74px;\n height: 26px;\n border: 1px solid #F07960;\n border-radius: 2px;\n color: #F07860;\n float: right;\n margin-right: 22px;\n margin-top: 11px;\n line-height: 26px;\n font-size: 12px;\n cursor: pointer;\n text-align: center;\n }\n .ht-com-detail .ht-favor-btn.collected {\n background: #F07860;\n color: #fff;\n }\n #mini_ht_detail_chart {\n width: 402px;\n height: 172px;\n margin-left: 18px;\n position: relative;\n float: left;\n }\n div#gwd_minibar,div#gwd_minibar .ht_website, div#gwd_minibar .minibar-tab {\n height: 40px;\n }\n .ht_website {\n width: 44px;\n height: 40px;\n float: left;\n }\n #gwd_minibar .minibar-tab {\n line-height: 40px;\n }\n #gwd_minibar .minibar-tab:hover {\n background: #EDF1F2;\n }\n .ht_website em{\n background-position: -7px -8px;\n height: 20px;\n width: 22px;\n float: left;\n margin-left: 14px;\n margin-top: 10px;\n }\n .hasglobal .ht_website em {\n margin-left: 11px;\n }\n #mini_price_history em.ht-bg {\n width: 20px;\n height: 13px;\n margin-top: 14px;\n margin-right: 6px;\n }\n #mini_price_history em.pri-t1 {\n background-position: -58px -13px;\n }\n #mini_price_history em.pri-t0 {\n background-position: -82px -13px;\n }\n #mini_price_history em.pri-t-1 {\n background-position: -35px -13px;\n }\n #mini_price_history em.pri-t-2 {\n background-position: -107px -13px;\n }\n div#gwd_minibar .ht_website {\n width: 50px;\n }\n div#gwd_minibar.hasglobal .ht_website {\n width: 44px;\n }\n div#gwd_minibar {\n width: 460px;\n }\n #yj_haitao {\n text-align: center;\n width: 209px;\n }\n .hasglobal #yj_haitao {\n width: 151px;\n }\n .minibar-tab {\n width: auto;\n }\n\n\n .ht-bg {\n background: url('https://cdn.gwdang.com/images/extensions/xbt/haitao_mini1.png') 0px 0px no-repeat;\n }\n .ht-com-detail {\n position: absolute;\n top: 40px;\n left: -1px;\n background: #FFFFFF;\n border: 1px solid #E6E9EB;\n box-shadow: 0 2px 4px 0 rgba(0,0,0,0.11);\n height: 220px;\n width: 440px;\n z-index: 999;\n display: none;\n }\n .global-content {\n height: 180px;\n width: 100%;\n }\n .gl-left {\n width: 153px;\n height: 100%;\n float: left;\n }\n .global-model .gl-left {\n width: 153px;\n }\n .yjht-model .gl-left {\n width: 160px;\n }\n .gl-left .gl-l-item{\n border-bottom: 1px solid #F9F9F9;\n border-right: 1px solid #F9F9F9;\n }\n .gl-l-item {\n height: 44px;\n width: 100%;\n float: left;\n position: relative;\n }\n .gl-left .gl-l-item:last-child {\n border-bottom: none;\n }\n .gl-l-item em {\n float: left;\n width: 20px;\n height: 20px;\n margin-left: 26px;\n margin-top: 12px;\n margin-right: 10px;\n }\n .ziying em{\n background-position: -4px -36px;\n }\n .sanfang em {\n background-position: -28px -36px;\n }\n .zhiyou em {\n background-position: -124px -36px;\n }\n .samestyle em {\n background-position: -148px -36px;\n }\n .vipfee em {\n background-position: -172px -36px;\n }\n .gl-l-item span {\n color: #404547;\n font-size: 12px;\n line-height: 44px;\n text-align: left;\n float: left;\n margin-left: 10px;\n }\n .global-foot {\n height: 40px;\n }\n .global-content .prifontf {\n line-height: 46px;\n }\n .global-foot span {\n float: left;\n width: 285px;\n height: 40px;\n background-color: #EDF1F2;\n line-height: 40px;\n text-align: center;\n font-size: 12px;\n color: #969899;\n }\n .global-foot a {\n width: 155px;\n height: 40px;\n background: #646FB0;\n font-weight: 400;\n line-height: 40px;\n color: #fff;\n font-size: 13px;\n text-align: center;\n float: left;\n }\n .gl-right a {\n float: left;\n width: 285px;\n height: 180px;\n }\n .gl-img-box {\n height: 100px;\n width: 100%;\n margin-top: 14px;\n float: left;\n text-align:center;\n font-size:0;\n }\n .gl-right a img {\n height: auto;\n width: auto;\n max-width: 100px;\n max-height: 100px;\n vertical-align:middle;\n display:inline-block;\n font-size:16px;\n }\n .gl-img-box:after {\n content:'';\n width:0;\n height:100%;\n display:inline-block;\n vertical-align:middle;\n }\n .gl-right p {\n float: left;\n width: 240px;\n height: auto;\n margin-left: 22px;\n margin-top: 14px;\n line-height: 17px;\n max-height: 34px;\n overflow: hidden;\n font-size: 12px;\n color: #5C6266;\n }\n\n div.gwd_haitao .ht_getprice {\n width: 160px;\n font-size: 14px;\n overflow: hidden;\n }\n div.gwd_haitao .ht_getprice span {\n font-size: 16px;\n }\n #amazon_global_box {\n width: 155px;\n text-align: center;\n }\n #amazon_global {\n float: none;\n height: 40px;\n line-height: 40px;\n text-align: center;\n width: auto;\n color: #404547;\n font-size: 14px;\n overflow: hidden;\n margin: 0 auto;\n display: inline-block;\n }\n .hasglobal #mini_price_history {\n width: 97px;\n }\n #mini_price_history {\n width: 179px;\n }\n #amazon_global span, .yjhtbtn span {\n font-size: 13px;\n color: #404547;\n float: left;\n cursor: default;\n }\n #amazon_global:hover {\n text-decoration: none;\n color: #454a4d;\n }\n \n .ht_getprice_num, .yjht-tle-pri {\n font-size: 12px;\n color: #E4393C!important;\n margin-left: 2px;\n line-height: 42px!important;\n }\n #gwd_minibar .minibar-btn-box>span {\n font-size: 13px;\n cursor: default;\n }\n </style>\n</div>" /***/ }), /***/ "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); /***/ }), /***/ "46f805cc74f8e0720fd0": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "gwd-mini-trend-right", style: _vm.promoHistory.analysis && _vm.ready ? "display: flex; height: 100%;" : "display: none" }, [ _c("div", { staticStyle: { width: "13px" } }, [ _c( "svg", { staticStyle: { height: "100%", width: "100%", position: "relative", overflow: "visible" } }, [ _c("line", { staticStyle: { "stroke-width": "1px" }, attrs: { x1: "-2", y1: "23", x2: "11", y2: "23", "stroke-dasharray": "1 3", stroke: _vm.strokeColor } }), _vm._v(" "), _c("line", { staticStyle: { "stroke-width": "1px" }, attrs: { x1: "-2", y1: "23", x2: "-2", y2: _vm.lineHeight, "stroke-dasharray": "1 3", stroke: _vm.strokeColor } }), _vm._v(" "), _c("line", { staticStyle: { "stroke-width": "1px" }, attrs: { x1: _vm.left, y1: _vm.lineHeight, x2: "-2", y2: _vm.lineHeight, "stroke-dasharray": "1 3", stroke: _vm.strokeColor } }), _vm._v(" "), _c("circle", { attrs: { cx: "11", cy: "23", r: "2", fill: "white", stroke: _vm.strokeColor, "stroke-width": "1" } }) ] ) ]), _vm._v(" "), _c( "div", { staticStyle: { "margin-left": "6px", display: "flex", "flex-direction": "column", flex: "1", overflow: "hidden" } }, [ _c("div", { staticClass: "gwd-top-price" }, [ _c("span", { staticClass: "gwd-l1" }, [ _vm._v( "当前" + _vm._s(_vm.priceType) + ": ¥" + _vm._s(parseFloat(_vm.price).toFixed(2)) ) ]), _vm._v(" "), _c( "span", { staticClass: "gwd-l2", style: "color: " + _vm.textColor }, [_vm._v(_vm._s(_vm.tip))] ), _vm._v(" "), _vm.currentPromo || _vm.showingPromo.length === 0 ? _c("span", { staticClass: "gwd-l3" }, [ _vm._v(_vm._s(_vm.currentPromo)) ]) : _vm._e() ]), _vm._v(" "), _c("div", { staticClass: "gwd-split", style: !_vm.currentPromo && _vm.showingPromo.length > 0 ? "margin-top: 10px;" : "" }), _vm._v(" "), _c( "div", { staticClass: "gwd-bottom-log" }, [ _vm._l(_vm.showingPromo, function(item, idx) { return _vm.showingType === "normal" && item ? _c( "Normal", { key: idx, staticStyle: { "margin-top": "12px" }, attrs: { price: item.price, type: item.type, badge: item.badge, date: item.dateStr } }, [ _vm._v( "\n 页面价: " + _vm._s(_vm.currency) + _vm._s(item.oriPrice) ), _c("br"), _vm._v( "\n " + _vm._s(item.promo ? "促: " + item.promo + ";" : "") ), item.promo && item.coupon ? _c("br") : _vm._e(), _vm._v( _vm._s(item.coupon ? "劵:" + item.coupon : "") + "\n " ) ] ) : _vm._e() }), _vm._v(" "), _vm._l(_vm.showingPromo, function(item, idx) { return _vm.showingType === "special" ? _c("Special", { key: idx, staticStyle: { "margin-bottom": "2px", "margin-top": "10px" }, attrs: { promoType: item.dateStr === "06-18" ? "618" : "双11", promo: item.promo, coupon: item.coupon, priceType: item.type, price: item.price, pagePrice: item.oriPrice, date: item.date } }) : _vm._e() }), _vm._v(" "), _vm.showingPromo.length === 0 ? _c("AppDownload") : _vm._e() ], 2 ), _vm._v(" "), _c("div", { staticStyle: { flex: "1" } }), _vm._v(" "), _vm.promoUrl && _vm.promoHistory.promoShow && _vm.promoHistory.promoShow.length > 2 && !_vm.isAliSite ? _c( "div", { staticStyle: { "text-align": "right", "line-height": "initial" } }, [ _vm.promoUrl ? _c( "span", { staticStyle: { color: "#969899", "font-size": "12px", "text-decoration": "none", "line-height": "initial", cursor: "pointer" }, attrs: { target: "_blank" }, on: { click: _vm.urlClick } }, [ _vm._v("更多历史促销明细\n "), _c("img", { staticStyle: { width: "6px", height: "9px", "margin-top": "0px", "vertical-align": "initial", display: "inline-block" }, attrs: { src: __webpack_require__("991eba7004e4d466d958"), alt: "" } }) ] ) : _vm._e() ] ) : _vm._e(), _vm._v(" "), _c("div", { staticStyle: { height: "16px", visibility: "hidden" } }, [ _vm._v(_vm._s(_vm.width)) ]) ] ) ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "46fef71c80ec1011c37c": /***/ (function(module, exports) { module.exports = "<div class=\"yjhtbtn\">\n <em class=\"ht-bg\"></em>\n <span>一键海淘:</span>\n <span class=\"prifontf yjht-tle-pri\">¥{{data.goods_price}}</span>\n</div>\n<div class=\"ht-com-detail\" id=\"yjht_detail\">\n {{if !data.noinfo}}\n <div class=\"global-content yjht-model\">\n <div class=\"gl-left\">\n <div class=\"gl-l-item {{if protype=='ziying'}} ziying {{else}}sanfang{{/if}}\">\n <em class=\"ht-bg\"></em>\n <span>{{if protype=='ziying'}} 自营 {{else}}第三方{{/if}}</span>\n <div class=\"tle-remind-box\">\n {{protype=='ziying'?(site + '直接销售'):(site + '第三方商家销售')}}\n </div>\n </div>\n <div class=\"gl-l-item yjhtb\">\n <em class=\"ht-bg\"></em>\n <span>一键海淘</span>\n <div class=\"tle-remind-box\">\n 由剁手帮提供一键海淘服务\n </div>\n </div>\n <div class=\"gl-l-item transhelp\">\n <em class=\"ht-bg\"></em>\n <span>翻译帮助</span>\n <div class=\"tle-remind-box\">已为您开启划词翻译,鼠标选中相关文字,即可翻译</div>\n </div>\n <div class=\"gl-l-item sizehelp\">\n <em class=\"ht-bg\"></em>\n <span>尺码帮助</span>\n <div class=\"tle-remind-box\">点击查看尺码帮助</div>\n </div>\n </div>\n <div class=\"gl-right\">\n <div class=\"gl-r-item\">\n <span class=\"r-item-sp1\">官网运费</span>\n <span class=\"r-item-sp2\">:</span>\n <span class=\"r-item-sp3 prifontf\">¥{{data.official_postage}}</span>\n {{if data.xm_official != 0}}\n <span class=\"r-item-sp4 oldfrieght prifontf\">¥{{data.xm_official}}</span>\n <span class=\"r-tag ht-bg\"></span>\n {{/if}}\n </div>\n <div class=\"gl-r-item\">\n <span class=\"r-item-sp1\">转运费</span>\n <span class=\"r-item-sp2\">:</span>\n <span class=\"r-item-sp3 prifontf\">¥{{data.international_postage}}</span>\n <span class=\"r-item-sp4\"></span>\n </div>\n <div class=\"gl-r-item\">\n <span class=\"r-item-sp1\">税费</span>\n <span class=\"r-item-sp2\">:</span>\n <span class=\"r-item-sp3 prifontf\">¥{{data.tax_fee}}</span>\n {{if data.xm_fee != 0}}\n <span class=\"r-item-sp4 oldtax prifontf\">¥{{data.xm_fee}}</span>\n <span class=\"r-tag ht-bg\"></span>\n {{/if}}\n </div>\n <div class=\"gl-r-item daosj\">\n <span class=\"r-item-sp1\">到手价</span>\n <span class=\"r-item-sp2\">:</span>\n <span class=\"r-item-sp3 prifontf\">¥{{data.purePrice}}</span>\n <span class=\"r-item-sp4\"></span>\n </div>\n </div>\n </div>\n <div class=\"global-foot yjht-model\">\n <span>预计到货时间:{{timestr}}</span>\n <a href=\"{{data.url}}\" target=\"_blank\">立即购买</a>\n </div>\n {{else}}\n <div class=\"ht-error-info\">\n <em class=\"ht-bg\"></em>\n <div>抱歉,由于相关法律或者转运禁运的原因</div>\n <div>该商品暂时不支持一键海淘</div>\n </div>\n {{/if}}\n</div>\n<style type=\"text/css\">\n #yjht_detail {\n /*display: block;*/\n }\n .ht-com-detail span {\n color: #404547;\n }\n .yjhtbtn * {\n float: left;\n }\n .yjhtbtn {\n float: none;\n margin: 0 auto;\n display: inline-block;\n width: auto;\n height: 40px;\n }\n .yjhtbtn em {\n width: 16px;\n height: 16px;\n margin-right: 6px;\n margin-top: 12px;\n background-position: -130px -10px;\n }\n .yjhtb em {\n background-position: -52px -36px;\n }\n .transhelp em {\n background-position: -76px -36px;\n }\n .sizehelp em {\n background-position: -100px -36px;\n } \n .sizehelp {\n cursor: pointer;\n }\n .sizehelp span {\n text-decoration: underline;\n }\n .gl-right {\n float: left;\n width: 286px;\n height: 180px;\n }\n .yjht-model .gl-right {\n width: 280px;\n }\n .gl-r-item span{\n float: left;\n line-height: 44px;\n font-size: 13px;\n }\n .gl-r-item {\n width: 280px;\n height: 44px;\n float: left;\n border-bottom: 1px solid #F9F9F9;\n }\n .gl-r-item:last-child {\n border-bottom: none;\n }\n .gl-r-item .r-item-sp1 {\n margin-left: 40px;\n height: 44px;\n width: 60px;\n text-align: justify;\n line-height: 44px;\n }\n @media screen and (-webkit-min-device-pixel-ratio:0){\n .gl-r-item .r-item-sp1:after{\n content:\".\";\n display: inline-block;\n width:100%;\n overflow:hidden;\n height:0;\n }\n }\n .gl-r-item .r-item-sp2 {\n margin-right: 9px;\n }\n .gl-r-item .r-item-sp3 {\n margin-right: 13px;\n }\n .gl-r-item .oldfrieght, .gl-r-item .oldtax {\n color: #969899;\n text-decoration: line-through;\n }\n .daosj .r-item-sp3 {\n color: #E4393C;\n }\n .ht-com-detail .r-tag {\n width: 32px;\n height: 15px;\n background-position: -150px -12px;\n margin-top: 14px;\n margin-left: 4px;\n }\n .tle-remind-box {\n position: absolute;\n min-height: 18px;\n height: auto;\n width: 130px;\n line-height: 18px;\n padding: 6px;\n padding-left: 8px;\n text-align: left;\n color: #5C6266;\n top: 38px;\n left: 11px;\n background: #FEFFF7;\n border: 1px solid #CCCCCC;\n z-index: 999999;\n border-radius: 2px;\n font-size: 13px;\n display: none;\n }\n .gl-l-item:hover .tle-remind-box {\n display: block;\n }\n .tle-remind-box:before {\n display: block;\n content: \"\";\n width: 0;\n height: 0;\n border-width: 0px 5px 5px;\n border-style: solid;\n border-color: transparent transparent #b4b4b4;\n position: absolute;\n top: -5px;\n left: 30px;\n margin-left: -10px;\n }\n .tle-remind-box:after {\n display: block;\n content: \"\";\n width: 0;\n height: 0;\n border-width: 0 5px 5px;\n border-style: solid;\n border-color: transparent transparent #fff;\n position: absolute;\n top: -4px;\n left: 20px;\n }\n .ht-error-info em {\n width: 58px;\n height: 50px;\n float: left;\n margin-left: 192px;\n margin-top: 53px;\n margin-bottom: 20px;\n background-position: -4px -60px;\n }\n .ht-error-info div {\n float: left;\n width: 100%;\n height: 22px;\n line-height: 22px;\n text-align: center;\n font-size: 12px;\n color: #5C6266;\n }\n</style>" /***/ }), /***/ "472a9b3fc8c8805a5dd7": /***/ (function(module, exports, __webpack_require__) { "use strict"; var __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var exports = {}; var data = {}; exports.get = function (key) { return data[key]; }; exports.data = data; exports.set = function (key, value) { if (value === undefined && key) { data = key; } else { data[key] = value; } }; return exports; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }), /***/ "472c3193857af11233c9": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, $, Vue) { var _this = this; var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var userCenter = __webpack_require__("69afa85b8d7929dd88c5"); var request = __webpack_require__("91f250ebeb8d5987491c"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var utils = __webpack_require__("d54879e983a83d07f093"); var price_remind = __webpack_require__("51aadd1e1b65f329a862"); var globalFavor = {}, reqCallbacks = [], hasReq = undefined; var getRemindStyle = function getRemindStyle(callback) { var dp_id; return regeneratorRuntime.async(function getRemindStyle$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!G.remindInfo) { context$1$0.next = 3; break; } callback(G.remindInfo); return context$1$0.abrupt('return'); case 3: if (!hasReq) { context$1$0.next = 6; break; } reqCallbacks.push(callback); return context$1$0.abrupt('return'); case 6: hasReq = true; // let dp_id = G.now_dp_id; // if (dp_id.indexOf('-') === -1) { // dp_id = dp_id + '-' + G.site_id; // } dp_id = G.dp.itemId; context$1$0.next = 10; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('collectionDetailAllowed')); case 10: userCenter.detail(dp_id).then(function (res) { console.log(res); setTimeout(function () { if ($('#gwd_mini_remind').is(':hover')) { onHoverContent(); } }); if (!res.data) { callback({}); G.remindInfo = {}; if (reqCallbacks.length > 0) { for (var i = 0; i < reqCallbacks.length; i++) { reqCallbacks[i]({}); } } return; } else { var msg = { remind_price: res.data.notifier.threshold, is_collected: res.data.id, has_remind_type: res.data.notifier.type, remind_type: res.data.notifier.type, notify_site: res.data.notifier.site }; G.remindInfo = msg; console.log('remindInfo got'); callback(msg); if (reqCallbacks.length > 0) { for (var i = 0; i < reqCallbacks.length; i++) { reqCallbacks[i](msg); } } } }); // callback(G.productChecked) // let url = `${G.c_server}/api/remind_setting?action=get&email=${G.email}&dp_id=${dp_id}`; // request.get(url).done((msg) => { // G.remindInfo = msg; // if (msg.remind_price) { // msg.remind_price = msg.remind_price / 100 // } // callback(msg) // if (reqCallbacks.length > 0) { // for (let i = 0; i < reqCallbacks.length; i++) { // reqCallbacks[i](msg) // } // } // }) case 11: case 'end': return context$1$0.stop(); } }, null, _this); }; var check_favor = function check_favor(id) { return regeneratorRuntime.async(function check_favor$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!(!G.userLogin || !id)) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: context$1$0.next = 4; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('checked_data_got')); case 4: if (G.productChecked && G.productChecked.collected) { $('#gwd_mini_remind .minibar-btn-box span').text('已添加提醒'); $('#gwd_mini_remind .minibar-btn-box em').addClass('favored'); $('#topfavor_detail .topf-head .sp-col').text('收藏成功').addClass('collected'); $('#ht_favor').text('收藏成功').addClass('collected'); } // }) case 5: case 'end': return context$1$0.stop(); } }, null, _this); }; var loginAfterRender = function loginAfterRender() { $('.bjd-login-box, .login-content').hide(); $('.gwd-common-login').hide(); $('.bjd-jiangjia-re').show(); check_favor(G.now_dp_id); __webpack_require__("51aadd1e1b65f329a862").renderAgain(); getRemindStyle(function (msg) { if (msg) { globalFavor.is_collected = msg.is_collected; if (msg.has_remind_type) { $('.select-item').removeClass('selected'); $('#bjd_minifavor_content').addClass('bjd_choosed'); $('#favor_box').addClass('favor_choosed'); $('.jj-style .select-item[data-type="' + msg.remind_type + '"]').addClass('selected'); $('.gwd-del-collection').css('display', 'block'); } else { $('.jj-style .select-item[data-type="1"]').addClass('selected'); } //msg.notify_site = msg.notify_site; $('.jj-remind .select-item[data-type="' + msg.notify_site + '"]').addClass('selected'); if (msg.remind_price) $('.jj-remind .select-item[data-type="' + msg.notify_site + '"]').parent().find('input').val(msg.remind_price); $('.jj-style .re-mail').val(G.email); } }); $('#gwd-topText').css('display', 'none'); $('.gwd-not-login').removeClass('gwd-not-login'); $('#plotArea_' + G.from_device).removeClass('gwd-blurLayer'); }; $('body').on('gwd-login-complete', function (c) { var e = c.originalEvent; console.log(e); // G.email = e.detail.uid; // G.userLogin = true; utils.setLocal('email', e.detail.uid); loginAfterRender(); }); var userLogin = function userLogin() {}; var hasLoginRender = undefined; var onHoverContent = function onHoverContent() { price_remind.getQRcode(); if (G.userLogin && !hasLoginRender) { loginAfterRender(); hasLoginRender = true; } $('#gwd_mini_remind').addClass('mshover'); $('#gwd_mini_remind em').addClass('collect_hover'); $('html').addClass('bjd-favor-show'); $('#bjd_minifavor_content').show(); }; var miniFavorEvent = function miniFavorEvent() { var forbidHide = undefined; var msStyle = 'click'; if (G.userLogin) msStyle = 'mouseenter'; $('.remindHint').hide(); $('#gwd_mini_remind').on(msStyle, function () { onHoverContent(); }).on('mouseleave', function (e) { if (forbidHide) return; setTimeout(function () { $('#gwd_mini_remind').removeClass('mshover'); $('#gwd_mini_remind em').removeClass('collect_hover'); $('html').removeClass('bjd-favor-show'); $('#bjd_minifavor_content').hide(); }, 200); }); // $('#bjd_minifavor_content').on('mouseenter', () => { // clearTimeout(mTime1); // clearTimeout(mTime2); // }) // $('#bjd_minifavor_content').on('mouseleave', (e) => { // if (forbidHide) return; // mTime2 = setTimeout(function() { // $(`#gwd_mini_remind`).removeClass('mshover') // $(`#gwd_mini_remind em`).removeClass('collect_hover') // $('html').removeClass('bjd-favor-show') // $('#bjd_minifavor_content').hide() // }, 200) // }) $('#bjd_minifavor_content input').on('focus', function () { forbidHide = true; setTimeout(function () { forbidHide = false; }, 300); }); $('.jiangjia-left .select-item').on('click', function () { $(this).parent().parent().find('.select-item').removeClass('selected'); $(this).addClass('selected'); }); $('#edit_re_style').on('click', function () { $('#bjd_minifavor_content').removeClass('bjd_choosed'); }); $('#loginClickBtn').on('click', function () { var userN = $('#bjd_minifavor_content .username').val(); var psd = $('#bjd_minifavor_content .password').val(); if (userN && psd) { price_remind.loginRenderTop(); userLogin(userN, psd); } else { $('#login_remind_tle').css('display', 'block').fadeOut(5000); return; } }); $('#subbtn').on('click', function () { var ischoosed = $('#bjd_minifavor_content').hasClass('bjd_choosed'); if (!ischoosed) { var remind_email = undefined; var remind_type = $('.jj-style .select-item.selected').attr('data-type'); if (remind_type === '1') { remind_email = $('.jj-style .re-mail').val(); if (!remind_email) { $('#error_remind_tle').text('请输入正确的邮箱地址').css('display', 'block').fadeOut(5000); return; } } } var dom = $('.jj-remind .select-item.selected'); var notify_site = dom.attr('data-type'); var price = dom.parent().find('input').val(); if (price === '') { $('#error_remind_tle').text('请输入商品期望价格').css('display', 'block').fadeOut(5000); return; } else if (Number(price) <= 0 || !price.match(/(?:^\d+$|^\d+\.\d{1,2}$)/)) { $('#error_remind_tle').text('请输入正确格式的价格').css('display', 'block').fadeOut(5000); return; } else if (globalFavor.nowprice && Number(price) > globalFavor.nowprice) { $('#error_remind_tle').text('价格不能高于当前商品价格').css('display', 'block').fadeOut(5000); return; } log('mini-favor-detail-btn-click'); cnzz.log('mini-favor-detail-btn-click'); /*notify_site => 0 全网 1 当前网站*/ add_favor(notify_site, price); // $('#bjd_minifavor_content').hide().addClass('bjd_choosed') }); $('.jj-remind-logo').on('click', function () { log('allsite-lowpri-click'); cnzz.log('allsite-lowpri-click'); }); $('.gwd-del-collection').on('click', function () { delFavor(); }); }; var setNotifyPrice = function setNotifyPrice(notify_site, notify_price) { var allAddClass = function allAddClass(selector, className) { $(selector).each(function () { $(this).addClass(className); }); }; var allVal = function allVal(selector, value) { $(selector).each(function () { $(this).val(value); }); }; G.collectionChanged = true; // $(`#${G.extBrand}_add_favor`).text('收藏成功').show().fadeout(2000); /*收起价格走势*/ // $(`#${G.extName}-trend-detail`).hide() $('.remindHint').show().fadeOut(2000); //设置嵌入页面的内容同步变化 $('#gwd_mini_remind .minibar-btn-box span').text('已添加提醒'); $('#gwd_mini_remind .minibar-btn-box em').addClass('favored'); $('.remind-item.current-selected').removeClass('current-selected'); $('.remind-item .select-item').removeClass('selected'); var n = parseInt(notify_site); if (n) { allAddClass('.remind-item-snd', 'current-selected'); allAddClass('.remind-item-snd .select-item', 'selected'); allVal('.remind-item-snd input', notify_price); } else { allAddClass('.remind-item-fst', 'current-selected'); allAddClass('.remind-item-fst .select-item', 'selected'); allVal('.remind-item-fst input', notify_price); } }; var delFavor = function delFavor() { userCenter['delete']().then(function (res) { if (res.code !== 1) return; $('.remind-item.current-selected').removeClass('current-selected'); $('#gwd_mini_remind .minibar-btn-box em').removeClass('favored'); $('#gwd_mini_remind .minibar-btn-box span').text('降价提醒'); $('.gwd-del-collection').css('display', 'none'); G.remindInfo = {}; userCenter.clearCurrent(); }); }; var add_favor = function add_favor(notify_site, notify_price) { notify_site = notify_site || ''; notify_price = notify_price || ''; var dp_id = globalFavor['dp_query'].dp.dp_id; var site_id = globalFavor['dp_query'].dp.site_id; var dp = globalFavor['dp_query'].dp; var price = G.dp.oldPrice; var title = G.dp.name || $('title').html(); $('#' + G.extBrand + '_add_favor').text('正在收藏'); if (price == "" || price <= 0) { var nprice = G.price; price = nprice; } var is_collected = '0'; if (globalFavor.is_collected) { is_collected = '1'; } if (G.site_id == '83' || G.site_id === '123') dp.dp_id = dp.dp_id + '-' + G.site_id; __webpack_require__("69afa85b8d7929dd88c5").add(notify_price, notify_site).then(function (msg) { $('#' + G.extBrand + '_add_favor').text('收藏该商品'); if (msg.code === 100 || msg.code <= 0) { $('#' + G.extBrand + '_add_favor').hide(); $('#' + G.extBrand + '_favor_item_list').empty().hide(); //$('#${G.extBrand}_favor_num').text(' N') $('#' + G.extBrand + '-favor-detail .' + G.extBrand + '-login-info').show(); } else if (msg.code === 1) { setNotifyPrice(notify_site, notify_price); if (!msg.data) { G.remindInfo.remind_price = notify_price; G.remindInfo.notify_site = notify_site; } else { var data = { remind_price: msg.data.notifier.threshold, is_collected: msg.data.id, has_remind_type: msg.data.notifier.type, remind_type: msg.data.notifier.type, notify_site: msg.data.notifier.site }; G.remindInfo = data; $('.gwd-del-collection').css('display', 'block'); } // 更新本地收藏存储 // utils.addFavorCheck() } else if (msg.code === 2) { $('#gwd_mini_remind .minibar-btn-box span').text('已添加提醒'); $('#gwd_mini_remind .minibar-btn-box em').addClass('favored'); } })['catch'](function () { $('#' + G.extBrand + '_add_favor').text('收藏商品'); }); }; var updateTimes = 0; var updatePrice = function updatePrice() { var nowPrice; return regeneratorRuntime.async(function updatePrice$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!globalFavor.nowprice) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: if (!(updateTimes > 5)) { context$1$0.next = 4; break; } return context$1$0.abrupt('return'); case 4: updateTimes++; context$1$0.next = 7; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('NowPrice')); case 7: nowPrice = context$1$0.sent; if (nowPrice && nowPrice > 0 && Number($('.jj-remind .remind-item-snd input').val())) { globalFavor.nowprice = nowPrice; if (!globalFavor.allprice) { globalFavor.allprice = nowPrice; $('.jj-remind .remind-item input').val(nowPrice); } $('.jj-remind .remind-item-snd input').val(nowPrice); } case 9: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports.init = function callee$0$0() { var dp_query, other_info, minidom, choosed, remind_type, lowestUrl, emailvalue, url, nowprice, allprice, html; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('dp_query_set')); case 2: dp_query = userData.get('dp_query'); other_info = userData.get('other_info'); globalFavor['other_info'] = other_info; globalFavor['dp_query'] = dp_query; minidom = '#gwd_mini_remind'; choosed = undefined, remind_type = undefined, lowestUrl = undefined; emailvalue = G.email; if (other_info.now.dp_id) { context$1$0.next = 11; break; } return context$1$0.abrupt('return'); case 11: url = encodeURIComponent(location.href); context$1$0.next = 14; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('NowPrice')); case 14: nowprice = context$1$0.sent; if (G.aliSite && G.dp.price) nowprice = G.dp.price; allprice = dp_query.b2c.min_price || nowprice; if (!allprice) allprice = nowprice; nowprice = Number(nowprice.toString().replace(',', '')); allprice = Number(allprice.toString().replace(',', '')); if (dp_query.b2c.product && dp_query.b2c.product.length !== 0) { lowestUrl = dp_query.b2c.product[0].url; log('allsite-lowpri-show'); cnzz.log('allsite-lowpri-show'); } // else if (dp_query.b2c.store && dp_query.b2c.store.length !== 0) { // lowestUrl = dp_query.b2c.store[0].product[0].url; // log('allsite-lowpri-show'); // cnzz.log('allsite-lowpri-show') // } globalFavor.nowprice = nowprice; html = __webpack_require__("eb9a43b0b9642a1cba50"); if (G.userLogin) { check_favor(other_info.now.dp_id); setTimeout(function () { $('#gwd_mini_remind').hover(function () { __webpack_require__("9c38beef5ff283e15bd2").setMet('collectionDetailAllowed'); }); $('#gwdang-trend').hover(function () { __webpack_require__("9c38beef5ff283e15bd2").setMet('collectionDetailAllowed'); }); }, 0); getRemindStyle(function (msg) { if (msg.has_remind_type) { choosed = true; } if (msg.is_collected) { globalFavor.is_collected = msg.is_collected; if (parseInt(msg.notify_site) === 1) nowprice = msg.remind_price;else allprice = msg.remind_price; } if (!allprice) allprice = nowprice; globalFavor.notify_site = msg.notify_site; globalFavor.allprice = allprice; remind_type = msg.remind_type || '0'; // if (G.email.indexOf(`${G.extName}.com`) > -1) // emailvalue = ''; if (G.userLogin) { G.email = 1; } var config = __webpack_require__("9bf6d059e9a265559f0c").getMoneyInfo(G.logsite); var currency = '元'; if (config) { currency = config[1]; } var dom = template.compile(html)({ choosed: choosed, email: G.email, emailvalue: emailvalue, url: url, lowestUrl: lowestUrl, notify_site: globalFavor.notify_site, nowprice: nowprice, allprice: allprice, remind_type: remind_type, extName: G.extName, currency: currency }); if (globalFavor.notify_site === undefined) { setTimeout(function () { $('.remind-item-snd .select-item').addClass('selected'); }, 1000); } $(minidom).append(dom); check_favor(other_info.now.dp_id); miniFavorEvent(); }); } else { (function () { var dom = template.compile(html)({ choosed: choosed, email: G.userLogin, emailvalue: emailvalue, url: url, lowestUrl: lowestUrl, notify_site: globalFavor.notify_site, nowprice: nowprice, allprice: allprice, remind_type: remind_type, extName: G.extName }); $(minidom).append(dom); miniFavorEvent(); var CommonLogin = __webpack_require__("2d53f53e0179317f1fdf")['default']; new Vue({ el: '#gwd-login-mini', render: function render(h) { return h(CommonLogin, { props: { position: 'gwd-mini', showAlterLogin: true, alterLoginPosition: 'row' } }); } }); })(); } // let dom = template.compile(html)({ // choosed: choosed, // email: '', // emailvalue: '', // url: url, // lowestUrl: lowestUrl, // notify_site: G.remindInfo.remind_type, // nowprice: nowprice, // allprice: allprice, // remind_type: remind_type, // extName: G.extName // }) // $(minidom).append(dom) // miniFavorEvent() updatePrice(); case 25: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports.getRemindStyle = getRemindStyle; module.exports.add_favor = add_favor; module.exports.setNotifyPrice = setNotifyPrice; // debugger // let url = `${G.c_server}/brwext/check_collected?email=${G.email}&dp_id=${id}` // request.get(url).done((data) => { //let nowprice = other_info['code-server'] && other_info['code-server'].price || G.dp.price; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "4733a3dd803685ec596a": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) {/* * 商品信息提取模块, * 用来提取商品标题/ISBN等基本信息 * @version:1.0 * @author:mllong([email protected]) * @since:2013-06-17 */ var siteInfo = __webpack_require__("5e05e6f5fe79ccf5d009"); var priceParser = __webpack_require__("e29ce4c2a4af273fcade"); var detect = __webpack_require__("60624e018be49fb2d959"); var isbnTran = __webpack_require__("b15828ee7e842b4ea2fb"); var parseprice = __webpack_require__("cb0906562effcf1b0e6c"); //返回单品页的标题信息 var getProductInfo = function getProductInfo() { return { name: $('title').html(), price: 0, isbn: '', url: window.location.href }; }; //提取第三方评测导购网站中的商品信息 var getArticleInfo = function getArticleInfo(className, childPos, newSiteName) { var dp = getProductInfo(); G.site = newSiteName; try { var a = $(className).eq(childPos); dp.name = a.text(); G.href = G.makeUrl(G.href, a.attr('href')); dp.url = G.href; if (typeof G.href == 'undefined' || G.href == "") { dp.useless = true; } else { var check = siteInfo.isProductPage(); if (!check) { dp.useless = true; } } } catch (e) { dp.useless = true; } return dp; }; var getArticleInfoNew = function getArticleInfoNew(className, childPos, attr, newSiteName) { var dp = getProductInfo(); G.site = newSiteName; if (G.crc64) return dp; try { var a = $(className).eq(childPos); G.href = a.attr(attr); dp.url = a.attr(attr); if (a.attr(attr)) dp.url = a.attr(attr); if (typeof G.href == 'undefined' || G.href == "") { G.href = window.location.href; } } catch (e) {} return dp; }; //商品信息提取模板 var productPattern = { 'oneplus': function oneplus() { var dp = getProductInfo(); dp.price = $('.price .num').text(); console.log('dp', dp); return dp; }, 'wjike': function wjike() { return { name: $('.pb_tl').eq(0).text(), price: $('.pr2 .pc i').eq(0).text() }; }, 'kinhom': function kinhom() { return { name: $('.item-title').text(), price: $('#J_itemActivePrice').text() }; }, 'hpstore': function hpstore() { return { price: $('.price-box .price').eq(0).text() }; }, 'tthigo': function tthigo() { return { name: $('.item-title').text(), price: $('.item-price-current').text() }; }, 'yoox': function yoox() { return { name: $('#yoox').text(), price: $('#item-price .font-bold').text() }; }, 'feiniu': function feiniu() { return { name: $('#main_info_guidance_title').text(), price: $('.info-price>.JS-control-price').text() }; }, 'suanjuzi': function suanjuzi() { return { name: $('.product-titles h2').text(), price: $('.action-pro_price').text() }; }, 'ikjtao': function ikjtao() { return { name: $('#sidebar .title').text(), price: $('#goodsPrice').text() }; }, 'meizu': function meizu() { return { name: $('#property .property-hd h1').text(), price: $('#J_price').text() }; }, 'kaluli': function kaluli() { return { name: $('.pro-detail > h1').text(), price: $('#kaluliPrice').text() }; }, 'opposhop': function opposhop() { return { name: 'oppo ' + $('.product-title').text(), price: $('.buying-price .price').text() }; }, 'yao123': function yao123() { return { name: $('.inner>h1').text(), price: $('#opr').text() }; }, 'baobeigezi': function baobeigezi() { return { name: $('#itemInfo>.name>h1').text(), price: $('#bb_price').text() }; }, 'to8to': function to8to() { return { name: $('#p_name').text(), price: $('span[name=goods_real_price]').eq(0).text() }; }, 'yangkeduo': function yangkeduo() { return { name: $('.enable-select').text(), price: $('._15NyfC_w').text() }; }, 'shangpin': function shangpin() { var brandName = $('.spDetail_price_box > h2 > a').text(); if (!brandName) { brandName = $('.spDetail_price_box > h3 > a').text(); } var result = { name: brandName + ' ' + $('.commodity_title').text(), price: $('.spDetail_spPriceBigRed > i').text(), img: $('#spDetail_bigImg > img').attr('src') }; if (!result.price) { result.price = $('.spDetail_spPriceBig > i').text(); } if (!result.price) { result.price = $('em.font_18').text(); } return result; }, 'zhongjiu': function zhongjiu() { var name = $('.info > h1').text(); var price = $('.pri > b').text(); if (!name) { name = $('.c_t_list > li > span').text(); price = $('.buy_pri').text(); } var result = { name: name, price: price }; return result; }, 'lemall': function lemall() { var name = $('.pro_name').eq(0).text(); var price = $('#all_price').text(); if (price == '') price = $('.section_text .red .font48').eq(0).text(); if (name == '') name = $('.product_info_attribute .title').text(); return { name: "乐视" + name, price: price }; }, 'juanpi': function juanpi() { return { name: $('.deal-wrap h1').text(), price: $('.price .current').text() }; }, 'hisense': function hisense() { return { name: $('.detail_info h3').text(), price: $('#salePriceId').text() }; }, 'purcotton': function purcotton() { return { name: $('.goods-tite h5').eq(0).text(), price: $('.price').eq(0).text() }; }, 'wstx': function wstx() { return { name: $('.itemInfo .title').text(), price: $('.itemInfo .price b').text() }; }, 'royyoungchemist': function royyoungchemist() { return { name: $('.product-name').eq(0).text() }; }, 'medihealshop': function medihealshop() { return { name: $('.product-name').eq(0).text(), price: $('.rmb-price').eq(0).text() }; }, '1-163': function _() { return { name: $('.m-detail-main-title h1').text() }; }, '1001pharmacies': function pharmacies() { return { name: $('.product-name h1').eq(0).text(), price: $('.rmb-price').eq(0).text() }; }, 'lookfantastic-cn': function lookfantasticCn() { return { name: $('.product-title').eq(0).text(), price: $('.product-price .price').eq(0).text() }; }, 'guojimami': function guojimami() { return { name: $('#ECS_FORMBUY .name').text(), price: $('#ECS_SHOPPRICE').text(), img: $('#demo li img').eq(0).attr('src') }; }, 'jinxiang': function jinxiang() { return { name: $('.name').eq(0).text(), price: $('.jxPrice').eq(0).text() }; }, 'you163': function you163() { return { name: $('.info .name').eq(0).text(), price: $('.j-retail-price').eq(0).text() }; }, 'bl': function bl() { return { name: $('.goods-name h1').eq(0).text().replace('百联自营', '').trim(), price: $('#FlashPrice').text() }; }, 'bestinfoods': function bestinfoods() { return { name: $('.goodsname').eq(0).text(), price: $('.price1').eq(0).text() }; }, 'axmall': function axmall() { return { name: $('.goods-intro .name').text(), price: $('#sku_vip_price').text() }; }, 'bftv': function bftv() { return { name: $('.title h2').text(), price: $('.price').text() }; }, 'wangjiu': function wangjiu() { return { name: $('.part_line01').text(), price: $('.part_line04 .spare02 span').text() }; }, '189': function _() { var title = $('#articleshorttitle').text(); var price = $('#mall_price').text(); var brand_string = ''; if (title == '') title = $('.ph-title h1').eq(0).text().replace('仅限江西省用户', ''); if (title.toLowerCase().indexOf('iphone') > -1) brand_string = "苹果"; if (price == '') price = $('#assprice').text(); return { name: brand_string + title, price: price, brand_string: brand_string }; }, 'taqu': function taqu() { return { name: $('.details-name').eq(0).text(), price: $('#details-price').text() }; }, 'bestcake': function bestcake() { return { name: $('.info-right-li p').eq(0).text(), price: $('.info-right-li .s4').eq(0).text() }; }, 'gomehigo': function gomehigo() { return { name: $('#gm-prd-main li.prdtit').text(), price: $('#prdPrice').text() }; }, 'lovo': function lovo() { return { name: $('#goodsNameStrong').text(), price: $('#actMsgS big').text() }; }, 'zhe800': function zhe800() { return { name: $('#detail .detailmeta .clear h1').text(), price: $('.price .js_price_st').text() }; }, 'hua': function hua() { return { name: $('.product-r .title h3.product-title').text(), price: $('#fjr .price-sell .price-num').text() }; }, 'mei': function mei() { return { name: $('.Product_title').text() + ' ' + $('.product_name h1').text(), price: $('#productRMB').text() }; }, 'benlai': function benlai() { var price = $('#intro_price .price')[0].firstChild.nodeValue; if (price == '' || !price) price = $('#intro_price .price').text(); return { 'price': price, 'name': $('#Product_ProductDetailsName').text() }; }, 'vsigo': function vsigo() { return { name: $('h1').text(), price: $('.detail-price').text() }; }, 'fengqu': function fengqu() { return { name: $('h1').text(), price: $('.goods-price .goods-price-r1 strong').text() }; }, 'vmei': function vmei() { var price = $('#currPrice').text(); if (price.indexOf('-') > -1) price = price.split('-')[0]; return { name: $('.product_detail_title h1').text(), price: price }; }, 'easeeyes': function easeeyes() { return { name: $('.main div.goods_name_tr span').text(), price: $('.main p.color9 span.fs20.fontArial').text() }; }, 'staples': function staples() { return { 'name': $('.productInfo h3 span').text(), 'price': $('.nowPrice').text() }; }, 'efotile': function efotile() { return { 'name': $('.item-title').text(), 'price': $('.item-actPrice b').text() }; }, 'jgb': function jgb() { return { name: $('.h_des_title').text(), price: $('.h_des_price .J_rmb_price').text() }; }, '51din': function din() { return { name: $('.product_title > div').eq(0).text(), price: $('.price_rmb').text() }; }, 'aidai': function aidai() { return { name: $('.pro-det h3').text(), price: $('#_thisfp').text() }; }, 'boqii': function boqii() { return { name: $('.shop_name').text(), price: $('#bqPrice').text() }; }, 'spider': function spider() { return { name: $('.gdName h1').text(), price: $('#m12priceSpan').text() }; }, 'taobao-xianyu': function taobaoXianyu() { return { name: $('h1.title').text(), price: $('.price-block .price em').text() }; }, 'ai-taobao': function aiTaobao() { var price = undefined; if (!G.chrome_extension) { price = window.pageconfig.promoPrice; if (!price) { price = window.ENV_DATA && window.ENV_DATA.compList && window.ENV_DATA.compList.item_detail && window.ENV_DATA.compList.item_detail.data && window.ENV_DATA.compList.item_detail.data.data1[0].price; } return { name: $('h3.item-title a').text(), price: price, url: window.pageconfig.itemId ? 'http://item.taobao.com/item.htm?id=' + window.pageconfig.itemId : null }; } var pageconfig = $('.aitaobao-edetail-header script').text(); var itemId = /itemId":"(\d+)"/.exec(pageconfig); if (itemId) itemId = itemId[1]; price = /promoPrice":"([\d\.]+)"/.exec(pageconfig); if (price) price = price[1]; return { name: $('h3.item-title a').text(), price: price, url: itemId ? 'http://item.taobao.com/item.htm?id=' + itemId : null }; }, 'm6go': function m6go() { return { name: $('.goodsName h1').text(), price: $('#SGoodsPrice').text().replace(/[\s]+/g, '') }; }, 'logitech': function logitech() { return { name: $('h1.product-title').text() }; }, 'kjt': function kjt() { return { name: $('.prodetailtitle h1').text(), price: $('li.priceinfop span:first').text() }; }, 'test': function test() { return { url: $('#url').text() }; }, 'philips': function philips() { return { name: $('h1.sku-name').text() }; }, 'tcl': function tcl() { return { name: $('.p_name').text() }; }, 'changhong': function changhong() { return { name: $('.pc_name').text() }; }, 'konka': function konka() { return { name: $('.g_title h1').text() }; }, 'ineigo': function ineigo() { return { name: $('h5.ProName').text() }; }, 'skg': function skg() { return { name: $('.product-titles').text() }; }, 'k-touch': function kTouch() { return { name: $('.pro_title').text() }; }, 'gionee': function gionee() { return { name: $('#goodName').text() }; }, '51buy': function buy() { var dp = getProductInfo(); dp.price = $('.mod_price[itemprop="lowPrice"]').text().replace(/[¥¥\s]+/g, ''); if (dp.price == '') dp.price = window.itemInfo && window.itemInfo.price / 100; if (dp.price == '') dp.price = $('.xbase_item .mod_price ').text(); dp.name = window.itemInfo && window.itemInfo.name; dp.brand_string = window.itemInfo && window.itemInfo.brand_name; return dp; }, 'vivo': function vivo() { return { name: document.title, price: $('.now-price').text() }; }, 'taobao-95095': function taobao95095() { var dp = getProductInfo(); dp.price = $('#J_PromoPrice .tm-price').text(); dp.name = $('#J_DetailMeta .tb-detail-hd h1').text(); if (!dp.price) dp.price = $('#J_StrPriceModBox .tm-price').text(); return dp; }, 'walmart': function walmart() { var dp = getProductInfo(); dp.name = $('.js-product-heading span').text(); dp.price = $('.js-price-display').text(); dp.img = $('.js-product-media .slick-track li a img').eq(0) && $('.js-product-media .slick-track li a img').eq(0).attr('src'); return dp; }, 'kongfz': function kongfz() { console.log('here'); var dp = getProductInfo(); var isbn = $('.item:contains("ISBN") .text-value').text(); if (!isbn) { isbn = $('li:contains("ISBN") > span:eq(1)').text().trim(); } dp.isbn = isbn; dp.name = isbn; return dp; }, 'haituncun': function haituncun() { var dp = getProductInfo(); dp.name = $('.product-name h1').text(); dp.price = $('.rmb-price').text(); dp.img = $('.product-img-box li img').eq(0) && $('.product-img-box li img').eq(0).attr('src'); return dp; }, 'ebay': function ebay() { return { name: $('#itemTitle').text().replace(/^Details about/ig, ''), price: $('#prcIsum').attr('content'), img: $('#vi_main_img_fs ul li img').eq(0).attr('src') }; }, 'wy163': function wy163() { return { name: $('.PInfo dt').eq(0).text() || $('.mv_name').text() }; }, 'dianping': function dianping() { return { name: $('.deal-title h1,h1.title').text().replace(/\[.*\]/ig, '') }; }, 'nuomi': function nuomi() { var pdetails = $('.details p.dp') && $('.details p.dp').text() || ''; var name = ''; try { name = $('.details h1').text().replace(/^\u3010.+\u3011/i, ''); } catch (e) {} name = name + pdetails; return { 'name': name }; }, 'meituan': function meituan() { return { name: $('.deal-component-title').text(), isbn: '' }; }, 'meilishuo': function meilishuo() { var name = $('.goods-title').eq(0).text(); var price = $('#J_NowPrice').text(); if (name == '') name = $('h3.s_tle').text(); return { name: name, price: price }; }, 'sfht': function sfht() { var dp = getProductInfo(); dp.name = $('#titleInfo h1').text(); dp.price = $('#itemPrice .goods-price-r1 strong').text(); return dp; }, 'meici': function meici() { var dp = getProductInfo(); dp.name = $('#subpro .relative span').text(); var isprice = $('.pro_price .price').text().match(/[0-9.]+/); if (isprice) dp.price = isprice[0]; return dp; }, 'jianke': function jianke() { var dp = getProductInfo(); dp.name = $('.det_title h1').text(); var pri = $('.Price_info .bigPrice dd em').text().match(/[0-9.]+/); if (pri) dp.price = pri[0]; return dp; }, 'gome-home': function gomeHome() { var dp = getProductInfo(); dp.name = $('.prdmain .prdtit').text(); var price = $('#prdPrice').text().replace(/\s/g, '').match(/[0-9.]+/); if (price) dp.price = price[0]; return dp; }, 'nike': function nike() { var dp = getProductInfo(); dp.name = $('.product-title-text').text(); dp.price = $('.product-price').text(); return dp; }, '360kad': function kad() { var dp = getProductInfo(); dp.name = $('.YIrd_l li').eq(0).text().replace("商品名称:", ""); dp.price = $('#pricenumber').text(); var arr = dp.url.split('/'); var url = arr[0] + '//'; var html = arr[arr.length - 1].split('.'); for (var i = 2; i < arr.length - 1; i++) { url = url + arr[i] + '/'; } var productId = $("div.Ydrug_info dl:first dd").text(); if (productId) { dp.url = url + $("div.Ydrug_info dl:first dd").text() + '.' + html[1]; } else { dp.url = location.href; } return dp; }, 'lbxcn': function lbxcn() { var dp = getProductInfo(); dp.name = $('.detailPas').text().replace(/\s/g, ""); dp.price = $('#lblPrice').text(); return dp; }, 'mogujie': function mogujie() { var dp = getProductInfo(); dp.name = ""; dp.name = $('.goods-title').text(); if (dp.name == "") { dp.name = $('div.shoptitle').text(); } if (dp.name == "") { dp.name = $('.goodstitle').text(); } return dp; }, 'coolpad': function coolpad() { return { name: $('.good_name h1').text() }; }, 'ztedevice': function ztedevice() { return { name: $('.znproducts h3').text() }; }, 'lenovo': function lenovo() { var dp = getProductInfo(); dp.price = $('#gprice').text(); if (dp.price == '') dp.price = window.price; dp.name = $('.goodsname').text(); if (dp.name == '') dp.name = $('.de_proname').text(); if (!dp.price) { dp.price = $('.price-show').text(); } return dp; }, 'showjoy': function showjoy() { var dp = getProductInfo(); dp.name = $('.choose-hd').text().replace(/\s/g, ''); dp.price = $('#J_MainPrice .sj-price-text').text(); return dp; }, 'ocj': function ocj() { var dp = getProductInfo(); dp.name = $('.pv_shop_detail_title h1').text(); dp.price = $('.info_box .val .price').text(); return dp; }, 'ocj-tuan': function ocjTuan() { var dp = getProductInfo(); dp.name = $('.product-info > h1').text().replace(/\s/g, ''); var price = $('.product_price_cont .p1').html().match(/\/span\>([0-9.]+)\</); if (price) dp.price = price[1]; if (dp.price == '') dp.price = $('.product_price_cont .p1').text(); if (dp.name == '') dp.name = $('.product-info h1 .title').text(); return dp; }, 'ocj-kr': function ocjKr() { var dp = getProductInfo(); dp.name = $('.pv1_li_table_wrap th:contains("品名")+td').text(); dp.price = $('.pricekorea').text(); return dp; }, 'gjw': function gjw() { return { 'name': $('.silder_column_name span').text(), 'isbn': '' }; }, 'apple': function apple() { var dp = getProductInfo(); dp.price = $('.price-point-fullPrice span').eq(0).text(); return dp; }, 'jumei': function jumei() { var dp = getProductInfo(); dp.name = $('h1.pop_detail_tit').text(); if (dp.name == "") { dp.name = $("title").html(); var title_arr = $("title").html().split("-"); title_arr.pop(); title_arr.pop(); try { dp.name = title_arr.join('-'); } catch (err) {} } dp.price = $('#mall_price_detail .price_num').text(); if (dp.price == '') { dp.price = $('#stream_id').attr('price'); } return dp; }, 'jumeiglobal': function jumeiglobal() { var dp = getProductInfo(); try { dp.price = $('.jumei_price').text().match(/[0-9.]+/)[0]; dp.name = $('.deal_con_content td:contains("商品名称")').parent().find('td').eq(1).text(); } catch (e) {} if (dp.price == '') { dp.price = $('#stream_id').attr('price'); } return dp; }, 'yunhou': function yunhou() { var dp = getProductInfo(); dp.name = $('.goods-name h1').text(); dp.price = $('#jPriceNormal').text(); dp.img = $('.pic-pager .pic-list a img').eq(0) && $('.pic-pager .pic-list a img').eq(0).attr('src'); if (dp.price == '') dp.price = $('.jFirstPrice').text(); return dp; }, 'boohee': function boohee() { var dp = getProductInfo(); dp.name = $('.widget-goods-primary .row-des h1').text(); dp.price = $('.col-price b').text().match(/[0-9.]+/)[0]; return dp; }, 'moonbasa': function moonbasa() { var name = ''; try { name = $('.p_info h2').html().replace(/<[^>]*[\s\S]*[^<]*>/ig, ''); name = $.trim(name); } catch (e) {} return { 'name': name }; }, 'homevv': function homevv() { var dp = getProductInfo(); dp.name = $('.shop_name p[class="hdr_1"]').text(); dp.name = dp.name.replace(/<div[^>]*[\s\S]*[^<]*\/div>/ig, ''); dp.name = dp.name.replace(/<span[^>]*[\s\S]*[^<]*\/span>/ig, ''); dp.name = dp.name.replace(/ /ig, ''); dp.name = $.trim(dp.name); return dp; }, 'paixie-faxian': function paixieFaxian() { var dp = getProductInfo(); dp.name = $('.find-info-product a p').eq(0).text(); dp.price = $('.find-info-product a span').eq(0).text().match(/[0-9.]+/)[0]; return dp; }, 'xiaomi': function xiaomi() { var dp = getProductInfo(); dp.price = $('#J_goodsInfoBlock .J_mi_goodsPrice').text(); dp.name = $('.name').eq(0).text(); if (!dp.name) { dp.name = $('.product-con h2').text(); } if (dp.price == '') { try { dp.price = $('.J_proPrice')[0].childNodes[0].nodeValue; } catch (e) { var price = $('.J_proPrice').text().match(/[0-9.]+/); if (price) dp.price = price[0]; } } return dp; }, "youpin-mi": function youpinMi() { return { 'name': $('.sku-container .good-name').text(), 'price': $('.price .value').text() }; }, 'ihush': function ihush() { return { 'name': $('h1.title').text() }; }, '1688': function _() { G.site = "taobao"; var sattrs = new Array(); var brand = $('.de-feature:contains(\"品牌\")').text(); if (brand) { sattrs.push(brand); } var no = $('.de-feature:contains(\"系列\")').length > 0 ? $('.de-feature:contains(\"系列\")').text() : null; no = !no ? $('.de-feature:contains(\"货号\")').length > 0 ? $('.de-feature:contains(\"货号\")').text() : null : no; no = !no ? $('.de-feature:contains(\"型号\")').length > 0 ? $('.de-feature:contains(\"型号\")').text() : null : no; if (no) { sattrs.push(no); } var isbn = $('.de-feature:contains(\"书号\")').length > 0 ? $('.de-feature:contains(\"书号\")').text() : null; isbn = isbn ? isbn.substr(isbn.indexOf(':') + 1) : null; if (isbn) { sattrs.push('ISBN:' + isbn); } sattrs = sattrs.join("|"); return { 'name': $('#mod-detail-hd h1').text(), 'isbn': '', 'skeyword': sattrs }; }, 'womai-related': function womaiRelated() { // return getArticleInfo(".detail_goods_cont a", 0, "womai"); return { name: $('.pro_tit_top_forcombi').text(), price: $('#combiProductMarketPrice').text() }; }, '139shop-article': function shopArticle() { return getArticleInfo(".rginfo dt a", 0, "139shop"); }, 'zol-article': function zolArticle() { return getArticleInfo(".nav-header>a ", 1, "zol"); }, 'pconline-article': function pconlineArticle() { return getArticleInfo(".navProWrap h3 a", 0, "pconline"); }, 'yesky-article': function yeskyArticle() { return getArticleInfo(".artitle h3 a", 0, "yesky"); }, 'it168-article': function it168Article() { return getArticleInfo(".bj980 .bj1 div>a", 0, "it168"); }, 'pcpop-article': function pcpopArticle() { return getArticleInfo(".bj980 .bj1 a", 0, "pcpop"); }, 'pchome-article': function pchomeArticle() { return getArticleInfo(".navProWrap h3 a", 0, "pchome"); }, 'newegg': function newegg() { var dp = getProductInfo(); dp.name = $('#proCtner .proHeader h1').text(); dp.price = $('#omHiddenPrice').val(); dp.url = $(".proHeader h1 a").attr('href'); dp.brand_string = $('.goods_info .goods_info_name:contains("牌")+.godds_info_data').text().replace(/\s/g, ''); return dp; }, 'newegg-zhadan': function neweggZhadan() { var dp = getProductInfo(); dp.name = $('.proHeader h1 a').text(); dp.url = $('.proHeader h1 a').attr('href'); return dp; }, 'yiwugou': function yiwugou() { var dp = getProductInfo(); dp.name = $('li.fontbold.tit').text(); dp.price = parseFloat($('#punitprice').text().replace(/\s/g, '')); return dp; }, 'zhiwo': function zhiwo() { var dp = getProductInfo(); dp.name = $('.mall_detail_prd_info .title').text(); return dp; }, 'zhiwo-tuan': function zhiwoTuan() { var dp = getProductInfo(); dp.name = $(".carousel li p").eq(0).text(); return dp; }, 'zol': function zol() { var dp = getProductInfo(); var merchant_price = []; var prices = $('.product-merchant-price em').text(); if (prices != '' && prices.match(/[0-9]+/) && prices.indexOf('至') > -1) merchant_price = prices.replace(/[ ]/g, "").split('至'); dp.name = $('.product-name h3').text(); if (dp.name == "") { dp.name = $('.ptitle').text(); } if (dp.name == "") { dp.name = $('.page-title.clearfix h1').text(); } if (merchant_price.length > 0) { dp.min_price = merchant_price[0].substr(1); dp.max_price = merchant_price[1].substr(1); } dp.price = $('.price-type').text(); if (dp.price.indexOf('万') > -1) { var p = dp.price.match(/[0-9.]+/); if (p) dp.price = p[0] * 10000; } dp.cat_name = $('.breadcrumb a').eq(1).text(); dp.brand_string = $('.breadcrumb a').eq(2).text(); return dp; }, 'vmall': function vmall() { var dp = getProductInfo(); dp.name = $('#pro-name').text(); return dp; }, 'daling': function daling() { var dp = getProductInfo(); dp.name = $('.goods-data h1.clearfix').text().replace(/\s/g, ''); dp.price = $('.goods-price .clearfix .fl .bold').text(); return dp; }, 'fclub': function fclub() { var dp = getProductInfo(); dp.name = $('.goods_introduce').text(); dp.name = dp.name.replace(/(?:\t|\n)/ig, ''); dp.name = dp.name.replace(/(?:\ \ | )/ig, ' '); if (dp.name == '') { dp.name = $('.tdleft:contains("商品名称")+.tdright').text().replace(/(\s)/g, ''); dp.price = $('#priceFont').text(); } return dp; }, 'taoshu': function taoshu() { var dp = getProductInfo(); dp.isbn = $('.book_detailed span:contains("ISBN")').length > 0 ? $('.book_detailed span:contains("ISBN")').text().substr(5) : ""; return dp; }, 'amazon': function amazon() { var dp = getProductInfo(); var isbn_str = ''; var isbn_str1 = $('li:contains("ISBN")').text(); var isbn_str2 = $('li:contains("条形码")').text(); //var isbn_str3 = $('li:contains("ASIN")').text(); var isbn_str3 = $('li b:contains("ASIN")').parent('li').text(); isbn_str1 = isbn_str1 ? isbn_str1.substr(5) : ''; isbn_str2 = isbn_str2 ? isbn_str2.substr(4) : ''; isbn_str3 = isbn_str3 ? isbn_str3.substr(5) : ''; if (isbn_str1 == '') { isbn_str = isbn_str2; } else if (isbn_str2 == '') { isbn_str = isbn_str1; } else { if (isbn_str1.length > isbn_str2.length) { isbn_str = isbn_str2; } else { isbn_str = isbn_str1; } } isbn_str = isbn_str || isbn_str3; isbn_str = isbn_str.replace(/(\s)/g, ""); dp.name = $('#btAsinTitle span').eq(0).text().replace(/(.*)<span.*/i, "$1"); dp.name = $('#productTitle').text().trim(); dp.isbn = isbn_str; dp.brand_string = $('#brand').text().trim(); dp.price = $('#priceblock_dealprice').text().replace(/[¥¥]+/, ''); if (dp.price == '') { dp.price = $('span.a-size-large.a-color-price').is(':visible') && $('span.a-size-large.a-color-price').text(); if (dp.price.indexOf('-') > -1) { dp.price = ''; } } if (dp.price == '') dp.price = $('#priceblock_ourprice').text(); if (dp.price == '') dp.price = $('#priceblock_saleprice').text(); if (dp.price == '') dp.price = $('.offer-price:eq(0)').text(); if (dp.price == '') dp.price = $('#olp_feature_div .a-color-price').text(); if (dp.price == '') dp.price = $('.a-color-price:eq(0)').text(); if (dp.price == '') dp.price = $('#priceblock_saleprice').text(); if (dp.price == '') dp.price = $('#price_feature_div .a-color-price').text(); if (dp.price.indexOf('€') > -1) { dp.price = dp.price.replace(',', '.'); } var url = location.href; var host = location.host; dp.itemId = (function () { var match = location.href.match(/\/dp\/([0-9A-Za-z]+)/); if (match) { return match[1]; } match = location.href.match(/\/gp\/([0-9A-Za-z]+)/); if (match) { return match[1]; } return ''; })(); try { dp.cat_id = (function () { var e, t, a = ""; return document.querySelector(".a-breadcrumb li:nth-child(7) a") ? t = document.querySelector(".a-breadcrumb li:nth-child(7) a").getAttribute("href") : document.querySelector(".a-breadcrumb li:nth-child(5) a") ? t = document.querySelector(".a-breadcrumb li:nth-child(5) a").getAttribute("href") : document.querySelector(".a-breadcrumb li:nth-child(3) a") && (t = document.querySelector(".a-breadcrumb li:nth-child(3) a").getAttribute("href")), e = t.split("?")[1], e && e.split("&").forEach(function (e) { e.match(/node=.*/) && (a = e.match(/node=(.*)/)[1]); }), a; })(); } catch (e) { dp.cat_id = ""; } dp.url2 = url.replace(host, 'www.amazon.cn'); var catdom = $('#wayfinding-breadcrumbs_feature_div .a-unordered-list li a'); var catlen = catdom.length; var cat_name = []; for (var i = 0; i < catlen; i++) { cat_name.push(catdom.eq(i).text().trim()); } dp.cat_name = cat_name.join('#'); dp.website = 'amazon'; dp.pic = $('#altImages li img').eq(0).attr('src'); if (!dp.pic) { dp.pic = $('#landingImage').eq(0).attr('src'); } dp.img = dp.pic; dp.sku = $('#addToCart #ASIN').val(); dp.category = $('#wayfinding-breadcrumbs_feature_div a').text(); var brandhref = $('#brand').attr('href'); var brand = brandhref && brandhref.match(/field-lbr_brands_browse-bin=(.*)$/) && brandhref.match(/field-lbr_brands_browse-bin=(.*)$/)[1]; dp.brand = dp.brand_string ? dp.brand_string : brand; return dp; }, 'muyingzhijia': function muyingzhijia() { var dp = getProductInfo(); dp.name = $('#name h1').text(); dp.price = $('#summary-price .p-price').text(); return dp; }, 'dangdang': function dangdang() { var prodSpuInfo = window.prodSpuInfo; var dp = getProductInfo(); var isbn = $('.book_detailed span:contains("I S B N")').text().substr(8); if (isbn == '') { isbn = $('.intro span:contains("I S B N")').text().substr(8); } if (isbn == '') { isbn = $('.book_messbox .show_info_left:contains("ISBN")').next('.show_info_right').text(); } if (isbn == '') { isbn = $('.book_messbox .show_info_left:contains("I S R C")').next('.show_info_right').text(); } if (isbn == '') { var dom = $('.book_messbox span:contains("I S R C")'); isbn = dom && dom.parent().text().substr(7); } if (isbn == '') { var isbn = $('#detail_describe li:contains("ISBN")').text().match(/[0-9]+/); if (isbn) isbn = isbn[0]; } dp.price = $('#dd-price').text(); dp.isbn = isbn; dp.pic = $('#main-img-slider li img').eq(0).attr('src'); dp.website = "dangdang"; dp.itemId = location.href.match(/dangdang\.com\/(\d+)/)[1]; dp.brand_string = $('.mall_goods_foursort_style_frame:contains("品牌")').text().replace('品牌:', ''); if (dp.brand_string == '') dp.brand_string = window.google_tag_params && window.google_tag_params.ecomm_pbrand; if (!dp.price) dp.price = $('#salePriceTag').text(); dp.name = $('.name_info h1').text().trim(); dp.cat_id = prodSpuInfo && prodSpuInfo.categoryId; return dp; }, '360buy-paimai': function buyPaimai() { var dp = getProductInfo(); dp.price = $('#priceDiv').text().match(/[0-9.]+/)[0]; dp.name = $('.intro_detail .name').attr('title'); return dp; }, '360buy-book': function buyBook() { var name = $('title').text(), isbn = ""; isbn = $('#summary-isbn .dd').text(); name = $('#name h1').html(); if (name.indexOf('<') > 0) { name = name.substr(0, name.indexOf('<')); } isbn = isbn || $('li div:contains("ISBN")').text().substr(5); name = name || $('#name h2').html().replace(/(.*)<font.*/i, "$1"); return { 'name': name, 'isbn': isbn }; }, '360buy-tuan': function buyTuan() { var dp = getProductInfo(); dp.name = dp.name.replace(" - 京品惠团购", ""); G.site = "360buy"; dp.id = $("#PshowSkuid").val(); //默认是从title里获取的信息,如果发现 能从网页中获取的关键字 长度比 title中获取的更长,就替换掉原来的title var tuan_dp_name = $(".e-content h2").text(); if (tuan_dp_name.length > dp.name.length) { dp.name = tuan_dp_name; } //新增 var jdTuanA = $('.e-extra .p-img a'); if (jdTuanA.length > 0 && !/^javascript:/.test(jdTuanA.attr('href'))) { dp.href = jdTuanA.attr('href'); } else { if (typeof $('#PshowSkuid').val() != "undefined") { dp.href = 'http://item.jd.com/' + $('#PshowSkuid').val() + '.html'; } } dp.url = $(".e-extra a").eq(0).attr("href"); if (dp.url.indexOf("javascript") > -1) { dp.url = $(".img-info a").eq(0).attr("href"); } return dp; }, '360buy-bigimage': function buyBigimage() { var url = ""; if (url == "") { url = $('.o-m-1 h1 a').attr("href"); } var name = $('.o-m-1 h1 a').eq(0).text(); return { 'url': url, 'name': name, 'isbn': '' }; }, '360buy-club': function buyClub() { var url = ""; if (url == "") { url = $('.p-name a').attr("href"); } var name = $('.p-name a').eq(0).text(); return { 'url': url, 'name': name, 'isbn': '' }; }, '360buy': function buy() { var dp = getProductInfo(); var name = $('#name h1').text(), isbn = ""; if (!name) name = $('.itemInfo-wrap .sku-name').eq(0).text(); if (name && name.indexOf('<') > 0) { name = name.substr(0, name.indexOf('<')); } isbn = $('#summary-isbn .dd').text(); if (!isbn) { isbn = $("td:contains('ISBN号:')").text().match(/\d+/); if (isbn) isbn = isbn[0]; } if (!isbn) { isbn = $("#product-detail li:contains('ISBN:')").text().match(/\d+/); if (isbn) isbn = isbn[0]; } if (!isbn) { isbn = $("td:contains('ISBN号:')").text().substr(7); } if (!isbn) { var isbntxt = $('.parameter2 li:contains("ISBN")').text(); isbn = isbntxt.replace(/(?:ISBN|isbn)(?:\:|:)/, ''); } if (!isbn) { var isbntxt = $('#parameter2 li:contains("ISBN")').text(); isbn = isbntxt.replace(/(?:ISBN|isbn)(?:\:|:)/, ''); } dp.name = $.trim(name); dp.isbn = isbn; var ab = window.pageConfig && window.pageConfig.product && window.pageConfig.product.brand; if (ab != 0) { dp.brand_string = $('#root-nav a[href*="' + ab + '"]').text(); if (!dp.brand_string) dp.brand_string = $('#crumb-wrap .crumb .item a[href*="' + ab + '"]').eq(0).text(); } dp.price = $('#jd-price').text().replace(/[¥¥]+/, ''); var new_cat_array = []; var cat_array = $("body").attr("class").match(/cat\-\d\-([0-9]+)/g) || []; for (var i = 0; i < cat_array.length; i++) { new_cat_array.push(cat_array[i].match(/\d\-([0-9]+)/)[1]); } if (new_cat_array.legnth === 0) { new_cat_array = window.pageConfig && window.pageConfig.product && window.pageConfig.product.cat; } if (window.pageConfig && window.pageConfig.product) { var pageConfig_pd = window.pageConfig.product; dp.shopId = pageConfig_pd.shopId; dp.venderId = pageConfig_pd.venderId; } dp.cat_id = new_cat_array.join("-"); if (!dp.price) { dp.price = $('.p-price:not(.dj-price):eq(0)').text(); } dp.plus_price = $('.p-price-plus .price').text().replace(/[¥¥]+/, ''); dp.fans_price = $('.fans-price .p-price-fans span').text().replace(/[¥¥]+/, ''); if (!dp.price) dp.price = $('.summary-price .p-price:not(.dj-price) .price').eq(0).text(); dp.pic = $('#spec-img').eq(0).attr('src').replace('/n5/', '/n1/'); if (!dp.pic) { dp.pic = $('.spec-items ul li img').eq(0).attr('src'); } if (dp.pic && dp.pic.indexOf('http') === -1) dp.pic = 'http:' + dp.pic.replace(/\d+x\d+/, '160x160'); dp.img = dp.pic; dp.itemId = location.href.match(/(\d+)\.html/)[1]; dp.name = dp.name && dp.name.replace('【京东超市】', ''); dp.website = 'jd.com'; dp.cat_name = Array.prototype.map.call(document.querySelectorAll('#crumb-wrap .crumb a'), function (d) { return d.textContent; }).slice(0, 3).join('#'); return dp; }, '360buy-re': function buyRe() { var dp = getProductInfo(); dp.name = $('.shop_intro>h2>a').text(); dp.price = $('.shop_intro_a .price a').text(); return dp; }, '360buy-auction': function buyAuction() { var dp = getProductInfo(); dp.name = $('#product-intro .p-info h1').text(); dp.price = $('#cur_price').text().match(/[0-9.]+/)[0]; return dp; }, 'fglady': function fglady() { return { 'name': $('.pd-content-left table tbody').children('tr').eq(1).children('td').eq(0).children('div').eq(0).text(), 'isbn': '' }; }, 'ouku': function ouku() { var dp = getProductInfo(); dp.name = $('.prod-info-title h1').text(); dp.brand_string = $('.specTitle .strong-title:contains("品牌")+.inline span').text(); dp.price = $('.sale-price').text().replace(/[¥¥\s]+/g, ''); return dp; }, '6pm': function pm() { var dp = getProductInfo(); dp.name = $('#productStage .title').text(); dp.brand_string = $('#productStage .title .brand').text(); dp.price = $('#priceSlot .price').text().replace('$', ''); dp.img = $('#productImages ul li img').eq(0).attr('src'); dp.sku = $('input[name="productId"]').val(); dp.category = $('#breadcrumbs a').text(); dp.source = $('#thumbnailImages').next().next().next().text(); dp.brand = $('a[itemprop="brand"]').text(); if (!dp.price) dp.price = $('._3r_Ou').eq(0).text().replace('$', ''); return dp; }, 'kimiss': function kimiss() { var name = ""; name = $('.preview_title h1 a').text(); var price = $('.preview_brief em').text(); if (price.indexOf('-') > -1) { price = price.split('-')[0]; } var pinfo = $('.preview_brief').text().match(/产品规格:(.*)/); if (pinfo) pinfo = pinfo[1]; if (pinfo.indexOf('-') > -1) pinfo = pinfo.split('-')[0]; name = name + pinfo; if (name == "") { name = $('.title h1').text(); } return { 'name': name, 'price': price, 'isbn': '' }; }, 'redbaby': function redbaby() { return { 'name': $('#pName').text(), 'isbn': '' }; }, 'm18': function m18() { return { 'name': $('.goods_detail .name').text(), 'isbn': '' }; }, 'babyhaven': function babyhaven() { var d = getProductInfo(); d.name = $('.product-name').text(); return d; }, 'w1': function w1() { return { 'name': $('.title h1').text(), 'isbn': '' }; }, 'sephoracps': function sephoracps() { var price = $('.proPrice>span:eq(1)').text(); return { 'name': $('.sdTitleL h1').text(), 'isbn': '', 'price': price }; }, 'bookuu': function bookuu() { var dp = getProductInfo(); dp.name = $('.shop-text-info h2').text(); dp.price = $('.wj-meta span:contains("博库价")~strong').text(); var meta = $("meta[name=keywords]")[0].getAttribute("content"); dp.isbn = /ISBN:(\d+)/.exec(meta) && /ISBN:(\d+)/.exec(meta)[1]; return dp; }, 'secoo': function secoo() { var dp = getProductInfo(); dp.price = $('.Dprice').text().replace(/(¥|,)/g, ''); dp.name = $('.proName h2').text(); return dp; }, 'lafaso': function lafaso() { var name = $('#pname').text(); if (typeof name == 'undefined' || name == '') { name = $('title').html(); } return { 'name': name, 'isbn': '' }; }, 's': function s() { return { 'name': $('.goodsname').text(), 'isbn': '' }; }, 'letao': function letao() { return { 'name': $('#buyinfo h1').text(), 'isbn': '' }; }, 'buy007': function buy007() { return { 'name': $('#info_right table tbody').children('tr').eq(0).children('td').eq(0).children('h1').eq(0).text(), 'isbn': '' }; }, 'taoxie': function taoxie() { return { 'name': $('.detail').children('div').eq(0).children('h2').eq(0).text(), 'isbn': '' }; }, 'suning': function suning() { var dp = getArticleInfoNew('input[name=returnURL]', 0, "value", "suning"); var name = $('#itemDisplayName').text().trim(); var isbn; if (!isbn) { isbn = $('#total dt:contains("I")').next().eq(0).text(); isbn = isbn.match(/(?:\d{13}|\d{10}|\d{8})/ig); if (isbn) isbn = isbn[0]; } if (!isbn) { isbn = $('.book-info span:contains("I")').next().eq(0).text(); isbn = isbn.match(/(?:\d{13}|\d{10}|\d{8})/ig); if (isbn) isbn = isbn[0]; } if (!isbn) { isbn = $('#bookParameterField dl:contains("ISBN")').text().match(/[0-9]+/); if (isbn) isbn = isbn[0]; } dp.url = location.href; var labelList = $('.w3').toArray(); labelList = labelList.map(function (i) { return i.innerHTML; }); var tgPrice = undefined; if (labelList.indexOf('团购价') > -1 || labelList.indexOf('预售价') > -1) { tgPrice = $('span.small-price').text(); } var promotionPrice = $('#promotionPrice.mainprice').text(); var mainPrice = $('.mainprice').text(); dp.name = name; dp.isbn = isbn; dp.brand_string = window.sn && window.sn.brandName || ''; dp.price = window.sn && window.sn.promotionPrice || 0; if (mainPrice) { dp.price = mainPrice; } if (promotionPrice) { dp.price = promotionPrice; } if (tgPrice) { dp.price = tgPrice; } dp.itemId = location.href.match(/(\d+\/\d+)\.html/)[1]; var catdom = $(".breadcrumb .dropdown:nth-last-of-type(3) a"); var cathref = catdom && catdom.attr('href'); dp.cat_id = cathref.match(/(\d-\d{0,}-\d)\.html/) ? cathref.match(/(\d-\d{0,}-\d)\.html/)[1] : ""; dp.website = "suning"; dp.pic = $('#bigImage img').attr('src'); if (dp.pic) dp.pic = $('#bigImg img').attr('src'); if (!dp.name) dp.name = window.sn && window.sn.itemDisplayName; dp.name = dp.name && dp.name.replace('【苏宁易购超市】', ''); if ($('#mainPrice').text().indexOf('定金') > -1) { G.noRealPrice = true; } return dp; }, 'suning-ju': function suningJu() { var dp = {}; dp.url = 'http://www.suning.com/emall/prd_10052_10051_-7_' + $("#itemId").attr("value") + '_.html'; if (G.crc64) dp.url = undefined; dp.name = $("h1 a").text(); return dp; }, 'suning-book-new': function suningBookNew() { var dp = getArticleInfoNew('input[name=returnURL]', 0, "value", "suning"); var name = $('title').html(); var isbn = ""; isbn = $('#total dt:contains("I")').next().eq(0).text(); var matches = isbn.match(/(?:\d{13}|\d{10}|\d{8})/ig); if (matches != null) { isbn = matches[0]; } else { isbn = ""; } if (isbn == '') { isbn = $('.book-info span:contains("I")').next().eq(0).text(); var matches = isbn.match(/(?:\d{13}|\d{10}|\d{8})/ig); if (matches != null) { isbn = matches[0]; } else { isbn = ""; } } dp.name = name; dp.isbn = isbn; return dp; }, 'suning-snbook': function suningSnbook() { var dp = getArticleInfoNew('input[name=returnURL]', 0, "value", "suning"); dp.name = $('.brief-info h1 strong').text(); dp.isbn = $('.parm-isbn span.attr-v').text(); return dp; }, 'suning-dgf': function suningDgf() { var that = this; var dp = that.getProductInfo(); var a = $('.detail-first h1.title a').eq(0); dp.name = $('.detail-first h1.title a span strong').text(); G.href = a.attr('href'); G.site = "suning"; if (typeof G.href == 'undefined' || G.href == "") { dp.useless = true; } else { var check = siteInfo.isProductPage(); if (!check) { dp.useless = true; } } return dp; }, 'suning-qiang': function suningQiang() { var dp = getArticleInfo(".product-main-title h1 a", 0, "suning"); var suningQiangProId = $('#catentry').val(); if (suningQiangProId) { G.href = 'http://www.suning.com/emall/prd_10052_10051_-7_' + suningQiangProId + '_.html'; } return dp; }, 'suning-pai': function suningPai() { var dp = getArticleInfoNew('input[name=returnURL]', 0, "value", "suning"); var name = $('.fb-main-title a').text(); var isbn = ""; var url = ""; url = $('.fb-main-title a').attr('href'); isbn = $('#total dt:contains("I")').next().eq(0).text(); var matches = isbn.match(/(?:\d{13}|\d{10}|\d{8})/ig); if (matches != null) { isbn = matches[0]; } else { isbn = ""; } dp.name = name; dp.isbn = isbn; dp.url = url; return dp; }, 'coo8': function coo8() { return { 'name': $('#productname h1').children('strong').eq(0).text(), 'isbn': '' }; }, 'lusen': function lusen() { return { 'url': 'http://www.lusen.com/Product/ProductInfo.aspx?id=' + $("#ProductId").val(), 'name': $('h1.goodsname').text(), 'isbn': '' }; }, 'gome-rushbuy': function gomeRushbuy() { var url = ""; url = $(".pic a").eq(0).attr("href"); return { 'name': $('.product-info .name').text(), 'isbn': '', 'url': url }; }, 'gomehone': function gomehone() { var dp = getProductInfo(); dp.price = $('#prdPrice').text().match(/[0-9.]+/)[0]; dp.name = $('.prdmain .prdtit').text(); return dp; }, 'gome': function gome() { var prdInfo = window.prdInfo; var dp = getProductInfo(); var isbn = ""; var name = $('title').html(); name = $('.prdtit h1').text(); dp.name = name; dp.isbn = isbn; dp.price = $('#prdPrice').text(); if (name == '') dp.name = prdInfo && prdInfo.prdName; if (dp.price == '') dp.price = prdInfo && prdInfo.price; dp.brand_string = prdInfo && prdInfo.breadName; dp.itemId = location.href.match(/gome\.com\.cn\/([A-Z0-9]+)-/)[1]; dp.cat_id = prdInfo && prdInfo.catId; dp.website = 'gome'; dp.pic = $('.pic-small ul li img').eq(0).attr('src'); if (!dp.cat_id) { var dom = $('.local a').eq(3).attr('href'); dp.cat_id = dom.match(/cat\d+/) && dom.match(/cat\d+/)[0]; } return dp; }, 'gome-q': function gomeQ() { var dp = getProductInfo(); dp.name = $('h1.title').text(); dp.url = $('.pro_link')[0].href; return dp; }, 'gome-tao': function gomeTao() { var dp = getProductInfo(); dp.name = $('.prdtit').text(); dp.price = parseInt($('#prdPrice').text().match(/[0-9]+/)[0]); return dp; }, 'gome-tuan': function gomeTuan() { var dp = getProductInfo(); dp.url = $(".compare-link").attr("href"); dp.name = $('title').html(); dp.price = $('#salePrice').text(); return dp; }, 'yihaodian': function yihaodian() { var dp = getProductInfo(); var id = ""; if ($('#productId').length) { id = $('#productId').val(); } else if ($('#productCode').length) { id = parseInt($('#productCode').text().slice(0, -1)); } else if ($('#mainProductId').length) { id = $('#mainProductId').val(); } // 名品特卖 else if ($('.specific_detail p span').length) { id = parseInt($('.specific_detail p span').text().match(/\d+$/)[0].slice(0, -1)); } var name = $('#productMainName').text(); var sp = name.indexOf('<'); if (sp > 0) { name = name.substr(0, sp); } if (name == '') { name = $('.main_info_con p.price').prev().eq(0).text(); }; if (name == '') { name = $('.pro_tit').text(); } var isbn = $('#prodDetailCotentDiv dd:contains("ISBN")').text().substr(5); isbn = $.trim(isbn); var itemId = location.href.match(/item\/([0-9]{5,9})/); dp.itemId = itemId && itemId[1]; dp.img = $('#jsproCrumb .mBox b img').eq(0).attr('src'); dp.brand_string = $('#brandName').val(); dp.price = $('#current_price').text().replace(/[¥¥]+/, ''); dp.cat_id = $('#categoryId').val(); dp.isbn = isbn; dp.name = name; dp.id = id; dp.pic = dp.img; dp.website = 'yhd'; return dp; }, 'yihaodian-tuan': function yihaodianTuan() { var name = ''; var id = ''; var url = ""; name = $('#detailDiv h2').eq(0).text(); id = $('#productId').val(); if (id == '') { id = $('#mainProductId').val(); } if (name == '') { name = $("title").text().replace(/.{2}团购_1号团_1号店官网/, ""); } var price = $('#pricenow').text(); url = 'http://item.yhd.com/item/' + $('#productMercantId').val(); return { 'name': name, 'isbn': '', 'id': id, 'url': url, 'price': price }; }, 'womai': function womai() { var dp = getProductInfo(); dp.name = ""; var matches = $(".main_detail").eq(0).html().match(/var _title = "([^"]+)"/); dp.name = matches[1]; dp.price = $('.buyPrice').text(); if (dp.name == "") { dp.name = $('.WrapTit').text(); } dp.name = window.rtTag.data.ecom_view.prod[0].p_name; dp.price = window.rtTag.data.ecom_view.prod[0].p_price; dp.brand_string = window.rtTag.data.ecom_view.prod[0].p_brand; return dp; }, 'coocaa': function coocaa() { return { 'name': "酷开 " + $(".proHeader h1").text() }; }, 'leyou': function leyou() { var dp = getProductInfo(); dp.name = $('#baseInfoDiv h3').text(); dp.price = $('.item_rmb .font_num').text(); return dp; }, 'shopin': function shopin() { var crumbs = $.trim($('.crumbs').text()); var title = $.trim($('.product-list h2').text()); crumbs = crumbs.replace(/(?:\u5f53\u524d\u4f4d\u7f6e|\u9996\u9875|-)/, "", crumbs); return { 'name': crumbs + " " + title, 'isbn': '' }; }, 'xiu': function xiu() { var name = ""; name = $('.p_title span h1').text(); return { 'name': name, 'isbn': '' }; }, 'xiu-tuan': function xiuTuan() { return { 'name': $('.xit_xqzgong h2').text(), 'isbn': '' }; }, 'vjia': function vjia() { return { 'name': $('.sp-singleName .title').text(), 'isbn': '' }; }, '7cv': function cv() { return { 'name': $('.main_right_top').text(), 'isbn': '' }; }, 'x': function x() { return { 'name': $('p.top_name').text(), 'isbn': '' }; }, 'guopi': function guopi() { return { 'name': $('#p_name').text(), 'isbn': '' }; }, 'no5': function no5() { var name = $('.part01 .p01_r h2').html(); if (name.indexOf('<') > 0) { name = name.substr(0, name.indexOf('<')); } return { 'name': name, 'isbn': '' }; }, 'sasa': function sasa() { var name = $('.product-titles').text(); var price = $('#product_information .action-pric').text(); return { 'name': name, 'price': price, 'isbn': '' }; }, 'dhc': function dhc() { return { 'name': $('head title').text(), 'isbn': '' }; }, '9dadao': function dadao() { return { 'name': $('.pra h2').text(), 'isbn': '' }; }, 'metao': function metao() { return { name: $(".pib_title_detail").text() }; }, 'kzj365': function kzj365() { var content = $("title").text(); var i = content.indexOf("_"); return { name: content.slice(0, i) }; }, 'nubia': function nubia() { var title = ''; if (title == '') { title = $('#subNav .sub-logo').eq(0).text(); } var price = $('.price').text(); return { name: title, price: price }; }, 'gnc': function gnc() { return { name: $('#product-title').text(), price: $('.price-regular').text().match(/[0-9.]+/) && $('.price-regular').text().match(/[0-9.]+/)[0] }; }, 'ymatou': function ymatou() { var content = $("meta[name=description]").attr("content"); var i = content.indexOf('”'); return { name: content.slice(1, i) }; }, 'kaola': function kaola() { return { name: $(".product-title").text(), price: $('.currentPrice').text() }; }, '360kxr': function kxr() { var name = $('.right-intro h2').html(); name = name.indexOf('<') > 0 ? name.substr(0, name.indexOf('<')) : name; return { 'name': name, 'isbn': '' }; }, 'likeface': function likeface() { return { 'name': $('.tCtn h1').text(), 'isbn': '' }; }, 'qxian': function qxian() { return { 'name': $('.product_body1_right_title h1').text(), 'isbn': '' }; }, 'didamall': function didamall() { return { 'name': $('.product-name').text(), 'isbn': '' }; }, 'yaodian100': function yaodian100() { return { 'name': $('.infoboxheader h1').text(), 'isbn': '' }; }, 'lijiababy': function lijiababy() { var name = $('#txtproname').text(); if (typeof name == 'undefined' || name == '') { name = $('#lbl_proname').text(); } return { 'name': name, 'isbn': '' }; }, '99read': function read() { var dp = getProductInfo(); dp.isbn = $('li:contains("产品条码")').html(); if (dp.isbn == null || typeof dp.isbn == 'undefined' || dp.isbn == '') { dp.isbn = ''; } else { dp.isbn = dp.isbn.substr(7); } return dp; }, 'china-pub': function chinaPub() { return { 'name': $('h1.black15c').text(), 'isbn': $('li:contains("ISBN")').children('strong').eq(0).html() }; }, 'bookschina': function bookschina() { var dp = getProductInfo(); dp.name = $('.this-pic').prev().text(); dp.name = $.trim(dp.name); dp.isbn = $('tr:contains(\"出版时间:\")').children().eq(1).text(); dp.isbn = $.trim(dp.isbn); return dp; }, 'bookschina-tuan': function bookschinaTuan() { var dp = getProductInfo(); dp.name = $('.titword').text().match(/《([^》]+)/)[1]; dp.price = $('.pricetime .pright .Mbig').text(); dp.isbn = $('.comments:contains("ISBN")').text().match(/ISBN:([0-9]+)/)[1]; if (dp.isbn == '') { dp.isbn = $('.comments').text().match(/[0-9]{13}/) && $('.comments').text().match(/[0-9]{13}/)[0]; } return dp; }, 'efeihu': function efeihu() { var dp = getProductInfo(); dp.name = $('.share_title em').text(); var p = $('.box_wrap .price .a p').text().match(/[0-9]+/); if (p) dp.price = p[0]; return dp; }, 'yintai': function yintai() { return { 'name': $('.p-tit').text(), 'isbn': '', 'price': $('.qd-num').text() }; }, 'urcosme': function urcosme() { return { 'name': $('.productInformationText h1').text(), 'isbn': '' }; }, 'strawberrynet': function strawberrynet() { return { 'name': $('.product-frame h1').text() + $('.product-frame h2').text(), 'isbn': '' }; }, 'luce': function luce() { return { 'name': $('.Product_Detail ul').children('li').eq(0).children('p').eq(0).text(), 'isbn': '' }; }, 'k121': function k121() { return { 'name': $('.newproductname0').text(), 'isbn': '' }; }, 'happigo': function happigo() { return { 'name': $('.detail_top .detail_tit ').text(), 'price': $('.price_now').text() }; }, 'gap': function gap() { return { 'name': $('.product-name h1').text(), 'isbn': '' }; }, 'misslele': function misslele() { return { 'name': $('#goods_name').text(), 'isbn': '' }; }, 'all3c': function all3c() { return { 'name': $('.buyinfo h1').text(), 'isbn': '' }; }, 'idaphne': function idaphne() { return { 'name': $('.title').text(), 'isbn': '' }; }, 'binggo': function binggo() { var name = $('#pName h1').html(); var len = name.length; var i = 0; for (; i < len; i++) { if (name[i] == '<') { break; } } return { 'name': name.substr(0, i), 'isbn': '' }; }, 'taobao-ju': function taobaoJu() { var info = getProductInfo(); var id = /item_id=(\d+)/ig.exec(location.href); info.id = id && id.length == 2 && id[1]; info.name = $.trim($('.main-box h2').text()); info.url = 'https://detail.tmall.com/item.htm?id=' + info.id; info.itemId = location.href.match(/item_id=(\d+)/)[1]; info.price = $('.currentPrice .J_actPrice').eq(0).text(); return info; }, 'tmall': function tmall() { var info = getProductInfo(); var attrs = $(".attributes-list ul").html(); var sattrs = ''; var userid = ""; if (attrs == null) { attrs = $(".attributes-list").html(); } if (attrs) { attrs = attrs.replace(/(?:<\!\-\-[^\-]*\-\->|<li[^>]*>|\ \ )/ig, ''); attrs = attrs.replace(/ /ig, ' '); attrs = attrs.replace(/<\/li[^>]*>/ig, '|'); attrs = attrs.replace(/\n/ig, ''); var brand = attrs.match(new RegExp(/\|(\u54c1\u724c(?:\:|\uff1a)[^\|]+)/ig)); if (brand) { for (var i = 0; i < brand.length; i++) { sattrs += brand[i] + '|'; } } var no = attrs.match(new RegExp(/((?:\u7cfb\u5217|\u8d27\u53f7|\u578b\u53f7|\u6b3e\u53f7)(?:\:|\uff1a)[^\|]+)/ig)); if (no) { for (var i = 0; i < no.length; i++) { sattrs += no[i] + '|'; } } var isbn = attrs.match(new RegExp(/(ISBN[^\:\uff1a]*(?:\:|\uff1a)[^\|]+)/ig)); if (isbn) { for (var i = 0; i < isbn.length; i++) { sattrs += isbn[i] + '|'; } } info.skeyword = sattrs; } //提取分类信息 info.cat_id = ""; var cat_id = $('#tb-beacon-aplus').attr('exparams'); cat_id = cat_id && cat_id.match(/category=item%5f(\d+)&/); cat_id = cat_id && cat_id[1]; info.cat_id = cat_id; if (info.cat_id == "") { var cat_id = $('#detail-recommend-viewed').attr('data-catid'); info.cat_id = cat_id; } info.root_id = $('#J_FrmBid input[name="rootCatId"]').val(); //提取图片信息 info.pic = $('#J_ImgBooth').attr('src'); if (info.pic.indexOf('https:') === -1) info.pic = 'https:' + info.pic; var itemid = location.href.match(/[?&]id=(\d+)/); itemid = itemid && itemid[1]; //获取用户的id var doms = $("meta[name='microscope-data']").attr('content'); var matches = doms && doms.match(/userid=(\d+)/); if (matches) { userid = matches[1]; } var price = $('#J_PromoBox .tb-wrTuan-num').text(); if (!price) price = $('#J_Price').text(); if (!price) price = $('#J_StrPrice').text(); if (!price) price = $('.tm-promo-price .tm-price').text(); if (!price) price = $('#J_StrPriceModBox .tm-price').text(); if (!price) price = $('.tm-price').text(); info.shop_name = $('.shopkeeper .right a').text(); info.shop_addres = $('.locus .right').text().replace(/(?:\t|\n|\s)/ig, ''); info.price = price; info.userid = userid; info.img = info.pic; info.name = $('#J_DetailMeta .tb-detail-hd h1').text().replace(/\n/g, '').trim(); info.itemId = itemid; var url = location.href; // if (url.indexOf('detail.tmall.com') > -1 && url.indexOf('skuId') > -1) { // let skuId = require('common/commonUtil').getParameterByName('skuId', location.href) // let dp = require('common/commonUtil').getParameterByName('id', location.href) // url = `https://sku-taobao.com/item.htm?id=${dp}-${skuId}` // } info.url = url; return info; }, 'mi': function mi() { var info = getProductInfo(); info.name = $('.product-con h1').text(); return info; }, 'taobao': function taobao() { var info = getProductInfo(); var attrs = $(".attributes-list ul").html(); var sattrs = ''; var userid = ""; if (attrs == null) { attrs = $(".attributes-list").html(); } attrs = attrs.replace(/(?:<\!\-\-[^\-]*\-\->|<li[^>]*>|\ \ )/ig, ''); attrs = attrs.replace(/ /ig, ' '); attrs = attrs.replace(/<\/li[^>]*>/ig, '|'); attrs = attrs.replace(/\n/ig, ''); var brand = attrs.match(new RegExp(/\|(\u54c1\u724c(?:\:|\uff1a)[^\|]+)/ig)); if (brand) { for (var i = 0; i < brand.length; i++) { sattrs += brand[i] + '|'; } } var no = attrs.match(new RegExp(/((?:\u7cfb\u5217|\u8d27\u53f7|\u578b\u53f7|\u6b3e\u53f7)(?:\:|\uff1a)[^\|]+)/ig)); if (no) { for (var i = 0; i < no.length; i++) { sattrs += no[i] + '|'; } } var isbn = attrs.match(new RegExp(/(ISBN[^\:\uff1a]*(?:\:|\uff1a)[^\|]+)/ig)); if (isbn) { for (var i = 0; i < isbn.length; i++) { sattrs += isbn[i] + '|'; } } info.skeyword = sattrs; //提取分类信息 info.cat_id = $('#J_Pine').attr('data-catid'); info.root_id = $('#J_Pine').attr('data-rootid'); //提取图片信息 info.pic = $('#J_ImgBooth').attr('src'); info.img = info.pic; //获取用户的id var doms = $("meta[name='microscope-data']").attr('content'); var matches = doms && doms.match(/userid=(\d+)/); userid = matches && matches[1]; var price = $('#J_Price').text(); info.shop_name = $('.shopkeeper .right a').text(); info.shop_addres = $('.locus .right').text().replace(/(?:\t|\n|\s)/ig, ''); info.nnid = location.href.match(/[?&]id=([0-9]+)/) && location.href.match(/[?&]id=([0-9]+)/)[1]; info.price = price; info.newtitle = $('#J_Title .tb-main-title').text().trim(); info.itemId = info.nnid; info.userid = userid; if (info.img.indexOf('//') === 0) { info.img = 'https:' + info.img; } return info; }, 'taobao-spu': function taobaoSpu() { return { 'name': $('#detail .detail-hd h3').text(), 'isbn': '' }; }, 'xijie': function xijie() { return { 'name': $('.detail_sh_right h1').text(), 'isbn': '' }; }, 'caomeipai': function caomeipai() { return { 'name': $('#pro_name h2').text(), 'isbn': '' }; }, 'dahuozhan': function dahuozhan() { return { 'name': $('.property h2').text(), 'isbn': '' }; }, 'huolida': function huolida() { return { 'name': $('.h1_title h1').text(), 'isbn': '' }; }, '12dian': function dian() { return { 'name': $('.goodstitle').text(), 'isbn': '' }; }, '111': function _() { var dp = getProductInfo(); dp.name = $('.detailnav span').last().text(); dp.price = window._BFD.BFD_INFO.price; return dp; }, 'daoyao': function daoyao() { return { 'name': $('.product_1_4 .d_table_3 .font_01').text(), 'isbn': '' }; }, 'douban': function douban() { var tmp_isbn = $('#info').html(); var isbn = ''; var start = tmp_isbn.indexOf('ISBN:'); var length = tmp_isbn.length; start += 12; for (; start < length; start++) { if (tmp_isbn[start] >= '0' && tmp_isbn[start] <= '9') { isbn += tmp_isbn[start]; } } if (isbn === '') { var t = $('#content .indent').eq(1).text().match(/isbn: (\d+)/); if (t) { isbn = t[1]; isbn = isbnTran(isbn); } } var href = window.location.href.toString(); var matches = href.match(/gwd_isbn=(\d+)/); if (isbn == "" && matches) { isbn = matches[1]; } var info = getProductInfo(); info.isbn = isbn; return info; }, 'douban-dongxi': function doubanDongxi() { var info = getProductInfo(); info.title = $('.commodity-name a').text(); return info; }, 'it168': function it168() { return { 'name': $('.title100 h1').text(), 'isbn': '' }; }, 'pconline': function pconline() { return { 'name': $('.pro-tit .name').text(), 'isbn': '' }; }, 'pcpop': function pcpop() { return { 'name': $('.tit1 h1').text(), 'isbn': '' }; }, 'yoka': function yoka() { return { 'name': $('.pInfo_c2_lu h2').text(), 'isbn': '' }; }, '55bbs': function bbs() { return { 'name': $('.cpjsright_name h1').text(), 'isbn': '' }; }, 'onlylady': function onlylady() { return { 'name': $('.bnnaer_text').text(), 'isbn': '' }; }, '24dq': function dq() { return { 'name': $('.goodsname').text(), 'isbn': '' }; }, 'lingshi': function lingshi() { return { 'name': $('#detail_bb h3').text(), 'isbn': '' }; }, 'onlyts': function onlyts() { return { 'name': $('#bread .last').eq(1).text(), 'isbn': '' }; }, 'winxuan': function winxuan() { var isbn = ''; isbn = $('li:contains("I S B N:")').text().substr(8); var title = ''; title = $("meta[name='keywords']").attr("content"); return { 'name': title, 'isbn': isbn }; }, /*'new7' : function(){ return { 'name': $('.mainR h1 strong').text(), 'isbn': '' } },*/ 'beifabook': function beifabook() { var isbn = $('#LabelISBN').text(); isbn = isbn.replace(/-/g, ""); return { 'name': $('#LabelTitle').text(), 'isbn': isbn }; }, 'sina-tech': function sinaTech() { var name = $('.zcblk02 h2').html(); if (typeof name == 'undefined' || name == '' || name == null) { name = $('.PartATitle h2').html(); if (typeof name == 'undefined' || name == '' || name == null) { name = $('.Info h2').html(); if (typeof name == 'undefined' || name == '' || name == null) { name = $('.product-name h1').html(); if (typeof name == 'undefined' || name == '' || name == null) { name = $('title').html().substr(0, $('title').html().indexOf('_')); } } } } if (name.indexOf('<') > 0) { name = name.substr(0, name.indexOf('<')); } name = name.replace(" ", ""); return { 'name': name, 'isbn': '' }; }, 'sina-baby': function sinaBaby() { return { 'name': $('.dp_info_title').text(), 'isbn': '' }; }, 'sina-eladies': function sinaEladies() { return { 'name': $('.blk01 h1').text(), 'isbn': '' }; }, 'sohu-it': function sohuIt() { return { 'name': $('.til h2').text(), 'isbn': '' }; }, 'sohu-women': function sohuWomen() { return { 'name': $('.r h2 span').text(), 'isbn': '' }; }, '163-digi': function digi() { var name = $('.colA h3').text(); if (typeof name == 'undefined' || name == null || name == '') { name = $('.colA h1').text(); } return { 'name': name, 'isbn': '' }; }, '163-lady': function lady() { return { 'name': $('.detailbox-main h1').text(), 'isbn': '' }; }, 'qq-digi': function qqDigi() { var name = $('.top_hd h2').text(); if (typeof name == 'undefined' || name == '' || name == null) { name = $('.font0751 span').text(); } return { 'name': name, 'isbn': '' }; }, 'qq-hea': function qqHea() { var name = $('#pdShow h1').text(); if (typeof name == 'undefined' || name == '' || name == null) { name = $('#pdShow .longName').text(); } return { 'name': name, 'isbn': '' }; }, 'qq-lady': function qqLady() { var name = $('.pro_info .title').text(); return { 'name': name, 'isbn': '' }; }, 'vipshop': function vipshop() { var getCatgory = function getCatgory() { var result; if (window.O_viewed) { return { cat_id: window.O_viewed.category_id, cat_name: window.O_viewed.category_name }; } else { // for chrome var s = $('#J-bottom-adCode').next().text(); if (!s) s = $('#J_topbar_pop_template').next().text(); s = /var O_viewed = {([\s\S]*?)}/.exec(s); if (s) s = s[1]; var cat_id = /'category_id' : '(\d+)'/.exec(s); if (cat_id) cat_id = cat_id[1]; var cat_name = /'category_name' : '(.*?)'/.exec(s); if (cat_name) cat_name = cat_name[1]; return { cat_name: cat_name, cat_id: cat_id }; } }; var cat = getCatgory(); var name = ""; name = $(".bt_layout li:contains('商品名称') .bt_lt_par_p").text(); if (name == "") { name = $.trim($('.pro_info .goods_protit').text()); } if (name == "") { name = $('.bt_title').text().replace(/(?:\n|\t|\s)/ig, ''); } if (name == "") { name = $.trim($('.pib-title-detail').text()); } return { 'price': $('.pbox-price em').text(), 'name': name, 'isbn': '', 'cat_id': cat.cat_id, 'cat_name': cat.cat_name, 'brand_string': $('.pib-title-class a').text() }; }, 'j1': function j1() { return { 'name': $('.productarea-right-1 H1').text(), 'isbn': '' }; }, 'yougou': function yougou() { var dp = getProductInfo(); dp.name = $('.goodsCon .f16').text(); if (dp.name == '') dp.name = $('.goodsCon h1').text().replace(/\s/g, ''); if ($('#yitianPrice')) { dp.price = $('#yitianPrice').text(); } return dp; }, 'jxdyf': function jxdyf() { return { 'name': $('.product .pro_name').text(), 'isbn': '' }; }, 'yaofang': function yaofang() { var name = $('.pro_title').html(); if (name.indexOf('<') > 0) { name = name.substr(0, name.indexOf('<')); } return { 'name': name, 'isbn': '' }; }, 'tiantian': function tiantian() { return { 'name': $('.detail_mbx .c_ed').text(), 'isbn': '' }; }, 'tiantian-tuan': function tiantianTuan() { var dp = getProductInfo(); dp.name = $('td:contains("商品名称")+td span').text(); dp.price = $('.buy_pri').text(); return dp; }, 'yiguo': function yiguo() { return { 'name': $.trim($('.main .cpname h1').text()), 'isbn': '' }; }, 'jiuxian': function jiuxian() { var dp = getProductInfo(); dp.name = $('.dmainBox .detail-depict .depict-name h1').text(); if (dp.name == '') dp.name = $('.detailName h2').text().replace('(私人定制)', ''); dp.price = $('#_nowPriceStr').text(); return dp; }, 'meilele-tuan': function meileleTuan() { var dp = getProductInfo(); dp.name = $('#JS_tg_goods_name').text(); var p = $('#JS_bnr_state').text().match(/[0-9]+/); if (p) dp.price = p[0]; return dp; }, 'ehaier': function ehaier() { var dp = getProductInfo(); dp.name = $('.a-product-title').text(); dp.price = $('.pricetag .cur-price').text().match(/[0-9]+/)[0]; return dp; }, 'ule': function ule() { var dp = getProductInfo(); dp.name = $('.productInfo h1').text(); dp.price = $('.productPrice .price strong').text(); return dp; }, 'esprit': function esprit() { var dp = getProductInfo(); dp.name = $('#itemName').text().replace(/\s/g, ''); dp.price = $('#pdpPrice').text().replace(/[¥¥]+/, ''); return dp; }, 'lining': function lining() { var dp = getProductInfo(); dp.name = $('#product_name').text().replace(/\s/g, ''); dp.price = $('#offerPrice .v').text().replace(/[\s¥¥]/g, ''); return dp; }, 'oyeah': function oyeah() { var name = ""; name = $("meta[name='Keywords']").attr("content"); return { 'name': name, 'isbn': '' }; }, 'lvyoumall': function lvyoumall() { return { 'name': $("meta[name='keywords']").attr("content"), 'isbn': '' }; }, 'lefeng': function lefeng() { var name = ""; var url = ""; name = $.trim($(".path").text().split('/').pop()); url = "http://product.lefeng.com/product/" + $("#productId").val() + ".html"; var result = { 'url': url, 'name': name, 'isbn': '' }; if (!G.dp.price) { result['price'] = $('.dity-price-c').text(); } return result; }, 'wbiao': function wbiao() { var dp = getProductInfo(); dp.name = $('#info_on_sale h1').text(); dp.price = $('#price').text(); return dp; }, 'banggo': function banggo() { var dp = getProductInfo(); dp.name = $('.goods-name').text(); dp.price = $('#salePriceText').text(); return dp; }, 'yohobuy': function yohobuy() { var dp = getProductInfo(); dp.price = $('.promotion-price .price').text(); if (!dp.price) dp.price = $('.product-detail-page .main .price').text(); dp.name = $('.product-detail-page .main .name').text(); return dp; }, 'sundan': function sundan() { return { name: $('#buy_form div.box>div.ng-info>h2').text(), price: $('#buy_form div.box>div.ng-size span.price').text() }; }, 'adidas-us': function adidasUs() { return { name: $('.pdp-title h3').text(), price: $('.pdp-title .goods-price').text() }; }, 'jiae': function jiae() { return { name: $('#content div.item-intro>div.property>h1').text(), price: $('#content div.item-intro>div.property .itemDetail-itemPrice span.j-item-now-price').text() }; }, 'zazhipu': function zazhipu() { return { name: $('.ic_content div.grid_m div.xbase_row1>h1').text(), price: $('.ic_content div.grid_m div.xbase_row2 span.mod_price').text().split('¥')[2].split('.')[0] }; }, 'microsoftstore': function microsoftstore() { var name = $('#inner div.pdpContent>div.pdpInfo>.pdp_module_info>div.title>h1').text() || $('#inner div.content-block .right h2.title').text(); var price = $('#inner div.pdpContent>div.pdpInfo>.pdp_module_info>.priceAndRank>div.price>span.current').text() || $('#selectVariantProduct span.price').text(); return { name: name, price: price }; }, 'xgdq': function xgdq() { return { name: $('.product-main .product-titles>h2').text(), price: $('.product-main .product-concerns li:first .action-price').text() }; }, 'xtep': function xtep() { var name = $('.goodsDetailsBox .goodsPrice>dt').text(); var price = $('.goodsDetailsBox .goodsPrice dd>ul>li>div:first>span').text(); if (!name || !price) { name = $('.wrapper .groupTittle').text(); price = $('.wrapper .groupPriceBox>a>span').text(); } return { name: name, price: price }; }, 'midea': function midea() { return { name: $('.product_wrap>.product_right>h1').text(), price: $('.product_wrap>.product_right .price').text() }; } }; var reTry = undefined; //获取商品信息的统一入口 var get = function get(callback) { if (G.pageInfo.type === 1) { callback(); return; } var dp = undefined; siteName = G.pageInfo.siteName; var href = window.location.href; try { if (siteName && siteName.indexOf('amazon') > -1) siteName = 'amazon'; dp = productPattern[siteName](); dp.oldPrice = dp.price; if (dp.price && dp.price.match(/(?:\?|\?)/)) dp.activePrice = true; dp.price = parseprice(dp.price); dp.oldPrice = parseprice.getPriceBeforeExchangeRate(dp.oldPrice); dp.site = siteName; if (dp.url == null) { if (dp.href != null) { dp.url = dp.href; } else { dp.url = href; } } } catch (e) { /*eslint-disable */ if (G.debug) { console.log(e); } /*eslint-enable */ dp = getProductInfo(); dp.site = siteName; dp.url = href; } if (typeof dp.useless != 'undefined' && dp.useless) { return null; } dp.icon = dp.url.replace(/^http[s]?\:\/\//g, ""); dp.icon = dp.icon.replace(/\/.*?$/g, ""); dp.icon += '/favicon.ico'; if (typeof dp.id == 'undefined' || dp.id == null) { dp.id = ""; } if (typeof dp.keyword == 'undefined' || dp.keyword == null) { dp.keyword = ''; } if (typeof dp.skeyword == 'undefined' || dp.skeyword == null) { dp.skeyword = ''; } if (typeof dp.isbn == 'undefined' || dp.isbn == null) { dp.isbn = ''; } var delayLoadList = ['youpin-mi', 'oneplus', 'lenovo', 'vipshop']; if (delayLoadList.indexOf(G.site) > -1 && !dp.price && !dp.name && !reTry) { reTry = true; setTimeout(function () { get(callback); }, 2000); return; } G.dp = dp; if (!dp.price) { var siteName = G.site; var siteId = detect.getSiteId(siteName); if (!siteId) siteId = 9999; priceParser.init(siteId, function (price) { if (price && price > 0) { dp.oldPrice = price; dp.price = price; } if (callback) callback(); }); } else { if (typeof dp.name == 'undefined' || dp.name == '') { dp.name = $('title').text(); } if (callback) callback(); } return dp; }; module.exports.get = get; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "474327c68c691e577033": /***/ (function(module, exports) { module.exports = "<div class=\"mini-compare-detail\">\n <div class=\"mini-com-box\">\n <ul id=\"mini_lowest_ul\" style=\"width:{{ulWidth}}px\">\n {{each data}}\n <li class=\"mini-lowest-list\">\n <a href=\"{{$value.url}}\" target=\"_blank\" class=\"mini-bigimg\">\n <img src=\"{{$value.img_url}}\">\n {{if $value.promo}}\n <span>{{$value.promo}}</span>\n {{/if}}\n </a>\n <a href=\"{{$value.url}}\" target=\"_blank\" class=\"mini-tle\" title=\"{{$value.title}}\">\n {{$value.title}}\n </a>\n <a class=\"mini-low-other\" href=\"{{$value.url}}\" target=\"_blank\">\n <img src=\"https://s1.gwdang.com/images/favicon/{{$value.site_id}}.ico\">\n <span>{{$value.site_name}}</span>\n </a>\n <span class=\"mimi-page-price \">页面价:<span class=\"prifontf\">¥{{$value.last_price}}</span></span>\n <span class=\"mini-price\"><span>到手价:</span><strong class=\"prifontf\">¥{{$value.price}}</strong></span>\n </li>\n {{/each}}\n <style type=\"text/css\">\n .mini-compare-detail {\n height: 284px;\n width: 460px;\n overflow: hidden;\n position: absolute;\n top: 36px;\n left: -1px;\n z-index: 99999999;\n display: none;\n background-color: #fff;\n border: 1px solid #E6E9EB;\n }\n .mini-com-box {\n margin-top: 10px;\n height: 247px;\n width: 460px;\n overflow: hidden;\n position: relative;\n }\n #mini_lowest_ul:after {\n display: block;\n clear: both;\n content: \"\";\n }\n #mini_lowest_ul {\n position: absolute;\n left: 0px;\n height: 247px;\n padding: 0px;\n margin: 0px;\n }\n #mini_lowest_ul .mini-lowest-list {\n float: left;\n margin-left: 10px;\n width: 140px;\n height: 247px;\n list-style: none;\n clear: none;\n }\n #mini_lowest_ul .mini-bigimg {\n width: 140px;\n height: 140px;\n position: relative;\n float: left;\n }\n #mini_lowest_ul .mini-bigimg img {\n width: 100%;\n height: 100%;\n vertical-align: middle;\n }\n #mini_lowest_ul .mini-bigimg span {\n position: absolute;\n bottom: 0px;\n display: inline-block;\n width: 135px;\n z-index: 99;\n max-height: 36px;\n left: 0px;\n line-height: 18px!important;\n background: rgba(17,51,75, .6);\n color: #fff;\n text-align: center;\n padding-left: 5px;\n }\n \n #mini_lowest_ul .mini-tle {\n float: left;\n margin-top: 10px;\n width: 136px;\n height: 16px;\n line-height: 16px;\n font-size: 12px;\n color: #666666;\n text-align: center;\n overflow: hidden;\n white-space: nowrap;\n }\n #mini_lowest_ul .mimi-page-price {\n float: left;\n font-size: 12px;\n color: #999;\n margin-top: 10px;\n height: 16px;\n width: 100%;\n text-align: left;\n line-height: 16px!important;\n }\n #mini_lowest_ul .mini-low-other {\n float: left;\n width: 100%;\n height: 14px;\n line-height: 14px;\n margin-top: 10px;\n }\n #mini_lowest_ul .mini-low-other * {\n float: left;\n }\n #mini_lowest_ul .mini-low-other img {\n margin-right: 10px;\n height: 14px;\n width: 14px;\n }\n #mini_lowest_ul .mini-low-other span {\n line-height: 14px!important;\n color: #666;\n font-size: 12px;\n }\n #mini_lowest_ul .mini-price {\n float: left!important;\n margin-top: 6px!important;\n width: 100%;\n height: 16px;\n line-height: 16px!important;\n text-align: left;\n font-size: 12px;\n color: #E4393C;\n }\n #mini_lowest_ul .mini-price strong {\n font-size: 14px!important;\n }\n .mini-com-foot {\n width: 100%;\n height: 26px;\n }\n .mini-com-foot .mini-com-turnbtn {\n color: #999;\n font-size: 12px;\n position: absolute;\n line-height: 16px;\n bottom: 8px;\n cursor: pointer;\n }\n .mini-com-foot .linkAll {\n position: absolute;\n bottom: 8px;\n right: 10px;\n font-size: 12px;\n line-height: 16px;\n color: #999;\n display: none;\n }\n .mini-com-foot .mini-com-turnbtn:hover,.mini-tle:hover,.mini-com-foot .linkAll:hover, .mini-low-other span:hover {\n color: #48BEFF!important;\n }\n .mini-com-tleft {\n left: 10px;\n display: none;\n }\n .mini-com-tright {\n right: 10px;\n }\n </style>\n </ul>\n </div>\n <div class=\"mini-com-foot\"> \n <span class=\"mini-com-turnbtn mini-com-tleft\" data-type=\"-1\">< 上一页</span>\n {{if totalPages > 1}}\n <span class=\"mini-com-turnbtn mini-com-tright\" data-type=\"1\">下一页 ></span>\n {{/if}}\n {{if linkAll}}\n <a href=\"{{linkAll}}\" class=\"linkAll\" target=\"_blank\">查看全部</a>\n {{/if}}\n </div>\n</div>" /***/ }), /***/ "487014f393da302d31f6": /***/ (function(module, exports) { module.exports = "<span class=\"coupon-marleft\"></span>\n<a id=\"top_coupon_btn\" title=\"点击领取\" {{if !isShowPic}} href=\"{{url}}\" target=\"_blank\" style=\"cursor:pointer\" {{/if}}>\n<span class=\"top-coupon-tle\">当前商品领券立减</span>\n<span class=\"price-num\"><span class=\"price-sm\">¥</span><span>{{price}}</span></span>\n<em class=\"link_hand\"></em>\n{{if picUrl && isShowPic}}\n<div class=\"coupon_detail\">\n <img src=\"{{picUrl}}\">\n\n <span>{{ useTaobao? '淘宝': '微信' }}扫码领券</span>\n</div>\n{{/if}}\n<style>\n #top_coupon_btn {\n background: url(https://cdn.gwdang.com/images/extensions/[email protected]) 0 0 no-repeat;\n display: inline-flex;\n height: 28px;\n width: 149px;\n white-space: nowrap;\n position: relative;\n z-index: 999999999999;\n padding: 0 !important;\n margin: 3px 40px 4px 0!important;\n border: none !important;\n background-size: cover;\n align-items: center;\n text-decoration: none!important;\n }\n</style>\n{{if isShowPic}}\n<style>\n #top_coupon_btn * {\n cursor: default;\n }\n</style>\n{{else}}\n<style>\n #top_coupon_btn * {\n cursor: pointer;\n }\n</style>\n{{/if}}\n{{if isBottom}}\n<style>\n .coupon_detail {\n bottom: 28px;\n }\n</style>\n{{else}}\n<style>\n .coupon_detail {\n top: 28px;\n }\n</style>\n{{/if}}\n<style>\n\n</style>\n<style type=\"text/css\">\n\n .coupon_detail {\n position: absolute;\n right: 1px;\n height: 156px;\n width: 146px;\n z-index: 99999999999;\n background: #FFF6F4;\n border: 1px solid #FF6132;\n display: none;\n }\n\n #top_coupon_btn:hover .coupon_detail {\n display: block;\n }\n\n #top_coupon_btn:hover .gwd-qrcode-container {\n display: flex;\n }\n\n .coupon_detail img {\n width: 118px;\n height: 118px;\n float: left;\n margin-left: 14px;\n margin-top: 8px;\n }\n\n .coupon_detail span {\n font-size: 14px;\n color: #FF4335 !important;\n letter-spacing: 0.22px;\n font-weight: bold;\n float: left;\n height: 14px;\n line-height: 14px;\n width: 100%;\n margin-top: 6px;\n text-align: center;\n }\n\n .coupon-marleft {\n height: 100%;\n width: 10px;\n border-left: 1px solid #edf1f2;\n }\n\n .link_hand {\n display: inline-block;\n height: 30px;\n width: 38px;\n position: absolute;\n right: -38px;\n top: -2px;\n background: url(https://cdn.gwdang.com/images/extensions/newbar/hand.gif) 0px 0px no-repeat;\n }\n\n #top_coupon_btn * {\n color: #fff;\n /*float: left;*/\n font-family: \"microsoft yahei\";\n }\n\n #top_coupon_btn .top-coupon-tle {\n height: 12px;\n text-align: center;\n line-height: 12px;\n margin-left: 4px;\n font-size: 12px !important;\n font-weight: normal !important;\n }\n\n #top_coupon_btn .price-num {\n font-size: 14px;\n color: #FFFFFF;\n font-weight: bold;\n width: 46px;\n height: 22px;\n text-align: center;\n margin-left: 3px;\n line-height: 22px !important;\n padding: 0px !important;\n vertical-align: middle;\n }\n\n #top_coupon_btn .price-num span {\n display: inline;\n }\n\n #top_coupon_btn .price-sm {\n font-size: 12px;\n transform: scale(0.8333);\n transform-origin: bottom right;\n }\n\n #bjgext_mainbar .coupon_detail {\n top: initial!important;\n }\n</style>\n{{if useTaobao}}\n<style>\n .coupon_detail, .minicoupon_detail {\n transform: scale(1.3);\n transform-origin: top center;\n }\n</style>\n{{/if}}\n</a>" /***/ }), /***/ "48c7bf720f8190dd7cc2": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) {var __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { // 某些网站会覆盖掉js的一些方法 if (G.site === 'keede') { __webpack_require__("74757817411a9c6f8278")(); } if (G.site === 'ule' || G.site === 'yesmywine') { Array.prototype.filter = function (cb) { var temp = []; for (var i = 0; i < this.length; i++) { if (cb(this[i])) { temp.push(this[i]); } } return temp; }; } if (G.site === 'suning') { setTimeout(function () { $('#gwd_mini_compare').on('click', 'a', function (e) { var url = $(this).attr('href'); if (url && url.indexOf('http') > -1) { window.open($(this).attr('href')); e.preventDefault(); } }); }, 500); } if (G.site === 'wstx') { Array.prototype.indexOf = function (searchElement, fromIndex) { var k; if (this == null) { throw new TypeError('"this" is null or not defined'); } var O = Object(this); var len = O.length >>> 0; if (len === 0) { return -1; } var n = +fromIndex || 0; if (Math.abs(n) === Infinity) { n = 0; } if (n >= len) { return -1; } k = Math.max(n >= 0 ? n : len - Math.abs(n), 0); while (k < len) { if (k in O && O[k] === searchElement) { return k; } k++; } return -1; }; } }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "48e72e71ca8baf5916e2": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $, Vue) { var request = __webpack_require__("91f250ebeb8d5987491c"); module.exports = { init: function init() { var g_config = window.g_config; var hasShopCoupon = false; setTimeout(function () { if (!hasShopCoupon) __webpack_require__("9c38beef5ff283e15bd2").setMet('shopCouponGot', false); }, 3000); request.get(G.server + '/extension/Coupon?dp_id=' + G.dp.itemId + '&sellerId=' + g_config.sellerId + '&price=' + G.dp.price).then(function (res) { __webpack_require__("9c38beef5ff283e15bd2").setMet('shopCouponGot', res && res.shop_coupon); hasShopCoupon = true; if (!res || !res.shop_coupon) return; var coupon = res.shop_coupon; setTimeout(function () { $('#gwd-coupon-placeholder').replaceWith('<div id="shopCouponMini"></div>'); // const ShopCouponMini = require('standard/module/components/MiniCoupon').default var ShopCouponTop = __webpack_require__("dc95a667ec8da7724e60")['default']; // new Vue({ // el: '#shopCouponMini', // render: h => h(ShopCouponMini, { // props: { // coupon: coupon, // tag: 6 // } // }) // }) $('.gwd-topbar-left').append('<div id="shopCouponTop"></div>'); new Vue({ el: '#shopCouponTop', render: function render(h) { return h(ShopCouponTop, { props: { coupon: coupon, tag: 6 } }); } }); var CommonCouponBarMini = __webpack_require__("bf749102803a6e48eddc")['default']; new Vue({ el: '#shopCouponMini', render: function render(h) { return h(CommonCouponBarMini, { props: { type: 'link', mainColor: '#ff6132', secondColor: '#ff7d38', icon: __webpack_require__("f91a94ff4014724ed642"), text: '当前商品可领店铺券,满' + coupon.limit + '减' + coupon.discount, href: 'https://tb.gwdang.com/extension/qrpage?dp_id=' + G.dp.dpId + '&tag=6&limit=' + coupon.limit + '&discount=' + coupon.discount } }); } }); }, 0); }); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "48ec1ca75857b9f279ea": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_style_index_0_id_29b33b2e_scoped_true_lang_less___ = __webpack_require__("babca2a4632382485f5f"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_style_index_0_id_29b33b2e_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_style_index_0_id_29b33b2e_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_style_index_0_id_29b33b2e_scoped_true_lang_less____default.a); /***/ }), /***/ "4997413a8890416480d7": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("1611f279bc42ac74950b"); 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("18c2a3ee", 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!./PddActivityQr.vue?vue&type=style&index=0&id=984546bc&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!./PddActivityQr.vue?vue&type=style&index=0&id=984546bc&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(); }); } /***/ }), /***/ "4aae9ae08bf571fe3b41": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var request = __webpack_require__("91f250ebeb8d5987491c"); var hasRequest = undefined, globalRes = undefined, hasResponse = undefined, callbacks = []; var getAd = function getAd(obj, callback) { obj = obj || {}; var keyword = obj.keyword || ''; var class_id = obj.class_id || ''; var url = location.protocol + '//a.' + G.extName + '.com/cgi/get?category=' + class_id + '&keyword=' + encodeURIComponent(keyword) + '&locate=' + encodeURIComponent(location.href); request.get(url).done(function (data) { if (data && (data.ad.length > 0 || data.promo.length > 0)) { data = editdata(data); callback(data); globalRes = data; if (callbacks.length > 0) { for (var i = 0; i < callbacks.length; i++) { callbacks[i](data); } } hasResponse = true; } }); hasRequest = true; }; var editdata = function editdata(data) { if (data.ad.length > 0) { for (var i = 0; i < data.ad.length; i++) { if (data.ad[i].freight == '1') data.ad[i].freighttle = "包邮"; if (data.ad[i].discount == '0') data.ad[i].discount = (data.ad[i].dp_price / data.ad[i].ori_price * 10).toFixed(1); data.ad[i].dp_price = (Number(data.ad[i].dp_price) / 100).toFixed(2); data.ad[i].ori_price = (Number(data.ad[i].ori_price) / 100).toFixed(2); } } return data; }; module.exports.init = function (obj, callback) { if (!callback) return;else callback(); return; if (globalRes) { callback(globalRes); return; } else if (hasRequest) { callbacks.push(callback); } else { getAd(obj, callback); } setTimeout(function () { if (!hasResponse) { if (callback) callback(); if (callbacks) for (var i = 0; i < callbacks.length; i++) { callbacks[i](); } } }, 4000); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "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__("0a074eb0202bcf717388"); 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__("474327c68c691e577033"); 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"]; }); /***/ }), /***/ "4c7fa20dd9a026cd043e": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($) { module.exports.init = function () { // skuId=100014979337&cat=12218%2C21455%2C21456&venderId=1000362423&isCanUseDQ=isCanUseDQ-1&isCanUseJQ=isCanUseJQ-1 var skuId = window.pageConfig.product.skuid; var cat = window.pageConfig.product.cat.join(','); var venderId = window.pageConfig.product.venderId; return new Promise(function (resolve) { var domain = '//item.jd.com'; if (location.hostname.indexOf('npcitem.jd.hk') > -1) { domain = '//npcitem.jd.hk'; } $.get(domain + '/coupons?skuId=' + skuId + '&cat=' + encodeURIComponent(cat) + '&venderId=' + venderId).then(function (res) { var a = $('.coupon-wrap', res).children().toArray(); var r = []; for (var i = 0; i < a.length; i++) { if ($(a[i]).text().indexOf('已领取的券') > -1) { break; } if ($(a[i]).hasClass('coupon-item')) { r.push(a[i]); } } if (!r.length) { resolve(false); return; } var resCoupon = r.map(function (x) { var couponVal = $(x).find('.coupon-val').text(); var cond = $(x).find('.condition').text(); var time = $(x).find('.coupon-time').html(); if (cond.endsWith('可减')) { cond = cond.replace('可减', '减' + couponVal); } return { text: cond.replace('可用', '减' + couponVal), time: time }; }).filter(function (x) { if (x.time) { var reList = [new RegExp('有效期([\\d\\-: ]*)至([\\d\\-: ]*)'), new RegExp('([\\d\\-: ]*)<br([\\d\\-: ]*)')]; var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = reList[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var re = _step.value; var _res = re.exec(x.time); if (_res && _res[1]) { if (new Date(_res[1]) > new Date()) { console.warn('filter early coupon', x); return false; } } } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator['return']) { _iterator['return'](); } } finally { if (_didIteratorError) { throw _iteratorError; } } } } return true; }).map(function (x) { return x.text; }); console.log('获取到的优惠券'); console.log(resCoupon); console.log(r); resolve(resCoupon); }); }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "4d950d57537e1ffc4f4c": /***/ (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_AppDownload_vue_vue_type_script_lang_js___ = __webpack_require__("59041e93f6063db9df14"); /* 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_AppDownload_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_AppDownload_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_AppDownload_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_AppDownload_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_AppDownload_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "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); /***/ }), /***/ "4e366ddd2c78a7851cca": /***/ (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__("59877d226d1c083161a6"); 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("d4ea0fd0", 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!./CommonLogin.vue?vue&type=style&index=0&id=5efee9c0&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!./CommonLogin.vue?vue&type=style&index=0&id=5efee9c0&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(); }); } /***/ }), /***/ "4e89061d3756e521e57c": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-app-download[data-v-4c125ee6] {\n display: flex;\n flex-direction: column;\n align-items: center;\n line-height: 12px;\n}\n.gwd-app-download .gwd-btnSlogan[data-v-4c125ee6] {\n display: flex;\n justify-content: center;\n margin-top: 6px;\n}\n.gwd-app-download .gwd-btnSlogan span[data-v-4c125ee6] {\n font-size: 12px;\n color: #999999;\n margin-left: 5px;\n margin-right: 5px;\n}\n", ""]); // exports /***/ }), /***/ "4ef480fb546c7b1dff9d": /***/ (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_GiftMoney_vue_vue_type_script_lang_js___ = __webpack_require__("d2d3ab541b56105275c9"); /* 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_GiftMoney_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_GiftMoney_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_GiftMoney_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GiftMoney_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_GiftMoney_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "50ebe9a53ff2f0a58a07": /***/ (function(module, exports) { module.exports = "<div class=\"gwd_chooseCredit bjd_btn_box\">\n <a href=\"{{c_server}}\" target=\"_blank\" title=\"购物党\"></a>\n <span class=\"bjd_addcart\">支持单币 / 双币信用卡</span>\n <span class=\"bjd_close\"></span>\n</div>\n<style type=\"text/css\">\n .gwd_chooseCredit {\n width: 249px;\n height: 36px;\n background-color: #fff;\n color: #494b4d;\n position: absolute;\n line-height: 35px;\n border-bottom-right-radius: 28px;\n border-top-right-radius: 28px;\n font-size: 14px;\n border: 1px solid #47befe;\n font-family: 'Microsoft Yahei';\n top: 0px;\n z-index: 99;\n left: 365px;\n }\n .amazon-de .gwd_chooseCredit {\n top: -3px;\n left: 507px;\n }\n .gwd_chooseCredit a, .gwd_chooseCredit span {\n float: left;\n margin-left: 19px;\n }\n .gwd_chooseCredit .bjd_addcart {\n cursor: text;\n }\n .gwd_chooseCredit a {\n background: url('{{s_server}}/images/extensions/haitao_siteicon.png') 0px 6px no-repeat;\n background-size: 24px 22px;\n height: 35px;\n width: 26px;\n margin-left: 7px;\n }\n .bjd_close {\n background: url('{{s_server}}/images/extensions/haitao_closeicon.png') 0px 0px no-repeat;\n width: 20px;\n height: 20px;\n margin-top: 12px;\n background-size: 12px 12px;\n }\n .gwd_chooseCredit:before{\n border: 29px solid transparent;\n border-right-color: #47befe;\n content: \"\";\n border-bottom-width: 18px;\n border-top-width: 18px;\n position: absolute;\n left: -58px;\n width: 0px;\n height: 0px;\n top: -1px;\n }\n .gwd_chooseCredit:after {\n border: 27px solid transparent;\n border-right-color: #fff;\n content: \"\";\n border-bottom-width: 17px;\n border-top-width: 17px;\n border-left-width: 30px;\n position: absolute;\n left: -57px;\n width: 0px;\n height: 0px;\n top: 0px;\n }\n #nav-bar {\n position: relative;\n }\n .a-spacing-base {\n position: relative;\n }" /***/ }), /***/ "516ce1fc7a3117b39d29": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "a", { staticClass: "gwd-member-coupon-top gwd-member-coupon", attrs: { title: "点击领取", href: "https://tb.gwdang.com/extension/qrpage?dp_id=" + _vm.G.dp.dpId + "&tag=2", target: "_blank" } }, [ _c("span", { staticStyle: { color: "white", "margin-left": "5px" } }, [ _vm._v("当前商品可领会员券") ]), _vm._v(" "), _c( "span", { staticStyle: { color: "white", "margin-left": "9px", "margin-right": "9px" } }, [_vm._v("领取")] ) ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "51aadd1e1b65f329a862": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G, regeneratorRuntime, Vue) { var _this = this; var html = __webpack_require__("b7f8622f81f192cd1d95"); 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 || !G.userLogin) && !force)) { context$1$0.next = 4; break; } return context$1$0.abrupt('return'); case 4: 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 = true; $('#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 7: 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 = G.dp.oldPrice || 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: context$1$0.next = 2; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('dp_query_set')); case 2: $('#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 = 10; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('NowPrice')); case 10: 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 24: 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"])) /***/ }), /***/ "51f976974a6ecf19db5f": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "bjg-qr-error" }, [ _c("img", { attrs: { src: "https://cdn.gwdang.com/images/extensions/[email protected]", alt: "" } }), _vm._v(" "), _c( "span", { staticClass: "grayText", staticStyle: { "margin-top": "10px" } }, [ _vm._v("当前网络异常"), _c("br"), _vm._v("点此"), _c("span", { staticClass: "red", on: { click: _vm.click } }, [ _vm._v("刷新") ]) ] ) ]) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "52391b2828a974c3b885": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TbGiftMoney_vue_vue_type_template_id_53cb8bb8_scoped_true___ = __webpack_require__("71b7aa48af48111e437a"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__TbGiftMoney_vue_vue_type_script_lang_js___ = __webpack_require__("77f48bfebe18ce336e62"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__TbGiftMoney_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__TbGiftMoney_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__TbGiftMoney_vue_vue_type_style_index_0_id_53cb8bb8_scoped_true_lang_less___ = __webpack_require__("0652a96425157e5f02e5"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__TbGiftMoney_vue_vue_type_style_index_1_lang_css___ = __webpack_require__("c502d23608c93d09b0b9"); /* 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__TbGiftMoney_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__TbGiftMoney_vue_vue_type_template_id_53cb8bb8_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__TbGiftMoney_vue_vue_type_template_id_53cb8bb8_scoped_true___["b" /* staticRenderFns */], false, null, "53cb8bb8", 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('53cb8bb8')) { api.createRecord('53cb8bb8', component.options) } else { api.reload('53cb8bb8', component.options) } module.hot.accept("./TbGiftMoney.vue?vue&type=template&id=53cb8bb8&scoped=true&", function () { api.rerender('53cb8bb8', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/TbGiftMoney.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "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"]; }); /***/ }), /***/ "54be372a53153922dc13": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var widthObj = undefined; var calB2cWidth = function calB2cWidth() { var winWidth = $(window).width(); var itemlistW = 268; var turnpW = 130; var storeList = 304; var allProductW = winWidth - turnpW * 2 - storeList; var showListNum = parseInt(allProductW / itemlistW); // 如果使用最小的翻页宽度能再增加一个商品list 就再增加, 宽度动态计算 if (allProductW - showListNum * itemlistW + 80 > 268) { showListNum++; turnpW = parseInt((winWidth - showListNum * itemlistW - storeList) / 2); allProductW = winWidth - turnpW * 2 - storeList; } return { productW: allProductW, turnpW: turnpW, showListNum: showListNum }; }; module.exports.init = function () { if (widthObj) return widthObj; var winWidth = $(window).width(); var itemlistW = 268; var turnpW = 147; var allProductW = winWidth - turnpW * 2; var showListNum = parseInt(allProductW / itemlistW); // 如果使用最小的翻页宽度能再增加一个商品list 就再增加, 宽度动态计算 if (allProductW - showListNum * itemlistW + 92 > 268) { showListNum++; turnpW = parseInt((winWidth - showListNum * itemlistW) / 2); allProductW = winWidth - turnpW * 2; } if (G.site === 'amazon') { turnpW--; } var B2cW = calB2cWidth(); widthObj = { 'allProductW': allProductW, 'turnpW': turnpW, 'showListNum': showListNum, 'b2cProductW': B2cW.productW, 'b2cTurnpW': B2cW.turnpW, 'b2cShowListNum': B2cW.showListNum }; return widthObj; }; module.exports.calBottomBar = function () { var logo = $('#bjd_logo').outerWidth(); var leftCom = $('.left-compare').outerWidth(); var adinfo = $('.nbt-adinfo').outerWidth(); var close = $('.nbt-close-btn').outerWidth(); var rightInfo = $('.right-info').outerWidth(); var winWidth = $(window).width(); if (rightInfo < 500) rightInfo = 502; // 110 价格走势宽度 var comBox = winWidth - (logo + leftCom + adinfo + close + rightInfo); return comBox; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "55327c6868cccffbbddd": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponTop_vue_vue_type_template_id_28e28ad7_scoped_true___ = __webpack_require__("516ce1fc7a3117b39d29"); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponTop_vue_vue_type_template_id_28e28ad7_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponTop_vue_vue_type_template_id_28e28ad7_scoped_true___["b"]; }); /***/ }), /***/ "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); /***/ }), /***/ "57958d945acd949e1562": /***/ (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__("db8760334d002b3c438f"); 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("61ef9b5c", 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!./CommonLogin.vue?vue&type=style&index=4&id=5efee9c0&scoped=true&lang=less&data-class-type=gwd-popup&", 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!./CommonLogin.vue?vue&type=style&index=4&id=5efee9c0&scoped=true&lang=less&data-class-type=gwd-popup&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "57981fc895e0110a4346": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function (txt) { var m = ''; for (var i = 0; i < txt.length; i++) m = m + "_" + txt.charCodeAt(i).toString(8); return m; }; // let decode = function(txt) { // var m = ''; // var s = txt.split("_"); // for (var i = 1; i < s.length; i++) // m += String.fromCharCode(parseInt(s[i], 8)); // return m; // } /***/ }), /***/ "580fdef2bbaa9f2dc7e9": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_0_lang_css___ = __webpack_require__("d98e58cfc5180294bd6a"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_0_lang_css____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_0_lang_css___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_0_lang_css____default.a); /***/ }), /***/ "582217d4ad7be97f32c7": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-promo-normal[data-v-7cd833d3] {\n line-height: initial;\n text-align: left;\n}\n.gwd-promo-normal .gwd-tp-1[data-v-7cd833d3] {\n white-space: nowrap;\n display: inline-flex;\n align-items: center;\n height: 12px;\n}\n.gwd-promo-normal .gwd-tp-1 .gwd-date[data-v-7cd833d3] {\n font-size: 12px;\n color: #999999;\n}\n.gwd-promo-normal .gwd-tp-1 .gwd-priceType[data-v-7cd833d3] {\n font-size: 12px;\n color: #999999;\n margin-left: 6px;\n}\n.gwd-promo-normal .gwd-tp-1 .gwd-priceType .gwd-price[data-v-7cd833d3] {\n color: #e4393c;\n}\n.gwd-promo-normal .gwd-tp-1 .gwd-badge[data-v-7cd833d3] {\n margin-left: 4px;\n display: inline-block;\n text-align: center;\n width: 48px;\n height: 24px;\n line-height: 19px;\n vertical-align: middle;\n border: 2px solid #5acffa;\n color: #5acffa;\n font-size: 16px;\n border-radius: 2px;\n box-sizing: border-box;\n transform: scale(0.5);\n transform-origin: center left;\n}\n.gwd-promo-normal .gwd-tp-1 .gwd-lowest[data-v-7cd833d3] {\n background: #3dbc6b;\n border: 2px solid #3dbc6b;\n color: white;\n}\n", ""]); // exports /***/ }), /***/ "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 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 = G.dp.price; 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 = ''; } getPriceHistoryDataAndRender(url, price, callback); if (G.site === 'taobao' || G.site === 'tmall') { var origin = window.removeEventListener; // window.removeEventListener = function() { // console.log('removeEventListener', arguments) // //origin.apply(this, arguments) // }; setTimeout(function callee$1$0() { var map, valItemInfo; return regeneratorRuntime.async(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: map = {}; if (!(G.site === 'taobao')) { context$2$0.next = 5; break; } map = Hub.config.get("sku").valItemInfo.skuMap; // eslint-disable-line context$2$0.next = 9; break; case 5: context$2$0.next = 7; return regeneratorRuntime.awrap(__webpack_require__("e3916f328c1834810f25").getValItemInfo()); case 7: valItemInfo = context$2$0.sent; map = valItemInfo.skuMap; case 9: case 'end': return context$2$0.stop(); } }, null, _this); }, // $('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) // }) 0); } }; var reqId = 0; var getPriceHistoryDataAndRender = function getPriceHistoryDataAndRender(url, price, callback) { reqId++; var currentReq = reqId; if (url.indexOf('detail.tmall.com') > -1 && 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; } } // 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')) { (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(); new Vue({ el: el, render: function render(h) { return h(_componentsAmazonSameLinks2['default'], { props: { data: data.amazons.filter(function (x) { console.log(x.title, siteName, x.title === siteName); return x.title === siteName; }) } }); } }); })(); } if (data.nopuzzle_promo && data.nopuzzle_promo.length > 0) { edit_nopuzzle_promo(data.nopuzzle_promo); } if (data.store) { G.dp.storeInfo = data.store; __webpack_require__("9c38beef5ff283e15bd2").setMet('GwdPriceTrendLoaded'); __webpack_require__("9c38beef5ff283e15bd2").setMet('NowPrice', data.store[0].current_price); } else { __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) { 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); // }); // } // }) /*以前因为我们价格走势对淘宝天猫的支持不好 所以使用了别人的数据, 现在基本上都使用了自己的数据, 所以上面也被注释了*/ getCommonInfo(callback); // 避开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 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]; 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="width:' + w1 + 'px;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>\n '; $('#gwdang-trend').append(template.compile(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 = 'setting-bg'; var status = data.price_status; status = 'pri-t' + status; var tle = priceTle[status]; if (!data.store || data.store[0].all_line.length < 2) { no_price = 'no-price'; tle = '暂无价格走势'; status = ''; settbg = ''; } if (G.site == 'amazon' || G.site == '6pm') { settbg = 'ht-bg'; } var 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(template.compile(t)()).css("display", "block"); }; 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__("c129828bb87b012afcd6"); 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'); // dom.eq(0).prepend(template.compile(html)({ // url: url // })).css('display', 'block'); }; var renderyanzhengmaBtm = function renderyanzhengmaBtm(url) { var w1 = c_width - 321; var html = __webpack_require__("d8288de0519bc4245cd3"); 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__("7593d287e2be1ef09955"); 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__("ce95798c8fdc497ef7dd"); 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 = userData.get('dp_query'); // if (G.site == 'amazon' || G.site == '6pm') return; var 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; } var html = __webpack_require__("b602e8e7e0dd939b0de2"); $('#mini_price_history').append(template.compile(html)({ showapp: showapp })); var MiniPromoHistory = __webpack_require__("fc176595ad8aaf9fdb19")['default']; var promoCopy = data.nopuzzle_promo ? JSON.parse(JSON.stringify(data.nopuzzle_promo)) : ''; var storeCopy = data.store ? JSON.parse(JSON.stringify(data.store)) : ''; var 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); }; var renderBtn = function renderBtn(data) { //$('#gwdang-trend').html('') if ($('html').hasClass('gwd_top')) { $('#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 () { __webpack_require__("51aadd1e1b65f329a862").init('#gwdang-trend-detail', money, data); }, 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 () { if (G.site === 'epic') { __webpack_require__("3cd1d8e0961acbb3ac12").init(); return; } // 获取价格走势数据 getPriceInfo(function callee$1$0(data) { var 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 (!(G.site === 'steampowered')) { context$2$0.next = 3; break; } // 如果当前页面是steam网站 就加载steam价格走势 __webpack_require__("0f62f0fb3b5cc89beb7a").init(data); return context$2$0.abrupt('return'); case 3: // 判断是否是历史最低价 data = addPriceStatus(data); // 加载价格走势标签 renderBtn(data); // 加载价格走势里面的降价提醒 renderRemind(data); // renderDetail() context$2$0.next = 8; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('GwdDpIdGot')); case 8: dpId = context$2$0.sent; if (!(!data.store || data.store[0].all_line.length < 2)) { context$2$0.next = 11; break; } return context$2$0.abrupt('return'); case 11: $('#biggraph_' + G.from_device).remove(); __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 14: case 'end': return context$2$0.stop(); } }, null, _this); }); }; // eslint-disable /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "58e7c9140d2fc8e2bcbf": /***/ (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: { "text-align": "left" } }, [ _c("div", { staticClass: "gwd-topSpecialActivity" }, [ _vm._v( _vm._s(_vm.promoType) + _vm._s(_vm.priceType) + ": ¥" + _vm._s(_vm.price) + " " ), _c("span", { staticStyle: { color: "#969899" } }, [ _vm._v("(" + _vm._s(_vm.date) + ")") ]) ]), _vm._v(" "), _vm.pagePrice ? _c("div", { staticClass: "gwd-grayText" }, [ _vm._v("页面价: ¥" + _vm._s(_vm.pagePrice)) ]) : _vm._e(), _vm._v(" "), _vm.promo ? _c("div", { staticClass: "gwd-grayText" }, [ _vm._v("促: " + _vm._s(_vm.promo)) ]) : _vm._e(), _vm._v(" "), _vm.coupon ? _c("div", { staticClass: "gwd-grayText" }, [ _vm._v("券: " + _vm._s(_vm.coupon)) ]) : _vm._e() ]) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "59041e93f6063db9df14": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = {}; module.exports = exports["default"]; /***/ }), /***/ "59877d226d1c083161a6": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, "button[data-v-5efee9c0] {\n background: none;\n border: none;\n outline: none;\n box-sizing: border-box;\n}\nbutton[data-v-5efee9c0]:active {\n border: none;\n}\n.gwd-light-btn[data-v-5efee9c0] {\n height: 34px;\n line-height: 34px;\n min-width: 80px;\n border: 1px solid #cfd7dc;\n background: #f4f9fc;\n color: #5d93bd;\n font-size: 12px;\n border-radius: 4px;\n}\n.gwd-common-login[data-v-5efee9c0] {\n display: flex;\n line-height: initial;\n box-sizing: border-box;\n}\n.gwd-common-login .gwd-main-login[data-v-5efee9c0] {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.gwd-common-login .gwd-main-login button[data-v-5efee9c0] {\n background: #48bef3;\n color: white;\n height: 34px;\n font-size: 14px;\n font-weight: bold;\n border-radius: 4px;\n width: 100%;\n cursor: pointer;\n letter-spacing: 1px;\n box-sizing: border-box !important;\n font-family: 'Microsoft Yahei' !important;\n}\n.gwd-common-login .gwd-main-login a[data-v-5efee9c0] {\n color: #5d93b0;\n margin-top: 12px;\n font-size: 12px;\n}\n.gwd-alter-login[data-v-5efee9c0] {\n margin-top: 29px;\n display: flex;\n flex-direction: column;\n}\n.gwd-alter-login span[data-v-5efee9c0] {\n cursor: pointer;\n}\n.gwd-alter-login .gwd-vline[data-v-5efee9c0] {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n height: 12px;\n}\n.gwd-alter-login .gwd-vline div[data-v-5efee9c0] {\n flex: 1;\n height: 2px;\n background: linear-gradient(to right, #ffffff 0%, #cfd7dc 100%);\n}\n.gwd-alter-login .gwd-vline span[data-v-5efee9c0] {\n font-size: 12px;\n color: #999999;\n margin-left: 10px;\n margin-right: 10px;\n letter-spacing: 2px;\n}\n.gwd-alter-login .gwd-vline .gwd-line-b[data-v-5efee9c0] {\n transform: rotate(180deg);\n}\n.gwd-alter-login .third-login[data-v-5efee9c0] {\n margin-top: 18px;\n flex-direction: row;\n margin-left: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.gwd-alter-login .third-login span[data-v-5efee9c0] {\n margin-left: 20px;\n margin-right: 20px;\n margin-top: 0;\n}\n.third-login[data-v-5efee9c0] {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n margin-left: 34px;\n}\n.third-login span[data-v-5efee9c0] {\n width: 32px;\n height: 32px;\n display: inline-block;\n margin-top: 10px;\n margin-bottom: 10px;\n}\n.qqlogin[data-v-5efee9c0] {\n background-position: -10px -117px !important;\n}\n.sinalogin[data-v-5efee9c0] {\n background-position: -43px -117px !important;\n}\n.weixinlogin[data-v-5efee9c0] {\n background-position: -77px -117px !important;\n}\n.loginBox[data-v-5efee9c0] {\n background-image: url(https://cdn.gwdang.com/images/extensions/xbt/newbar-top3.png) !important;\n}\n", ""]); // exports /***/ }), /***/ "5998ce42bfa5570c8c29": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_1_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_favor___ = __webpack_require__("be3ebc245c70ce8744cc"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_1_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_favor____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_1_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_favor___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_1_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_favor____default.a); /***/ }), /***/ "5a3f695f5285af8ca91b": /***/ (function(module, exports) { module.exports = "<div id=\"trenm_trend_detail\">\n <div id=\"trend_box\"></div>\n <div class=\"min-max-price-lable\">\n <div class=\"min-max-box\">\n <span class=\"max-lab\">最高:¥5.00</span>\n <span class=\"min-lab\">最低:¥3.00</span>\n </div>\n \n </div>\n <style type=\"text/css\">\n .game_area_purchase_game_wrapper.steam_box_tt ,.steam_box_tt{\n position: relative;\n z-index: 9999999999;\n }\n #trenm_trend_detail {\n width: 400px;\n height: 260px;\n border: 1px solid #394653;\n box-shadow: 0 2px 4px 0 #465F7C;\n background-color: #465F7C;\n position: absolute;\n bottom: 26px;\n display: none;\n z-index: 9999999999;\n }\n #trenm_trend_detail *{\n font-family: \"microsoft yahei\";\n }\n #trend_box {\n margin-top: 44px;\n height: 216px;\n width: 400px;\n float: left;\n border:1px solid #394653;\n }\n .trend-compare {\n background-image: linear-gradient(-180deg, #283645 0%, #2C3A49 100%);\n border: 1px solid #394653;\n float: left;\n width: 214px;\n height: 100%;\n }\n .trend-compare p {\n line-height: 19px;\n float: left;\n margin-top: 18px;\n height: 19px;\n font-size: 14px;\n color: #DAEDFF;\n text-align: center;\n width: 100%;\n }\n .trend-compare ul li {\n list-style: none;\n float: left;\n margin-top: 20px;\n height: 19px;\n width: 100%;\n }\n .trend-compare ul li span {\n height: 100%;\n }\n .trend-compare ul li:after {\n display: block;\n content: \"\";\n clear: both;\n }\n .trend-com-sp1 {\n font-size: 13px;\n color: #DAEDFF;\n margin-left: 12px;\n width: 65px;\n overflow: hidden;\n float: left;\n }\n .trend-com-sp2 {\n font-size: 14px;\n color: #71CAFF;\n float: right;\n text-align: right;\n line-height: 19px;\n margin-right: 2px;\n }\n .trend-com-sp3.isdiscount {\n color: #87B61F;\n }\n .trend-com-sp3 {\n font-size: 12px;\n color: #F05428;\n height: 19px;\n float: right!important;\n margin-right: 10px;\n text-align: right;\n }\n .min-max-price-lable {\n position: absolute;\n height: 44px;\n width: 402px;\n top: 0px;\n text-align: center;\n left: 0px;\n background-color: #394653;\n }\n .min-max-box {\n margin: 0 auto;\n display: inline-block;\n }\n .min-max-price-lable span {\n height: 26px;\n float: left;\n padding: 0 7px;\n margin-top: 18px;\n line-height: 26px;\n text-align: center;\n border-radius: 2px;\n cursor: default;\n }\n .min-max-price-lable .max-lab {\n background: #2D3A46;\n border: 1px solid #FF5627;\n color: #FF5627;\n margin-right: 36px;\n }\n .min-max-price-lable .min-lab {\n background: #2E3A47;\n border: 1px solid #9ED81E;\n color: #9ED81E;\n }\n .ttip-discount {\n width: 110px;\n height: 54px;\n cursor: default;\n }\n .ttip-discount span.ttip-sp1 {\n margin-top: 8px;\n }\n .ttip-discount span {\n float: left;\n width: 100px;\n height: 16px;\n margin-left: 10px;\n line-height: 16px;\n font-family: \"microsoft yahei\";\n font-size: 12px;\n color: #BDD9F3;\n margin-top: 4px;\n cursor: default;\n }\n </style>\n</div>" /***/ }), /***/ "5b06e86d4e174cdfac92": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, "__esModule", { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var _MemberCouponMixin = __webpack_require__("1fffec0778a8d8b2e8e2"); var _MemberCouponMixin2 = _interopRequireDefault(_MemberCouponMixin); var _MemberCouponQr = __webpack_require__("0c4497b5d7aa90d42b50"); var _MemberCouponQr2 = _interopRequireDefault(_MemberCouponQr); exports["default"] = { mixins: [_MemberCouponMixin2["default"]], components: { MemberCouponQr: _MemberCouponQr2["default"] }, data: function data() { return { G: G }; } }; module.exports = exports["default"]; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "5b28fa11a0ec134d9ef1": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _QrErrorVue = __webpack_require__("d57cd728628c618acba9"); var _QrErrorVue2 = _interopRequireDefault(_QrErrorVue); var _GiftMoneyMixin = __webpack_require__("7bb864157b1329e994ad"); var _GiftMoneyMixin2 = _interopRequireDefault(_GiftMoneyMixin); exports['default'] = { name: "Subsidy", props: ['value', 'url', 'qr', 'price', 'oldPatch', 'tag'], components: { QrError: _QrErrorVue2['default'] }, mixins: [_GiftMoneyMixin2['default']] }; module.exports = exports['default']; /***/ }), /***/ "5bf35efcba140cc610bb": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_script_lang_js___ = __webpack_require__("f6604761a98ac98bbcec"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "5c2efa94913e2ffc627b": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, $, Vue, G) {// 会员券 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() { 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').append(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'); 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') { renderBjg(); } else { render(); } resolve(true); } else { resolve(false); } }); }); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"], __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "5d4f0e584bd9a3a675b3": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = { modules: {}, version: 1660356258066, browser: {}, debug: /gwdebug/.test(window.location.href), extend: function extend(obj) { for (var i in obj) { this[i] = obj[i]; } } }; /***/ }), /***/ "5da7ab7bd297c0f5dff1": /***/ (function(module, exports) { module.exports = "<div target=\"_blank\" class=\"gwd-middle-act-bar\">\n <img src=\"https://cdn.bijiago.com/images/extensions/activity/tmall-redpack-middle.png\" style=\"width: 17px; height: 19px; margin-left: 11px\">\n <span style=\"font-size: 12px; color: #ff471a; margin-left: 7px; font-weight: bold\">{{ text }}</span>\n <div style=\"flex: 1\"></div>\n <img src=\"https://cdn.bijiago.com/images/extensions/activity/arrow.svg\" 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=\"{{ qr }}\" 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>" /***/ }), /***/ "5e05e6f5fe79ccf5d009": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) {var href=window.location.href;var host=window.location.host;var pageInfo; //检查是否在此页面出现小工具栏 module.exports.isAvailablePage = function(){for(var pattern in sitePattern) {if(host.match(new RegExp(pattern,'i'))){return sitePattern[pattern];}}return false;}; //检查是否在此页面出现比价 module.exports.isProductPage = function(url){url = url || href;if(url.indexOf('oneplus.com/cn/store') > -1){return false;}if(G.from_device === 'bijiago' && location.href.indexOf('https://pcsitepp-fm.jd.com/') > -1){return '360buy';}for(var pattern in productPattern) {var matchs=url.match(new RegExp(pattern,'i'));if(matchs){ //if (url.match(new RegExp(pattern))) { var site=productPattern[pattern];var _host=new URL(url).host;if(site === "amazon" && _host !== "www.amazon.cn" && matchs[1]){var m=matchs[1];if(m.indexOf('.') > -1)m = m.split('.')[1];m = 'amazon-' + m;return m;}return productPattern[pattern];}}return false;};var page404=function page404(site){var page;switch(site){default:if($('#content h2').text().indexOf('您查看的商品找不到了') > -1)page = true;break;}return page;}; //检查是否屏蔽此域名 module.exports.isInBanList = function(){if(G.dcmExt)return false;if(!G.iframe){var no_url=href.match(/[&\?]no_url/);if(!no_url && (self.location != top.location || self.frameElement && self.frameElement.tagName == "IFRAME" || window.top != window.self)){return true;}}var main_url=href;if(location.href.indexOf('?') > 0){main_url = href.substr(0,href.indexOf('?'));} // kaluli网站 if(main_url.match(/\.kaluli.com/)){return false;} //有一个carters的网站,防止被下面cart匹配到给屏蔽,提前判断如果匹配到carters就return false if(main_url.match(/(?:cartridge|Camcorder|carters|feifei\.com\/order\/|ref=ord_cart_shr)/) != null){return false;}if(location.host.indexOf(G.extName + '.com') > -1)return true;if(main_url.match(/detail\.zol\.com\.cn/))return false;if(main_url.match(/(?:cart|member|order|myhome|picture_index|handle-buy-box|chat|t.sina.com.cn|discussion|union.dangdang|eve.360buy|bank.vmall|checkout|confirm|gateway|trade|http:\/\/i.taobao.com|we.taobao.com|passport.yougou.com)/ig) != null){return true;}return false;};var specialHost=function specialHost(name){if(name === 'swarovski'){if(location.href.match(/Web_GB\/en/)){name = 'swarovski-en';}}return name;};var getPageInfo=function getPageInfo(){if(pageInfo)return pageInfo;var name="";if(module.exports.isInBanList()){return pageInfo = {type:0,siteName:name};}name = module.exports.isProductPage();if(name){if(typeof name !== 'string'){G.hidebar = name.hidebar;name = name.name;}G.site = name;G.logsite = name;if(name.indexOf("amazon") > -1)G.site = "amazon";if(page404(name)){return pageInfo = {type:0,siteName:name};}return pageInfo = {type:2,siteName:name};}name = module.exports.isAvailablePage();if(name){if(typeof name !== 'string'){G.hidebar = name.hidebar;name = name.name;}name = specialHost(name);G.site = name;G.logsite = name;return pageInfo = {type:1,siteName:name};}return pageInfo = {type:0,siteName:''};};var sitePattern={'www\\.epicgames\\.com':'epic','www\\.stbchina\\.cn':'stbchina','www\\.mafengwo\\.cn':'mafengwo','www\\.kjt\\.com':'kjt','www\\.lifevc.com':'lifevc','www\\.coocaa\\.com':'coocaa','(?:www|shop)\\.nubia\\.(?:cn|com)':'nubia','www\\.kzj365\\.com':'kzj365','\\.kaola\\.com':'kaola','www\\.ymatou\\.(?:com|hk)':'ymatou','www\\.metao\\.com':'metao','shop\\.philips\\.com\\.cn':'philips','www\\.tcl\\.com':'tcl','www\\.e-changhong\\.com':'changhong','shop\\.konka\\.com':'konka','shop\\.hisense\\.com':'hisense','www\\.ineigo\\.com':'ineigo','www\\.skg\\.com':'skg','www\\.k-touch\\.cn':'k-touch','\\.gionee\\.com':'gionee','(?:www|store)\\.oppo\\.com':'oppo','gfive\\.b2c\\.eqimingxing\\.com':'gfive','shop\\.vivo\\.com\\.cn':'vivo','www\\.grainger\\.cn':'grainger','(?:mall|piao)\\.163\\.com':'wy163','t\\.dianping\\.com':'dianping','\\.nuomi\\.com':'nuomi','\\.meituan\\.com':'meituan','www\\.ebay\\.com':'ebay','yao\\.95095\\.com':{name:'taobao',hidebar:true},'\\.feiniu\\.com':'feiniu','item\\.feiniu\\.com':'feiniu','\\.feifei\\.(?:cn|com)':'feifei','\\.guang\\.com':'guang','\\.meilishuo\\.com':'meilishuo','\\.mogu(?:jie|)\\.com':'mogujie','shop\\.coolpad\\.cn':'coolpad','\\.sephora\\.cn':'sephoracps','cn\\d*\\.strawberrynet\\.com':'strawberrynet','\\.yesmywine\\.com':'yesmywine','(\\.)?yiguo\\.com':'yiguo','\\.wanggou\\.com':'wanggou','mall\\.jia\\.com':'jia','weigou\\.baidu\\.com':'baidu-weigou','\\.(xiao)?mi\\.com':'xiaomi','shop\\.letv\\.com':'lemall','\\.handu\\.com':'handu','(?:www\\.|^)taoshu\\.com':'taoshu','\\.ouku\\.com':'ouku','\\.j1\\.com':'j1','\\.zm7\\.cn':'zm7','\\.1688\\.com':{name:'1688',hidebar:true},'\\.yiwugou\\.com':'yiwugou','\\.zhiwo\\.com':'zhiwo','\\.muyingzhijia\\.com':'muyingzhijia','\\.vmall\\.com':'vmall','\\.hihonor\\.com':'hihonor','\\.didamall\\.com':'didamall','\\.xiji.com':'xiji','\\.xijie.com':'xijie','\\.miqi\\.cn':'miqi','\\.zol\\.com(?:$|/|\\?)':'zol','zol\\.com\\.cn':'zol','\\.camel\\.com\\.cn':'camel','camel.com.cn':'camel','(\\.)?homevv\\.com':'homevv','\\.paixie\\.net':'paixie','\\.tao3c\\.com':'tao3c','\\.amazon\\.cn':'amazon','\\.dangdang\\.com':'dangdang','s8\\.taobao\\.com':'s8','taobao\\.(?:com|hk)':{name:'taobao',hidebar:true},'\\.(?:360buy|jd|jkcsjd)\\.com':'360buy','\\.(?:360buy|jd)\\.hk':'360buy','\\.yiyaojd.com':'360buy','\\i-item\\.jd\\.com':'360buy','\\.newegg(\\.com)?\\.cn':'newegg','\\.redbaby\\.com\\.cn':'redbaby','\\.51buy\\.com':'51buy','\\.yixun\\.com':'51buy','\\.okbuy\\.com':'okbuy','\\.shopee\\.tw':'shopee','\\.suning\\.com':'suning','\\.coo8\\.com':'coo8','\\.lusen\\.com':'lusen','\\.gome\\.com\\.cn':'gome','\\.gomehome\\.com':'gome','\\.gomehigo\\.hk':'gomehigo','\\.yhd\\.com':'yihaodian','\\.yihaodian\\.com':'yihaodian','\\.1mall\\.com':'yihaodian','\\.womai\\.com':'womai','\\.leyou\\.com\\.cn':'leyou','\\.shopin\\.net':'shopin','\\.no5\\.com\\.cn':'no5','\\.xiu\\.com':'xiu','\\.mbaobao\\.com':'mbaobao','\\.360kxr\\.com':'360kxr','\\.m6go\\.com':'m6go','\\.gou\\.com':'m6go','\\.smzdm\\.com':'smzdm','\\.99read\\.com':'99read','\\.china-pub\\.com':'china-pub','\\.bookschina\\.com':'bookschina','\\.efeihu\\.com':'efeihu','\\.yintai\\.com':'yintai','\\.quwan\\.com':'quwan','\\.k121\\.com':'k121','\\.happigo\\.com':'happigo','\\.gap\\.cn':'gap','\\.binggo\\.com/':'binggo','\\.yougou\\.com':'yougou','\\.jxdyf\\.com':'jxdyf','\\.winxuan\\.com':'winxuan','\\.bookuu\\.com':'bookuu','\\.jiuxian\\.com':'jiuxian','\\.vancl\\.com':'vancl','\\.111\\.com\\.cn':'111','\\.sfbest\\.(?:hk|com)':'sfbest','\\.vip(shop)?\\.com':'vipshop','\\.vipglobal\\.hk':'vipshop','\\.jumei\\.com':'jumei','jumeiglobal\\.com':'jumeiglobal','\\.lefeng\\.com':'lefeng','www\\.benlai\\.com':'benlai','(?:\\.|^)letao\\.com':'letao','\\.139shop\\.com':'139shop','(?:\\.|^)zzl365\\.com':'zzl365','\\.tiantian\\.com':'tiantian','\\.taoxie\\.com':'taoxie','\\.gjw\\.com':'gjw','www\\.d1\\.com\\.cn':'d1','\\.ihush\\.com':'ihush','www\\.s\\.cn':'s','\\.(?:moonbasa|korirl|rutisher|suorang|alaves|ing2ing|0-100s|qjherb|monteamor)\\.com':'moonbasa','\\.wangjiu\\.com':'wangjiu','\\.liebo\\.com':'liebo','\\.esprit\\.cn':'esprit','(?:\\.|^)lamiu\\.com':'lamiu','\\.aimer\\.com\\.cn':'aimer','www\\.kadang\\.com':'kadang','www\\.lizi\\.com':'lizi','www\\.metromall\\.cn':'metromall','www\\.pba\\.cn':'pba','\\.shangpin\\.com':'shangpin','\\.wbiao\\.cn':'wbiao','\\.handuyishe\\.com':'handuyishe','\\.ehaier\\.com':'ehaier','\\.secoo\\.com':'secoo','(?:vivian|linkmasa|masamaso)\\.(?:com|cn)':'masamaso','www\\.naruko\\.cn':'naruku','www\\.sportica\\.cn':'sportica','(?:\\.|^)xifuquan\\.com':'xifuquan','www\\.milier\\.com':'milier','www\\.nop\\.cn':'nop','\\.lenovo\\.com':'lenovo','shop\\.lenovo\\.com\\.cn':'lenovo','shop\\.lenovomobile\\.com':'lenovo','\\.189\\.cn':'189','\\.hicdma\\.com':'hicdma','\\.e100\\.cn':'e100','store\\.samsung\\.com':'samsung','www.apple\\.com':'apple','store.apple\\.com':'apple','\\.meizu\\.com':'meizu','\\.958shop\\.com':'958shop','\\.okhqb\\.com':'okhqb','\\.ztedevice\\.com\\.cn':'ztedevice','\\.kuaishubao\\.com':'kuaishubao','\\.lvyoumall\\.com':'lvyoumall','(?:www\\.|^)x\\.com\\.cn':'x','\\.lingshi\\.com':'lingshi','\\.ctrip\\.com':'ctrip','\\.zuipin\\.cn':'zuipin','www\\.xgbaby\\.com':'bbready','\\.yohobuy\\.com':'yohobuy','\\.lvmama\\.com':'lvmama','(?:\\.|^)qmango\\.com':'qmango','www\\.228cai\\.com':'228cai','\\.ikjtao\\.com':'ikjtao','www\\.bestkeep\\.cn':'ikjtao','\\.bagtree\\.cn':'bagtree','yichengpin\\.com':'yichengpin','zgzcw\\.com':{name:'zgzcw',hidebar:true},'www\\.mia\\.com':'miyabaobei','\\.miyabaobei.hk':'miyabaobei','\\.ule\\.com':'ule','minshengec\\.com':'minshengec','wangfujing\\.com':'wangfujing','\\.qunar\\.com':'qunar','\\.meilele\\.com':'meilele','www\\.55tuan\\.com':'55tuan','jinjianginns\\.com':'jinjianginns','\\.elong\\.com':'elong','podinns\\.com':'podinns','mangocity\\.com':'mangocity','\\.500\\.com':'500','www\\.ly\\.com':'ly','e-lining\\.com':'e-lining','\\.lining\\.com':'lining','\\.koolearn\\.com':'koolearn','\\.springtour\\.com':'springtour','\\.qinqinbaby\\.com':'qinqinbaby','winenice\\.com':'winenice','\\.sasa\\.com':'sasa','(?:\\.|^)5lux\\.com':'5lux','\\.228\\.com\\.cn':'228','\\.rrs\\.com':'rrs','\\.rrsjk.com':'rrs','(?:\\.|^)buy\\.ccb\\.com':'ccb','\\.banggo\\.com':'banggo','www\\.amazon\\.com':'amazon-com','www\\.amazon\\.co\\.jp':'amazon-jp','www\\.amazon\\.in':'amazon-in','www\\.amazon\\.fr':'amazon-fr','www\\.amazon\\.de':'amazon-de','www\\.amazon\\.it':'amazon-it','www\\.amazon\\.co.uk':'amazon-uk','www\\.amazon\\.nl':'amazon-nl','www\\.amazon\\.es':'amazon-es','www\\.amazon\\.ca':'amazon-ca','www\\.amazon\\.com\\.mx':'amazon-mx','www\\.amazon\\.com\\.br':'amazon-br','www\\.amazon\\.com\\.au':'amazon-au','store\\.logitech\\.com\\.cn':'logitech','\\.boohee\\.com':'boohee','nike\\.com':'nike','\\.jianke\\.com':'jianke','\\.360kad\\.com':'360kad','\\.lbxcn\\.com':'lbxcn','\\.meici\\.com':'meici','\\.beibei\\.com':'beibei','\\.aliexpress\.com':{name:'aliexpress',hidebar:true},'\\.6pm\\.com':'6pm','\\.gnc\\.com':'gnc','\\.myhabit\\.com':'myhabit','\\.shopbop\\.com':'shopbop','\\.drugstore\\.com':'drugstore','www\\.walgreens\\.com':'walgreens','sierratradingpost\\.com':'sierratradingpost','\\.newegg\\.com':'newegg-us','\\.jomashop\\.com':'jomashop','\\.ashford\\.com':'ashford','lookfantastic\\.com':'lookfantastic-com','lookfantastic\\.cn':'lookfantastic-cn','\\.rei\\.com':'rei','cn\\.iherb\\.com':'iherb','\\.iherb\\.com':'iherb-com','\\.carters\\.com':'carters','www\\.endclothing\\.com':'endclothing','\\.campsaver\\.com':'campsaver','global\\.rakuten\\.com':'rakuten','(?:\\.|^)100yue\\.com':'100yue','www\\.woot\\.com':'woot','www\\.haitaocheng\\.com':'haitaocheng','joesnewbalanceoutlet\\.com':'joesnewbalanceoutlet','\\.finishline\\.com':'finishline','\\.vitacost\\.com':'vitacost','\\.groupon.com':'groupon','\\.supumall\\.com':'supumall','www1\\.macys\\.com':'macys','www\\.moosejaw\\.com':'moosejaw','www\\.lemall\\.com':'lemall','www\\.jiumei\\.com':'jiumei','(?:\\.|^)chunshuitang\\.com':'chunshuitang','www\\.daling.com':'daling','www\\.oyeah\\.com':'oyeah','www\\.morefood\\.com':'morefood','www\\.yummy77\\.com':'yummy77','www\\.fruitday\\.com':'fruitday','www\\.gilt\\.com':'gilt','www\\.fengqu\\.com':'fengqu','www\\.mei\\.com':'mei','\\.vsigo\\.cn':'vsigo','www\\.keede\\.com':'keede','www\\.kede\\.com':'keede','k1\\.keede\\.cn':'keede','www\\.showjoy\\.com':'showjoy','\\.ocj\\.com\\.cn':'ocj','\\.ocj\\.kr':'ocj','\\.tmall\\.(?:com|hk)':{name:'tmall',hidebar:true},'www\\.sundan\\.com':'sundan','www\\.jiae\\.com':'jiae','(?:\\.|^)zazhipu\\.com':'zazhipu','www\\.easeeyes\\.com':'easeeyes','microsoftstore\\.com\\.cn':'microsoftstore','(?:\\.|^)xgdq\\.com':'xgdq','\\.bestcake\\.com':'bestcake','\\.lovo\\.cn':'lovo','www\\.hua\\.com':'hua','www\\.xtep\\.com\\.cn':'xtep','www\\.staples\\.cn':'staples','(?:\\.|^)efotile\\.com':'efotile','www\\.zhe800\\.com':'zhe800','www\\.aidai\\.com':'aidai','www\\.bftv\\.com':'bftv','\\.tujia\\.com':'tujia','\\.cosme\\.com':'cosme','www\\.diapers\\.com':'diapers','www\\.windeln\\.de':'windeln','www\\.babyneo\\.de':'babyneo','www\\.escentual\\.com':'escentual','www\\.thewatchery\\.com':'thewatchery','\\.biccamera.com':'biccamera','\\.tuhu.(?:cn|com)':'tuhu','eshop\\.htc\\.com':'htc','roseonly\\.com\\.cn':'roseonly','\\.rong360.com':'rong360','\\.niwodai.com':'niwodai','www\\.esteelauder.com':'esteelauder','\\.saksfifthavenue.com':'saksfifthavenue','\\.taqu.cn':'taqu','\\.qyer.com':'qyer','\\.axmall\\.com\\.au':'axmall','\\.muji.net':'muji','(?:\\.|^)gmarket.co.kr':'gmarket','english.11st.co.kr':'11st','\\.smartbargains\\.com':'smartbargains','\\.shopping\\.yahoo\\.co\\.jp':'yahooshop','\\.bloomingdales\\.com':'bloomingdales','\\.mikihouse\\.jp':'mikihouse','\\.toysrus\\.co\\.jp':'toysrus','\\.comfortfirst\\.com':'comfortfirst','\\.gymboree\\.com':'gymboree','\\.albeebaby.com':'albeebaby','\\.babymarkt.de':'babymarkt','\\.uggaustralia.co.uk':'uggaustralia','www\\.ugg\\.com':'ugg','neimanmarcus\\.com':'neimanmarcus','www\\.shoebuy.com':'shoebuy','www\\.szul\\.com':'szul','www\\.timex.com':'timex','\\.timex.com':'timex','www\\.kay.com':'kay','\\.ewatches.com':'ewatches','\\.swarovski.com':'swarovski','\\.worldofwatches.com':'worldofwatches','www.danielwellington.com':'danielwellington','\\.danielwellington\\.cn':'danielwellington-cn','\\.beautybay.com':'beautybay','\\.beauty.com':'beauty','www.beautybar.com':'beautybar','skinstore.com':'skinstore','www.laneige.com':'laneige','(?:\\.|^)bose.com':'bose','(?:\\.|^)bestbuy.com':'bestbuy','bhphotovideo.com':'bhphotovideo','(?:\\.|^)sony.jp':'sony','\\.bl\\.com':'bl','(?:\\.|^)you.163.com':'you163','(?:\\.|^)jinjiang.com':'jinjiang','(?:\\.|^)bestinfoods.com':'bestinfoods','(?:\\.|^)jinxiang.com':'jinxiang','(?:\\.|^)guojimami.com':'guojimami','(?:\\.|^)baiyangwang.com':'baiyangwang','\\.aoyou.com':'aoyou','(?:\\.|^)royyoungchemist.com.au':'royyoungchemist','(?:\\.|^)medihealshop.com':'medihealshop','(?:\\.|^)1001pharmacies.com':'1001pharmacies','(?:\\.|^)lookfantastic.cn':'lookfantastic-cn','(?:\\.|^)1\\.163\\.com':'1-163','www\\.kaixinbao.com':'kaixinbao','(?:\\.|^)booking.com':'booking','(?:\\.|^)juanpi.com':'juanpi','(?:\\.|^)pharmacyonline.com':'pharmacyonline','(?:\\.|^)bodyguardapotheke.com':'bodyguardapotheke','(?:\\.|^)purcotton.com':'purcotton','(?:\\.|^)wstx.com':'wstx','www\\.midea\\.com':'midea','www\\.midea\\.cn':'midea','mall\\.midea\\.com':'midea','\\.kaluli.com':'kaluli',"(?:\\.|^)yunhou\\.com":"yunhou","(?:\\.|^)haituncun\\.com":"haituncun","(?:\\.|^)vmei\\.com":"vmei","(?:\\.|^)jgb\\.cn":"jgb","(?:\\.|^)51din\\.com":"51din","(?:\\.|^)boqii\\.com":"boqii","cn.toursforfun\\.com":"toursforfun","(?:\\.|^)lulutrip\\.com":"lulutrip","(?:\\.|^)spider\\.com\\.cn":"spider","(?:\\.|^)walmart\\.com":"walmart","mall.to8to.com":"to8to",'www.opposhop.cn':'opposhop','baobeigezi.com':'baobeigezi','www.yao123.com':'yao123','www.menglu.com':'menglu','www.guopi.com':'guopi','www.likeface.com':'likeface','www.mallvv.com':'homevv','www.markmall.com':'markmall','www\\.baicheng\\.com':'baicheng','www\\.suanjuzi\\.com':'suanjuzi','\\.jinxiang\\.com':'jinxiang','\\.aomygod\\.com':'aomygod','(?:\\.|^)luolai\\.cn':'luolai','\\.vivo\\.com\\.cn':'vivo','\\.dixintong\\.com':'dixintong','\\.coolpad\\.com':'coolpad','\\.skg\\.com':'skg','vip\\.iqiyi\\.com':'iqiyi','\\aolaigo\\.com':'aolaigo','vip\\.missfresh\\.cn':'missfresh','\\.pushenkuajing\\.com':'pushenkuajing','cn\\.feelunique\\.com':'feelunique-cn','\\.chemistdirect\\.com\\.au':'chemistdirect','\\.netpharmacy\\.co\\.nz':'netpharmacy','\\.pharmacy4less\\.com\\.au':'pharmacy4less','\\.pharmacydirect\\.co\\.nz':'pharmacydirect','\\.amcal\\.com\\.au':'amcal','\\.laredoute\\.cn':'laredoute','cn\\.unserekleineapotheke\\.de':'unserekleineapotheke','\\.erwinmueller\\.com\\.cn':'erwinmueller','\\.kiwidiscovery\\.co\\.nz':'kiwidiscovery','\\.springlane\\.de':'springlane','\\.jako-o\\.com':'jako-o','\\.easytoys\\.cn':'easytoys','\\.tlcpharmacy\\.cn\\.com':'tlcpharmacy','\\.bienmanger\\.cn':'bienmanger','\\.dewaren\\.com':'dewaren','\\.discount-apotheke\\.de':'discount-apotheke','\\.holland-at-home\\.com':'holland-at-home','\\.youyu\\.com':'youyu','\\.kiwistarcare\\.com':'kiwistarcare','\\.lenovomobile\\.com':'lenovomobile','\\.51taouk\\.com':'51taouk','\\.kiehls\\.com':'kiehls','\\.zappos\\.com':'zappos','\\.coach\\.com':'coach','\\.yoox\\.cn':'yoox','\\.11street\\.com\\.cn':'11street','\\.ba\\.de':'ba','www\\.hqhair\\.com':'hqhair','www\\.katespade\\.co\\.uk':'katespade','cn\\.vitafy\\.de':'vitafy','www\\.yoox\\.cn':'yoox','\\.m18\\.com':'m18','comfortfirst\\.com':'comfortfirst','china\\.lotte\\.com':'lotte','\\.carrefour\\.cn':'carrefour','www\\.tea7\\.com':'tea7','\\.zhongjiu.cn':'zhongjiu','\\.puzeyf\\.com':'puzeyf','www\\.kohls\\.com':'kohls','www\\.bodybuilding\\.com':'bodybuilding','\\.nordstrom\\.com':'nordstrom','www\\.costco\\.com':'costco','www\\.target\\.com':'target','www\\.kmart\\.com':'kmart','www\\.overstock\\.com':'overstock','www\\.sears\\.com':'sears','www\\.shoprobam\\.com':'shoprobam','mall\\.goumin\\.com':'goumin','www\\.flyco\\.com':'flyco','www\\.opplestore\\.com':'opplestore','www\\.syshop\\.com':'syshop','www\\.yfdyf\\.com':'yfdyf','ssl\\.hotels\\.cn':'hotels','aihuishou\\.com':'aihuishou','www\\.thebeastshop\\.com':'thebeastshop','www\\.jomooshop\\.com':'jomooshop','www\\.septwolves\\.cn':'septwolves','\\.lianjia\\.com':{name:'lianjia',hidebar:true},'\\.maitian\\.cn':{name:'maitian',hidebar:true},'\\.5i5j\\.com':{name:'5i5j',hidebar:true},'\\.ke\\.com':{name:'ke',hidebar:true},'\\.6\\.cn':'home6','www\\.800pharm\\.com':'800pharm','www\\.ujipin\\.com':'ujipin','pc\\.mmb\\.cn':'mmb','www\\.ihaveu\\.com':'ihaveu','mall\\.ikang\\.com':'ikang','www\\.wyn88\\.com':'wyn88','www\\.mcake\\.com':'mcake','www\\.xmeise\\.com':'xmeise','www\\.lecake\\.com':'lecake','www\\.jd100\\.com':'jd100','www\\.jinghua\\.com':'jinghua','www\\.taohwu\\.com':'taohwu','www\\.zbird\\.com':'zbird','www\\.km1818\\.com':'km1818','www\\.zocai\\.com':'zocai','www\\.taoshu\\.com':'taoshu','www\\.aizhigu\\.com\\.cn':'aizhigu','www\\.tieyou\\.com':'tieyou','www\\.fieldschina\\.com':'fieldschina','www\\.wdmcake\\.cn':'wdmcake','mall\\.lqxshop\\.com':'lqxshop','www\\.usashopcn\\.com':'usashopcn','www\\.wine9\\.com':'wine9','www\\.qipaimall\\.com':'qipaimall','www\\.yododo\\.cn':'yododo','www\\.yoger\\.com\\.cn':'yoger','www\\.dapu\\.dapu':'dapu','www\\.winona\\.cn':'winona','www\\.wl\\.cn':'wl','www\\.shanmai\\.cn':'shanmai','www\\.zgshoes\\.com':'zgshoes','www\\.maichawang\\.com':'maichawang','www\\.uemall\\.com':'uemall','\\.51you\\.com':'51you','\\.beifabook\\.com':'beifabook','www\\.jpeen\\.com':'jpeen','www\\.huatuoyf\\.com':'huatuoyf','www\\.fengbuy\\.com':'fengbuy','\\.uiyi\\.com':'uiyi','www\\.hecha\\.cn':'hecha','www\\.t10\\.com':'t10','www\\.qw\\.cc':'qw','\\.miutour\\.com':'miutour','www\\.ehaoyao\\.com':'ehaoyao','www\\.idx\\.com\\.cn':'idx','www\\.uya100\\.com':'uya100','www\\.ssnewyork\\.com':'ssnewyork','www\\.clinique\\.com':'clinique','www\\.hxepawn\\.com':'hxepawn','www\\.brooksbrothers\\.com':'brooksbrothers','www\\.omtao\\.com':'omtao','www\\.ep365\\.com':'ep365','www\\.columbiasports\\.cn':'columbiasports','\\.bstapp\\.cn':'bstapp','www\\.newbalance\\.com':'newbalance','\\.wjike\\.com':'wjike','www\\.bally\\.co\\.uk':'bally','\\.1hai\\.cn':'1hai','www\\.jialich\\.cn':'jialich','\\.takeya\\.co\\.jp':'takeya','www\\.forever21\\.com':'forever21','www\\.modernavenue\\.com':'modernavenue','www\\.muniao\\.com':'muniao','\\.centanet\\.com':'centanet','www\\.zuihuiyou\\.com':'zuihuiyou','www\\.bobbibrowncosmetic\\.com':'bobbibrowncosmetics','www\\.super-in\\.com':'super-in','www\\.hangowa\\.com':'hangowa','www\\.levi\\.com':'levi','www\\.fila\\.cn':'fila','www\\.converse\\.com\\.cn':'converse','us\\.nextdirect\\.com':'nextdirect','www\\.itrip\\.com':'itrip','www\\.lashou\\.com':'lashou','www\\.liufeng\\.com':'liufeng','www\\.trt\\.hk':'trt','www1\\.wodinghua\\.com':'wodinghua','\\.wuliwuli\\.cn':'wuliwuli','www\\.forestfood\\.com':'forestfood','\\.bonjourhk\\.com':'bonjourhk','www\\.vitagou\\.hk':'vitagou','\\.kinhom\\.com':'kinhom','www\\.360lj\\.com':'360lj','v\\.changba\\.com':'changba','www\\.oakley\\.com':'oakley','www\\.jpyoo\\.com':'jpyoo','www\\.clarksusa\\.com':'clarksusa','www\\.starwoodhotels\\.com':'starwoodhotels','www\\.marriott\\.com\\.cn':'marriott-cn','www\\.yesstyle\\.com':'yesstyle','^evisu\\.com':'evisu','^lifeseasy\\.com\\.cn':'lifeseasy','www\\.ccxpet\\.com':'ccxpet','www\\.0061\\.com\\.au':'x0061','www\\.kkguan\\.com':'kkguan','www\\.style-oclock\\.com':'style-oclock','www\\.peikua\\.com':'peikua','www\\.airfrance\\.(?:us|com)':'airfrance','www\\.accorhotels\\.com':'accorhotels','www\\.spacenk\\.com':'spacenk','www\\.haichufang\\.com':'haichufang','us\\.wconcept\\.com':'wconcept','www\\.gant\\.co\\.uk':'gant','www\\.catfootwear\\.com':'catfootwear','www\\.saucony\\.com':'saucony','www\\.zaozuo\\.com':'zaozuo','\\.littleswan\\.com':'littleswan','www\\.can\\.tv':'can','www\\.ssrj\\.com':'ssrj','shop\\.guess\\.net\\.au':'guess','www\\.etihad\\.com':'etihad','store\\.fiil\\.com':'fiil','www\\.mianshui365\\.com':'mianshui365','www\\.tegoushe\\.com':'tegoushe','www\\.wiggle\\.cn':'wiggle','www\\.mdreams\\.com':'mdreams','\\.ecovacs\\.cn':'ecovacs','www\\.calvinklein\\.cn':'calvinklein','cn\\.memebox\\.com':'memebox','www3\\.hilton\\.com':'hilton','www\\.revolve\\.com':'revolve','www\\.shiseido\\.com':'shiseido','www\\.clarinsusa\\.com':'clarinsusa','store\\.starbucks\\.com':'starbucks','www\\.ray-ban\\.com':'ray-ban','us\\.puma\\.com':'puma','www\\.nautica\\.com':'nautica','www\\.cremedelamer\\.com':'cremedelamer','www\\.kipling-usa\\.com':'kipling-usa','www\\.jurlique\\.com':'jurlique','www\\.hushpuppies\\.com':'hushpuppies','www\\.origins\\.com':'origins','www\\.follifollie\\.us\\.com':'follifollie','usa\\.loccitane\\.com':'loccitane','\\.hpstore\\.cn':'hpstore','\\.01home\\.com':'01home','www\\.healthpost\\.co\\.nz':'healthpost','\\.imengxiang\\.cn':'imengxiang','www\\.hysj\\.com':'hysj','\\.saohuo7\\.com':'saohuo7','\\.repai\\.com':'repai','www\\.mayi\\.com':'mayi','\\.yinpiao\\.com':'yinpiao','\\.ihome-ins.com':'ihome-ins','\\.incake\\.net':'incake','\\.kuwo\\.cn':'kuwo','www\\.ywart\\.com':'ywart','www\\.cct\\.cn':'cct','www\\.ansgo\\.com':'ansgo','www\\.pilibaba\\.com':'pilibaba','www\\.xiaoniu88\\.com':'xiaoniu88','www\\.ahava\\.com':'ahava','\\.5-fifth\\.com':'5-fifth','\\.thewatchhut\\.co\\.uk':'thewatchhut','\\.babyhaven\\.com':'babyhaven','cn\\.cosme-de\\.com':'cosme-de','cn\\.getthelabel\\.com':'getthelabel','cn\\.matsuya\\.com':'matsuya','www\\.timberland\\.com':'timberland','\\.topman\\.com':'topman','www\\.homeaway\\.com':'homeaway','www\\.beautyexpert\\.com':'beautyexpert','\\.haimi\\.com':'haimi','www\\.mankind\\.co\\.uk':'mankind','www\\.thehut\\.com':'thehut','www\\.topshop\\.com':'topshop','mamaladen\\.com':'mamaladen','www\\.traveler-store\\.com':'traveler-store','www\\.travelzoo\\.com':'travelzoo','www\\.umishoes\\.com':'umishoes','store\\.ferrari\\.com':'ferrari','willerexpress\\.com':'willerexpress','www\\.unineed\\.com':'unineed','www\\.acnestudios\\.com':'acnestudios','www\\.aeropostale\\.com':'aeropostale','www\\.agoda\\.com':'agoda','www\\.albamoda\\.de':'albamoda','www\\.allbeauty\\.com':'allbeauty','www\\.allsaints\\.com':'allsaints','www\\.allsole\\.com':'allsole','www\\.urbanoutfitters\\.com':'urbanoutfitters','www\\.vitabiotics\\.com':'vitabiotics','www\\.bellemaison\\.jp':'bellemaison','www\\.benefitcosmetics\\.com':'benefitcosmetics','www\\.bhcosmetics\\.com':'bhcosmetics','www\\.bjmylikes\\.com':'bjmylikes','www\\.vitaminbay\\.com':'vitaminbay','www\\.waitrose\\.com':'waitrose','www\\.wolfordshop\\.co\\.uk':'wolfordshop','www\\.boohoo\\.com':'boohoo','www\\.boots\\.com':'boots','www\\.britishcornershop\\.co\\.uk':'britishcornershop','www\\.yirendai\\.com':'yirendai','www\\.ys7\\.com':'ys7','www\\.coggles\\.com':'coggles','www\\.corsetdeal\\.com':'corsetdeal','^cottonon\\.com':'cottonon','www\\.crocs\\.co\\.uk':'crocs','www\\.cruisefashion\\.com':'cruisefashion','www\\.dell\\.com':'dell','www\\.dermstore\\.com':'dermstore','www\\.disneystore\\.com':'disneystore','www\\.dorothyperkins\\.com':'dorothyperkins','www\\.doudoukang\\.com':'doudoukang','www\\.dujiake\\.com':'dujiake','www\\.dunelondon\\.com':'dunelondon','www\\.eastbay\\.com':'eastbay','www\\.eastdane\\.com':'eastdane','www\\.zaful\\.com':'zaful','www\\.zavvi\\.com':'zavvi','cn\\.feinkeit\\.de':'feinkeit','www\\.eibmarkt\\.com':'eibmarkt','www\\.belluna\\.cn':'belluna','www\\.emirates\\.com':'emirates','www\\.ems\\.com':'ems','www\\.eterna\\.de':'eterna','www\\.eurail\\.com':'eurail','www\\.exantediet\\.com':'exantediet','www\\.expedia\\.co\\.uk':'expedia','www\\.falke\\.com':'falke','www\\.famousfootwear\\.com':'famousfootwear','www\\.foreo\\.com':'foreo','www\\.wangxinlicai\\.com':'wangxinlicai','www\\.foreverunique\\.co\\.uk':'foreverunique','www\\.au\\.forzieri\\.com':'forzieri','www\\.freecountry\\.com':'freecountry','www\\.frenchconnection\\.com':'frenchconnection','www\\.gift-land\\.com':'gift-land','cn\\.growgorgeous\\.com':'growgorgeous','www\\.hotel\\.info':'hotel','www\\.houseoffraser\\.co\\.uk':'houseoffraser','www\\.huizuche\\.com':'huizuche','www\\.iwantoneofthose\\.com':'iwantoneofthose','www\\.jjglobal\\.com':'jjglobal','www\\.juicycouture\\.com':'juicycouture','www\\.kenko\\.com':'kenko','www\\.kikocosmetics\\.com':'kikocosmetics','www\\.lancerskincare\\.co\\.uk':'lancerskincare','shop\\.lego\\.com':'lego','www\\.lordandtaylor\\.com':'lordandtaylor','www\\.maizhi\\.com':'maizhi','www\\.matchesfashion\\.com':'matchesfashion','www\\.matsukiyo\\.co\\.jp':'matsukiyo','www\\.microsoft\\.com':'microsoft','cn\\.mioskincare\\.com':'mioskincare','www\\.missselfridge\\.com':'missselfridge','www\\.mountaingear\\.com':'mountaingear','www\\.mybag\\.com':'mybag','www\\.myprotein\\.com':'myprotein-com','www\\.myvitamins\\.com':'myvitamins','www\\.net-a-porter\\.com':'net-a-porter','www\\.newbalance\\.co\\.uk':'newbalance-uk','www\\.newlook\\.com':'newlook','www\\.nike\\.com\\.br':'nike-br','www\\.nike\\.com\\.hk':'nike-hk','www\\.nyandcompany\\.com':'nyandcompany','www\\.oasis-stores\\.com':'oasis-stores','www\\.orbitz\\.com':'orbitz','www\\.orchira\\.co\\.uk':'orchira','www\\.origins\\.co\\.uk':'origins-uk','www\\.petsmart\\.com':'petsmart','www\\.probikekit\\.co\\.uk':'probikekit','www\\.qatarairways\\.com':'qatarairways','www\\.radley\\.co\\.uk':'radley','www\\.ralphlauren\\.cn':'ralphlauren','www\\.rebeccaminkoff\\.com':'rebeccaminkoff','www\\.rentalcars\\.com':'rentalcars','www\\.ricaud\\.com':'ricaud','www\\.rockport\\.com':'rockport','www\\.ruelala\\.com':'ruelala','www\\.saksoff5th\\.com':'saksoff5th','www\\.sc24\\.com':'sc24','www\\.shoes\\.com':'shoes','www\\.shopspring\\.com':'shopspring','www\\.simplysupplements\\.co\\.uk':'simplysupplements','www\\.ssense\\.com':'ssense','www\\.stevemadden\\.com':'stevemadden','www\\.taodo\\.com':'taodo','www\\.michaelkors\\.cn':'michaelkors','www\\.ttcj\\.tv':'ttcj','www\\.uf-club\\.com':'uf-club','www\\.zhaidou\\.com':'zhaidou','www\\.163yun\\.com':'163yun','cn\\.apo\\.com':'apo','loan-m\\.jimu\\.com':'jimu','www\\.hao24\\.com':'hao24','m\\.seagoor\\.com':'seagoor','www\\.wannar\\.com':'wannar','www\\.caihang\\.com':'caihang','www\\.csmall\\.com':'csmall','www\\.kuajing\\.com':'kuajing','www\\.millenniumhotels\\.com':'millenniumhotels','www\\.reebonz\\.cn':'reebonz','cn\\.wemakeprice\\.com':'wemakeprice','www\\.wzhouhui\\.com':'wzhouhui','www\\.huijiayou\\.cn':'huijiayou','www\\.melimelo\\.cn':'melimelo','www\\.91xcm\\.com':'91xcm','zh\\.ashford\\.com':'ashford-zh','cjonmart\\.cn':'cjonmart','www\\.cnyto\\.me':'cnyto','www\\.granddfs\\.com':'granddfs','www\\.officedepot\\.com':'officedepot','www\\.tianhong\\.cn':'tianhong','www\\.yilingshop\\.com':'yilingshop','www\\.klook\\.com':'klook','m\\.ddky\\.com':'ddky','www\\.chinaacc\\.com':'chinaacc','www\\.bmai\\.com':'bmai','m\\.inke\\.cn':'inke','www\\.junrongdai\\.com':'junrongdai','www\\.napai\\.cn':'napai','mall\\.gree\\.com':'gree','sales\\.allianz\\.com':'allianz','v\\.youmi\\.cn':'youmi','www\\.21cake\\.com':'21cake','www\\.56ren\\.com':'56ren','www\\.anantara\\.com':'anantara','www\\.chesudi\\.com':'chesudi','www\\.ehmall\\.com':'ehmall','www\\.farfetch\\.cn':'farfetch','www\\.freepeople\\.com':'freepeople','www\\.gaosouyi\\.com':'gaosouyi','www\\.charm-color\\.':'charm-color','www\\.felissimo\\.co\\.jp':'felissimo','www\\.surfstitch\\.com':'surfstitch','www\\.lornajane\\.sg':'lornajane','www\\.reiss\\.com':'reiss','www\\.gzl\\.com\\.cn':'gzl','www\\.9drug\\.com':'9drug','www\\.yungoubs\\.com':'yungoubs','www\\.yencity\\.com':'yencity','class\\.hujiang\\.com':'hujiang','iphx\\.meituan\\.com':'meituan-iphx','www\\.svgouwu\\.com':'svgouwu','linktech\\.hqwx\\.com':'hqwx','\\.hysjg\\.com':'hysjg','\\.maimaicn\\.com':'maimaicn','\\.tyfo\\.com':'tyfo','www\\.tthigo\\.com':'tthigo','www\\.mayn\\.com\\.cn':'mayn','\\.harrods\\.com':'harrods','\\.theundone\\.com':'theundone','www\\.imomoko\\.com':'imomoko','www\\.perfumesclub\\.cn':'perfumesclub','www\\.godaddy\\.com':'godaddy','www\\.mytheresa\\.com':'mytheresa','www\\.backcountry\\.com':'backcountry','www\\.marriott\\.com':'marriott','www\\.mrporter\\.com':'mrporter','www\\.priceline\\.com':'priceline','english\\.ctrip\\.com':'ctrip-en','cn\\.monnierfreres\\.com':'monnierfreres','www\\.myprotein\\.cn':'myprotein','www\\.toryburch\\.com':'toryburch-com','www\\.italist\\.com':'italist','www\\.askderm\\.com':'askderm','www\\.tatcha\\.com':'tatcha','www\\.hollandandbarrett\\.com':'hollandandbarrett','www\\.ninewest\\.com':'ninewest','www\\.bergdorfgoodman\\.com':'bergdorfgoodman','www\\.ihg\\.com':'ihg','www\\.footlocker\\.com':'footlocker','www\\.rodial\\.co':'rodial','www\\.feelunique\\.com':'feelunique','www\\.jackwills\\.com':'jackwills','www\\.kidsroom\\.de':'kidsroom','cn\\.dod\\.nl':'dod','www\\.karenmillen\\.com':'karenmillen','cn\\.illicopharma\\.com':'illicopharma','www\\.tedbaker\\.com':'tedbaker','www\\.b-glowing\\.com':'b-glowing','www\\.adiexpress\\.com':'adiexpress','www\\.fragrancex\\.com':'fragrancex','www\\.peterthomasroth\\.com':'peterthomasroth','www\\.gap\\.com':'gap-com','www\\.cecile\\.co':'cecile','www\\.barneys\\.com':'barneys','www\\.debuycn\\.com':'debuycn','www\\.smashbox\\.com':'smashbox','www\\.lastcall\\.com':'lastcall','www\\.superdrug\\.com':'superdrug','www\\.libertylondon\\.com':'libertylondon','www\\.chemistdirect\\.co\\.uk':'chemistdirect-uk','www\\.skincarerx\\.com':'skincarerx','www\\.haba\\.co':'haba','shop\\.panasonic\\.com':'panasonic','www\\.beautifiedyou\\.com':'beautifiedyou','store\\.nba\\.com':'nba','www\\.elfcosmetics\\.com':'elfcosmetics','www\\.uniqlo\\.com':'uniqlo','www\\.uniqlo\\.cn':'uniqlo','www\\.colehaan\\.com':'colehaan','www\\.carters\\.com':'carters','www\\.sportsdirect\\.com':'sportsdirect','www\\.adorama\\.com':'adorama','www\\.ae\\.com':'ae','us\\.amorepacific\\.com':'amorepacific','www\\.anntaylor\\.com':'anntaylor','clearance\\.asics\\.com':'asics','www\\.asos\\.com':'asos','www\\.aveneusa\\.com':'aveneusa','www\\.barneyswarehouse\\.com':'barneyswarehouse','bensherman\\.com':'bensherman','www\\.blissworld\\.com':'blissworld','www\\.blueandcream\\.com':'blueandcream','www\\.bonds\\.com':'bonds','www\\.cookieskids\\.com':'cookieskids','www\\.cosmeland\\.jp':'cosmeland','www\\.crabtree-evelyn\\.com':'crabtree-evelyn','www\\.crocs\\.ca':'crocs-ca','www\\.darphin\\.com':'darphin','www\\.davidscookies\\.com':'davidscookies','www\\.dickiesstore\\.co':'dickiesstore','us\\.dockers\\.com':'dockers','www\\.easyspirit\\.com':'easyspirit','www\\.ebags\\.com':'ebags','www\\.echemist\\.co':'echemist','www\\.eddiebauer\\.com':'eddiebauer','www\\.elemis\\.com':'elemis','www\\.elizabetharden\\.co':'elizabetharden','www\\.ena\\.travel':'ena','www\\.evitamins\\.com':'evitamins','www\\.fashionesta\\.com':'fashionesta','www\\.figleaves\\.com':'figleaves','www\\.folica\\.com':'folica','www\\.fragrancenet\\.com':'fragrancenet','www\\.glamglow\\.co\\.uk':'glamglow-uk','www\\.godivachocolates\\.co':'godivachocolates','www\\.goldsmiths\\.co':'goldsmiths','www\\.growgorgeous\\.co\\.uk':'growgorgeous-uk','www\\.happysocks\\.com':'happysocks','www\\.harveynichols\\.com':'harveynichols','www\\.hatley\\.com':'hatley','www\\.herbspro\\.com':'herbspro','www\\.houseofholland\\.co':'houseofholland','www\\.jayjays\\.com':'jayjays','www\\.jetairways\\.com':'jetairways','www\\.journeys\\.com':'journeys','www\\.karmaloop\\.com':'karmaloop','www\\.keds\\.com':'keds','www\\.labseries\\.co':'labseries','leejeans\\.com':'leejeans','livingsocial\\.com':'livingsocial','www\\.wkzuche\\.com':'wkzuche','www\\.uzise\\.com':'uzise','m\\.laiyifen\\.com':'laiyifen','www\\.avast\\.com':'avast','usa\\.kaspersky\\.com':'kaspersky','www\\.steepandcheap\\.com':'steepandcheap','www\\.glamglow\\.com':'glamglow-com','www\\.cledepeaubeaute\\.com':'cledepeaubeaute','www\\.kicksusa\\.com':'kicksusa','www\\.lacoste\\.com':'lacoste','.*\\.bilibili\\.com':'bilibili','www\\.perriconemd\\.com':'perriconemd','www\\.gemvara\\.com':'gemvara','www\\.bluenile\\.com':'bluenile','www\\.modaoperandi\\.com':'modaoperandi','www\\.parrot\\.com':'parrot','cn\\.fashionbunker\\.com':'fashionbunker','www\\.final-score\\.com':'final-score','www\\.dkny\\.com':'dkny','shop\\.mango\\.com':'mango','www\\.charlottetilbury\\.com':'charlottetilbury','www\\.vmware\\.com':'vmware','www\\.avira\\.com':'avira','www\\.jewelry\\.com':'jewelry','www\\.eset\\.com':'eset','buy\\.norton\\.com':'norton','www\\.jimmyjazz\\.com':'jimmyjazz','www\\.roxy\\.com':'roxy','www\\.nastygal\\.com':'nastygal','www\\.marcjacobs\\.com':'marcjacobs','(?:^|www\\.)beastsmode\\.cn':'beastsmode','www\\.theapollobox\\.com':'theapollobox','www\\.yamibuy\\.com':'yamibuy','www\\.hbx\\.com':'hbx','www\\.horchow\\.com':'horchow','www\\.bluefly\\.com':'bluefly','www\\.swansonvitamins\\.com':'swansonvitamins','www\\.jcrew\\.com':'jcrew','www\\.bebe\\.com':'bebe','www\\.mucfc\\.com':'mucfc','www\\.only\\.cn':'only','www\\.veromoda\\.com':'veromoda','www\\.jackjones\\.com':'jackjones','www\\.selected\\.com':'selected','www\\.hanes\\.com':'hanes','www\\.algenist\\.com':'algenist','(?:^|www\\.)factory\\.jcrew\\.com':'jcrew-factory','www\\.lolewomen\\.com':'lolewomen','www\\.underarmour\\.com':'underarmour-com','www\\.theory\\.com':'theory','www\\.intimina\\.com':'intimina','www\\.nydj\\.com':'nydj','www\\.jny\\.com':'jny','bonobos\\.com':'bonobos','www\\.alphaindustries\\.com':'alphaindustries','venuekings\\.com':'venuekings','(?:^|www\\.)goop\\.com':'goop','www\\.silkyscents\\.com':'silkyscents','www\\.shopsky\\.com':'shopsky','www\\.vitaminworld\\.com':'vitaminworld','www\\.bumbleandbumble\\.com':'bumbleandbumble','mattandnat\\.com':'mattandnat','www\\.ladyfootlocker\\.com':'ladyfootlocker','www\\.aliceandolivia\\.com':'aliceandolivia','www\\.lancome-usa\\.com':'lancome-usa','www\\.sk-ii\\.com':'sk-ii','www\\.beautifulhalo\\.com':'beautifulhalo','www\\.footaction\\.com':'footaction','www\\.vitaminshoppe\\.com':'vitaminshoppe','www\\.reebok\\.com':'reebok','(?:^|www\\.)jet\\.com':'jet','www\\.burtsbeesbaby\\.com':'burtsbeesbaby','www\\.yoins\\.com':'yoins','www\\.skechers\\.com':'skechers','www\\.toofaced\\.com':'toofaced','elevtd\\.shoebuy\\.com':'shoebuy-elevtd','www\\.katvondbeauty\\.com':'katvondbeauty','www\\.mountainsteals\\.com':'mountainsteals','www\\.tours4fun\\.com':'tours4fun','www\\.jewelryaffairs\\.com':'jewelryaffairs','www\\.perfume\\.com':'perfume','www\\.tgw\\.com':'tgw','www\\.prescriptives\\.com':'prescriptives','www\\.perryellis\\.com':'perryellis','www\\.originalpenguin\\.com':'originalpenguin','www\\.naturalizer\\.com':'naturalizer','www\\.luisaviaroma\\.com':'luisaviaroma','www\\.giorgioarmanibeauty-usa\\.com':'giorgioarmanibeauty-usa','us\\.caudalie\\.com':'caudalie','www\\.murad\\.com':'murad','www\\.betseyjohnson\\.com':'betseyjohnson','www\\.thebodyshop\\.com':'thebodyshop','hampdenclothing\\.com':'hampdenclothing','www\\.anthropologie\\.com':'anthropologie','www\\.armani\\.com':'armani','us\\.shop\\.ecco\\.com':'ecco-us','www\\.loft\\.com':'loft','www\\.shuuemura-usa\\.com':'shuuemura-usa','www\\.therealreal\\.com':'therealreal','www\\.c21stores\\.com':'c21stores','www\\.ctshirts\\.com':'ctshirts','www\\.superjeweler\\.com':'superjeweler','us\\.jimmychoo\\.com':'jimmychoo','www\\.fwrd\\.com':'fwrd','www\\.aveda\\.com':'aveda','na-kd\\.com':'na-kd','www\\.nancymeyer\\.com':'nancymeyer','www\\.baublebar\\.com':'baublebar','us\\.elevenparis\\.com':'elevenparis','www\\.lindtusa\\.com':'lindtusa','www\\.narscosmetics\\.com':'narscosmetics','www\\.jackrabbit\\.com':'jackrabbit','www\\.macmall\\.com':'macmall','www\\.champssports\\.com':'champssports','store\\.dji\\.com':'dji','www\\.bodenusa\\.com':'bodenusa','www\\.crazy8\\.com':'crazy8','www\\.moltonbrown\\.com':'moltonbrown','needsupply\\.com':'needsupply','www\\.solesociety\\.com':'solesociety','www\\.childrensplace\\.com':'childrensplace','www\\.sigmabeauty\\.com':'sigmabeauty','www\\.adidas\\.com':'adidas-us','www\\.veronicabeard\\.com':'veronicabeard','www\\.cross\\.com':'cross','www\\.monsterproducts\\.com':'monsterproducts','www\\.theoutnet\\.com':'theoutnet','www\\.clarisonic\\.com':'clarisonic','www\\.dermadoctor\\.com':'dermadoctor','www\\.solsticesunglasses\\.com':'solsticesunglasses','www\\.pixiemarket\\.com':'pixiemarket','vip\\.yunifang\\.com':'yunifang','api\\.globalwinner\\.cn':'globalwinner','www\\.biotherm-usa\\.com':'biotherm-usa','www\\.jomalone\\.com':'jomalone','www\\.yvesrocherusa\\.com':'yvesrocherusa','www\\.mountainhardwear\\.com':'mountainhardwear','www\\.boscovs\\.com':'boscovs','www\\.putmeinthestory\\.com':'putmeinthestory','www\\.petit-bateau\\.us':'petit-bateau','www\\.striderite\\.com':'striderite','www\\.bcbg\\.com':'bcbg','www\\.marissacollections\\.com':'marissacollections','www\\.chineselaundry\\.com':'chineselaundry','www\\.ylang23\\.com':'ylang23','www\\.thewalkingcompany\\.com':'thewalkingcompany','www\\.perfumania\\.com':'perfumania','www\\.philosophy\\.com':'philosophy','www\\.underarmour\\.cn':'underarmour','www\\.bestgymequipment\\.co':'bestgymequipment','thesportsedit\\.com':'thesportsedit','www\\.treds\\.co':'treds','www\\.selfridges\\.com':'selfridges','www\\.toryburch\\.co\\.uk':'toryburch-uk','zh\\.virginatlantic\\.com':'virginatlantic','www.\\chowsangsang\\.com':'chowsangsang','www.speedo.com.cn':'speedo', // '\\.steampowered\\.com': 'steampowered', '\\.pinduoduo\\.com':'pinduoduo','\\.yangkeduo\\.com':'yangkeduo','\\.rakuten\\.co\\.jp':'rakuten','\\.computeruniverse\\.net':'computeruniverse','\\.prodirectsoccer\\.com':'prodirectsoccer','\\.prodirectrunning\\.com':'prodirectrunning','\\.dbox\\.co\\.nz':'dbox','\\.motorola\\.com\\.cn':'motorola','\\.haiershui\\.com':'haiershui','\\.wandougongzhu\\.cn':'wandougongzhu','www\\.xiaomiyoupin\\.com':'youpin-mi','bananarepublic\\.gap\\.com':'bananarepublic-gap','\\.decathlon\\.com\\.cn':'decathlon','\\.oneplus\\.com':'oneplus','\\.heytap\\.com':'heytap'};var productPattern={'dest/test\\.html':'test','^(?:http|https)://www\\.epicgames\\.com/store\\/[\\w\\W]+':'epic','^(?:http|https)://www\\.stbchina\\.cn/item.html#\\?itemId=\\d+':'heytap','^(?:http|https)://www\\.heytap\\.com/products\\/\\d+\\.html':'heytap','^(?:http|https)://shopee\\.tw/.*\\.\\d+\\.\\d+':'shopee','^(?:http|https)://shopee\\.tw/product\\/\\d+\\/\\d+':'shopee','^(?:http|https)://traveldetail\\.fliggy\\.com/item.htm':'fliggy','^(?:http|https)://www\\.wzhouhui\\.com/product[\\d\\-\\/]+.html':'wzhouhui','^(?:http|https)://cn\\.wemakeprice\\.com/[\\d\\-\\/]+':'wemakeprice','^(?:http|https)://cn\\.dod\\.nl/product/\\d+\\.html':'dod','^(?:http|https)://www\\.decathlon\\.com\\.cn/zh/p/':'decathlon','^(?:http|https)://cn\\.apo\\.com/product/detail/\\d+':'apo','^(?:http|https)://www\\.ansgo\\.com/product-\\d+\\.html':'ansgo','^(?:http|https)://www\\.perfumesclub\\.cn/product/\\d+\\.html':'perfumesclub','^(?:http|https)://www\\.net-a-porter\\.com/cn/[a-z]{2}/product/[\\w\\W]+':'net-a-porter','^(?:http|https)://www\\.kidsroom\\.cn/zh/[\\w\\W]+':'kidsroom','^(?:http|https)://cn\\.getthelabel\\.com/product/\\d+\\.html':'getthelabel','^(?:http|https)://www\\.farfetch\\.cn/cn/shopping/[\\w\\W]+\\.aspx':'farfetch','^(?:http|https)://item\\.kongfz\\.com/book/\\d+\\.html':'kongfz','^(?:http|https)://book\\.kongfz\\.com/\\d+/\\d+/':'kongfz','^(?:http|https)://cn\\.iherb\\.com/pr/[a-z0-9A-Z-]+/\\d+':'iherb','^(?:http|https)://www\\.hqhair\\.com/[a-z0-9-]+/\\d+\\.html':'hqhair','^(?:http|https)://www\\.wl\\.cn/\\d+':'wl','^(?:http|https)://www\\.columbia\\.com/[a-z0-9A-Z-]+\\.html\\?cgid=':'columbia','^(?:http|https)://www\\.columbiasports\\.cn/product-\\d+\\.html':'columbiasports','^(?:http|https)://www\\.ehaoyao\\.com/product-\\d+\\.html':'ehaoyao','^(?:http|https)://www\\.bhphotovideo\\.com/c/product/\\d+':'bhphotovideo','^(?:http|https)://www\\.shoes\\.com/[a-z0-9-]+/\\d+/\\d+':'shoes','^(?:http|https)://www\\.jomashop\\.com/[a-z0-9-]+\\.html':'jomashop','^(?:http|https)://cn\\.pharmacydirect\\.co\\.nz/\\d+\\.html':'pharmacydirect','^(?:http|https)://cn\\.pharmacydirect\\.co\\.nz/product/\\d+\\.html':'pharmacydirect','^(?:http|https)://www\\.holland-at-home\\.com/cn/(\\w+/){1,5}\\w+\\.html':'holland-at-home','^(?:http|https)://cn\\.holland-at-home\\.com/product/\\d+.html':'holland-at-home','^(?:http|https)://www\\.rei\\.com/product/\\d+':'rei','^(?:http|https)://item\\.aomygod\\.com/\\d+\\.html':'aomygod','^(?:http|https)://www\\.huatuoyf\\.com/product/\\d+\\.htm':'huatuoyf','^(?:http|https)://www\\.forever21\\.com/uk/shop/catalog/product':'forever21','^(?:http|https)://zh\\.ashford\\.com/([a-z0-9-]+/){1,6}[a-zA-Z0-9]+\\.pid':'ashford-zh','^(?:http|https)://www\\.bestbuy\\.com/[a-z]+/[a-z0-9-]+/\\d+\\.p\\?skuId=\\d+':'bestbuy','^(?:http|https)://www\\.target\\.com/p/[a-z0-0-]+':'target','^(?:http|https)://cn\\.chemistdirect\\.com\\.au/\\d+\\.html':'chemistdirect','^(?:http|https)://cn\\.chemistdirect\\.com\\.au/product/\\d+\\.html':'chemistdirect','^(?:http|https)://www\\.ba\\.de/product/\\d+\\.html':'ba','^(?:http|https)://m\\.wandougongzhu\\.cn/product/\\d+\\.html':'wandougongzhu','^(?:http|https)://cn\\.feelunique\\.com/\\d+\\.html':'feelunique','^(?:http|https)://cn\\.feelunique\\.com/product/\\d+\\.html':'feelunique','^(?:http|https)://shop\\.dixintong\\.com/products-[0-9-]+\\.html':'dixintong','^(?:http|https)://cn\\.pharmacyonline\\.com\\.au/\\d+\\.html':'pharmacyonline','^(?:http|https)://cn\\.pharmacyonline\\.com\\.au/product/\\d+\\.html':'pharmacyonline','^(?:http|https)://cn\\.discount-apotheke\\.de/\\d+\\.html':'discount-apotheke','^(?:http|https)://cn\\.discount-apotheke\\.de/product/\\d+\\.html':'discount-apotheke','^(?:http|https)://www\\.carters\\.com/[a-z0-9-]+/[A-Z]_\\d+\\.html\\?':'carters','^(?:http|https)://www\\.katespade\\.co\\.uk/[a-z-]+/([a-z0-9-]+/){1,3}[A-Za-z0-9]+\\.html':'katespade','^(?:http|https)://www\\.katespade\\.cn/[\\W\\w]+':'katespade','^(?:http|https)://www\\.beautybay\\.com/p/\\w+':'beautybay','^(?:http|https)://cn\\.pharmacy4less\\.com\\.au/\\d+\\.html':'pharmacy4less','^(?:http|https)://www\\.newegg\\.com/Product/Product\\.aspx':'newegg-us','^(?:http|https)://www\\.newbalance\\.com/pd/\\w+':'newbalance','^(?:http|https)://www\\.bodybuilding\\.com/store/[a-z0-9-]+/[a-z0-9-]+\\.html\\?skuId=':'bodybuilding','^(?:http|https)://www\\.ssnewyork\\.com/good/detail/\\d+':'ssnewyork','^(?:http|https)://www\\.wine9\\.com/\\d+\\.html':'wine9','^(?:http|https)://www\\.kohls\\.com/product/prd-\\d+':'kohls','^(?:http|https)://www\\.gnc\\.com/[a-z0-9-]+/\\d+\\.html\\?cgid=':'gnc','^(?:http|https)://www\\.qw\\.cc/goods-\\d+\\.html':'qw','^(?:http|https)://www\\.haiershui\\.com/product/\\d+\\.html':'haiershui','^(?:http|https)://www\\.ugg\\.com/[a-z0-9-]+/[a-z0-9-]+/\\d+\\.html':'ugg','^(?:http|https)://www\\.ugg\\.cn/product-\\d+\\.html':'ugg','^(?:http|https)://www\\.yoger\\.com\\.cn/product/\\d+\\.html':'yoger','^(?:http|https)://www\\.flyco\\.com/goods-[a-zA-Z0-9-_]+\\.html':'flyco','^(?:http|https)://www\\.yfdyf\\.com/product-\\d+\\.html':'yfdyf','^(?:http|https)://www\\.joesnewbalanceoutlet\\.com/product/':'joesnewbalanceoutlet','^(?:http|https)://www\\.jomoo\\.com\\.cn/item/[a-z0-9-]+\\.htm':'jomooshop','^(?:http|https)://www\\.dapu\\.com/product-\\d+\\.html':'dapu','^(?:http|https)://china\\.coach\\.com/product/\\d+':'coach','^(?:http|https)://china\\.coach\\.com/[a-z\\-]+/\\d+_\\w+':'coach','^(?:http|https)://www\\.shanmai\\.cn/product-\\d+\\.html':'shanmai','^(?:http|https)://www\\.fengbuy\\.com/[a-z0-9-]+\\.html':'fengbuy','^(?:http|https)://www\\.t10\\.com/\\w+-\\d+/':'t10','^(?:http|https)://cn\\.amcal\\.com\\.au/\\d+\\.html':'amcal','^(?:http|https)://cn\\.amcal\\.com\\.au/product/\\d+\\.html':'amcal','^(?:http|https)://cn\\.babyhaven\\.com/product/\\d+\\.html':'babyhaven','^(?:http|https)://www\\.51taouk\\.com/[A-Z0-9]+$':'51taouk',"^(?:http|https)://(?:www|shop)\\.usashopcn\\.com/goods\\.php\\?id=\\d+":"usashopcn","^(?:http|https)://www\\.petit-bateau\\.us/[a-z0-9-]+/d/[0-9A-Z]+\\?CategoryId":"petit-bateau","^(?:http|https)://www\\.tlcpharmacy\\.cn\\.com/\\d+\\.html":"bienmanger","^(?:http|https)://www\\.km1818\\.com/products/\\d+\\.html":"km1818","^(?:http|https)://www\\.bienmanger\\.cn/\\d+\\.html":"bienmanger","^(?:http|https)://www\\.syshop\\.com/goods/gooddetail/\\d+\\.html":"syshop","^(?:http|https)://www\\.qipaimall\\.com/goods/\\?goods_sn=":"qipaimall","^(?:http|https)://mall\\.goumin\\.com/mall/view/\\d+":"goumin","^(?:http|https)://www\\.taohwu\\.com/goods-\\d+\\.html":"taohwu","^(?:http|https)://www\\.xmeise\\.com/goods-\\d+\\.html":"xmeise","^(?:http|https)://www\\.septwolves\\.cn/ishop/web/theme/default/Ishop_pc/dist/#/goods_details\\?goods_id=\\d+":"septwolves","^(?:http|https)://www\\.kiehls\\.com/[a-z]+/[a-z0-9-]+/[a-z0-9-]+/\\d+\\.html":"kiehls","^(?:http|https)://www\\.puzeyf\\.com/detail/\\d+\\.html":"puzeyf","^(?:http|https)://www\\.aizhigu\\.com\\.cn/product\\.\\d+\\.html":"aizhigu","^(?:http|https)://www\\.hecha\\.cn/sgoods-\\d+\\.html":"hecha","^(?:http|https)://www\\.zgshoes\\.com/goods-\\d+\\.html":"zgshoes","^(?:http|https)://cn\\.takeya\\.co\\.jp/\\d+\\.html/":"takeya","^(?:http|https)://cn\\.takeya\\.co\\.jp/product/\\d+\\.html":"takeya","^(?:http|https)://www\\.shoprobam\\.com/Home/Products/detail/gid/\\d+":"shoprobam","^(?:http|https)://www\\.opplestore\\.com/item\\.html\\?itemId=\\d+":"opplestore","^(?:http|https)://www\\.maichawang\\.com/goods-\\d+\\.html":"maichawang","^(?:http|https)://www\\.bose\\.com/en_us/products/":"bose","^(?:http|https)://dewaren\\.com/cn/[a-zA-Z0-9]+/[a-zA-Z0-9-]+/\\w+/[0-9]+\\.html":"dewaren","^(?:http|https)://dewaren\\.com/cn/[a-zA-Z0-9-]+/\\w+[0-9\\-]+\\.html":"dewaren","^(?:http|https)://www\\.winona\\.cn/product/[0-9]+\\.html":"winona","^(?:http|https)://www\\.motorola\\.com\\.cn/store/[0-9_]+\\.html":"motorola","^(?:http|https)://www\\.motorola\\.com\\.cn/[a-z0-9]+/[a-z0-9]+/index\\.html":"motorola","^(?:http|https)://www\\.danielwellington\\.cn/[a-z0-9-]+[^\\/]$":"danielwellington-cn","^(?:http|https)://www\\.danielwellington\\.com/us/[a-z0-9-]+[^\\/]$":"danielwellington","^(?:http|https)://www\\.danielwellington\\.com/global/[a-z0-9-]+[^\\/]$":"danielwellington",'^(?:http|https)://youhui\\.pinduoduo\\.com/goods/goods-detail\\?goodsId=\\d+':'pinduoduo', // "^(?:http|https)://www.iherb.com/pr/[a-z0-9A-Z-]+/\\d+": "iherb", "^(?:http|https)://(?:mobile\\.|)yangkeduo.com/goods(?:2|1)?\\.html\\?":"yangkeduo","^(?:http|https)://www.finishline.com/store/product/":"finishline","^(?:http|https)://www.skinstore.com/[a-z0-9A-Z-]+/\\d+\\.html":"skinstore","^(?:http|https)://item.wjike.com/\\d+\\.html":"wjike","^(?:http|https)://youpin.mi.com/detail\\?gid=\\d+":"youpin-mi","^(?:http|https)://www\\.xiaomiyoupin\\.com/detail\\?gid=\\d+":"youpin-mi","^(?:http|https)://store\\.steampowered\\.com/app/\\d+":"steampowered","^(?:http|https)://store\\.steampowered\\.com/sub/\\d+":"steampowered","^(?:http|https)://www.forever21.com/UK/Product/Product\\.aspx":"forever21","^(?:http|https)://www.jialich.cn/goods\\.php\\?id=\\d+":"jialich","^(?:http|https)://www.tthigo.com/product/\\w+":"tthigo","^(?:http|https)://www\\.modernavenue\\.com/product-\\d+\\.html":"modernavenue","^(?:http|https)://www\\.tcl\\.com/\\w+/\\w+":"tcl","^(?:http|https)://www\\.bonjourhk\\.com/\\d+":"bonjourhk","^(?:http|https)://m\\.bonjourhk\\.com/[a-z]+/\\d+":"bonjourhk","(?:http:|https:)//www\\.trt\\.hk/page/products/\\d+\\.html":"trt","^(?:http|https)://www\\.forestfood\\.com/goods\\.php\\?id=\\d+":"forestfood","(?:http:|https:)//www\\.converse\\.com\\.cn/[a-z-_]+/\\d+/item":"converse","(?:http:|https:)//www\\.converse\\.com\\.cn/[a-z0-9-_]+/\\w+/item\\.htm":"converse","^(?:http|https)://www\\.fila\\.cn/item-index-[a-z0-9]+\\.html":"fila","^(?:http|https)://www\\.fila\\.cn/fila-[A-Za-z0-9]+\\.html":"fila","(?:http:|https:)//www\\.levi\\.com\\.cn/(?:men|women)/[a-z-]+/[0-9-]+/item":"levi","(?:http:|https:)//www\\.levi\\.com/[A-Z]+/[a-zA-Z_]+/[a-z]+/[a-z0-9-]+/p/\\d+":"levi","^(?:http|https)://www\\.hangowa\\.com/item-\\d+\\.html":"hangowa","^(?:http|https)://www\\.super-in\\.com/product/\\d+\\.html":"super-in","^(?:http|https)://www\\.ccxpet\\.com/Product/Detail":"ccxpet","^(?:http|https)://www\\.360lj\\.com/product/\\d+\\.html":"360lj","^(?:http|https)://www\\.hysjg\\.com/goods\\.php\\?id=\\d+":"hysjg","^(?:http|https)://www\\.0061\\.com\\.au/product/content/\\d+":"x0061","^(?:http|https)://mall\\.ecovacs\\.cn/product-\\d+\\.html":"ecovacs","^(?:http|https)://mall\\.littleswan\\.com/detail/index(?:/sale|)\\?itemid":"littleswan","^(?:http|https)://www\\.vitagou\\.hk/products/id/\\d+":"vitagou","^(?:http|https)://www\\.vitagou\\.hk/product-\\d+\\.html":"vitagou","^(?:http|https)://www\\.vitagou\\.hk/detail-\\d+\\.html":"vitagou","^(?:http|https)://www\\.hpstore\\.cn/accessary/\\w+":"hpstore","^(?:http|https)://www\\.hpstore\\.cn/(?:hp|omen)-":"hpstore","^(?:http|https)://www\\.kkguan\\.com/goods-\\d+\\.html":"kkguan","^(?:http|https)://www\\.mayn\\.com\\.cn/html/\\d+/\\d+":"mayn","^(?:http|https)://www\\.peikua\\.com/product-\\d+\\.html":"peikua","^(?:http|https)://item\\.kinhom\\.com/\\d+\\.html":"kinhom","^(?:http|https)://www.9drug.com/goods-\\d+\\.html":"9drug","^(?:http|https)://www.tea7.com/item/\\d+\\.html":"tea7","^(?:http|https)://www.01home.com/product/[a-z0-9-]+\\.html":"01home","^(?:http|https)://www.hpstore.cn/wasd-ii-[a-z0-9-]+\\.html":"hpstore","^(?:http|https)://www\\.hpstore.cn/(?:[a-z0-9-]+/|)[a-z0-9-]+\\.html":"hpstore","^(?:http|https)://www.aliexpress.com/store/product/":"aliexpress","^(?:http|https)://www.aliexpress.com/item/\\w+":"aliexpress","^(?:http|https)://www.easytoys.cn/\\d+\\.html":"easytoys","^(?:http|https)://www.kiwistarcare.com/goods-\\d+\\.html":"kiwistarcare","^(?:http|https)://www.carrefour.cn/product/\\d+":"carrefour","^(?:http|https)://china.lotte.com/goods/viewGoodsDetail\\.lotte":"lotte","^(?:http|https)://www.ewatches.com/detail\\.asp":"ewatches","^(?:http|https)://global.timex.com/node/\\d+":"timex","^(?:http|https)://comfortfirst.com/[a-z0-9-]+/[a-z0-9-]+/[a-z0-9-]+\\.html":"comfortfirst","^(?:http|https)://www.luolai.cn/product-\\d+\\.html":"luolai","^(?:http|https)://www.youyu.com/goods\\?sn=\\d+":"youyu","^(?:http|https)://www.yoox.cn/(?:cn/)[a-z0-9A-Z]+/item":"yoox","^(?:http|https)://store.yoox.cn/(?:cn/)[a-z0-9A-Z]+/item":"yoox", // "^(?:http|https)://www.walgreens.com/store/\\w+/[a-z0-9-]+/ID=prod\\d+-product": "walgreens", "^(?:http|https)://www.suanjuzi.com/product-\\d+\\.html":"suanjuzi","^(?:http|https)://www.yao123.com/product/\\w+":"yao123","^(?:http|https)://item.baobeigezi.com/product/\\d+\\.html":"baobeigezi","^(?:http|https)://www.baobeigezi.com/product/\\d+\\.html":"baobeigezi","^(?:http|https)://www.opposhop.cn/products/\\d+\\.html":"opposhop","^(?:http|https)://www.opposhop.cn/products/\\d+":"opposhop",'^(?:http|https)://store\\.oppo\\.com/(?:goods|products)/\\d+':'opposhop','^(?:http|https)://www\\.oppo\\.com/cn/product':'opposhop','^(?:http|https)://hd.oppo.com/act/\\d+/oppoR9s':'opposhop',"^(?:http|https)://mall.to8to.com/temai/\\d+.html":"to8to","^(?:http|https)://item\\.yunhou\\.com/\\d+\\.html":"yunhou","^(?:http|https)://item\\.yhd\\.com":"yihaodian","^(?:http|https)://www\\.haituncun\\.com/[a-z]+/[a-z0-9]+/\\d+/":"haituncun","^(?:http|https)://www\\.walmart\\.com/ip/[a-zA-Z0-9-]+/\\d+":"walmart","^(?:http|https)://www\\.vmei\\.com/product/[0-9]+":"vmei","^(?:http|https)://www\\.jgb\\.cn/p/[a-z0-9_]+\\.html":"jgb","^(?:http|https)://www\\.51din\\.com/product/[0-9]+/[0-9]+\\.html":"51din","^(?:http|https)://www.51din.com/product/(?!list)/[0-9]+.jhtml":"51din","^(?:http|https)://www\\.aidai\\.com/Product[0-9]+\\.html":"aidai","^(?:http|https)://shop\\.boqii\\.com/product-[0-9]+\\.html":"boqii","^(?:http|https)://www\\.spider\\.com.cn/[a-z]+/[0-9]+\\.html":"spider","^(?:http|https)://www\\.spider\\.com.cn/auction.html?auctionid=[0-9]+ ":"spider","^(?:http|https)://www\\.jiae\\.com/productdetail?productId=[0-9]+":"jiae","^(?:http|https)://(?:item|www)\\.zazhipu\\.com/[0-9]+\\.html":"zazhipu","^(?:http|https)://www\\.walmart\\.com/ip/\\d+":"walmart","^(?:http|https)://www\\.shop\\.philips\\.com\\.cn/item/[a-z0-9-]+":"philips",'^(?:http|https)://tuan.zhongjiu.cn/product/detail/\\d+.htm':'zhongjiu','^(?:http|https)://www.zhongjiu.cn/productdetail/\\d+.htm':'zhongjiu','^(?:http|https)://www.kaluli.com/product/\\d+.html':'kaluli','^(?:http|https)://shop.wstx.com/item/\\d+':'wstx','^(?:http|https)://www.purcotton.com/detail/\\d+/[0-9-]+\\.html':'purcotton','^(?:http|https)://shop.juanpi.com/[a-z]+/\\d+':'juanpi','^(?:http|https)://www.gnc.com/[A-Za-z0-9-]+/product.jsp':'gnc','^(?:http|https)://www.jinxiang.com/product/\\d+\\.html':'jinxiang','^(?:http|https)://1.163.com/detail/\\d+-\\d+\\.html':'1-163','^(?:http|https)://www.guojimami.com/goods-\\d+\\.html':'guojimami','^(?:http|https)://www.baiyangwang.com/product/\\d+\\.html':'baiyangwang','^(?:http|https)://www.baiyangwang.com/item-\\d+\\.html':'baiyangwang','^(?:http|https)://cn.royyoungchemist.com.au/\\d+\\.html':'royyoungchemist','^(?:http|https)://cn.medihealshop.com/\\d+':'medihealshop','^(?:http|https)://(?:www\\.|)medihealshop.com/shop/shopdetail\\.html\\?':'medihealshop','^(?:http|https)://cn.1001pharmacies.com/\\d+\\.html':'1001pharmacies','^(?:http|https)://www.lookfantastic.cn/[a-z0-9-.]+/\\d+':'lookfantastic-cn','^(?:http|https)://www.lookfantastic.cn/beauty-box/[a-z0-9-.]+/\\d+':'lookfantastic-cn','^(?:http|https)://www.lookfantastic.com/[a-z0-9-.]+/\\d+':'lookfantastic-com','^(?:http|https)://www.lookfantastic.com/beauty-box/[a-z0-9-.]+/\\d+':'lookfantastic-com','^(?:http|https)://you.163.com/item/detail':'you163','^(?:http|https)://product.bl.com/\\d+\\.html':'bl','^(?:http|https)://www.bestinfoods.com/(?:\\?|)product-[0-9]+\\.html':'bestinfoods','^(?:http|https)://www.muji.net/store/\\w+/detail/[0-9]+':'muji', // 'item2.gmarket.co.kr/Item/detailview/Item.aspx': 'gmarket', '^(?:http|https)://www\\.easeeyes\\.com/goods[0-9]+\\.html':'easeeyes','^(?:http|https)://www\\.lingshi\\.com/product/lingshi-\\d+\\.htm':'lingshi','^(?:http|https)://www\\.nubia\\.com/(?:nubian1|nubiamyprague|pragues|nubiaz9mark|nubiaz9|nubiaz9max|nubiaz9max|nubiaz9max|nubiaz11mini|nubiaZ11mini|nubiaz11max|nubiaz11max|nubiaz11max|nubiaz11|nubiaz11|nubiaz11)':'nubia','^(?:http|https)://shop\\.nubia\\.com/active/\\w+\\.html':'nubia','^(?:http|https)://shop\\.nubia\\.com/product\\.php\\?(?:s|)id=\\d+':'nubia','^(?:http|https)://(?:www|shop)\\.nubia\\.cn/product\\.php\\?sid=\\d+':"nubia",'^(?:http|https)://www.nubia.com/((?!.php).)*$':'nubia','^(?:http|https)://shop.nubia.com/buy/(?:nubian1|nubiamyprague|pragues|nubiaz9mark|nubiaz9|nubiaz9max|nubiaz9max|nubiaz9max|nubiaz11mini|nubiaZ11mini|nubiaz11max|nubiaz11max|nubiaz11max|nubiaz11|nubiaz11|nubiaz11|nubia\\w+)':'nubia','^(?:http|https)://www\\.kzj365\\.com/goods-\\d+\\.html':'kzj365','^(?:http|https)://(?:www|goods)\\.kaola\\.com/product/\\d+\\.html':'kaola','^(?:http|https)://www\\.kaola\\.com.hk/product/\\d+\\.html':'kaola','^(?:http|https)://(?:www|goods)\\.kaola\\.com.hk/product/\\d+\\.html':'kaola','^(?:http|https)://www\\.ymatou\\.(?:com|hk)/product/[a-zA-Z0-9-]+\\.html':'ymatou','^(?:http|https)://detail\\.metao\\.com/products/\\d+':'metao','^(?:http|https):tv\\.coocaa\\.com/goods/\\d+.htm':'coocaa','^(?:http|https)://www\\.coocaa\\.com/goods/get_[0-9]+\\.html':'coocaa','^(?:http|https)://www\\.lifevc\\.com/item/\\d+':'lifevc','^(?:http|https)://www\\.supuy\\.com/products/\\d+\\.html':'supuy','^(?:http|https)://www\\.supumall\\.com/Goods/goodsinfo/goodsCode/[0-9]+':'supuy','^(?:http|https)://www\\.mia\\.com/item-\\d+\\.html':'miyabaobei','^(?:http|https)://miyabaobei.hk/item-[0-9]+.html':'miyabaobei','^(?:http|https)://www.miyabaobei.hk/item-[0-9]+.html':'miyabaobei', //'item.gomehigo.hk/[0-9a-zA-Z]+-pop[0-9]+': 'gomehigo', '^(?:http|https)://item.gomehigo.hk/[0-9a-zA-Z]+-.*':'gomehigo','http://www\\.wangfujing\\.com/item/[0-9A-Z]+':'wangfujing','^(?:http|https)://global\\.gou\\.com/product_[0-9]+\\.html':'gou','^(?:http|https)://www\\.gou\\.com/[a-z0-9_]+\\.html':'gou','^(?:http|https)://(?:www\\.|)ikjtao\\.com/goods-[0-9]+\\.html':'ikjtao','^(?:http|https)://(?:www\\.|)ikjtao\\.com/goods.php':'ikjtao','^(?:http|https)://(?:www\\.|)bestkeep\\.cn/item/\\d+':'ikjtao','^(?:http|https)://(?:item|np)\\.ule\\.com/item/[0-9-]+\\.html':'ule','^(?:http|https)://shop\\.philips\\.com\\.cn/product/\\w+/detail\\.htm':'philips','^(?:http|https)://shop\\.tcl\\.com/ProductDetail/index/id/\\d+\\.html':'tcl','^(?:http|https)://mall\\.tcl\\.com/front/product/toProduct/[a-z0-9]+':'tcl','^(?:http|https)://www\\.e-changhong\\.com/webapp/wcs/stores/servlet/Product[\\w_-]+':'changhong','^(?:http|https)://shop\\.konka\\.com/goods\\.php\\?id=\\d+':'konka','^(?:http|https)://shop\\.konka\\.com/product-[0-9]+\\.html':'konka','^(?:http|https)://shop\\.hisense\\.com/Home/Products/detail/gid/\\d+':'hisense','^(?:http|https)://(?:www|shop)\\.hisense\\.com/(?:product|items)/[a-z0-9-]+':'hisense','^(?:http|https)://www\\.ineigo\\.com/Product/product.aspx\\?&?id=\\d+':'ineigo','^(?:http|https)://www\\.skg\\.com/\\d+\\.html':'skg','^(?:http|https)://www\\.skg\\.com/product/[0-9]+\\.htm':'skg','^(?:http|https)://www\\.oyeah\\.com/giveaway-[0-9a-z-]+':'oyeah','^(?:http|https)://www\\.morefood\\.com/products/info/[0-9]+\\.html':'morefood','^(?:http|https)://www\\.zhen\\.com/product-[0-9]+\\.html':'zhen','^(?:http|https)://shop\\.vivo\\.com\\.cn/index\\.php/product-\\d+\\.html':'vivo','^(?:http|https)://shop\\.vivo\\.com\\.cn/product-[0-9]+':'vivo','^(?:http|https)://shop\\.vivo\\.com\\.cn/product/[0-9]+':'vivo','^(?:http|https)://gfive\\.b2c\\.eqimingxing\\.com/product-\\d+\\.html':'gfive','^(?:http|https)://www\\.6pm\\.com/product/':'6pm','^(?:http|https)://www\\.6pm\\.com/p/[a-z0-9-]+/product/':'6pm', // '^(?:http|https)://www\\.sierratradingpost\\.com/[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-': 'sierratradingpost', '^(?:http|https)://shop\\.gionee\\.com/goods/\\d+':'gionee','^(?:http|https)://z\\.gionee\\.com/details-pc/\\w+/index\\.html':'gionee','^(?:http|https)://store\\.lining\\.com/shop/goods-[0-9]+':'lining','^(?:http|https)://store\\.lining\\.com/goods/detail.*':'lining','^(?:http|https)://www\\.mf910\\.com/product-[0-9]+\\.html':'mf910','^(?:http|https)://www\\.k-touch\\.cn/product/detail/prod_id/\\d+\\.html':'k-touch','^(?:http|https)://www\\.k-touch\\.cn/Product/ProductDetail\\?productid':'k-touch','^(?:http|https)://item\\.grainger\\.cn/g/\\d+':'grainger','^(?:http|https)://piao\\.163\\.com/\\w+/movie/\\d+\\.html':'wy163','^(?:http|https)://mall\\.163\\.com/p/product/\\d+\\.html':'wy163', //'^(?:http|https)://[\\w]+\\.nuomi\\.com/deal/\\w+\\.html':'nuomi', '^(?:http|https)://detail\\.yao.\\95095\\.com/item\\.htm':'taobao-95095','^(?:http|https)://www\\.ebay\\.com/itm/[0-9a-zA-Z]+':'ebay','^(?:http|https)://(?:www\\.|)100yue\\.com/product-[0-9]+\\.html':'100yue','^(?:http|https)://www\\.feiniu\\.com/item/[-\\w]+':'feiniu','^(?:http|https)://www\\.lemall\\.com/product/':'lemall','^(?:http|https)://www\\.lemall\\.com/cn/(?:tv|sale|phone)/\\w+':'lemall','^(?:http|https)://www\\.lemall\\.com/(?:le_2|le_max|le_1pro|x55pro|x65|x55|x43s|x40s|umax120|chao4max70)':'lemall','^(?:http|https)://www\\.lemall\\.com/(?:chao4|le_max|le_max2|le_2pro|le_2|le_max2|x40sx40s)/(?:\\w+/|)\\w+\\.html':'lemall','^(?:http|https)://item\\.feiniu\\.com/[0-9]+':'feiniu','^(?:http|https)://www\\.xgbaby\\.com/product/[0-9]+':'bbready','^(?:http|https)://www\\.zuipin\\.cn/[0-9a-z-]+\\.html':'zuipin','^(?:http|https)://www\\.zuipin\\.cn/goods\\?id=\\d+':'zuipin','^(?:http|https)://item\\.feifei\\.(?:cn|com)/\\w+\\.html':'feifei','^(?:http|https)://www\\.feifei\\.com/order/-/product-info/productname/[0-9]+\\.html':'feifei','^(?:http|https)://guang\\.com/baobei/\\d+':'guang','^(?:http|https)://www\\.haitaocheng\\.com/Product/Detail-\\d+\\.html':'haitaocheng','^(?:http|https)://www\\.rrs(?:jk|)\\.com/product/[0-9]+\\.html':'rrs','^(?:http|https)://shop\\.ccb\\.com/products/pd_[0-9]+\\.jhtml':'ccb','^(?:http|https)://www\\.meilishuo\\.com/(?:prom|share)/item/\\d+':'meilishuo','^(?:http|https)://www\\.meilishuo\\.com/share/[\\d]+':'meilishuo','^(?:http|https)://item\\.meilishuo\\.com/detail/':'meilishuo','^(?:http|https)://www\\.mogujie\\.com/tuan/detail/\\w+':'mogujie','^(?:http|https)://shop\\.mogu(?:jie|)\\.com/detail/\\w+':'mogujie','^(?:http|https)://www\\.mogujie\\.com/note/.*?showtype=good':'mogujie','^(?:http|https)://www\\.supumall\\.com/products/[0-9]+\\.html':'supumall','^(?:http|https)://shop\\.coolpad\\.(?:com|cn)/goods/\\d+\\.htm':'coolpad','^(?:http|https)://(www\\.)?yiguo\\.com/product/\\d+\\.html':'yiguo','^(?:http|https)://(www\\.)?yiguo\\.com/CommodityDetail\\.aspx\\?CommodityId=':'yiguo','^(?:http|https)://item\\.wanggou\\.com/':'wanggou','^(?:http|https)://mall\\.jia\\.com/item/':'jia','^(?:http|https)://www\\.jiumei\\.com/product/[a-z0-9_-]+\\.shtml':'jiumei','^(?:http|https)://weigou\\.baidu\\.com/item':'baidu-weigou','^(?:http|https)://shop\\.letv\\.com/product/':'letv','^(?:http|https)://www\\.(xiao)?mi\\.com/(goods|item)/':'xiaomi','^(?:http|https)://item\\.mi\\.com/[0-9]+\\.html':'xiaomi','^(?:http|https)://item\\.mi\\.com/product/[0-9]+\\.html':'xiaomi','^(?:http|https)://www\\.mi\\.com/(shop/)?buy/detail':'xiaomi','^(?:http|https)://item\\.mi\\.com/buy(?:phone|mitv|mitv\\w+)/[a-z0-9]+':'xiaomi','^(?:http|https)://item\\.mi\\.com/static/[a-z0-9]+':'xiaomi','^(?:http|https)://item\\.mi\\.com/buy/[a-z0-9]+':'xiaomi','^(?:http|https)://www\\.mi\\.com/(?:mi5|mimax|redminote4|note3|hongmi3s|redmipro|hongmi3|hongmi3x|mibookair|mipad2|mitv3s|mitv3s|mitv3s|mitv3|mitv3|mitv3|tvzj|hezi3s|hezi3|hezimini|shb|mivr1c|miwifi3|scooter|mibicycle|kettle|dianfanbao|micamera|xiaoyi|air2|water|water2|ihealth2|ihealth|mjsmartlamp|desklamp|mitu|cute|wangguan|shouhuan2|shouhuan|scale|mituwatch|miwifimini|miwifilite|miwifi3c|miwifi|dianyuan10000|dianyuan10000|dianyuan5000|chaxianban2|powerstrip|recharger|chongdianqi4kou|headphone|quantie|capsuleearphone|pocketaudio|littleaudio|yinxiang|speaker|radio|mimosdge|gelpen|pillowZ1|pillowZ2|roomrobot|recharger7|charger|bluetooth-headset|suitcase|redmi\\w+|mi5splus|mi5s|mix|minote\\w+|mi5c|max\\w+|mi6|mipad3|mitv\\w+)/':'xiaomi','^(?:http|https)://www\\.handu\\.com/goods-':'handu','^(?:http|https)://www\\.yummy77\\.com/product/[0-9]+\\.html':'yummy77','^(?:http|https)://www\\.fruitday\\.com/web/pro/[0-9]+':'fruitday','^(?:http|https)://www\\.fruitday\\.com/prodetail/index/[0-9]+':'fruitday','^(?:http|https)://www\\.benlai\\.com/items?-\\d+':'benlai','^(?:http|https)://www\\.benlai\\.com/[a-z/]+/item-[0-9]+\\.html':'benlai','^(?:http|https)://taoshu\\.com/\\d+\\.html':'taoshu','^(?:http|https)://www\\.meilele\\.com/category-[a-z]+/goods-[0-9]+\\.html':'meilele','^(?:http|https)://www\\.meilele\\.com/tuangou/info-[0-9]+.html':'meilele-tuan','^(?:http|https)://www\\.meilele\\.com/miaosha/ms-[0-9]+.html':'meilele-ms','^(?:http|https)://www\\.gjw\\.com/product/item':'gjw','^(?:http|https)://www\\.gjw\\.com/Home/TuanItem/\\d+\\.htm':'gjw','^(?:http|https)://www\\.gjw\\.com/TryDrink/item-id-[0-9]+\\.htm':'gjw','^(?:http|https)://www\\.oneplus\\.com/cn/':'oneplus','^(?:http|https)://store\\.apple\\.com/cn/product/':'apple','^(?:http|https)://www\\.apple\\.com/cn/(?:macbook|ipad-pro|ipad|ipad-mini-4|iphone-7|iphone-\\w+|ipod-shuffle)/':'apple','^(?:http|https)://store\\.apple\\.com/cn/buy-iphone/iphone\\w+':'apple','^(?:http|https)://store\\.apple\\.com/cn/buy-mac/\\w+-\\w+\\?product=\\w+/\\w+':'apple','^(?:http|https)://www\\.apple\\.com\\.cn/shop/':'apple','^(?:http|https)://store\\.apple\\.com/cn/buy-ipad/ipad-\\w+-\\w+':'apple','^(?:http|https)://store\\.apple\\.com/cn/buy-ipod/ipod-\\w+-\\w+':'apple','^(?:http|https)://www\\.apple\\.com/cn/shop/(?:product|buy-[a-z]+)/[a-z0-9-]+':'apple','^(?:http|https)://www\\.j1\\.com/product/':'j1','^(?:http|https)://miao\\.j1\\.com/product/':'j1-miao','^(?:http|https)://(?:www\\.|)zzl365\\.com/product-\\d+':'zzl365','^(?:http|https)://mobile\\.139shop\\.com/.*?/\\d+/\\d+\\.htm':'139shop','^(?:http|https)://139shop\\.com/[a-z0-9-]+/[a-z0-9]+/[a-z0-9]+\\.htm':'139shop', // '^(?:http|https)://detail\\.1688\\.com/offer/\\d+': '1688', '^(?:http|https)://www\\.yiwugou\\.com/product/detail/[0-9]+\\.html':'yiwugou','^(?:http|https)://www\\.zhiwo\\.com/product/\\d+':'zhiwo','^(?:http|https)://www\\.zhiwo\\.com/group/\\d+':'zhiwo-tuan','^(?:http|https)://[^\\.]+\\.miqi\\.cn/[^/]+/p\\d+':'miqi','^(?:http|https)://www\\.miqi\\.cn/[a-z]+/[0-9]+\\.html':'miqi','^(?:http|https)://www\\.camel\\.com\\.cn/[a-zA-Z0-9]+(_[a-zA-Z0-9]+)+/[\\w]+\\.shtml':'camel','^(?:http|https)://www\\.camel\\.com\\.cn/[a-zA-Z0-9_]+/[A-Za-z0-9]+\\.shtml':'camel','^(?:http|https)://www\\.kuaishubao\\.com/\\d+/\\d+':'kuaishubao','^(?:http|https)://www.kuaishubao.com/g/':'kuaishubao','^(?:http|https)://www\\.juegg\\.com/templets/DefaultGreen/Product\\.jsp':'juegg','^(?:http|https)://mall\\.10010\\.com/goodsdetail/[\\d]+\\.html':'mall10010','^(?:http|https)://www\\.wowsai\\.com/goods/':'wowsai','^(?:http|https)://www\\.tianpin\\.com/item/':'tianpin','^(?:http|https)://www\\.tootoo\\.cn/product-':'tootoo','^(?:http|https)://www\\.tootoo\\.cn/[a-z]+/detail/[0-9]+':'tootoo','^(?:http|https)://item\\.minshengec\\.com/[a-z]-(?:|[a-zA-Z%0-9]+)/[a-z0-9-]+\\.jhtml':'minshengec','^(?:http|https)://www\\.sfbest\\.com/html/(sfv)?products/':'sfbest','^(?:http|https)://ht\\.sfbest\\.hk/[0-9a-z_]+\\.htm':'sfbest','^(?:http|https)://shop\\.lenovo\\.com\\.cn/product-':'lenovo','^(?:http|https)://(?:item|\\w+)\\.lenovo\\.com\\.cn/product/\\d+\\.html':'lenovo','^(?:http|https)://shop\\.lenovomobile\\.com/ShowPhone.aspx\\?GdsID=':'lenovo','^(?:http|https)://www\\.lenovomobile\\.com/store/\\d+\\.html':'lenovo','^(?:http|https)://www\\.lenovo\\.com\\.cn/product/[0-9]+\\.html':'lenovo','^(?:http|https)://www\\.lenovo\\.com\\.cn/abtest/[0-9_]+\\.shtml':'lenovo','^(?:http|https)://thinkpad\\.lenovo\\.com\\.cn/product/[0-9]+\\.html':'lenovo','^(?:http|https)://www\\.vmall\\.com/item/\\d+/(?:index|buy)':'vmall','^(?:http|https)://www\\.vmall\\.com/product/\\d+\\.html':'vmall','^(?:http|https)://www.hihonor.com/cn/shop/product/\\d+\\.html':'hihonor','^(?:http|https)://www\\.ihush\\.com/product':'ihush','^(?:http|https)://(?:www\\.)?fclub\\.cn/goods':'fclub','^(?:http|https)://item\\.yohobuy\\.com/product/\\w+/\\w+\\.html':'yohobuy','^(?:http|https)://item\\.yohobuy\\.com/\\w+\\.html':'yohobuy','^(?:http|https)://www\\.yohobuy\\.com/product/\\d+\\.html':'yohobuy','^(?:http|https)://www\\.fclub\\.cn/tuangouDetail\\.html':'fclub','^(?:http|https)://ju\\.taobao\\.com/tg/home\\.htm.*(item_)?id=[\\d]+':'taobao-ju','^(?:http|https)://detail\\.tmall\\.com/item(_o)?\\.htm':'tmall','^(?:http|https)://detail\\.liangxinyao\\.com/item\\.htm':'tmall','^(?:http|https)://world\\.tmall\\.com/item/[0-9]+\.htm':'tmall','^(?:http|https)://detail\\.tmall\\.hk/hk/item\.htm':'tmall','^(?:http|https)://detail\\.tmall\\.hk/item\\.htm':'tmall','^(?:http|https)://item\\.taobao\\.com/item\.htm':'taobao','^(?:http|https)://2\\.taobao\\.com/item\\.htm':'taobao-xianyu','^(?:http|https)://ai\\.taobao\\.com/auction':'ai-taobao','^(?:http|https)://chaoshi\\.detail\\.tmall\\.com/item\\.htm':'tmall','^(?:http|https)://detail\\.ju\\.taobao\\.com/home\\.htm':'taobao-ju','^(?:http|https)://(?:archive-shop|shop|www|day|lux)\\.vip(shop)?\\.com/detail':'vipshop','^(?:https|http):\\/\\/detail\\.vip\\.com\\/detail-\\d+':'vipshop','^(?:https|http):\\/\\/www\\.vipglobal\\.hk\\/detail-\\d+':'vipshop','^(?:http|https)://tuan\\.lefeng\\.com/.*?/\\d+_\\d+\\.html':'lefeng','^(?:http|https)://(?:www|product)\\.lefeng\\.com/(product|pklist)/':'lefeng','^(?:http|https)://(?:www|1hour)\\.jxdyf\\.com/product[-/][\\d]+':'jxdyf','^(?:http|https)://www\\.jxdyf\\.com/ProductContent':'jxdyf','^(?:http|https)://www\\.tnice\\.com/product/':'tnice','^(?:http|https)://auction1\\.paipai\\.com/':'paipai','^(?:http|https)://item\\.xinbaigo\\.com/Goods/StyleDetail':'xinbaigo','^(?:http|https)://www\\.orbis\\.com\\.cn.*product\\-[\\d]+':'orbis','^(?:http|https)://www\\.sfht\\.com/detail/[0-9]+\\.html':'sfht','^(?:http|https)://(?:www|cosmetic)\\.d1\\.com\\.cn/product/':'d1','^(?:http|https)://www\\.chazuo\\.com/Product/p\\-[\\d]+':'chazuo','^(?:http|https)://www\\.u1baby\\.com/product\\-[\\d]+':'u1baby','^(?:http|https)://(www\\.)?homevv\\.com/vvshopProductView/pid\\-[\\d]+\\.jhtml':'homevv','^(?:http|https)://(www\\.)?homevv\\.com/vvshopProductView\\.jhtml':'homevv','^(?:http|https)://www\\.paixie\\.net/shoe\\-.+\\.html':'paixie','^(?:http|https)://tuan\\.paixie\\.net/[0-9]+\\.html':'paixie-tuan','^(?:http|https)://faxian\\.paixie\\.net/[0-9]+\\.html':'paixie-faxian','^(?:http|https)://www\\.tao3c\\.com/(outlets/)?product/[\\d]+\\.html':'tao3c','^(?:http|https)://www\\.zm7\\.cn/goods':'zm7','^(?:http|https)://s\\.etao\\.com/item/[\\d]+\\.html':'etao','^(?:http|https)://s\\.etao\\.com/search\\?epid=[\\d]+':'etao','^(?:http|https)://product\\.pchouse\\.com\\.cn/item/[\\d]+\\.html':'pchouse','^(?:http|https)://buy\\.daphne\\.cn/goods\\.php':'daphne','^(?:http|https)://www\\.lucemall\\.com\\.cn/.+/[\\d]+\\.html':'lucemall','^(?:http|https)://www\\.lifevc\\.com/detail/':'lifevc','^(?:http|https)://www\\.easy361\\.com/[^\\?]*goods-[\\d]+\\.html':'easy361','^(?:http|https)://item\\.360hqb\\.com/spu\\-[\\d]+\\.html':'360hqb','^(?:http|https)://item\\.360hqb\\.com/[\\d]+\\.html':'360hqb','^(?:http|https)://q\\.360hqb\\.com/detail/[\\d\\_]+\\.html':'360hqb','^(?:http|https)://www\\.goujiuwang\\.com/product/item\\-id\\-[\\d]+\\.htm':'goujiuwang','^(?:http|https)://www\\.huimai365\\.com/goods\\-[\\d]+\\.html':'huimai365','^(?:http|https)://(www|tuan|dingzhi)\\.jiuxian\\.com/(goods|tuan_detail)\\-.+\\.htm':'jiuxian','^(?:http|https)://www\\.winenice\\.com/p_[\\d]+\\.shtml':'winenice','^(?:http|https)://www\\.yesmywine\\.com/goods/[\\d]+\\.html':'yesmywine','^(?:http|https)://mall\\.yesmywine\\.com/shop/junkang/item-[\\d]+':'yesmywine','^(?:http|https)://mall\\.yesmywine\\.com/shop/[\\w]+/item-[\\d]+':'yesmywine','^(?:http|https)://mall\\.yesmywine\\.com/groupbuy/\\d+\\.html':'yesmywine','^(?:http|https)://www\\.banggo\\.com/Goods/[\\d]+\\.shtml':'banggo','^(?:http|https)://www\\.banggo\\.com/goods_[0-9]+\\.shtml':'banggo','^(?:http|https)://www\\.banggo\\.com/goods/[0-9A-Za-z]+\\.s?html':'banggo','^(?:http|https)://www\\.banggo\\.com/goods/[0-9A-Za-z]+':'banggo','^(?:http|https)://ploy\\.banggo\\.com/second/[0-9-_]+\\.shtml':'banggo','^(?:http|https)://www\\.yanyue\\.cn/smoke\\-product\\-[\\d]+\\.html':'yanyue','^(?:http|https)://www\\.bearbuy\\.com\\.cn/goods\\.php\\?id=[\\d]+':'bearbuy','^(?:http|https)://www\\.amazon\\.cn/.*?(?:dp/|gp/product/|detailApp)':'amazon','^(?:http|https)://www\\.amazon\\.(com|co\\.uk|de|co\\.jp|fr|ca|cn|it|es|com\\.au)/.*?(?:dp/|gp/product/|detailApp)(?!search)':'amazon','^(?:http|https)://(?:product\\.dangdang\\.com/[^\\?]*product.aspx|reco\\.dangdang\\.com/reco_pub\\.php)\\?product_id=\\d+':'dangdang','^(?:http|https)://(?:product|detail)\\.dangdang\\.com/[\\d]+':'dangdang','^(?:http|https)://(?:product|detail)\\.globaldangdang\\.hk/[\\d]+\\.html':'dangdang','^(?:http|https)://z\\.jd\\.com/project/details/\\d+\\.html':"360buy",'^(?:http|https)://item\\.jd\\.com/\\d+\\.html':'360buy','^(?:http|https)://item\\.m\\.jd\\.com/product/\\d+\\.html':'360buy','^(?:http|https)://kpl\\.m\\.jd\\.com/product\\?wareId=\\d+':'360buy','^(?:http|https)://pcitem\\.jd\\.hk/\\d+\\.html':'360buy','^(?:http|https)://npcitem\\.jd\\.hk/\\d+\\.html':'360buy','^(?:http|https)://i-item\\.jd\\.com/\\d+\\.html':'360buy','^(?:http|https)://item\\.paipai\\.com/\\d+\\.html':'360buy','^(?:http|https)://item\\.yiyaojd\\.com/\\d+\\.html':'360buy','^(?:http|https)://item\\.jkcsjd\\.com/\\d+\\.html':'360buy','^(?:http|https)://item\\.jd\\.hk/\\d+\\.html':'360buy','^(?:http|https)://paimai\\.jd\\.com/\\d+':'360buy-paimai','^(?:http|https)://day\\.jd\\.com/item/.*\\.html':'360buy-day','^(?:http|https)://www\\.(?:360buy|jd)\\.com/product/\\d+\\.html':'360buy','^(?:http|https)://(?:book|e)\\.(?:360buy|jd)\\.com/\\d+\\.html':'360buy-book','^(?:http|https)://re\\.jd\\.com/cps/item/[0-9]+\\.html':'360buy-re','^(?:http|https)://auction\\.jd\\.com/[0-9]+':'360buy-auction','^(?:http|https)://mvd\\.(?:360buy|jd)\\.com/\\d+\\.html':'360buy-mvd','^(?:http|https)://tuan\\.(?:360buy|jd)\\.com/team\\-\\d+\\.html':'360buy-tuan','^(?:http|https)://www\\.(?:360buy|jd)\\.com/tuan/[\\d]+\\-[\\d]+\\.html':'360buy-tuan','^(?:http|https)://www\\.(?:360buy|jd)\\.com/bigimage\\.aspx\\?id=\\d+':'360buy-bigimage','^(?:http|https)://club\\.jd\\.com/bbsDetail/[a-z0-9_-]+\\.html':'360buy-club','^(?:http|https)://www\\.360top\\.com/product/\\d+\\.html':'360top','^(?:http|https)://detail\\.zol\\.com\\.cn/.*?(?:index).*?\\.shtml':'zol','^(?:http|https)://detail\\.zol\\.com\\.cn/[\\d]+/[\\d]+/[a-zA-Z]+\\.shtml':'zol','^(?:http|https)://dealer\\.zol\\.com\\.cn/detail/[\\d]+/[\\d]+_[\\d]+.html':'zol','^(?:http|https)://(?:www|mall)\\.zol\\.com/detail':'zol','^(?:http|https)://detail\\.zol\\.com\\.cn/series/[0-9]+/[0-9_]+\\.html':'zol','^(?:http|https)://www\\.fglady\\.cn/BMsgL':'fglady','^(?:http|https)://(www.|)ouku\\.com/(?:goods|product)':'ouku','^(?:http|https)://(www.|)ouku\\.com/cn/[0-9a-z-_]+\\.html':'ouku','^(?:http|https)://www\\.newegg(\\.com)?\\.cn/Product/.*?\\.htm':'newegg','^(?:http|https)://zhadan\\.newegg(\\.com)?\\.cn/Bomb-\\d+\\.htm':'newegg','^(?:http|https)://zhadan\\.newegg\\.cn':'newegg-zhadan','^(?:http|https)://tuan\\.newegg\\.cn/deal/[0-9]+\\.htm':'newegg-tuan','^(?:http|https)://product\\.kimiss\\.com/product/':'kimiss','^(?:http|https)://www\\.redbaby\\.com\\.cn/.*?/\\d{7}\\d+\\.html':'redbaby','^(?:http|https)://product\\.m18\\.com/':'m18','^(?:http|https)://list\\.m18\\.com/item/':'m18','^(?:http|https)://list\\.m18\\.com/g/':'m18','^(?:http|https)://list\\.m18\\.com/.*Goods.aspx':'m18','^(?:http|https)://www\\.m18\\.com/item/':'m18','^(?:http|https)://www\\.w1\\.cn/goods':'w1','^(?:http|https)://www\\.ashford\\.com/us/watches/[a-z0-9-]+/[a-z0-9-]+':'ashford','^(?:http|https)://www\\.sephora\\.cn/productDetailAction/':'sephoracps','^(?:http|https)://www\\.sephora\\.cn/product/\\d+\\.html':'sephoracps','^(?:http|https)://www\\.sephora\\.cn/tryout/\\d+\\.html':'sephoracps','^(?:http|https)://www\\.lafaso\\.com/(?:product/|goods/product_detail)':'lafaso','^(?:http|https)://www\\.s\\.cn/(?!page)\\w{2,}\\-[A-Za-z0-9]+?[0-9]+?[A-Za-z0-9]+?[\\-_*\\.].*?html':'s', // '^(?:http|https)://www\\.s\\.cn/\\w{2,}\\-[A-Z0-9]+?[0-9]+?[A-Z0-9]+?[\\-_*\\.].*?html': 's', '^(?:http|https)://w?item\\.(?:51buy|yixun)\\.com/':'51buy','^(?:http|https)://www\\.okbuy\\.com/.*?/detail-':'okbuy','^(?:http|https)://www\\.okbuy\\.com/.*?-[\\d]+.html':'okbuy','^(?:http|https)://(www\\.)?letao\\.com/[^\\?]*shoe\\-[^\\~]*$':'letao','^(?:http|https)://(www\\.)?letao\\.com/[a-z0-9]+/detail\\.do\\?id=':'letao','^(?:http|https)://www\\.buy007\\.com/.*?/.*?/[A-Za-z\\d\\_\\-]*?\\.html':'buy007','^(?:http|https)://www\\.taoxie\\.com/commodity':'taoxie','^(?:http|https)://ju\\.suning\\.com/product-[a-zA-Z0-9]+\\.htm':'suning-ju','^(?:http|https)://item\\.suning\\.com/[0-9]+\\.html':'suning','^(?:http|https)://item\\.suning\\.com/[0-9]+/[0-9]+\\.html':'suning','^(?:http|https)://www\\.suning\\.(?:com|cn)/webapp/wcs/stores/servlet/(Prod|prd)':'suning','^(?:http|https)://pai\\.suning\\.(?:com|cn)/shanpai/detail/':'suning-pai','^(?:http|https)://pai\\.suning\\.(?:com|cn)/shanpai/[0-9]/detail/d/[0-9]+\-[0-9]':'suning-pai','^(?:http|https)://[\\w]+\\.suning\\.(?:com|cn)/emall/dgf':'suning-dgf','^(?:http|https)://qiang\\.suning\\.com/rps-web/rp/showActivity_[\\d]+\\.htm':'suning-qiang','^(?:http|https)://product\\.suning\\.com/\\d+':'suning','^(?:http|https)://product\\.suning\\.com/detail[0-9_]+\\.html':'suning','^(?:http|https)://www\\.suning\\.com/detail/':'suning-book-new','^(?:http|https)://snbook\\.suning\\.(?:com|cn)/web/prd/':'suning-snbook','^(?:http|https)://www\\.coo8\\.com/product/':'coo8','^(?:http|https)://(www.|)lusen\\.com/product/productinfo':'lusen','^(?:http|https)://www\\.lusen\\.com/Tuan/ComityInfo\\.aspx\\?id=[0-9]+':'lusen','^(?:http|https)://item\\.gome\\.com\\.cn/[^\\?]':'gome','^(?:http|https)://tao\\.gome\\.com\\.cn/p\\-D[0-9]+':'gome-tao','^(?:http|https)://q\\.gome\\.com\\.cn/item/\\w[0-9]+\\.html':'gome-q','^(?:http|https)://tuan\\.gome\\.com\\.cn/deal/\\w+\\.html':'gome-tuan','^(?:http|https)://www\\.gomehome\\.com/product/productinfo\\?p=[0-9-]+':'gome-home','^(?:http|https)://www\\.gome\\.com\\.cn/ec/rushbuy/limitbuy/itemdetail':'gome-rushbuy','^(?:http|https)://(?:www|item|s)\\.(yhd|yihaodian|1mall)\\.com/(?:product|item)/\\d+':'yihaodian','^(?:http|https)://item\\.yhd\\.com/item/lp/[0-9_]+':'yihaodian','^(?:http|https)://try\\.yhd\\.com/(free|fee)/\\d{4,6}_\\d+/':'yihaodian','^(?:http|https)://t\\.(yhd|yihaodian|1mall)\\.com/detail/\\d+':'yihaodian-tuan','^(?:http|https)://[a-zA-Z]+\\.womai\\.com/(.*)Product(?:\\-|\\.do\\?m?id)':'womai','^(?:http|https)://(www|sh|gz|zs)\\.womai\\.com/related-':'womai-related','^(?:http|https)://(www\\.)?leyou\\.com\\.cn/product/single/':'leyou','^(?:http|https)://haitao\\.leyou\\.com\\.cn/item/single/sku/':'leyou','^(?:http|https)://leleshan\\.leyou\\.com\\.cn/product/single/[A-Z0-9]+':'leyou-leleshan','^(?:http|https)://www\\.shopin\\.net/product/':'shopin','^(?:http|https)://(?:item|www|ebay)\\.xiu\\.com/product/':'xiu','^(?:http|https)://outlets\\.xiu\\.com/[\\d]+\\.shtml':'xiu','^(?:http|https)://ferragamo\\.xiu\\.com/[\\d]{6,10}\\.shtml':'xiu','^(?:http|https)://tuan\\.xiu\\.com/team_[\\d]+':'xiu-tuan','^(?:http|https)://item\\.mbaobao\\.com/pshow':'mbaobao','^(?:http|https)://www\\.mbaobao\\.com/item/':'mbaobao','^(?:http|https)://item\\.vjia\\.com/[\\d]*?\\.html':'vjia','^(?:http|https)://www\\.7cv\\.com/product/':'7cv','^(?:http|https)://www\\.qinqinbaby\\.com/product/':'qinqinbaby','^(?:http|https)://www\\.qinqinbaby\\.com/goods/[0-9]+':'qinqinbaby','^(?:http|https)://www\\.chunshuitang\\.com/[a-z]+/[0-9]+\\.html':'chunshuitang','^(?:http|https)://www\\.x\\.com\\.cn/n_product/[\\w]+\\.shtml':'x','^(?:http|https)://www\\.x\\.com\\.cn/product':'x','^(?:http|https)://www\\.guopi\\.com/p\\.jsp':'guopi','^(?:http|https)://www\\.no5\\.com\\.cn/goods/':'no5','^(?:http|https)://www\\.no5\\.com\\.cn/product/[0-9]+\\.html':'no5','^(?:http|https)://web[\\d]+\\.sasa\\.com/SasaWeb/sch/product/viewProductDetail':'sasa','^(?:http|https)://www\\.sasa\\.com/[a-z]+/[a-zA-Z0-9_-]+':'sasa','^(?:http|https)://www\\.sasa\\.com/[a-z]+-\\d+\\.html':'sasa','^(?:http|https)://www\\.hksasa\\.cn/[a-z]+-\\d+\\.html':'sasa','^(?:http|https)://www\\.dhc\\.net\\.cn/gds/(?:detail|csearch\\.jsp\\?ccd=[\\d]+)':'dhc','^(?:http|https)://www\\.9dadao\\.com/product/':'9dadao','^(?:http|https)://www\\.360kxr\\.com/product/':'360kxr','^(?:http|https)://www\\.m6go\\.com/product':'m6go','^(?:http|https)://www\\.gou\\.com/product':'m6go','^(?:http|https)://www\\.m6go\\.com/qg/product':'m6go','^(?:http|https)://www\\.gou\\.com/qg/product':'m6go','^(?:http|https)://www\\.likeface\\.com/product':'likeface','^(?:http|https)://www\\.qxian\\.com/.*?[0-9]*?\\.html':'qxian','^(?:http|https)://www\\.didamall\\.com/(?:products|libao)/info/':'didamall','^(?:http|https)://www\\.yaodian100\\.com/ecmall/product':'yaodian100','^(?:http|https)://www\\.yaofang\\.cn/goods':'yaofang','^(?:http|https)://www\\.lijiababy\\.com\\.cn/(?:eshop/product|Clothing/.*?/Product_item\\.aspx)':'lijiababy','^(?:http|https)://99read\\.com/Product/[a-zA-Z]*\\d+[a-zA-Z]*\\.aspx':'99read','^(?:http|https)://product\\.china-pub\\.com/\\d+':'china-pub','^(?:http|https)://(www.|)bookschina\\.com/[\\d]+\\.htm':'bookschina','^(?:http|https)://(www.|)bookschina\\.com/GROUPBUY/groupbuy.aspx\\?groupid\\=[0-9]+':'bookschina-tuan','^(?:http|https)://(?:|www\\.)efeihu\\.com/(?:Product/|Pages/ProductShow/ProductDetails\\.aspx)':'efeihu','^(?:http|https)://tuan\\.efeihu\\.com/[0-9a-zA-Z]+/Detials.aspx\\?id=[0-9]+':'efeihu','^(?:http|https)://www\\.360mart\\.com/product[s]?/.*?\\.html':'360mart','^(?:http|https)://www\\.yintai\\.com/product/productdetail':'yintai','^(?:http|https)://item\\.yintai\\.com/':'yintai','^(?:http|https)://www\\.quwan\\.com/goods':'quwan','^(?:http|https)://www\\.urcosme\\.com/search/final':'urcosme','^(?:http|https)://cn\\d*\\.strawberrynet\\.com/.*?/[0-9]+/':'strawberrynet','^(?:http|https)://www\\.strawberrynet\\.com/.*?/[0-9]+/':'strawberrynet','^(?:http|https)://www\\.luce\\.com\\.cn/product/':'luce','^(?:http|https)://www\\.k121\\.com/item':'k121','^(?:http|https)://www\\.happigo\\.com/[\\w]+/[\\w]+/[\\w]+/[\\d]+\\.html':'happigo','^(?:http|https)://www.happigo.com/item-[0-9]+.html':'happigo','^(?:http|https)://mall\\.happigo\\.com/goods-[\\d]+\\.html':'happigo','^(?:http|https)://mall\\.happigo\\.com/groupbuy-[0-9-]+\\.html':'happigo','^(?:http|https)://www\\.gap\\.cn/[^\\?]*product/[\\d]+\\.html':'gap','^(?:http|https)://www\\.misslele\\.com/.+[\\d]+\\.html':'misslele','^(?:http|https)://www\\.5lux\\.com/goods':'5lux','^(?:http|https)://(?:www|hui)\\.5lux\.com/good/detail/[0-9]+':'5lux','^(?:http|https)://www\\.xiaozhuren\\.com/(Disney/)?goods\\.php':'xiaozhuren','^(?:http|https)://www\\.all3c\\.com/product/':'all3c','^(?:http|https)://www\\.idaphne\\.com/goods':'idaphne','^(?:http|https)://product\\.pcbaby\\.com\\.cn/a/':'pcbaby','^(?:http|https)://www\\.binggo\\.com/.*?/\\d{7}\\d+\\.html':'binggo','^(?:http|https)://www\\.tiantian\\.com/.+/[a-zA-Z]?[\\d]+\\.html':'tiantian','^(?:http|https)://tuan\\.tiantian\\.com/Sale/(?:Details|FlashDetails)/[a-zA-Z0-9]+':'tiantian-tuan','^(?:http|https)://www\\.xiji\\.com/product-[0-9]+\\.html':'xiji','^(?:http|https)://www\\.xijie\\.com/prod':'xijie','^(?:http|https)://mall\\.jumei\\.com[^\\?]*/product_':'jumei','^(?:http|https)://pop\\.jumei\\.com/i/deal/\\w+\\.html':'jumei','^(?:http|https)://(gz|bj|sh)\\.jumei\\.com/i/deal/\\w+\\.html':'jumei','^(?:http|https)://item\\.jumei\\.com/[0-9a-zA-Z]+\\.html':'jumei','^(?:http|https)://www\\.jumeiglobal\\.com/deal/\\w+\\.html':'jumeiglobal','^(?:http|https)://item\\.jumeiglobal\\.com/[0-9a-zA-Z]+\\.html':'jumeiglobal','^(?:http|https)://www\\.jumeiglobal\\.com/Deal/Combination\\?':'jumeiglobal','^(?:http|https)://buy\\.caomeipai\\.com/goods':'caomeipai','^(?:http|https)://www\\.dahuozhan\\.com/product/':'dahuozhan','^(?:http|https)://www\\.dazhe\\.cn/goodsdetail':'dazhe','^(?:http|https)://www\\.huolida\\.com/product/':'huolida','^(?:http|https)://www\\.12dian\\.com/product':'12dian','^(?:http|https)://www\\.yougou\\.com/c_':'yougou','^(?:http|https)://(?:outlets|www)\\.yougou\\.com/[^?]+sku-[\\w]+':'yougou','^(?:http|https)://(?:outlets|seoul|www)\\.yougou\\.com/[a-z-]+/sku-[a-z0-9-]+\\.shtml':'yougou','^(?:http|https)://www\\.111\\.com\\.cn/(?:product|item)/':'111','^(?:http|https)://www\\.daoyao\\.com/product':'daoyao','^(?:http|https)://www\\.jianke\\.com/product/':'jianke','^(?:http|https)://www\\.jianke\\.com/tuan/product/[0-9]+\\.html':'jianke','^(?:http|https)://www\\.360kad\\.com/product/[0-9a-z]+\\.shtml':'360kad','^(?:http|https)://www\\.lbxcn.com/(?:Product|item)/[0-9]+.html':'lbxcn','^(?:http|https)://www\\.lbxcn.com/hepstorefront/lbx/zh/LBX/.*/p/[0-9]+':'lbxcn','^(?:http|https)://book\\.douban\\.com/subject/[\\d]+':'douban','^(?:http|https)://dongxi\\.douban\\.com/show/[\\d]+':'douban-dongxi','^(?:http|https)://product\\.it168\\.com/detail/doc/[0-9]+/index\\.shtml':'it168','^(?:http|https)://product\\.pconline\\.com\\.cn/[^/]*?/[^/]*?/[0-9]+\\.html':'pconline','^(?:http|https)://product\\.pcpop\\.com/[0-9]+/Index\\.html':'pcpop','^(?:http|https)://cosme\\.pclady\\.com\\.cn/product/[0-9]+\\.html':'pclady','^(?:http|https)://brand\\.yoka\\.com/cosmetics/.*?/detail[0-9]+\\.htm':'yoka','^(?:http|https)://detail\\.55bbs\\.com/.*?/index[0-9]+\\.shtml':'55bbs','^(?:http|https)://hzp\\.onlylady.com/.*?/[0-9]+/':'onlylady','^(?:http|https)://www\\.24dq.com/product.*?html':'24dq','^(?:http|https)://www\\.muyingzhijia\\.com/Shopping/ProductDetail\\.aspx':'muyingzhijia','^(?:http|https)://www\\.muyingzhijia\\.com/product/\\d+\\.html':'muyingzhijia','^(?:http|https)://item\\.muyingzhijia\\.com/\\d+\\.html':'muyingzhijia','^(?:http|https)://www\\.houmart\\.com/p\\-[\\d]+\\.html':'houmart','^(?:http|https)://www\\.onlyts\\.cn/goods':'onlyts','^(?:http|https)://www\\.winxuan\\.com/product/.*?[0-9]*?':'winxuan','^(?:http|https)://item\\.winxuan\\.com/[0-9]+':'winxuan','^(?:http|https)://detail\\.bookuu\\.com/[0-9]*?\\.html':'bookuu','^(?:http|https)://www\\.bookuu\\.com/detail\\.php\\?id=\\d+':'bookuu','^(?:http|https)://e\\.bookuu\\.com/detail\\.php\\?id=\\d+':'bookuu','^(?:http|https)://wenju\\.bookuu\\.com/detail\\.php\\?id=\\d+':'bookuu','^(?:http|https)://book\\.beifabook\\.com/Product/BookDetail.aspx':'beifabook','^(?:http|https)://product\\.yesky\\.com/product/.*?[0-9]*?/':'yesky','^(?:http|https)://product\\.pchome\\.net/.*?[0-9]*?\\.html':'pchome','^(?:http|https)://product\\.enet\\.com\\.cn/[a-zA-Z\\-].*?[\\d].*?\\.html':'enet','^(?:http|https)://(www\\.)?(?:ruiyi|rayi)\\.(?:com|cn|com\\.cn)/\\?product-[\\d].*?\\.html':'ruiyi','^(?:http|https)://www\\.nop\\.cn/product-[\\d]*?\\.html':'nop','^(?:http|https)://product\\.imobile\\.com\\.cn/show/[\\d].*?\\.html':'imobile','^(?:http|https)://product\\.cnmo\\.com/cell_phone/index[\\d].*?\\.shtml':'cnmo','^(?:http|https)://phone\\.shouji\\.com\\.cn/[\\d]+/detail/[\\d]+':'shouji','^(?:http|https)://product\\.tompda\\.com/[a-zA-Z]/[a-zA-Z]/[\\d]+/[\\d]+':'tompda','^(?:http|https)://www\\.3533\\.com/phone/phone.+\\.htm':'phone3533','^(?:http|https)://product\\.intozgc\\.com/[a-zA-Z\\_]+\\_[\\d]+':'intozgc','^(?:http|https)://product\\.chinabyte\\.com/product/[\\d]+/[\\d]+':'chinabyte','^(?:http|https)://app\\.tech\\.ifeng\\.com/[a-zA-Z\\-\\_]+/[a-zA-Z\\-\\_]+/[a-zA-Z0-9\\-\\_]+':'ifeng','^(?:http|https)://app\\.tech\\.ifeng\\.com/[a-zA-Z\\-\\_]+/detail\\-index\\-[0-9]+\\.html':'ifeng','^(?:http|https)://www2\\.xitek\\.com/production/product.php':'xitek','^(?:http|https)://product\\.imp3\\.net/product\\.php':'imp3','^(?:http|https)://www\\.menglu\\.com/product/[\\d]+\\.html':'menglu','^(?:http|https)://(?:lady|lingerie|www|fashion|shipin|item)\\.moonbasa\\.com/[a-zA-Z]\\-[\\d]+\\.html':'moonbasa','^(?:http|https)://www\\.(?:ing2ing|qjherb|korirl|alaves|0-100s|cherriespie|clafield|baoyeah|suorang|monteamor|rutisher)\\.com/p\\-[\\d]+\\.html':'moonbasa','^(?:http|https)://www\\.keede\\.com(\\.cn)?/[a-zA-Z]+[\\d]+\\.html':'keede','^(?:http|https)://www\\.kede\\.com(\\.cn)?/[a-zA-Z]+[\\d]+\\.html':'keede','^(?:http|https)://k1\\.keede\\.cn/[a-zA-Z]+[\\d]+\\.html':'keede','^(?:http|https)://k1\\.kede\\.cn/[a-zA-Z]+[\\d]+\\.html':'keede','^(?:http|https)://item(\\.vt)?\\.vancl\\.com/[\\d]+\\.html':'vancl','^(?:http|https)://www\\.dazhongdianqi\\.com\\.cn/dazhong/product[\\-\\d]+\\.htm':'dazhongdianqi','^(?:http|https)://www\\.skinstorechina\\.com/.+/.+[\\d]+\\-p\\.html':'skinstorechina','^(?:http|https)://item\\.buy\\.qq\\.com/item/':'qq','^(?:http|https)://.*\\.zol\\.com\\.cn/\\d+/\\d+\\.html':'zol-article','^(?:http|https)://.*\\.pconline\\.com\\.cn/\\d+/\\d+\\.html':'pconline-article','^(?:http|https)://.*\\.yesky\\.com/\\d+/\\d+\\.shtml':'yesky-article','^(?:http|https)://.*\\.it168\\.com/[a-z]\\d+/\\d+/\\d+/\\d+\\.shtml':'it168-article','^(?:http|https)://.*\\.pcpop\\.com/doc/\\d+/\\d+/\\d+\\.shtml':'pcpop-article','^(?:http|https)://.*\\.pchome\\.net/content-\\d+\\.html':'pchome-article','^(?:http|https)://.*\\.139shop\\.com/.*?/\\d+/\\d+\\.htm':'139shop-article','^(?:http|https)://www\\.milier\\.com/product/':'milier','^(?:http|https)://www\\.sportica\\.cn/goods':'sportica','^(?:http|https)://www\\.zhenpin\\.com/product':'zhenpin','^(?:http|https)://www\\.gaojie\\.com/product/':'gaojie','^(?:http|https)://www\\.naruko\\.com\\.cn/shop/product/Goods\\.aspx':'naruko','^(?:http|https)://www\\.(?:vivian|masamaso|linkmasa)\\.(?:com|cn)/goods_':'masamaso','^(?:http|https)://item\\.secoo\\.com/':'secoo','^(?:http|https)://paimai\\.secoo\\.com/[0-9]+\\.shtml':'secoo','^(?:http|https)://sale\\.secoo\\.com/[0-9]+\\.shtml':'secoo','^(?:http|https)://(?:www|tuan)\\.ehaier\\.com/product/':'ehaier','^(?:http|https)://qiji\\.ehaier\\.com/new/newExploreManager/dateil/[0-9]+':'ehaier','^(?:http|https)://www\\.handuyishe\\.com/goods':'handuyishe','^(?:http|https)://www\\.wbiao\\.cn/[a-z0-9-]+\\.html':'wbiao', // '^(?:http|https)://www\\.wbiao\\.cn/[a-z]+/[a-z0-9-]+\\.html': 'wbiao', '^(?:http|https)://www\\.wbiao\\.cn/goods\\.php\\?goods_id=[0-9]+':'wbiao','^(?:http|https)://www\\.wbiao\\.cn/van-der-bauwede-\\w[0-9]+\\.html':'wbiao','^(?:http|https)://www\\.shangpin\\.com(\\.hk)*/.*?product/':'shangpin','^(?:http|https)://www\\.pba\\.cn/(?:product|sp)':'pba','^(?:http|https)://www\\.metromall\\.cn/Product/':'metromall','^(?:http|https)://www\\.lizi\\.com/product':'lizi','^(?:http|https)://www\\.kadang\\.com/[a-zA-Z0-9/]*detail\\d+':'kadang','^(?:http|https)://www\\.kadang\\.com/product/[0-9]+':'kadang','^(?:http|https)://www\\.aimer\\.com\\.cn/goods/':'aimer','^(?:http|https)://www\\.lamiu\\.com/goods_':'lamiu','^(?:http|https)://www\\.lamiu\\.com/(?:goods_|product-)':'lamiu','^(?:http|https)://www\\.esprit\\.cn/(?:product|item)/\\w+':'esprit','^(?:http|https)://www\\.liebo\\.com/product/':'liebo','^(?:http|https)://www\\.wangjiu\\.com/product/(?!flashPromotion)':'wangjiu','^(?:http|https)://www.wangjiu.com/mall/item-pid-[a-zA-Z0-9]+\\.html':'wangjiu','^(?:http|https)://www\\.xifuquan\\.com/product/':'xifuquan','^(?:http|https)://www\\.189\\.cn/products/':'189','^(?:http|https)://www\\.hicdma\\.com/product_detail_':'hicdma','^(?:http|https)://mall\\.10010\\.com/goodsdetail/':'10010','^(?:http|https)://www\\.e100\\.cn/ebiz/channel/(.*/)+\\d+\\.html':'e100','^(?:http|https)://store\\.samsung\\.com/cn/.*/p/.*':'samsung','^(?:http|https)://www\\.samsungeshop\\.com\\.cn/product/.*':'samsung','^(?:http|https)://store\\.meizu\\.com/product/':'meizu','^(?:http|https)://detail\\.meizu\\.com/item/\\w+':'meizu','^(?:http|https)://b2c\\.958shop\\.com/.*/\\d+\\.html':'958shop','^(?:http|https)://www\\.okhqb\\.com/item/\\d+\\.html':'okhqb','^(?:http|https)://www\\.okhqb\\.com/qiang/\\d+/\\d+\\.html':'okhqb','^(?:http|https)://www\\.ztedevice\\.com\\.cn/product/':'ztedevice','^(?:http|https)://www\\.daling\\.com/detail-[0-9]+\\.html':'daling','^(?:http|https)://item\\.showjoy\\.com/sku/[0-9]+\\.html':'showjoy','^(?:http|https)://www\\.ocj\\.com\\.cn/detail/[0-9]+':'ocj','^(?:http|https)://www\\.ocj\\.kr/detail/[0-9]+':'ocj-kr','^(?:http|https)://www\\.ocj\\.com\\.cn/otuans/[a-z]+/[0-9]+':'ocj-tuan','^http://www\\.lvyoumall\\.com/(tuan/goods-|tmh/goods-|goods/)\\d+':'lvyoumall','http://www\\.kjt\\.com/product/detail/\\d+':'kjt','^(?:http|https)://store\\.logitech\\.com\\.cn/pro/proDetail/\\d+':'logitech','^(?:http|https)://store\\.logitech\\.com\\.cn/product/PointDetail/\\d+':'logitech','http://shop\\.boohee\\.com/store/goods/\\w+':'boohee','http://www\\.meici\\.com/product-[a-zA-Z0-9-]+\\.html':'meici','http://www\\.meici\\.com/product.*':'meici','http://(?:global|you|www)\\.beibei\\.com/detail/[0-9-]+\\.html':'beibei','http://store\\.nike\\.com/cn/zh_cn/pd/[a-zA-Z0-9\\u4e00-\\u9fa5-]+':'nike','http://store\\.nike\\.com/cn/zh_cn/product/[a-zA-Z0-9\\u4e00-\\u9fa5-]+':'nike','^(?:http|https)://www\\.nike\\.com/cn/t/[a-zA-Z0-9\\u4e00-\\u9fa5-]+':'nike','^(?:http|https)://www\\.fengqu\\.com\/detail\/':'fengqu','^(?:http|https)://www\\.mei\\.com/silo/.*-event-event/.*\\.html':'mei','^(?:http|https)://www\\.mei\\.com/item\\.html\\?':'mei','^(?:http|https)://www\\.vsigo\\.cn/.*\\.html':'vsigo','^(?:http|https)://www\\.sundan\\.com/product-[0-9]+':'sundan','^(?:http|https)://www\\.jiae\\.com/productdetail':'jiae','^(?:http|https)://hd\\.zazhipu\\.com/.*\\.asp\\?id=[0-9]+':'zazhipu','^(?:http|https)://www\\.microsoftstore\\.com\\.cn/%E7%B1%BB%E5%88%AB/.*/p/.*':'microsoftstore','^(?:http|https)://www\\.microsoftstore\\.com\\.cn/surface/[a-z0-9A-Z-]+':'microsoftstore','^(?:http|https)://www\\.xgdq\\.com/product-[0-9]+\\.html':'xgdq','^(?:http|https)://(?:www\\.|)xtep\\.com\\.cn/goods/do_index':'xtep','^(?:http|https)://www\\.xtep\\.com\\.cn/team-[0-9]+\\.html':'xtep','^(?:http|https)://www\\.xtep\\.com\\.cn/spike-[0-9]+\\.html':'xtep','^(?:http|https)://www\\.staples\\.cn/product/[0-9a-zA-Z]+':'staples', // '^(?:http|https)://(?:www\\.|)efotile\\.com/productdetail/[a-z0-9-_]+/[a-z0-9-_]+\\.html': 'efotile', '^(?:http|https)://mall\\.midea\\.com/detail/index':'midea','^(?:http|https)://www\\.midea\\.cn/detail/index':'midea','^(?:http|https)://www\\.midea\\.cn/[0-9]+/[0-9]+\\.html':'midea','^(?:http|https)://www1\\.macys\\.com/shop/product/\\w+':'macys','^(?:http|https)://cn.shopbop.com/[a-z0-9-]+/vp/\\w+':'shopbop', // 'www\\.bestcake\\.com/\\w+/item/[a-z0-9-]+': 'bestcake', '^(?:http|https)://www\\.hua\\.com/product/[0-9]+\\.html':'hua','^(?:http|https)://shop.zhe800.com/products/[0-9a-z]+':'zhe800','^(?:http|https)://www.cosme.com/products/detail.php\\?product_id':'cosme','^(?:http|https)://www.diapers.com/p/':'diapers','^(?:http|https)://www.windeln.de/zh/\\w+-':'windeln','^(?:http|https)://www.windeln.com\\.cn/product/\\d+':'windeln','^(?:http|https)://www.escentual.com/[a-z]+[0-9]+/':'escentual','^(?:http|https)://www.biccamera.com/bc/disp/\\w+':'biccamera','^(?:http|https)://www.esteelauder.com/product/\\d+/\\d+/\\w+':'esteelauder','^(?:http|https)://www.saksfifthavenue.com/main/ProductDetail.jsp':'saksfifthavenue','^(?:http|https)://www.thewatchery.com/detail.asp':'thewatchery','^(?:http|https)://item.tuhu.(cn|com)/Products/':'tuhu','^(?:http|https)://item\\.tuhu\\.cn/Products/[A-Z-]+/\\d+\\.html':'tuhu','^(?:http|https)://eshop.htc.com/mall/zh-CN/htc/[a-z0-9-]+':'htc','^(?:http|https)://roseonly.com.cn/item/[0-9]+.html':'roseonly','^(?:http|https)://www.taqu.cn/goods-\\d+.html':'taqu','^(?:http|https)://shop.jx.189.cn/web/productDetail.action\\?productInfoID':'189','^(?:http|https)://www.bftv.com/product/[0-9]+':'bftv','^(?:http|https)://www.axmall.com.au/p/\\d+\\.html':'axmall','^(?:http|https)://www\\.lovo\\.cn/pr-[0-9]+\\.htm':'lovo','^(?:http|https)://www\\.adidas\\.com\\.cn/item/':'adidas','^(?:http|https)://www\\.smzdm\\.com/p/[0-9]+':'smzdm','^(?:http|https)://www\\.uniqlo\\.cn/product-detail\\.html\\?productCode=[a-z0-9-]+':'uniqlo'};module.exports.init = function(){var pageInfo=getPageInfo();G.pageInfo = pageInfo;if(G.sjfix)return;if(G.site && (G.site == 'taobao' || G.site == 'tmall' || G.site.indexOf('taobao') > -1 || G.site == '1688')){G.aliSite = true;}}; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "5e0d66879d722b2ada2c": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__AppDownload_vue_vue_type_template_id_4c125ee6_scoped_true___ = __webpack_require__("cd213fe85ccdbbfd4f71"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AppDownload_vue_vue_type_script_lang_js___ = __webpack_require__("4d950d57537e1ffc4f4c"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__AppDownload_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__AppDownload_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__AppDownload_vue_vue_type_style_index_0_id_4c125ee6_lang_less_scoped_true___ = __webpack_require__("18e29106b21ecba1b1f4"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__AppDownload_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__AppDownload_vue_vue_type_template_id_4c125ee6_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__AppDownload_vue_vue_type_template_id_4c125ee6_scoped_true___["b" /* staticRenderFns */], false, null, "4c125ee6", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('4c125ee6')) { api.createRecord('4c125ee6', component.options) } else { api.reload('4c125ee6', component.options) } module.hot.accept("./AppDownload.vue?vue&type=template&id=4c125ee6&scoped=true&", function () { api.rerender('4c125ee6', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/PromoHistory/AppDownload.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "5e5d42ad8219d8ecf3ea": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniPromoHistory_vue_vue_type_style_index_0_id_54b7e36a_scoped_true_lang_less___ = __webpack_require__("ec0a6bfa62375c0fd07a"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniPromoHistory_vue_vue_type_style_index_0_id_54b7e36a_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniPromoHistory_vue_vue_type_style_index_0_id_54b7e36a_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniPromoHistory_vue_vue_type_style_index_0_id_54b7e36a_scoped_true_lang_less____default.a); /***/ }), /***/ "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"]; }); /***/ }), /***/ "5fe051e2197cc54d1b43": /***/ (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__("e6554ddc4b944c4a3224"); 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("1bc226cf", 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!./CommonLogin.vue?vue&type=style&index=2&id=5efee9c0&scoped=true&lang=less&data-class-type=gwd-remind&", 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!./CommonLogin.vue?vue&type=style&index=2&id=5efee9c0&scoped=true&lang=less&data-class-type=gwd-remind&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "5fe9ccd4be2bd86690c4": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "gwd-contact-link", on: { mouseover: _vm.over } }, [ _vm._v("\n 扫码联系客服\n "), _vm.qr ? _c( "div", { staticClass: "gwd-app-qr-content gwd-column gwd-align" }, [ _c( "div", { staticClass: "gwd-qr-img", style: "margin-top: 7px; margin-left: 7px; margin-right: 7px; height: 111.04px; position: relative; width: 111.04px;" }, [ _c("img", { staticClass: "gwd-qr-logo", attrs: { src: __webpack_require__("c9085187c37fc1ab0e5e"), alt: "" } }), _vm._v(" "), _c("img", { staticStyle: { width: "100%" }, attrs: { src: _vm.qr, alt: "" } }) ] ), _vm._v(" "), _c( "div", { staticClass: "gwd-row gwd-align gwd-qr-bottom-line", style: "margin-top: 6px;" }, [ _c( "span", { staticClass: "bold", style: "font-size: 20px;" }, [_vm._v("淘宝APP")] ), _vm._v(" "), _c( "span", { staticClass: "normal", style: "font-size: 18px" }, [_vm._v("扫码")] ), _vm._v(" "), _c( "span", { staticClass: "normal", staticStyle: { "margin-left": "10px" } }, [_vm._v("联系客服")] ) ] ) ] ) : _vm._e() ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "60624e018be49fb2d959": /***/ (function(module, exports, __webpack_require__) { "use strict"; var domains = { '\\.jd\\.com': '360buy', 'dangdang\\.com': 'dangdang', 'vmei\\.com': 'vmei', 'tootoo\\.cn': 'tootoo', 'www\\.spider\\.com\\.cn': 'spider', '.*?boqii\\.com': 'boqii', 'www\\.51din\\.com': '51din', 'www\\.haituncun\\.com': 'haituncun', 'yunhou\\.com': 'yunhou', '.*?vip\\.com': 'vip', 'www\\.mallvv\\.com': 'homevv', 'rayi\\.cn': 'rayi', 'www\\.yaofang\\.cn': 'yaofang', 'www\\.likeface\\.com': 'likeface', 'www\\.guopi\\.com': 'guopi', 'www\\.menglu\\.com': 'menglu', '(.*?)\\.m18\\.com': 'm18', '\\.efeihu\\.com': 'efeihu', '//www\\.mei\\.com/silo/.*-event-event\\.html': 'mei', 'benlai\\.com': 'benlai', '//www\\.kjt\\.com': 'kjt', 'www\\.kjt\\.com': 'kjt', 'bestinfoods.com': 'bestinfoods', '\\.j1\\.com': 'j1', 'yummy77\\.com': 'yummy77', '\\.360kxr\\.com': '360kxr', 'item\\.feiniu\\.com': 'feiniu', 'shop\\.lenovomobile\\.com': 'lenovo', 'supuy\\.com': 'supuy', 'supumall\\.com': 'supumall', 'yohobuy\\.com': 'yohobuy', 'mf910\\.com': 'mf910', 'sundan\\.com': 'sundan', '\\.tao3c\\.com': 'tao3c', 'aidai\\.com': 'aidai', 'x\\.com\\.cn': 'x', 'feifei\\.(?:cn|com)': 'feifei', 'lovo\\.cn': 'lovo', 'yintai\\.com': 'yintai', 'banggo\\.com': 'banggo', '5lux\\.com': '5lux', 'amazon\\.de': 'amazon_de', '\\.paixie\\.net': 'paixie', '\\.handu\\.com': 'handu', '\\.gou\\.com': 'm6go', 'minshengec\\.com': 'minshengec', 'lemall\\.com': 'lemall', 'ocj\\.com\\.cn': 'ocj', 'nike\\.com': 'nike', 'sfbest\\.(?:hk|com)': 'sfbest', '\\.winxuan\\.com': 'winxuan', '\\.shopin\\.net': 'shopin', '\\.mbaobao\\.com': 'mbaobao', 'www\\.ymatou\\.com': 'ymatou', 'coocaa\\.com': 'coocaa', '111\\.com\\.cn': '111', 'shop\\.lenovo\\.com\\.cn': 'lenovo', 'fruitday\\.com': 'fruitday', 'amazon\\.es': 'amazon', 'meici\\.com': 'meici', 'beibei\\.com': 'beibei', 'keede\\.com': 'keede', 'kede\\.com': 'keede', 'xijie.com': 'xijie', 'camel.com.cn': 'camel', 'meituan\\.com': 'meituan', '\\.amazon\\.cn': 'amazon', '\\.amazon\\.com': 'amazon_us', 'lenovo\\.com': 'lenovo', 'easeeyes\\.com': 'easeeyes', 'aimer\\.com\\.cn': 'aimer', 'showjoy\\.com': 'showjoy', 'yesmywine\\.com': 'yesmywine', 'tiantian\\.com': 'tiantian', '\\.gap\\.cn': 'gap', 'wangfujing\\.com': 'wangfujing', '\\.mei\\.com': 'mei', 'amazon\\.ca': 'amazon_ca', 'secoo\\.com': 'secoo', 'www\\.metao\\.com': 'metao', 'metao\\.com': 'metao', 'amazon\\.com\\.br': 'amazon', 'baiyangwang.com': 'baiyangwang', 'bookuu\\.com': 'bookuu', '100yue\\.com': '100yue', 'meilele\\.com': 'meilele', 'd1\\.com\\.cn': 'd1', 'm\\.d1\\.cn': 'd1', '.taqu.cn': 'taqu', 'letao\\.com': 'letao', 'www\\.kaola\\.com': 'kaola', 'lamiu\\.com': 'lamiu', '\\.vmall\\.com': 'vmall', 'morefood\\.com': 'morefood', '\\.xiji.com': 'xiji', 'shop\\.letv\\.com': 'lemall', 'vjia\\.com': 'vjia', 'staples\\.cn': 'staples', '\\.zm7\\.cn': 'zm7', '\\.(?:moonbasa|korirl|rutisher|suorang|alaves|ing2ing|0-100s|qjherb|monteamor)\\.com': 'moonbasa', 'fengqu\\.com': 'fengqu', 'bestkeep\\.cn': 'bestkeep', 'ocj\\.kr': 'ocj', 'amazon\\.co\\.jp': 'amazon_jp', 'zhen\\.com': 'zhen', '\\.xiu\\.com': 'xiu', '(\\.)?homevv\\.com': 'homevv', 'daling.com': 'daling', 'amazon\\.in': 'amazon', 'feiniu\\.com': 'feiniu', 'jiumei\\.com': 'jiumei', 'taoxie\\.com': 'taoxie', 'amazon\\.it': 'amazon', 'zazhipu\\.com': 'zazhipu', '\\.bl\\.com': 'bl', '.*?bl\\.com': 'bl', 'you.163.com': 'you163', 'lingshi\\.com': 'lingshi', 'hua\\.com': 'hua', '\\.m6go\\.com': 'm6go', 'lefeng\\.com': 'lefeng', '360kad\\.com': '360kad', '\\.99read\\.com': '99read', '\\.miqi\\.cn': 'miqi', 'qinqinbaby\\.com': 'qinqinbaby', 'vancl\\.com': 'vancl', '\\.jiuxian\\.com': 'jiuxian', 'jiae\\.com': 'jiae', 'midea\\.com': 'midea', 'amazon\\.com\\.mx': 'amazon', 'xifuquan\\.com': 'xifuquan', 'amazon\\.com': 'amazon_us', 'wangjiu\\.com': 'wangjiu', 'amazon\\.nl': 'amazon', '\\.okbuy\\.com': 'okbuy', 'amazon\\.com\\.au': 'amazon', 'sasa\\.com': 'sasa', '(\\.)?yiguo\\.com': 'yiguo', 'muyingzhijia\\.com': 'muyingzhijia', '.*?zuipin\\.cn': 'zuipin', '\\.zhiwo\\.com': 'zhiwo', 'store\\.logitech\\.com\\.cn': 'logitech', '\\.newegg(\\.com)?\\.cn': 'newegg', 'efotile\\.com': 'efotile', '\\.ouku\\.com': 'ouku', '\\.no5\\.com\\.cn': 'no5', 'haierjingshui\\.com': 'haierjingshui', 'www\\.kzj365\\.com': 'kzj365', 'wbiao\\.cn': 'wbiao', '\\.lusen\\.com': 'lusen', 'jumei\\.com': 'jumei', 'xgdq\\.com': 'xgdq', 'mia\\.com': 'miyabaobei', 'miyabaobei.hk': 'miyabaobei', 'ule\\.com': 'ule', '\\.okhqb\\.com': 'okhqb', 'jianke\\.com': 'jianke', '\\.jxdyf\\.com': 'jxdyf', 'xtep\\.com\\.cn': 'xtep', 'guojimami.com': 'guojimami', 'ehaier\\.com': 'ehaier', 'lbxcn\\.com': 'lbxcn', '\\.camel\\.com\\.cn': 'camel', '(?:vivian|linkmasa|masamaso)\\.(?:com|cn)': 'masamaso', 'lifevc.com': 'lifevc', 'chunshuitang\\.com': 'chunshuitang', '\\.bookschina\\.com': 'bookschina', 'leyou\\.com\\.cn': 'leyou', '\\.yougou\\.com': 'yougou', 'amazon\\.co\\.uk': 'amazon_uk', 'gjw\\.com': 'gjw', 'lining\\.com': 'lining', '\\.s\\.cn': 'scn', 'hisense\\.com': 'hisense', '\\.china-pub\\.com': 'chinapub', 'jumeiglobal\\.com': 'jumei', '\\.(xiao)?mi\\.com': 'mi', '\\.sephora\\.cn': 'sephora', 'jinxiang.com': 'jxdyf', 'purcotton.com': 'purcotton', 'wstx.com': 'wstx', 'zhongjiu.cn': 'zhongjiu', 'www.kaluli.com': 'kaluli', 'mall.to8to.com': 'to8to', 'www.opposhop.cn': 'opposhop', 'baobeigezi.com': 'baobeigezi', 'www.markmall.com': 'markmall', 'happigo\\.com': 'happigo', 'aolaigo\\.com': 'aolaigo', 'skg\\.com': 'skg', 'coolpad\\.com': 'coolpad', 'dixintong\\.com': 'dixintong', 'vivo\\.com\\.cn': 'vivo', 'luolai\\.cn': 'luolai', 'aomygod\\.com': 'aomygod', 'suanjuzi\\.com': 'suanjuzi', 'gionee\\.com': 'gionee', 'yao123\\.com': 'yao123', 'tuhu\\.cn': 'tuhu', 'walmart\\.com': 'walmart', 'vsigo\\.cn': 'vsigo', 'lookfantastic\\.com': 'lookfantastic', 'ashford\\.com': 'ashford', 'shopbop\\.com': 'shopbop', '6pm\\.com': '6pm', 'amazon\\.fr': 'amazon_fr', 'suning\\.com': 'suning', 'gome.com.cn': 'gome', 's\\.taobao\\.com': 'taobao', 'list\\.tmall\\.com': 'tmall', 'yhd.com': 'yihaodian', 'xiaomiyoupin\\.com': 'youpin-mi', '\\.yangkeduo\\.com': 'yangkeduo' }; var siteIdHash = { "amazon": 1, "dangdang": 2, "360buy": 3, "zol": 4, "fglady": 5, "ouku": 6, "newegg": 7, "kimiss": 8, "redbaby": 9, "m18": 10, "sephora": 12, "lefeng": 13, "scn": 14, "51buy": 15, "menglu": 16, "moonbasa": 17, "keede": 18, "vancl": 19, "okbuy": 21, "letao": 22, "buy007": 23, "taoxie": 24, "suning": 25, "coo8": 26, "lusen": 27, "gome": 28, 'dazhongdianqi': 29, "yihaodian": 31, "womai": 32, "leyou": 33, "shopin": 34, "xiu": 35, "mbaobao": 36, "vjia": 37, '7cv': 38, "youpin-mi": 39, "chunshuitang": 40, "x": 41, "guopi": 42, "no5": 43, 'sasa': 45, "360kxr": 50, "m6go": 51, "likeface": 52, "morefood": 54, "yaofang": 56, "99read": 59, "chinapub": 60, "bookschina": 61, "winxuan": 62, "efeihu": 63, "yintai": 66, "happigo": 72, "gap": 73, '5lux': 75, "tmall": 83, "tiantian": 84, "xijie": 85, "jumei": 86, "yougou": 93, "111": 94, 'jianke': 97, "muyingzhijia": 98, "lingshi": 99, "banggo": 100, "yesmywine": 101, "jiumei": 102, "jiuxian": 103, "gjw": 108, "okhqb": 109, "bookuu": 110, "tao3c": 111, "d1": 115, "rayi": 120, "paixie": 122, "taobao": 123, "homevv": 124, "jxdyf": 125, "sfbest": 126, "benlai": 127, "tootoo": 128, "tuotuo": 128, "vip": 129, "vmall": 134, "lenovo": 135, 'apple': 136, "zm7": 138, "miqi": 139, "zhiwo": 140, "j1": 141, 'wangjiu': 142, 'lamiu': 146, 'aimer': 147, "wbiao": 153, 'handu': 154, "ehaier": 155, "secoo": 156, 'camel': 157, 'masamaso': 158, 'zhen': 162, 'xifuquan': 164, "mi": 167, 'lemall': 168, "meituan": 172, 'ctrip': 173, "yiguo": 174, "yummy77": 175, "fruitday": 178, "feiniu": 180, "feifei": 181, 'zuipin': 182, 'yohobuy': 184, 'lvmama': 185, 'bestkeep': 188, 'mf910': 194, 'markmall': 194, "miyabaobei": 195, 'ule': 196, 'minshengec': 197, 'wangfujing': 198, 'nuomi': 199, "meilele": 201, "mogujie": 203, 'elong': 206, "supumall": 210, 'ly': 211, 'lining': 213, 'springtour': 215, 'haierjingshui': 217, "coocaa": 218, 'lifevc': 220, 'kzj365': 222, "kaola": 223, "ymatou": 224, "metao": 225, 'kjt': 226, "logitech": 227, 'amazon_us': 228, 'amazon_jp': 229, "xiji": 232, 'nike': 233, '360kad': 234, 'lbxcn': 235, 'meici': 236, 'beibei': 237, '6pm': 238, 'shopbop': 241, 'amazon_de': 246, 'ashford': 247, 'lookfantastic': 248, 'vsigo': 252, '100yue': 256, 'amazon_uk': 266, "daling": 267, "fengqu": 268, 'mei': 269, 'showjoy': 270, 'ocj': 271, 'sundan': 272, 'easeeyes': 273, 'yunhou': 274, 'haituncun': 275, 'walmart': 276, 'vmei': 277, 'jgb': 278, '51din': 279, 'aidai': 280, 'boqii': 281, 'toursforfun': 282, 'lulutrip': 283, 'spider': 284, 'jiae': 286, 'zazhipu': 287, 'xgdq': 288, 'xtep': 289, 'midea': 290, 'staples': 291, 'efotile': 292, 'lovo': 294, 'hua': 295, 'zhe800': 296, 'tuhu': 299, 'taqu': 313, 'bl': 347, 'bestinfoods': 348, 'you163': 349, 'guojimami': 351, 'baiyangwang': 352, 'juanpi': 360, 'purcotton': 364, 'amazon_fr': 365, 'amazon_ca': 366, 'wstx': 367, 'hisense': 368, 'zhongjiu': 369, 'yangkeduo': 370, 'to8to': 371, 'opposhop': 372, 'baobeigezi': 373, 'yao123': 374, 'gionee': 376, 'suanjuzi': 377, 'aomygod': 378, 'luolai': 379, 'vivo': 380, 'dixintong': 381, 'coolpad': 382, 'skg': 383, 'aolaigo': 385 }; var siteName = { 0: "购物党", 1: "亚马逊", 2: "当当网", 3: "京东商城", 4: "中关村在线", 5: "风尚伊人网", 6: "欧酷网", 7: "新蛋中国", 8: "闺蜜网", 9: "红孩子", 10: "麦网", 11: "唯伊商城", 12: "丝芙兰", 13: "乐蜂网", 14: "名鞋库", 15: "易迅网", 16: "梦露时尚网", 17: "梦芭莎", 18: "可得眼镜网", 19: "凡客诚品", 20: "淘秀-百丽鞋业", 21: "好乐买", 22: "乐淘", 23: "奥讯运动商城", 24: "淘鞋网", 25: "苏宁易购", 26: "库巴网(国美)", 27: "绿森数码", 28: "国美在线", 29: "大中电器", 30: "国美体育", 31: "一号店", 32: "中粮我买网", 33: "乐友孕婴童", 34: "上品折扣", 35: "走秀网", 36: "麦包包", 37: "V+(凡客)", 38: "七彩谷", 39: "小米有品", 40: "春水堂", 41: "桔色成人", 42: "果皮网", 43: "No5时尚广场", 44: "IDSHE.COM", 45: "香港莎莎", 46: "DHC中国", 47: "烧包网", 48: "日全食", 49: "第九大道", 50: "开心人大药房", 51: "麦乐购", 52: "悦美丽", 53: "抢鲜网", 54: "猫诚食品", 55: "耀点100百货商城", 56: "药房网", 57: "中关村在线商城", 58: "丽家宝贝", 59: "99网上书城", 60: "互动出版网", 61: "中国图书网", 62: "文轩网", 63: "飞虎乐购", 65: "致美网(SkinStore China)", 66: "银泰百货", 67: "趣玩", 68: "UrCosme", 69: "草莓网", 70: "露倩网", 71: "酷运动", 72: "快乐购", 73: "GAP中国", 74: "妙乐乐母婴用品商城", 75: "第五大道奢侈品网", 76: "小主人网", 77: "宜家家居官网", 78: "新七天电器网", 79: "达芙妮官网", 80: "太平洋亲子网", 81: "太平洋家居网", 82: "缤购网(红孩子)", 83: "天猫", 84: "天天网", 85: "西街运动网", 86: "聚美优品", 87: "小熊在线商城", 88: "草莓派化妆品商城", 89: "大货栈网上超市", 90: "名品打折", 91: "活力达保健品网", 92: "12点零食", 93: "优购网", 94: "1药网", 95: "导药网(上海复美大药房)", 96: "烟悦网", 97: "健客网", 98: "母婴之家", 99: "中国零食网", 100: "邦购网", 101: "也买酒", 102: "酒美网", 103: "酒仙网", 104: "惠健康商城", 105: "工贸家电", 106: "后玛特网上超市", 107: "虎扑识货", 108: "购酒网", 109: "华强北商城", 110: "博库书城", 111: "高鸿商城", 112: "西单igo5", 113: "新世界百货", 114: "汉光百货", 115: "D1优尚", 116: "易斯来福", 117: "优悦生活", 118: "插座网", 119: "ORBIS中国", 120: "锐意网", 121: "优1宝贝", 122: "拍鞋网", 123: "淘宝网", 124: "为为网", 125: "金象网", 126: "顺丰优选", 127: "本来生活", 128: "沱沱工社", 129: "唯品会", 130: "聚尚网", 131: "俏物悄语", 132: "天品网", 134: "华为商城", 135: "联想商城", 136: "苹果官网", 138: "卓美网", 139: "米奇网", 140: "知我药妆", 141: "健一网", 142: "网酒网", 143: "比度克", 144: "裂帛服饰", 145: "ESPRIT中文官网", 146: "兰缪内衣", 147: "爱慕官网", 148: "卡当网", 149: "丽子美妆", 150: "麦德龙", 151: "PBA美妆", 152: "尚品网", 153: "万表网", 154: "韩都衣舍", 155: "海尔商城", 156: "寺库网", 157: "骆驼官方商城", 158: "玛萨玛索", 159: "NOP男装", 160: "牛尔官网", 161: "高街网", 162: "珍品网", 163: "斯波帝卡", 164: "皙肤泉", 165: "米粒儿", 167: "小米商城", 168: "乐视商城", 169: "多看阅读", 170: "QQ网购", 171: "大众点评", 172: "美团", 173: "携程网", 174: "易果网", 175: "美味七七", 178: "天天果园", 179: "聚美海外购", 180: "飞牛网", 181: "飞飞商城", 182: "醉品商城", 183: "贝备网", 184: "有货", 185: "驴妈妈旅游网", 186: "青芒果", 187: "优彩网", 188: "跨境淘", 189: "包包树", 190: "满座网", 191: "一城一品", 192: "中国足彩网", 193: "发彩网", 194: "马克华菲", 195: "蜜芽", 196: "邮乐网", 197: "民生商城", 198: "王府井网上商城", 199: "百度糯米", 200: "去哪儿网", 201: "美乐乐", 202: "美丽说", 203: "蘑菇街", 204: "窝窝团", 205: "锦江之星", 206: "艺龙旅行网", 207: "布丁酒店", 208: "芒果网", 209: "500彩票网", 210: "速普商城", 211: "同程网", 213: "李宁官方商城", 214: "新东方在线", 215: "春秋旅游", 216: "永乐票务", 217: "海尔净水商城", 218: "酷开商城", 219: "魅族在线商店", 220: "LifeVC", 221: "努比亚官网", 222: "康之家网上药店", 223: "考拉海购", 224: "洋码头", 225: "蜜淘", 226: "跨境通", 227: "罗技官网", 228: "亚马逊美国", 229: "亚马逊日本", 230: "eBay", 231: "AliExpress", 232: "西集网", 233: "Nike", 234: "康爱多网上药店", 235: "老百姓网上药店", 236: "美西时尚", 237: "贝贝网", 238: "6PM", 239: "GNC美国官网", 240: "MYHABIT", 241: "SHOPBOP", 242: "Walgreens", 243: "STP", 244: "美国新蛋", 245: "Jomashop", 246: "亚马逊德国", 247: "Ashford", 248: "LookFantastic", 249: "REI", 250: "iHerb", 251: "Carter's", 252: "视客眼镜网", 253: "END.", 254: "CampSaver", 255: "乐天国际", 256: "百悦网", 257: "Woot", 258: "海淘城", 259: "Joe's NB Outlet", 260: "FinishLine", 261: "Vitacost", 262: "Groupon", 263: "Macy's", 264: "Moosejaw", 265: "GILT", 266: "亚马逊英国", 267: "达令", 268: "丰趣海淘", 269: "魅力惠", 270: "尚妆网", 271: "东方CJ", 272: "顺电网上商城", 273: "易视网", 274: "云猴网", 275: "海豚村", 276: "Walmart", 277: "唯美美妆", 278: "金箍棒海外购", 279: "我要订", 280: "爱戴网", 281: "波奇宠物商城", 282: "途风网", 283: "路路行", 284: "蜘蛛网", 285: "微软中国", 286: "加意新品", 287: "杂志铺", 288: "小狗电器", 289: "特步官方商城", 290: "美的商城", 291: "史泰博", 292: "方太商城", 293: "贝思客", 294: "LOVO家纺", 295: "中国鲜花礼品网", 296: "折800", 297: "暴风TV", 298: "途家网", 299: "途虎养车网", 300: "HTC官方商城", 301: "roseonly官网", 302: "融360", 303: "你我贷", 304: "Cosme Shopping", 305: "Diapers", 306: "Windeln.de", 307: "Babyneo.de", 308: "Escentual", 309: "TheWatchery", 310: "Saks Fifth Avenue", 311: "Estee Lauder", 312: "Bic Camera", 313: "他趣", 314: "穷游网", 315: "澳新优选", 316: "无印良品", 317: "Gmarket", 318: "11号街", 319: "Smartbargains", 320: "雅虎日本商城", 321: "布鲁明戴尔", 322: "Mikihouse", 323: "ToysRUs日本官网", 324: "ComfortFirst", 325: "金宝贝", 326: "Albee Baby", 327: "Babymarkt", 328: "UGG官网", 329: "Neiman Marcus", 330: "Shoebuy", 331: "Szul", 332: "Timex", 333: "Kay Jewelers", 334: "eWatches", 335: "Swarovski美国官网", 336: "World of Watches", 337: "Daniel Wellington", 338: "Beauty Bay", 339: "Beauty.com", 340: "Beauty Bar", 341: "SkinStore", 342: "兰芝韩国官网", 343: "BOSE美国官网", 344: "Best Buy", 345: "B&H", 346: "索尼日本官网", 347: "百联", 348: "源品优购", 349: "网易严选", 350: "锦江国际", 351: "国际妈咪", 352: "百洋商城", 353: "遨游网", 354: "Roy Young中文官网", 355: "Mediheal中文官网", 356: "1001 pharmacies中文官网", 357: "Lookfantastic中文官网", 359: "开心保保险网", 360: "卷皮网", 361: "Booking.com", 362: "澳洲PO药房中文官网", 363: "德国BA保镖药房中文网", 364: "全棉时代", 365: "亚马逊法国", 366: "亚马逊加拿大", 367: "外设天下", 368: "海信商城", 369: "中酒网", 370: "拼多多", 371: "土巴兔家居商城", 372: "OPPO在线商城", 373: "宝贝格子", 374: "国药网", 375: "百程旅行网", 376: "金立手机官网", 377: "酸橘子", 378: "奥买家全球购", 379: "罗莱官方商城", 380: "VIVO官方商城", 381: "迪信通官方商城", 382: "酷派商城", 383: "SKG官网", 384: "爱奇艺", 385: "奥莱购", 386: "每日优鲜", 387: "圃神跨境", 388: "Feelunique中文网", 389: "Chemist Direct中文网", 390: "Net Pharmacy中文网", 391: "Pharmacy 4 Less中文网", 392: "Pharmacy Direct中文网", 393: "Amcal中文网", 394: "La Redoute中文网", 395: "德国UKA优卡有机中文网", 396: "Erwin Mueller穆勒家居中文网", 397: "Kiwi Discovery中文网", 398: "Springlane中文网", 399: "德国JAKO-O婴童用品中文网", 400: "EasyToys中文站", 401: "英国TLC中文网", 402: "法国BM彼洋美食", 403: "Dewaren德国狮子家中文网", 404: "DC德式康线上药房中文官网", 405: "荷兰之家中文站", 406: "鱿鱼网", 407: "KiwiStarcare官网", 408: "ZUK联想手机商城", 409: "Kiehl's美国官网", 410: "Zappos", 411: "COACH蔻驰中国官网", 412: "YOOX中文官网", 413: "韩国11街中文官网", 414: "英超海淘", 415: "HQhair.com", 416: "Kate Spade", 417: "Vitafy中文官网", 418: "乐天网购", 419: "家乐福网上商城", 420: "茶七网", 421: "普泽大药房", 422: "Kohl's", 423: "Body Building", 424: "Nordstrom", 425: "Costco", 426: "Target", 427: "Kmart", 428: "Overstock", 429: "Sears", 430: "老板电器官方商城", 431: "狗民网商城", 432: "飞科商城", 433: "欧普照明", 434: "世界婴童网", 435: "益丰大药房", 436: "好订网", 437: "爱回收", 438: "野兽派", 439: "九牧卫浴官方商城", 440: "七匹狼官方商城", 441: "链家", 442: "我爱我家", 443: "六间房秀场", 444: "八百方网上药店", 445: "优集品", 446: "买卖宝", 447: "优众网", 448: "爱康国宾健康商城", 449: "维也纳酒店官网", 450: "M'CAKE", 451: "美色商城", 452: "诺心蛋糕官网", 453: "简单学习网", 454: "精华在线", 455: "桃花坞", 456: "钻石小鸟官网", 457: "康美健康商城", 458: "佐卡伊官网", 459: "淘书网", 460: "爱之谷", 461: "铁友旅行网", 462: "莆田网", 463: "味多美官网", 464: "林清轩官网", 467: "美国购物网", 468: "品尚汇", 469: "柒牌官方商城", 470: "游多多客栈", 471: "1688平价精选", 472: "优个网", 473: "大朴网", 474: "薇诺娜官网", 475: "蔚蓝图书网", 476: "山脉户外", 477: "何金昌官网", 478: "买茶网", 479: "优e网", 480: "51YOU旅游网", 481: "北发图书网", 482: "晶品网", 483: "华佗药房", 484: "威锋商城", 485: "诺一良品", 486: "和茶网", 487: "天时汇官网", 488: "趣网商城", 489: "蜜柚旅行", 490: "好药师网上药店", 491: "IDX爱定客", 492: "优雅100", 493: "S&S女装", 494: "倩碧美国官网", 495: "华夏e当", 496: "Brooks Brothers", 497: "欧美淘", 498: "印通天下", 499: "哥伦比亚美国官网", 500: "BEST全球购", 501: "New Balance美国官网", 502: "万集客", 503: "Bally英国官网", 504: "一嗨租车", 505: "嘉利成", 506: "多庆屋中文官网", 507: "Forever 21", 508: "摩登大道", 509: "木鸟短租", 510: "最会游", 511: "中原地产", 512: "Bobbi Brown美国官网", 513: "Super-in", 514: "汉购网", 515: "Levis德国官网", 516: "斐乐FILA官方商城", 517: "匡威中国官方商城", 518: "Next美国官网", 519: "iTrip爱去旅行网", 520: "拉手网", 521: "六丰商城", 522: "同仁堂天然淘", 523: "我订花", 524: "Foodi", 525: "中国森林食品网", 526: "香港卓悦化妆品", 527: "维他购", 528: "金海马商城", 529: "亮健好药房", 530: "唱吧直播间", 531: "Oakley美国官网", 532: "逸行网", 533: "Clarks美国官网", 534: "Starwood Hotels", 535: "Marriott万豪美国官网", 536: "Yes Style", 537: "Evisu中文官网", 538: "Life's Easy", 539: "宠宠熊官方商城", 540: "0061澳洲制造", 541: "KK馆全球购", 542: "Style O'Clock", 543: "配夸全球购", 544: "Air France", 545: "Accor Hotels中文官网", 546: "Space.NK", 547: "嗨厨房", 548: "W Concept", 549: "GANT英国官网", 550: "CAT Footwear英国官网", 551: "Saucony英国官网", 552: "造作家居", 553: "小天鹅官方商城", 554: "CAN看尚商城", 555: "时尚日记", 556: "Guess澳大利亚官网", 557: "Etihad Airways", 558: "FIIL商城", 559: "免税易购", 560: "特购社", 561: "Wiggle中文官网", 562: "Melissa香港官网", 563: "科沃斯官方商城", 564: "Calvin Klein", 565: "MEMEBOX美美箱", 566: "Hilton美国官网", 567: "Revolve Clothing", 568: "资生堂美国官网", 569: "娇韵诗美国官网", 570: "Starbucks美国官网", 571: "Ray-Ban美国官网", 572: "Puma美国官网", 573: "Nautica美国官网", 574: "La Mer美国官网", 575: "Kipling美国官网", 576: "Jurlique美国官网", 577: "Hush Puppies", 578: "Origins美国官网", 579: "Folli Follie美国官网", 580: "L'Occitane美国官网", 581: "麦田", 582: "惠普官方商城", 583: "国大地产", 584: "首家商城", 585: "青岛Q房网", 586: "广州家家顺房产网", 587: "杭州豪世华邦房产网", 588: "HealthPost", 589: "房天下", 590: "梦想书城", 591: "海优世纪馆", 592: "扫货特卖", 593: "热拍网", 594: "蚂蚁短租", 595: "银票网", 596: "爱虎保", 597: "Incake官网", 598: "聚星直播", 599: "艺网", 600: "康辉旅行网", 601: "安适购海外商城", 602: "霹雳爸爸海淘平台", 603: "小牛在线", 604: "AHAVA", 605: "Fifth", 606: "The Watch Hut", 607: "BabyHaven中文网", 608: "玫丽网", 609: "Get The Label 中文网", 610: "松屋百货中文网", 611: "Timberland", 612: "Topman", 613: "HomeAway", 614: "Beauty Expert", 615: "海蜜严选", 616: "Mankind", 617: "The Hut", 618: "Topshop", 619: "Mamaladen", 620: "Traveler store", 621: "Travelzoo", 622: "UMI Children's Shoes", 623: "新秀丽美国官网", 624: "Ferrari Store", 625: "Willer Travel", 626: "Unineed", 627: "Acne Studios中文网", 628: "Aeropostale", 629: "Agoda中文站", 630: "Alba Moda", 631: "Allbeauty", 632: "AllSaints", 633: "Allsole", 634: "Urban Outfitters", 635: "Vitabiotics", 636: "Belle Maison", 637: "贝玲妃美国官网", 638: "BH Cosmetics", 639: "美莱新青年", 640: "Vitamin Bay", 641: "Waitrose", 642: "Wolford", 643: "Boohoo", 644: "Boots.com", 645: "British Corner Shop", 646: "宜人贷", 647: "萤石商城", 648: "Coggles.com", 649: "Corset Deal", 650: "COTTON ON", 651: "Crocs英国官网", 652: "CRUISE", 653: "Dell美国官网", 654: "Dermstore", 655: "Disney Store", 656: "Dorothy Perkins", 657: "痘痘康官方商城", 658: "度假客", 659: "Dune London", 660: "Eastbay", 661: "East Dane中文网", 662: "Zaful", 663: "Zavvi", 664: "Feinkeit.de", 665: "eibmarkt", 666: "Belluna中文网", 667: "Emirates阿联酋航", 668: "Eastern Mountain Sports", 669: "ETERNA", 670: "Eurail", 671: "Exante Diet", 672: "Expedia UK", 673: "FALKE", 674: "Famous Footwear", 675: "Bonpont", 676: "Foreo", 677: "网信", 678: "Forever Unique", 679: "Forzieri", 680: "Free Country", 681: "CERRUTI 1881", 682: "French Connection", 683: "Gift land", 684: "Cult Beauty", 685: "Fancy", 686: "Kent&Curwen", 687: "Grow Gorgeous中文网", 688: "KoreanMall中文站", 689: "STYLEBOP.com", 690: "HOTEL INFO", 691: "House of Fraser", 692: "惠租车", 693: "Vitamin Planet", 694: "Wow Mall", 695: "IWOOT", 696: "讲究商城", 697: "YA-MAN", 698: "海保保险", 699: "Juicy Couture", 700: "Kenko", 701: "The jewel hut", 702: "KIKO美国官网", 703: "Lancer Skincare", 704: "LEGO shop", 705: "Moss Bros", 706: "Lord & Taylor", 707: "Stylenanda中文网", 708: "人卫智网", 709: "有道翻译", 710: "Filthy Fragrance", 711: "麦知网", 712: "MatchesFashion", 713: "松本清", 714: "移动商街", 715: "Microsoft Store", 716: "Mio Skincare中文站", 717: "Miss Selfridge", 718: "Mountain Gear", 719: "360好药", 720: "My Bag", 721: "Myprotein", 722: "美骑易购商城", 723: "Myvitamins", 724: "NET-A-PORTER中文网", 725: "New Balance英国官网", 726: "叮当快药", 727: "New Look", 728: "中华会计网校", 729: "必迈官网", 730: "耐克香港官网", 731: "耐克巴西官网", 732: "映客直播", 733: "New York & Company", 734: "Oasis英国官网", 735: "Orbitz", 736: "Orchira", 737: "Origins英国官网", 738: "PetSmart", 739: "君融贷", 740: "哪拍网", 741: "格力官方商城", 742: "ProBikeKit", 743: "Qatar Airways卡塔尔航空", 744: "Radley英国官网", 745: "安联保险", 746: "Ralph Lauren", 747: "Rebecca Minkoff", 748: "优米网", 749: "21Cake", 750: "Rentalcar", 751: "Dr. Pierre Ricaud", 752: "Rockport", 753: "Ruelala", 754: "56人旅游网", 755: "Saks Fifth Avenue OFF 5TH", 756: "安纳塔拉", 757: "SC24.com", 758: "车速递租车", 759: "SHOES.COM", 760: "Spring", 761: "Simply Supplements", 762: "宜和购物", 763: "Farfetch中文网", 764: "Ssense", 765: "Steve Madden", 766: "Free People中文网", 767: "高搜易", 768: "iMomoko中文网", 769: "淘豆", 770: "Michael Kors中文网", 771: "三佳购物", 772: "联金所", 773: "宅豆网", 774: "网易云", 775: "德国药房apo.com中文网", 776: "读秒", 777: "好享商城", 778: "西狗全球购", 779: "玩哪网", 780: "紫马财行", 781: "金猫银猫", 782: "跨境网", 783: "Millennium&Copthorne Hotels中文网", 784: "Reebonz", 785: "薇美铺", 786: "五洲会海购", 787: "惠家有", 788: "Meli Melo中文网", 789: "小财迷", 790: "Ashford中文网", 791: "韩国CJONmart中文网", 792: "益钱网", 793: "THE GRAND中文免税店", 794: "欧迪办公", 795: "天虹网上商城", 796: "以岭健康城", 797: "客路旅行", 1001: "亚马逊第三方", 1003: "京东手机端", 1015: "易迅北京", 1025: "苏宁北京", 1031: "一号店上海", 1032: "中粮我买网华东", 1124: "为为网北京", 1126: "顺丰上海", 2003: "京东微信端", 2015: "易迅广东", 2025: "苏宁广州", 2031: "一号店广东", 2032: "中粮我买华南", 2126: "顺丰广州", 3015: "易迅湖北", 3025: "苏宁成都", 3031: "一号店湖北", 4031: "一号店四川" }; module.exports.getSiteId = function (site) { return siteIdHash[site]; }; module.exports.getSiteName = function (site, siteId) { if (!siteId) siteId = siteIdHash[site]; return siteName[siteId]; }; var passLinks = function passLinks(site, callback) { var pagerParser = __webpack_require__("b80e0015559d9b54ff50"); var id = -1; if (!(id = siteIdHash[site]) || !pagerParser[id]) { return; } var links = pagerParser[id](document); if (!links) { return; } // var sendMessage = function() { // var queue = pyDomain[site] ? 0 : 1 //0: need python // //if (links.length) { // chrome.runtime.sendMessage({ // action: 'pager', // links: Array.prototype.slice.call(links), // args: [ // [id] // ], // url: document.URL, // queue: queue // }) // //} // } if (links.wait) { setTimeout(function () { links = Array.prototype.slice.call(document._links); callback(id, links); }, 5500); } else { callback(id, links); } }; module.exports.init = function (callback) { //$(function() { //document.addEventListener("DOMContentLoaded", function() { for (var key in domains) { if (document.location.hostname.match(key)) { passLinks(domains[key], callback); break; } } //}, false) //}) }; /***/ }), /***/ "60eb72a5b7f6781306c9": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_4_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_popup___ = __webpack_require__("57958d945acd949e1562"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_4_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_popup____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_4_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_popup___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_4_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_popup____default.a); /***/ }), /***/ "61191ae0f0390d21295c": /***/ (function(module, exports, __webpack_require__) { "use strict"; var pako = __webpack_require__("8860e71fb8000a47caf5"); module.exports.gZip = function (str) { return pako.gzip(JSON.stringify(str)); }; module.exports.unGzip = function (str) { return JSON.parse(pako.ungzip(str)); }; /***/ }), /***/ "62316f417955bec94cf4": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, Vue, $) { var _this = this; var request = __webpack_require__("91f250ebeb8d5987491c"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); var PromotionPlan = __webpack_require__("17bd0a8188e0c1f7d7ba")['default']; var load = function load(dpId) { var skuId = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1]; var promo, promoString, text, data, res, el, plan; return regeneratorRuntime.async(function load$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(globalCondition.met('promoGot')); case 2: promo = context$1$0.sent; promoString = promo && promo.origin_promo ? '&origin_promo=' + encodeURIComponent(promo.origin_promo) : ''; text = promo && promo.promo_text ? '&promo_text=' + promo.promo_text : '&promo_text=None'; context$1$0.next = 7; return regeneratorRuntime.awrap(request.get(G.server + ('/extension/PromotionPlan?price=' + G.dp.price + '&dp_id=' + dpId + (skuId ? '&skuId=' + skuId : '') + promoString + text))); case 7: data = context$1$0.sent; res = data.data; el = '#gwd-pp'; if (G.from_device === 'bijiago') { el = '#bjg-pp'; } plan = new Vue({ el: el, render: function render(h) { return h(PromotionPlan, { ref: 'plan', props: { data: res, tag: G.from_device === 'bijiago' ? 10 : 3 } }); } }); $('.dsj-promo-link').hover(function () { plan.$refs.plan.over(); }); case 13: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports = { init: function init() { var dp_id; return regeneratorRuntime.async(function init$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(globalCondition.met('GwdDpIdGot')); case 2: dp_id = context$1$0.sent; load(dp_id); if (G.on) { context$1$0.next = 6; break; } return context$1$0.abrupt('return'); case 6: G.on('skuChange', function (skuId) { load(dp_id, skuId); }); case 7: case 'end': return context$1$0.stop(); } }, null, this); } }; //let text = '&promo_text=none' /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("3deef7cc191860c0adf2")["default"], __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "62487f75eaef2f9d0c30": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <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(); }); } /***/ }), /***/ "62c93a90563418fef620": /***/ (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_GiftMoney_vue_vue_type_template_id_5b302872_scoped_true___ = __webpack_require__("8e6e0c725513ff58325a"); /* 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_GiftMoney_vue_vue_type_template_id_5b302872_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_GiftMoney_vue_vue_type_template_id_5b302872_scoped_true___["b"]; }); /***/ }), /***/ "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(); }); } /***/ }), /***/ "636389e3a752a8309f94": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) {// addCart 添加购物车 checkout 结结算 shipping1 转运 continue1 下一步 creditinfo 信用卡识别 addcredit添加信用卡 promocode 优惠码 chooseCredit 单币双币信用卡 finished 结束 var template = __webpack_require__("274e32dfd54a6b0d18a9"); var utils = __webpack_require__("c96dc211336ad63d6fee"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var Timer = undefined, insTimes = 0; var btnDom = { 'addCart': __webpack_require__("abd6acde42fa294e1e62"), 'checkout': __webpack_require__("2f8dd37a70f60d60581b"), 'shipping1': __webpack_require__("18e8e3ed308157c61508"), 'shipping2': __webpack_require__("f333ae8f44dcbbc0596f"), 'continue1': __webpack_require__("0acb2fc6a638869b1543"), 'continue2': __webpack_require__("2d4b8eb27024a4d711c9"), 'creditinfo': __webpack_require__("1366da12f7e36765c3a2"), 'addcredit': __webpack_require__("aca5814478aabde3586e"), 'promocode': __webpack_require__("1218bc0e0168071cebb8"), 'chooseCredit': __webpack_require__("50ebe9a53ff2f0a58a07"), 'finished': __webpack_require__("69d2748ae719d08ddeb9") }; var parentDom = { 'addCart': '#buybox_feature_div #addToCart .a-button-stack .a-button-input', 'checkout': '#hlb-ptc-btn-native', 'shipping1': '#identity-add-new-address #enterAddressFullNameContainer', 'shipping2': '#identity-add-new-address #enterAddressFullNameContainer', 'continue1': '#shippingOptionFormId .a-spacing-medium .continue-button .a-button-inner', 'continue2': '#order-summary #order-summary-container .continue-buttons .a-button-inner #continue-top', 'creditinfo': '#wrapper-new-cc', 'addcredit': '#wrapper-new-cc', 'promocode': '.pmts-redeem-claim-code-form', 'chooseCredit': '#nav-bar+.a-container .a-spacing-base', 'finished': '#order-summary-box' }; var addDomListener = function addDomListener() { var dom = $('body')[0]; if (!dom) return; var func = function func() { clearTimeout(Timer); Timer = setTimeout(function () { insTimes++; if (insTimes === 45) { dom.removeEventListener('DOMSubtreeModified', func, false); return; } matchUrl(); }, 2000); }; if (dom.addEventListener) { dom.addEventListener('DOMSubtreeModified', func, false); } }; var insertDom = function insertDom(type, pos) { if ($('.gwd_' + type).length > 0) return; log('haitao_remind_' + type); var html = btnDom[type]; if (pos == 'after') $(parentDom[type]).eq(0).after(template.compile(html)({ c_server: G.c_server, s_server: G.s_server }));else if (pos == 'append') $(parentDom[type]).eq(0).append(template.compile(html)({ c_server: G.c_server, s_server: G.s_server })); }; var addEvent = function addEvent() { $('.bjd_btn_box .bjd_close').on('click', function () { $('.bjd_btn_box').hide(); utils.settings('set_hide_shoptip', 'hide_shoptip', '1'); return false; }); }; var matchUrl = function matchUrl() { if (G.pageInfo.type == 2) { insertDom('addCart', 'after'); } else if ($('#hlb-ptc-btn-native').length > 0) insertDom('checkout', 'after');else if ($('#identity-add-new-address').length > 0) { insertDom('shipping1', 'append'); } else if ($('#shippingOptionFormId .a-spacing-medium .continue-button .a-button-inner').length > 0) { insertDom('continue1', 'append'); $('#shippingOptionFormId .a-spacing-medium .continue-button .a-button-inner .a-button-text').on('click', function () { setTimeout(function () { if ($('#wrapper-new-cc').length > 0) { insertDom('creditinfo', 'append'); insertDom('addcredit', 'append'); insertDom('chooseCredit', 'append'); } }, 1500); }); } else if ($('#continue-top').length > 0) { insertDom('continue2', 'after'); if ($('#wrapper-new-cc').length > 0) { insertDom('creditinfo', 'append'); insertDom('addcredit', 'append'); insertDom('chooseCredit', 'append'); $('#order-summary-container #continue-top').on('click', function () { setTimeout(function () { insertDom('promocode', 'append'); insertDom('finished', 'append'); $('#order-summary-box .a-button-text.place-your-order-button').on('click', function () { log('haitao_remind_finishordersuccess'); }); }, 1000); }); } } else if ($('.pmts-redeem-claim-code-form').length > 0) { insertDom('promocode', 'append'); insertDom('finished', 'append'); $('#order-summary-box .a-button-text.place-your-order-button').on('click', function () { log('haitao_remind_finishordersuccess'); }); } else if ($('#order-summary-box .a-button-text.place-your-order-button').length > 0) { insertDom('promocode', 'append'); insertDom('finished', 'append'); $('#order-summary-box .a-button-text.place-your-order-button').on('click', function () { log('haitao_remind_finishordersuccess'); }); } if ($('#wrapper-new-cc').length > 0) { insertDom('creditinfo', 'append'); insertDom('addcredit', 'append'); insertDom('chooseCredit', 'append'); } if ($('#ccAddCard').length) $('#ccAddCard').on('click', function () { setTimeout(function () { insertDom('creditinfo', 'append'); insertDom('addcredit', 'append'); insertDom('chooseCredit', 'append'); }, 1500); }); addEvent(); }; module.exports.init = function (type) { if (G.IE6 || G.IE7 || G.IE8) return; if (location.host.indexOf('amazon') > -1 && location.host != 'www.amazon.cn') { if (location.host.indexOf('.co.jp') > -1) { $('html').addClass('amazon-jp'); } if (location.host.indexOf('.de') > -1) { return; // $('html').addClass('amazon-de') } if (type === 2) { $(document).on('runhaitao', function () { matchUrl(); addDomListener(); }); } else { setTimeout(function () { matchUrl(); addDomListener(); }, 1500); } } else { return; } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "6524c6395176cac4885b": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("04dcccd8601de1b226fb"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("4a9787eb", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QRLinkContact.vue?vue&type=style&index=0&id=9a793014&scoped=true&lang=less&", function() { var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QRLinkContact.vue?vue&type=style&index=0&id=9a793014&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "657bad1e7f3b602f7d70": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G) { var _this = this; var cnzz = __webpack_require__("83271c7588396d2d5e59"); var QRCode = __webpack_require__("22c6d528618fc14b5d1c"); /**获取二维码 * * @param obj * @param url * @param callback * @param useOriTitle 使用原始标题 * @param noReplace 直接生成二维码,不请求接口 */ module.exports = function callee$0$0(obj, url, callback) { var useOriTitle = arguments.length <= 3 || arguments[3] === undefined ? false : arguments[3]; var noReplace = arguments.length <= 4 || arguments[4] === undefined ? false : arguments[4]; var id; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: obj.couponUrl = url; if (obj.title.length === 0 && !useOriTitle) { obj.title = 'x'; } id = obj.id; obj = JSON.stringify(obj); // let xml = new XMLHttpRequest() // xml.open('POST', `${G.server}/extension/CouponQrCode?w=150`) // xml.addEventListener('load', function() { // try { // let data = JSON.parse(xml.response); // callback(data) // } catch (e) {} // }) // xml.send(obj); if (!noReplace) { context$1$0.next = 7; break; } QRCode.toDataURL(url, { errorCorrectionLevel: 'L' }, function (err, url) { if (err) { //require('common/extConsole').error(err) return; } callback([{ imgSrc: url }]); }); return context$1$0.abrupt('return'); case 7: if (!(G.ss_name === 'priceDog' && G.aliSite)) { context$1$0.next = 10; break; } __webpack_require__("91f250ebeb8d5987491c").get(G.u_server + '/helper/promoQrcode?event=wx_coupon&dp_id=' + id).then(function (res) { if (res.code === 1 && res.data && res.data.qrImgStr) { callback([{ imgSrc: res.data.qrImgStr }]); } else { callback([{ etag: 0 }]); } }); return context$1$0.abrupt('return'); case 10: __webpack_require__("91f250ebeb8d5987491c").post(G.server + '/extension/CouponQrCode?w=150&from_device=' + G.from_device + '&rand=' + parseInt(Math.random() * 1000), obj, false, false).then(function (data) { try { data = JSON.parse(data); callback(data); } catch (e) { callback(data); //require('common/extConsole').error(e) } }); cnzz.log("实时抓取发送请求"); case 12: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "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, $) { 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 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': ['#price_feature_div', '#unifiedPrice_feature_div', '#tmmSwatches'], 'position': 'after' }, 'www.amazon.co.jp': { 'coun': 'jp', 'dom': ['#price_feature_div', '#unifiedPrice_feature_div'], 'position': 'after' }, 'www.amazon.fr': { 'coun': 'fr', 'dom': ['#price_feature_div', '#unifiedPrice_feature_div'], 'position': 'after' }, 'www.amazon.de': { 'coun': 'uk', 'dom': ['#price_feature_div', '#unifiedPrice_feature_div'], 'position': 'after' }, 'www.amazon.co.uk': { 'coun': 'uk', 'dom': ['#price_feature_div', '#unifiedPrice_feature_div'], 'position': 'after' }, 'www.amazon.ca': { 'coun': 'uk', 'dom': ['#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__("2fcb34d56f979fea4637"); $('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; for (var 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_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__("44ec1a43cd1da4b91bfd"); var t = template.compile(html)({}); switch (sitePattern[host]['position']) { case 'before': $(dom).before(t); break; case 'after': $(dom).after(t); break; } addCommonEvent(); }; 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 () { var permanent = userData.get('permanent'); if (permanent.sethaitao === "0") return; __webpack_require__("fb2d125acf2943378dcc"); var pattern = getContainer(); getCountry(); if (!pattern) return; renderMini(pattern); getSelect(); render_size_detail(); insertSize(clothesDict['shangyi'][country]['man'][0], clothesDict['shangyi'][country]['man'][1]); addSizeEvent(); setTimeout(function () { // check_favor() }, 1000); }; 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"))) /***/ }), /***/ "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 /***/ }), /***/ "67c216e7f5f4a9735e12": /***/ (function(module, exports) { module.exports = "<div class=\"price_tip_detail {{if isAliSite}} alitip{{/if}} {{if nostore}} nostoretip {{/if}}\">\n <div class=\"tip-box-left\">\n <div class=\"tip-title\">最近180天价格历史</div>\n <div class=\"tip-price-status status{{data.trend.store[0].price_status}}\">\n <em class=\"tip-bg\"></em>\n <span>{{data.trend.store[0].status_tle}}</span>\n </div>\n <div class=\"highest-lowest-box\">\n {{if data.trend.store[0].nowprice}}\n <span class=\"tip-now-btn\" style=\"color: #3fc0f0\">现价:<span class=\"fontSizec\" style=\"color: #3fc0f0\">{{data.trend.store[0].nowprice}}</span></span>\n {{else}}\n <span class=\"tip-highest-btn\">最高:<span class=\"fontSizec\">{{data.trend.store[0].max_price}}</span></span>\n <span class=\"tip-lowest-btn\">最低:<span class=\"fontSizec\">{{data.trend.store[0].min_price}}</span></span>\n {{/if}}\n <span class=\"tip-lowest-time fontSizec\">{{lowestTime}}</span>\n </div>\n <div class=\"tip-chart\" id=\"gwd_price_tip_trend\"></div>\n {{if !isAliSite}}\n <div class=\"tip-info-btm\">\n <a class=\"tip-info-store\">\n <em class=\"tip-bg\"></em>\n <span>{{data.site_name}}</span>\n </a>\n {{if isGwd && site === '360buy'}}\n {{each data.more}}\n <a href=\"{{$value.url}}\" class=\"tip-info-promo\">\n <em class=\"tip-bg\"></em>\n <span>{{$value.title}}</span>\n </a>\n {{/each}}\n {{/if}}\n </div>\n {{/if}}\n </div>\n {{if !isAliSite && !nostore}}\n <div class=\"tip-box-right\">\n <p>商城比价</p>\n <ul>\n {{each data.store}}\n <li>\n <a href=\"{{$value.url}}\" class=\"tip-com-item\" target=\"_blank\">\n <img src=\"{{$value.icon_url}}\" alt=\"{{$value.site_name}}\" title=\"{{$value.site_name}}\">\n <span class=\"fontSizec\">{{$value.price}}</span>\n </a>\n </li>\n {{/each}}\n </ul>\n {{if isGwd}}\n <a class=\"tip-com-all\" href=\"{{data.more_link}}\" target=\"_blank\">{{data.more_tle}}</a>\n {{/if}}\n </div>\n {{/if}}\n <style type=\"text/css\">\n .tip-bg {\n background: url(\"https://cdn.gwdang.com/images/extensions/xbt/mini-icon.png\") 0px 0px no-repeat;\n }\n .price_tip_detail {\n height: 238px;\n }\n .price_tip_detail.alitip {\n height: 218px;\n }\n #gwd_price_tip_detail, #gwd_price_tip_detail * {\n font-family: \"Microsoft YaHei\";\n box-sizing: content-box;\n }\n #bjgou_price_tip_detail, #bjgou_price_tip_detail * {\n font-family: \"Microsoft YaHei\";\n box-sizing: content-box;\n }\n .tip-box-left {\n float: left;\n width: 336px;\n height: 100%;\n margin-left: 6px;\n margin-right: 5px;\n position: relative;\n }\n .nostoretip .tip-box-left{\n margin-left: 17px;\n margin-right: 17px;\n }\n #gwd_price_tip_detail .fontSizec {\n font-family: Helvetica;\n }\n #bjgou_price_tip_detail .fontSizec {\n font-family: Helvetica;\n }\n .tip-title {\n height: 15px;\n line-height: 15px;\n margin-top: 14px;\n margin-bottom: 13px;\n text-align: center;\n width: 100%;\n font-weight: bold;\n float: left;\n font-size: 12px;\n color: #5E707C;\n }\n .tip-price-status {\n float: left;\n width: 70px;\n height: 16px;\n margin-left: 8px;\n }\n .tip-price-status em {\n width: 16px;\n height: 10px;\n float: left;\n margin-top: 3px;\n }\n .tip-price-status span {\n float: left;\n margin-left: 5px;\n width: 48px;\n height: 16px;\n color: #5E707C;\n font-size: 12px;\n line-height: 16px;\n }\n .tip-highest-btn, .tip-now-btn {\n color: #E4393C;\n font-weight: bold;\n margin-left: 14px;\n margin-right: 10px;\n }\n .highest-lowest-box .tip-now-btn {\n color: #3FC0F0;\n margin-right: 0px;\n }\n .tip-lowest-btn {\n color: #35bd67;\n font-weight: bold;\n }\n .tip-lowest-time {\n font-size: 12px;\n color: #9D9D9D;\n float: left;\n line-height: 18px!important;\n margin-left: 2px;\n }\n .highest-lowest-box {\n float: left;\n height: 16px;\n line-height: 16px;\n width: 254px;\n }\n .highest-lowest-box>span {\n float: left;\n line-height: 16px;\n font-size: 12px;\n }\n .tip-info-btm {\n font-size: 12px;\n float: left;\n height: 16px;\n width: 324px;\n line-height: 16px;\n margin-top: 10px;\n }\n .tip-info-btm a {\n float: left;\n }\n .tip-info-btm span {\n float: left;\n }\n .tip-info-store {\n cursor: default!important;\n }\n .tip-info-store em {\n width: 10px;\n height: 10px;\n float: left;\n margin-left: 31px;\n margin-right: 5px;\n margin-top: 5px!important;\n background-position: -39px -23px;\n }\n a.tip-info-store span{\n color: #5E707C;\n }\n .tip-info-promo em {\n width: 12px;\n height: 12px;\n float: left;\n margin-left: 24px;\n margin-right: 5px;\n background-position: -25px -22px;\n }\n .tip-info-promo span{\n color: #48BEFE;\n }\n .tip-info-promo span:hover {\n text-decoration: underline;\n }\n .tip-info-btm em {\n margin-top: 3px;\n }\n .tip-box-right {\n float: left;\n width: 111px;\n height: 100%;\n border-left: 1px solid #F4F7F9;\n }\n .tip-box-right ul {\n float: left;\n margin: 0px;\n margin-top: 12px;\n padding: 0px;\n }\n .tip-box-right ul li {\n height: 30px;\n width: 113px;\n float: left;\n line-height: 30px;\n list-style: none;\n margin-top: 1px;\n }\n .tip-box-right ul li:first-child {\n margin-top: 0px;\n }\n .tip-box-right ul li:hover {\n background: #EDF5F8;\n }\n #gwd_price_tip_detail .tip-com-all, #bjgou_price_tip_detail .tip-com-all {\n float: left;\n margin-left: 15px;\n margin-top: 16px;\n color: #6B8393;\n line-height: 13px;\n height: 13px;\n font-size: 12px;\n }\n #gwd_price_tip_detail .tip-com-all:hover, #bjgou_price_tip_detail .tip-com-all:hover{\n color: #48BEFE;\n }\n .tip-box-right p{\n font-size: 12px;\n color: #5E707C;\n font-weight: bold;\n height: 15px;\n width: 100%;\n text-align: center;\n line-height: 15px;\n margin: 0px;\n margin-top: 14px;\n }\n .tip-com-item {\n float: left;\n height: 30px;\n width: 100%;\n line-height: 30px;\n }\n .tip-com-item img {\n height: 16px;\n width: 16px;\n float: left;\n margin-left: 15px;\n margin-right: 7px;\n margin-top: 7px;\n }\n .tip-com-item span{\n font-size: 12px;\n color: #6B8393;\n }\n .tip-com-item, .tip-com-item span, .tip-com-all {\n text-decoration: none!important;\n }\n .tip-chart {\n width: 336px;\n height: 126px;\n margin-top: 6px;\n }\n .tip-chart svg .highcharts-series path {\n fill: none;\n }\n .tip-chart .highcharts-tooltip path {\n fill: white;\n }\n </style>\n {{if !isGwd}}\n <style>\n .price_tip_detail {\n height: 220px;\n }\n\n .tip-price-status em {\n background-size: contain!important;\n background-repeat: no-repeat!important;\n }\n\n .tip-price-status.status-1 em {\n background: url(https://cdn.bijiago.com/images/extensions/bijiago/[email protected]);\n }\n .tip-price-status.status-2 em {\n background: url(https://cdn.bijiago.com/images/extensions/bijiago/[email protected]);\n }\n .tip-price-status.status0 em {\n background: url(https://cdn.bijiago.com/images/extensions/bijiago/[email protected]);\n }\n .tip-price-status.status1 em {\n background: url(https://cdn.bijiago.com/images/extensions/bijiago/[email protected]);\n }\n </style>\n {{else}}\n <style>\n .tip-price-status.status-1 em {\n background-position: -5px -5px;\n }\n .tip-price-status.status-2 em {\n background-position: -71px -5px;\n }\n .tip-price-status.status0 em {\n background-position: -49px -5px;\n }\n .tip-price-status.status1 em {\n background-position: -26px -5px;\n }\n </style>\n {{/if}}\n</div>" /***/ }), /***/ "67e7ec3ad30622808c87": /***/ (function(module, exports) { module.exports = "<a href=\"{{ link }}\"\n target=\"_blank\"\n style=\"display: inline-flex; position: relative; vertical-align: middle;\" class=\"gwd-middle-tmall {{extClass}}\">\n <img src=\"https://cdn.gwdang.com/images/extensions/activity/[email protected]\" 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'\">{{ text }}</span>\n</a>\n<style>\n .gwd-middle-tmall {\n height: 100%;\n align-items: center;\n justify-content: center;\n justify-items: center;\n width: 150px!important;\n }\n\n .gwd-middle-tmall:hover {\n background: #fff3eb;\n }\n\n .gwd-qr-act {\n display: none;\n flex-direction: column;\n position: absolute;\n width: 144px;\n height: 167px;\n box-sizing: border-box;\n border: 1px solid #ff471a;\n background: #fff9f6;\n top: 37px;\n left: 50%;\n align-items: center;\n margin-left: -72px;\n z-index: 99;\n }\n\n .gwd-middle-tmall:hover .gwd-qr-act {\n display: flex;\n }\n</style>" /***/ }), /***/ "6868b03b94b90a856624": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function (time, type) { // 1: xxxx-xx-xx 2.xx-xx 3.xx.xx 4. xxxx.xx.xx var dateObj = new Date(time); var y = dateObj.getFullYear(); var m = dateObj.getMonth() + 1; var d = dateObj.getDate(); var h = dateObj.getHours(); var mi = dateObj.getMinutes(); var ss = dateObj.getSeconds(); if (m < 10) m = '0' + m; if (d < 10) d = '0' + d; if (ss < 10) ss = '0' + ss; if (mi < 10) mi = '0' + mi; if (h < 10) h = '0' + h; var str = ''; switch (type) { case "1": str = y + '-' + m + '-' + d; break; case "2": str = m + '-' + d; break; case "3": str = m + '.' + d; break; case "4": str = y + '.' + m + '.' + d; break; case "5": str = y + '/' + m + '/' + d; break; case "6": str = y + '/' + m + '/' + d + '/' + h + ':' + mi + ':' + ss; break; case "7": str = y + '-' + m + '-' + d + ' ' + h + ':' + mi + ':' + ss; break; default: str = '(' + y + '.' + m + '.' + d + ')'; } return str; }; /***/ }), /***/ "6973d6984a148bf8a638": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var util = __webpack_require__("d54879e983a83d07f093"); var lowestIndex = undefined, showFold = undefined; module.exports.init = function (data, nop_data, store, img) { render(data, nop_data, store, img); }; var editData = function editData(originData, nop_data, store) { if (!originData) return undefined; var data = JSON.parse(JSON.stringify(originData)); var lowestp = store[0].lowest; var storesize = store[0].all_line.length; if (storesize > 180) { var all_line2 = store[0].all_line.slice(storesize - 180); lowestp = Math.min.apply(null, all_line2); } nop_data = nop_data || []; var datal = data.length; if (!datal) return undefined; var lowest = data[datal - 1].price, lowIndex = datal - 1; for (var i = datal - 1; i >= 0; i--) { for (var j = 0; j < nop_data.length; j++) { if (data[i].time === nop_data[j].time) { if (data[i].price === nop_data[j].price) { data[i] = JSON.parse(JSON.stringify(nop_data[j])); data[i].isDSJ = true; } else { data.splice(i + 1, 0, JSON.parse(JSON.stringify(nop_data[j]))); data[i + 1].isDSJ = true; } } } } for (var i = 0; i < data.length; i++) { if (data[i].price <= lowest) { lowest = data[i].price; lowIndex = i; } if (data[i].msg.coupon) { var str = data[i].msg.coupon; if (str.match(/\d+-\d+/)) { var arr = str.split('-'); data[i].coupon = '券: ' + '满' + arr[0] + '减' + arr[1]; } else { data[i].coupon = '券: ' + data[i].msg.coupon; } } if (data[i].msg.promotion) { data[i].promotion = '促: ' + data[i].msg.promotion; } var time = data[i].time * 1000; var month = new Date(time).getMonth() + 1; var day = new Date(time).getDate(); if (month < 10) { month = '0' + month.toString(); } if (day < 10) day = '0' + day.toString(); data[i].time2 = month + '-' + day; // data[i].price = (data[i].price / 100).toFixed(2) // data[i].ori_price = (data[i].ori_price / 100).toFixed(2) } if (lowest / 100 < lowestp) { data[lowIndex].isLowest = true; } data.sort(function (v1, v2) { return v2.time - v1.time; }); var lowIndex2 = undefined; for (var i = 0; i < data.length; i++) { if (data[i].isLowest) { lowIndex2 = i; data[i].mark = "lowest_now"; } if (!lowIndex2 && lowIndex2 !== 0) { data[i].mark = "lowest_before"; } else if (i > lowIndex2) { data[i].mark = "lowest_after"; } } lowestIndex = lowIndex2; var timestr = util.getTimeNumber(new Date().getTime(), '2'); if (timestr === data[0].time2) { data[0].isnowDay = true; } return data; }; module.exports.editData = editData; var addEvent = function addEvent() { $('.show_fold .fold-bar').on('click', function () { $('.history-content').removeClass('show_fold'); showFold = false; calLineHeight(); }); }; var render = function render(originData, nop_data, store, img) { var data = editData(originData, nop_data, store); if (data.length > 3 && lowestIndex > 1) { showFold = true; } var html = __webpack_require__("e3646735df96d3e01927"); $('#mini_price_history_detail').append(template.compile(html)({ data: data, showFold: showFold, img: img })); addEvent(); }; var calLineHeight = function calLineHeight() { setTimeout(function () { var mH = 0; var doms = $('.history-content>ul li'); for (var i = 0; i < doms.length - 1; i++) { var h = doms.eq(i).height(); if (h > 0 && doms.eq(i).is(':visible')) { mH = mH + h + 22; } } if (showFold) { mH += 32; } $('.history-line').css('height', mH + 'px'); var firstH = $('.history-content>ul li').eq(0).outerHeight() + 26; $('.show_fold .fold-bar').css('top', firstH + 'px'); }, 10); }; module.exports.calLineHeight = calLineHeight; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "697c3c62b588ebd6f1b3": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); module.exports.ready = function () { var arr = ['www.amazon.com', 'www.amazon.de', 'www.amazon.co.jp']; if (arr.indexOf(location.host) == -1) return; var info = { 'name': G.dp.name || '', 'price': G.dp.oldPrice || '0' }; communicate.trigger({ type: 'getAmazonPriceTrend', 'info': JSON.stringify(info) }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "69afa85b8d7929dd88c5": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, regeneratorRuntime) { var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var request = __webpack_require__("91f250ebeb8d5987491c"); var md5 = __webpack_require__("15199e08e6193aeacfa0"); var host = 'i.gwdang.com'; var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var test = { code: 1 }; var getUserToken = function getUserToken() { var resolved = false; return new Promise(function (resolve) { communicate.trigger({ type: 'checkUserToken' }); communicate.on(function (data) { if (typeof data === 'string') { data = JSON.parse(data); } if (data.type === 'checkUserToken') { resolved = true; resolve(data.value); } }); }); }; var signParams = function signParams(params) { var query = Object.keys(params).sort(function (a, b) { return a.localeCompare(b); }).map(function (x) { return x + params[x]; }).join(''); var res = md5(md5(query) + params.ac); return res; }; var post = function post(url, params, data) { if (!data.price) { data.price = ''; } params.platform = 'ext'; params.t = parseInt(new Date().getTime() / 1000); var toSign = _extends({}, params, data, { ac: url.toLowerCase().replace('/', '').replace(/\//g, '.') }); params.sign = signParams(toSign); console.log('sign', params.sign); var query = Object.keys(params).map(function (x) { return x + '=' + encodeURIComponent(params[x]); }).join('&'); return request.post('https://' + host + url + '?' + query, data, true, true); }; function requestXHR(url, callback, referer) { var xmlhttp = new XMLHttpRequest(); xmlhttp.addEventListener('load', function () { callback(xmlhttp.responseText); }); xmlhttp.withCredentials = true; xmlhttp.open("GET", url, true); // if (referer) { // xmlhttp.setRequestHeader('x-referer', referer) // } xmlhttp.send(); }; var get = function get(url, params) { params.platform = 'ext'; if (!params.t) { params.t = parseInt(new Date().getTime() / 1000); } // let cb = 'cb' + parseInt(Math.random() * 10000) // if (!G.allowBackgroundRequest) { // params.callback = cb // } params.sign = signParams(_extends({}, params, { ac: url.toLowerCase().replace('/', '').replace(/\//g, '.') })); var query = Object.keys(params).map(function (x) { return x + '=' + encodeURIComponent(params[x]); }).join('&'); if (G.allowBackgroundRequest && G.canUseLocalLoginCheck) { return request.rawGet('https://' + host + url + '?' + query); } else { return new Promise(function (resolve) { var cancel = true; requestXHR('https://' + host + url + '?' + query, function (res) { cancel = false; try { var r = JSON.parse(res); resolve(r); } catch (e) { resolve(res); } }); setTimeout(function () { if (cancel) { resolve({ code: 0 }); } }, 4000); // $.get(`https://${host}${url}?${query}`).then(res => { // try { // let r = JSON.parse(res) // resolve(r) // } catch (e) { // resolve(res) // } // }) // $.ajax({ // url: `https://${host}${url}?${query}`, // dataType: 'jsonp', // jsonp: '', // jsonpCallback: cb, // success: function(data){ // resolve(data) // } // }); }); } }; var getQueryString = function getQueryString(url, params) { params.platform = 'ext'; params.t = parseInt(new Date().getTime() / 1000); params.sign = signParams(_extends({}, params, { ac: url.toLowerCase().replace('/', '').replace(/\//g, '.') })); var query = Object.keys(params).map(function (x) { return x + '=' + encodeURIComponent(params[x]); }).join('&'); return 'https://' + host + url + '?' + query; }; var current = null; var currentCollectId = null; var getDetail = function getDetail(dp_id) { return new Promise(function (resolve, reject) { if (!G.productChecked || !G.productChecked.collected) { resolve({}); return; } if (current) { resolve(current); } else { get('/UserCollection/Detail', { dp_id: dp_id }).then(function (res) { try { if (typeof res === 'string') { res = JSON.parse(res); } current = res; resolve(res); } catch (e) { resolve({}); } }); } }); }; module.exports = { /** * 登录(不可用) * @param username * @param password * @param remember * @returns {*} */ login: function login(username, password, remember) { return post('/User/Login', {}, { account: username, passwd: password, remember_me: remember }); }, /** * 退出登录(不可用) */ logout: function logout() { return get('/User/Logout', {}); }, /** * 发送短信 * @param {string} phone - 电话号码 * @returns Promise */ sendSms: function sendSms(phone) { return post('/UserHelper/SmsCode', {}, { phone: phone, tag: 'login' }); }, /** * 检查某个商品是否被收藏 * @param dp_id * @returns {*} */ checked: function checked(dp_id) { var token; return regeneratorRuntime.async(function checked$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!G.canUseLocalLoginCheck) { context$1$0.next = 6; break; } context$1$0.next = 3; return regeneratorRuntime.awrap(getUserToken()); case 3: token = context$1$0.sent; if (token) { context$1$0.next = 6; break; } return context$1$0.abrupt('return', new Promise(function (resolve) { return resolve({ code: 0 }); })); case 6: return context$1$0.abrupt('return', get('/UserCollection/Checked', { dp_id: dp_id })); case 7: case 'end': return context$1$0.stop(); } }, null, this); }, /** * 收藏详情 * @param dp_id */ detail: function detail(dp_id) { return getDetail(dp_id); }, /** * 获取收藏列表 * @param tab * @param pg * @param ps * @returns {*} */ getList: function getList(tab, pg) { if (tab === undefined) tab = 'default'; var ps = arguments.length <= 2 || arguments[2] === undefined ? 30 : arguments[2]; return get('/UserCollection/List', { ps: ps, tab: tab }); }, /** * 添加商品收藏 * @param settingPrice * @param type * @returns {*} */ add: function add(settingPrice, type) { var price, oinfo; return regeneratorRuntime.async(function add$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!(current && current.data)) { context$1$0.next = 2; break; } return context$1$0.abrupt('return', post('/UserCollection/Modify', {}, { collection_id: current.data.id, notifier_site: type, notifier_threshold: settingPrice })); case 2: price = G.dp.price; if (G.dp.storeInfo && G.dp.storeInfo.length) { if (G.dp.storeInfo[0].currency) { price = G.dp.oldPrice; } } oinfo = userData.get('other_info'); if (!price) { if (oinfo && oinfo['code-server'] && oinfo['code-server']['price']) { price = oinfo['code-server']['price']; } } if (price) { context$1$0.next = 10; break; } context$1$0.next = 9; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('NowPrice')); case 9: price = context$1$0.sent; case 10: return context$1$0.abrupt('return', new Promise(function (resolve) { post('/UserCollection/Add', {}, { dp_id: G.dp.dpId, title: G.dp.name ? G.dp.name : document.title, url: location.href, img: G.dp.img ? G.dp.img : '', price: price, promo_price: G.dp.promoPrice ? G.dp.promoPrice : 0, notifier_site: type, notifier_threshold: settingPrice }).then(function (res) { if (typeof res === 'string') { res = JSON.parse(res); } if (res.data) { current = res; } resolve(res); }); })); case 11: case 'end': return context$1$0.stop(); } }, null, this); }, /** * 删除商品收藏 * @param id * @returns {*} */ 'delete': function _delete() { var collectionId = arguments.length <= 0 || arguments[0] === undefined ? null : arguments[0]; var id = collectionId ? collectionId : current && current.data ? current.data.id : ''; return post('/UserCollection/Delete', {}, { collection_ids: id }); }, clearCurrent: function clearCurrent() { current = null; }, checkLoginStatus: function checkLoginStatus() { return post('/User/Detail', {}, {}); }, /** * 降价数量 * @param time */ checkFavor: function checkFavor(time) { return get('/UserCollection/Tip', { t: time / 1000 }); }, getQueryString: getQueryString }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "69b83ab67396df893d0b": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Normal_vue_vue_type_template_id_7cd833d3_scoped_true___ = __webpack_require__("d41b35f7ee52d5e46ec1"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Normal_vue_vue_type_script_lang_js___ = __webpack_require__("216fab13e1b023587a5c"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__Normal_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__Normal_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Normal_vue_vue_type_style_index_0_id_7cd833d3_scoped_true_lang_less___ = __webpack_require__("7ba4684358f88bfd7a47"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__Normal_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__Normal_vue_vue_type_template_id_7cd833d3_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__Normal_vue_vue_type_template_id_7cd833d3_scoped_true___["b" /* staticRenderFns */], false, null, "7cd833d3", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('7cd833d3')) { api.createRecord('7cd833d3', component.options) } else { api.reload('7cd833d3', component.options) } module.hot.accept("./Normal.vue?vue&type=template&id=7cd833d3&scoped=true&", function () { api.rerender('7cd833d3', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/PromoHistory/Normal.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "69d21005bc806483bd7c": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("e336c6dc5eff4f6bee7a"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("1e70da56", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./MemberCouponMini.vue?vue&type=style&index=0&id=42d39176&scoped=true&lang=less&", function() { var newContent = require("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./MemberCouponMini.vue?vue&type=style&index=0&id=42d39176&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "69d2748ae719d08ddeb9": /***/ (function(module, exports) { module.exports = "<div class=\"gwd_finished bjd_btn_box\">\n <a href=\"{{c_server}}\" target=\"_blank\" title=\"购物党\"></a>\n <span class=\"bjd_addcart\">点此完成订单</span>\n <span class=\"bjd_close\"></span>\n</div>\n<style type=\"text/css\">\n .gwd_finished {\n width: 190px;\n height: 36px;\n background-color: #fff;\n color: #494b4d;\n position: absolute;\n left: -228px;\n top: -32px;\n text-align: center;\n line-height: 35px;\n border-bottom-left-radius: 28px;\n border-top-left-radius: 28px;\n font-size: 14px;\n border: 1px solid #47befe;\n font-family: 'Microsoft Yahei';\n }\n .gwd_finished a, .gwd_finished span {\n float: left;\n margin-left: 19px;\n }\n .gwd_finished .bjd_addcart {\n cursor: text;\n }\n .gwd_finished a {\n background: url('{{s_server}}/images/extensions/haitao_siteicon.png') 0px 6px no-repeat;\n background-size: 24px 22px;\n height: 35px;\n width: 26px;\n }\n .bjd_close {\n background: url('{{s_server}}/images/extensions/haitao_closeicon.png') 0px 0px no-repeat;\n width: 20px;\n height: 20px;\n margin-top: 12px;\n cursor: pointer;\n background-size: 12px 12px;\n }\n .gwd_finished:before{\n border: 18px solid transparent;\n border-left-color: #47befe;\n content: \"\";\n position: absolute;\n left: 188px;\n width: 0px;\n height: 0px;\n top: -1px;\n }\n .gwd_finished:after{\n border: 17px solid transparent;\n border-left-color: #fff;\n content: \"\";\n position: absolute;\n left: 188px;\n width: 0px;\n height: 0px;\n top: 0px;\n }\n #order-summary-box{\n overflow: visible;\n }\n </style>" /***/ }), /***/ "6a6d60b5e4dc52d8b1ea": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {//添加基本的参数配置和函数 __webpack_require__("caeb48377dbdbfe42966"); G.extend({ crc64: true, union: "union_gwdang", show_tip: 1, show_wishlist: 1, show_guess: 1, show_mainbar: 1, show_promo: 1, set_force: false, default_style: 'top', ut: '&trans=1', from_device: '360server', extBrand: 'gwd', extName: 'gwdang', go_union: 'http://u.gwdang.com/union/go', p_id: '', is_open: 0, position: 0, style: '', notice: 0, first: 0, fold: 0, p_fold: 0, pop_share: 1, email: '', subsite_id: '', force: [], on_building: true, built_counter: 0, collectionChanged: true, gwd_browser_type: 1, gwd_cnzz: location.protocol + '//s11.cnzz.com/z_stat.php?id=1256793290&web_id=1256793290', is_site_page: null, href: window.location ? window.location.href : '', collectInfo: { dp_id: "", title: "", site_id: 0, url: "", img: "", price: "", comment: "" }, now_dp_id: '', where_buy_dps: '', width: document.documentElement.clientWidth > 0 ? document.documentElement.clientWidth : document.body.clientWidth, timer: null, timer2: null, timer3: null, timer4: null, timer5: null, //fix suning timer5_mutex: true, //mutex height: 0, scrollTop: 0, page_size: 6, page_size_mini: 4, page_now: { b2c: 1, taobao: 1, tmall: 1, also_buy: 1, promotion: 1, b2c_fuzzy: 1 }, page_total: { b2c: 1, taobao: 1, tmall: 1, also_buy: 1, promotion: 1, b2c_fuzzy: 1 }, total_num: { b2c: 6, taobao: 6, tmall: 6, also_buy: 6, promotion: 6, b2c_fuzzy: 6 }, module_name: ["b2c", "taobao", "tmall", "also_buy", "promotion", "b2c_fuzzy"], dpIsBook: false, hiddenFavorButton: false, save_tbres_data: null, save_promo_len: 0, save_price_trend_data: null, save_promo_data: null, topResizeTimer: null, bottomResizeTimer: null }); var ua = navigator.userAgent; if (ua.indexOf('Firefox') > -1) { G.gwd_cnzz = ''; } /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "6b5f3f4c7b5f37c1088e": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $, regeneratorRuntime) { var _this = this; var template = __webpack_require__("274e32dfd54a6b0d18a9"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var log = __webpack_require__("03dd60018ce5ed1344a1"); //嵌入位置设置 var sitePattern = { 'ymatou': ['.price-panel'], 'hihonor': ['.product-price'], 'amazon': ['#price_feature_div', '#unifiedPrice_feature_div'], 'vmall': ['.product-info .product-info-list', '.pro-right .pro-meta-area', '.pro-price'], 'yougou': ['#ygprice_area'], 'gome': ['.prdprice', '#bargain', '.prd-price-1'], 'vipshop': ['.pi-price-box'], '360buy': ['#summary-price', '.summary-price', '#surplus-time', '#product-intro #price'], '360buy-book': ['#summary-price'], '360buy-re': ['.shop_intro .shop_intro_a'], 'taobao': ['.tm-fcs-panel', '#J_PromoPrice', '#J_StrPriceModBox'], 'taobao-ju': ['.J_BuySubForm'], 'taobao-95095': ['.tm-fcs-panel', '#J_PromoPrice', '#J_StrPriceModBox'], 'tmall': ['.tm-fcs-panel', '#J_PromoPrice', '#J_StrPriceModBox'], '51buy': ['.xbase_item:contains("促销价")', '.xbase_item:contains("易迅价")', '#goods_detail_mate .item_icson', '.xbase_row2', '#promotePrice', '#shopprice', '#promotePriceArea'], 'suning': ['#noPrice', '#_main_price', '#existPrice', '#netPriceBox', '#hasPrice', '#mainPrice', '#priceDom'], 'dangdang': ['.price_time', '.d15_price_info', '.price_qiang', '.price_info', '.show_info .sale>p', '.sale_box:first'], 'yihaodian': ['#point_productPrice', '.price_array', '#currentPriceArea'], 'vancl': ['#pricearea .cuxiaoPrice'], 'newegg': ['.neweggPrice', '.goods_price_now'], 'kaola': ['.m-price-wrap .m-price'], 'lenovo': ['#div_product_dec', '#span_product_name'], 'microsoftstore': ['.priceAndRank'], 'bookuu': ['.bc-e5.pd-15'], 'xiaomi': ['.J_saleWrap.sale-wrap', '.pro-time.J_proSeckill', '.goods-info-head-price', '.pro-time.J_proOrder', '.price-info'], "youpin-mi": [".sku-container .price-line"], 'okbuy': ['.prodPriceLiJ .prodPrice'], 'banggo': ['.mbshop_detail_baseinfo'], 'you163': ['.price>.f-clearfix'] }; var getContainer = function getContainer() { var site = G.site; var patterns = sitePattern[site]; if (!patterns || patterns && patterns.length === 0) return; for (var i = 0; i < patterns.length; i++) { if ($(patterns[i]).length > 0) { return patterns[i]; } } return false; }; var renderMiniBar = function renderMiniBar(container) { var newTime = __webpack_require__("7026a4b5462dc6da5555").getNewTime(); if (newTime - new Date().getTime() < 300000) { newTime = false; } var href = encodeURIComponent(document.location.href); var html = __webpack_require__("bb302187f0e95a99e59e"); var setUrl = G.server + '/brwext/setting?from=' + G.from_device; var feedbackUrl = 'https://www.' + G.extName + '.com/brwext/suggest?refer=' + href + '&from_device=' + G.from_device; var priceContainer = template.compile(html)({ 'setUrl': setUrl, 'aliSite': G.aliSite, 'feedbackUrl': feedbackUrl, newTime: false, minidom: G.wishdom2, wishdom: G.wishdom }); if (location.host === 'goods.kaola.com.hk') { var dom = '<div id="kaolaHkRepair" style="display:none;"><span></span></div>'; $('body').append($(dom)); var newContainer = container; container = '#kaolaHkRepair>span'; kaolaHkRepair(newContainer); } if (renderDom) { $(container).append(priceContainer); } else { $(container).eq(0).after(priceContainer); } }; var times = 0; var kaolaHkRepair = function kaolaHkRepair(dom) { if (times >= 10) { return; } times++; if ($('.m-price-wrap .m-price .currentPrice').text().match(/\d/)) { $(dom).eq(0).after($('#kaolaHkRepair>span').next()); $('#kaolaHkRepair').remove(); return; } setTimeout(function () { kaolaHkRepair(dom); }, 1000); }; var parsePrice = function parsePrice(price) { if (parseInt(price) > 999999) { return parseInt(price); } else { return price; } }; var addEvent = function addEvent() { $('.gwd-minibar-bg').on('mouseenter', '.minibar-tab', function () { $('#gwd_minibar').addClass('ms_enter'); $(this).addClass('ms-tab-enter'); var id = $(this).attr('id'); $('#' + id + '_detail').show(); if (id === "mini_price_history") { log("minitrend-show"); __webpack_require__("6973d6984a148bf8a638").calLineHeight(); } }); $('.gwd-minibar-bg').on('mouseleave', '.minibar-tab', function () { $('#gwd_minibar').removeClass('ms_enter'); $(this).removeClass('ms-tab-enter'); $(this).removeClass('ms-tab-enter'); var id = $(this).attr('id'); $('#' + id + '_detail').hide(); }); }; module.exports.renderMiniCom = function (data) { var nowprice = undefined; try { nowprice = userData.get('other_info')['code-server'].price; } catch (e) { nowprice = G.dp.price; } if (!nowprice) nowprice = G.dp.price; if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) { return; } var store = undefined; if (!data.b2c || data.b2c.length === 0) { store = []; } else { store = data.b2c.store; } var newData = []; var storeSize = store.length; //这几个网站做了新的图标 var new_icon_site_ids = [1, 103, 108, 123, 124, 126, 129, 134, 136, 14, 141, 15, 167, 168, 19, 2, 21, 25, 26, 28, 3, 31, 34, 35, 41, 6, 66, 7, 86, 93, 9]; for (var i = 0; i < store.length && i < 6; i++) { var product = store[i].product && store[i].product[0] || store[i]; var dp_id = product.dp_id || ''; var site_id = product.site_id; if (parseInt(site_id) === 3003) { site_id = 3; } var icon_format = new_icon_site_ids.indexOf(Number(site_id)) > -1 ? '.png' : '.ico'; if (!site_id) continue; product.price = parsePrice(product.price.replace(/,/g, "")); product.icourl = G.s_server + '/images/favicon/' + site_id + icon_format; newData.push(product); } var tle = '其他' + storeSize + '家报价'; var bclass = ''; if (newData.length === 0) { tle = '暂无商城比价'; bclass = 'no-com-info'; } else if (newData[0].price < Number(nowprice)) { tle = '<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__("3bc49249739ef2a3c3f8"); var allLink = G.c_server + '/dp' + data.dp.dp_id; var obj = { data: newData, allLink: allLink, storeSize: storeSize }; $('#gwd_mini_compare').append(template.compile(html)(obj)); userData.set('minicom', obj); // if ($('#mini_price_history_detail').length > 0) { // renderTrendCompare(newData, storeSize, allLink) // } else { // setTimeout(function() { // renderTrendCompare(newData, storeSize, allLink) // }, 400) // } } else { $('#gwd_mini_compare').off(); } }; var renderTrendCompare = function renderTrendCompare(data, storeSize, allLink) { if (G.promoTrendRendered) { return; } var html = __webpack_require__("bab2599cd0670e2b19ff"); $('.app-tuiguang').remove(); $('#mini_price_history').removeClass('showapp'); $('#mini_price_history_detail').append(template.compile(html)({ data: data, allLink: allLink, storeSize: storeSize })); }; module.exports.init = function () { if (G.site == 'amazon' || G.site == '6pm') { __webpack_require__("65cb632859494beda768").init(); return; } // 获取配置信息, 看是否需要展示中间部分 var permanent = userData.get('permanent'); // if (G.forbidMinibar) return; if (permanent.setWishlist === '0' || permanent.setWishlist === 0) return; renderCon(); }; var repeatTimes = 0; var renderDom = undefined; var delaySite = []; var renderCon = function renderCon() { var container; return regeneratorRuntime.async(function renderCon$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!(delaySite.indexOf(G.site) > -1)) { context$1$0.next = 3; break; } context$1$0.next = 3; return regeneratorRuntime.awrap(__webpack_require__("3e983ecbff4e1a29654c").sleep(5000)); case 3: container = getContainer(); console.log('container:', container); if (container) { context$1$0.next = 14; break; } if (!renderDom) { renderDom = true; $("body").append($('<div id="xxminibarxx" style="display:none;"><div>')); renderMiniBar("#xxminibarxx"); } if (!(repeatTimes > 8)) { context$1$0.next = 10; break; } $("#xxminibarxx").remove(); return context$1$0.abrupt('return'); case 10: repeatTimes++; setTimeout(function () { renderCon(); }, 500); context$1$0.next = 16; break; case 14: if (renderDom) { $(container).eq(0).after($("#xxminibarxx").children()); } else { renderMiniBar(container); } addEvent(); case 16: case 'end': return context$1$0.stop(); } }, null, _this); }; // 获取页面上的插入节点 /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "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) => { userCenter['delete'](id).then(function (data) { // -1 失败 1 处理成功 100 未登录(不可用) if (data.code === 1) { if (id == oinfo.now.dp_id) { $('#topfavor_detail .topf-head .sp-col').text('收藏商品').removeClass('collected'); } $('#topfavor_detail .sp-del').show().fadeOut(3000); getFavor(renderList); } }); }; var addFavor = function addFavor(callback) { var pagedp = G.dp; var dp = oinfo.now; // dp.price = pagedp.oldPrice || oinfo['code-server'] && oinfo['code-server'].price; // dp.title = pagedp.name || $('title').html() || ''; // dp.title = dp.title.trim() // dp.url = dp.url || location.href; // dp.img = dp.img || pagedp.img; // let url = `${G.c_server}/collect/aj_add?dp_id=${dp.dp_id}&url=${encodeURIComponent(dp.url)}&img=${dp.img}&title=${encodeURIComponent(dp.title)}&price=${dp.price}&site_id=${dp.site_id}&cat_id=${pagedp.cat_id}` // request.get(url).done(data => { userCenter.add('', '').then(function (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) { console.log('render list called'); 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__("793f4246f58816a5a712"); $('#topfavor_detail .favor-list').empty().append(template.compile(html)({ data: data.products, imgLoad: G.imgLoad, s_server: G.s_server })); $('.see-all-favor em').text(data.cnt); $('.see-all-favor').attr('href', 'https://www.gwdang.com/mine/collection'); addEvent(); golbal2.loadImg(0, datasize, $('#topfavor_detail li .item_img img')); if (!$('#topfavor_detail').hasClass('islogin')) $('#topfavor_detail').addClass('islogin'); }; var getFavor = function getFavor(callback) { userCenter.getList('default', 1, 3).then(function (res) { var data = res; if (!data.data.list) { callback({ products: [], cnt: 0 }); return; } callback({ products: data.data.list.map(function (item) { item.now_price = item.price.last; return item; }), cnt: data.data.cnt }); }); }; var userLogin = function userLogin(u, p, callback) { $.ajax({ type: "post", url: 'https://www.' + G.extName + '.com/user/aj_login', xhrFields: { withCredentials: true }, crossDomain: true, data: { email: u, password: p, t: "check", host: location.protocol + '//' + location.host }, success: function success(data) { callback(data); __webpack_require__("51aadd1e1b65f329a862").renderAgain(); } }); }; var addDetailEvent = function addDetailEvent() { var stime = undefined, isRender = undefined, setLeft = undefined; $('#topfavor_detail .topf-head span').on('click', function () { addFavor(); }); $('#topfavor_detail .login_click').on('click', function () { var username = $('#topfavor_detail .username').val(); var psd = $('#topfavor_detail .password').val(); if (!username || !psd) { $('#topfavor_detail .login_remind').show().fadeOut(5000); return; } userLogin(username, psd, function (data) { if (data === '1') { G.email = username; getFavor(renderList); } else { $('#topfavor_detail .login_remind').show().fadeOut(5000); } }); }); $('body').on('gwd-login-complete', function (e) { console.log('fired'); getFavor(renderList); }); $('#gwdang-favor').on('mouseenter', function () { if (G.userLogin && !isRender) { isRender = true; $('#topfavor_detail').addClass('islogin'); getFavor(renderList); } if (permanent.style === 'bottom') { setLeft = true; util.setSimplePagePos($('#gwdang-favor'), $('#topfavor_detail'), 279); } $('#topfavor_detail').show(); $(this).addClass('msHover'); }); $('#gwdang-favor').on('mouseleave', function () { var that = this; stime = setTimeout(function () { $('#topfavor_detail').hide(); $(that).removeClass('msHover'); }, 100); }); $('#topfavor_detail').on('mouseenter', function () { clearTimeout(stime); }); $('#topfavor_detail').on('mouseleave', function () { $('#topfavor_detail').hide(); $('#gwdang-favor').removeClass('msHover'); }); }; var renderDetail = function renderDetail(dp_id) { var hidebtn = undefined; var dom = '#gwdang_main'; var style = 'top:37px;'; if (permanent.style === 'bottom') { dom = '#bjd_bottom_detail'; style = 'bottom: 60px;right: 40px;'; } // 改商品没有抓取数据的时候 不能收藏商品 if (!dp_id || dp_id.match(/^0-\d+$/)) { hidebtn = true; } var imgHost = G.imgHost; if (G.from_device === 'firefox') { imgHost = G.localImg; } var homeU = 'https://www.gwdang.com/user/wechat_oauth/?pl=9&op=login&from_url=' + encodeURIComponent(location.href); homeU = encodeURIComponent(homeU); var wxUrl = 'https://open.weixin.qq.com/connect/qrconnect?appid=wx34006c141f9daa3a&response_type=code&scope=snsapi_login&state=2ced970d5b97680e95670a48d1102611&redirect_uri=' + homeU; var html = __webpack_require__("9f431c2e6e4e69141d4c"); $(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); }; 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: permanent = userData.get('permanent'); oinfo = userData.get('other_info'); renderDetail(oinfo.now.dp_id); // if (G.email) // getFavor(renderList) // if (G.userLogin) { // await globalCondition.met('favorListAllowed') // getFavor(renderList) // } case 3: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports.addFavor = addFavor; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("3deef7cc191860c0adf2")["default"], __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "6c4158d4a8844af2f16e": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_template_id_4f0f1e98___ = __webpack_require__("a39cbf70bd2e92e85f98"); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_template_id_4f0f1e98___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_template_id_4f0f1e98___["b"]; }); /***/ }), /***/ "6da42464ccd75a83a065": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); var request = __webpack_require__("91f250ebeb8d5987491c"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); exports['default'] = { props: ['mode'], data: function data() { return { qrLink: '', loading: false }; }, methods: { over: function over() { var qrApi, res; return regeneratorRuntime.async(function over$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!(this.loading || this.qrLink)) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: if (!(this.mode !== 'qr')) { context$1$0.next = 4; break; } return context$1$0.abrupt('return'); case 4: this.loading = true; context$1$0.next = 7; return regeneratorRuntime.awrap(globalCondition.met('qrApiReady')); case 7: qrApi = context$1$0.sent; if (!(qrApi.type === 'api')) { context$1$0.next = 13; break; } context$1$0.next = 11; return regeneratorRuntime.awrap(request.get(qrApi.src)); case 11: res = context$1$0.sent; this.qrLink = res.data.qrImgStr; case 13: case 'end': return context$1$0.stop(); } }, null, this); } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "6e9dc8f3fe8ed1fd40dc": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_template_id_673c66fa_scoped_true___ = __webpack_require__("0f986364e7409b7b0cf1"); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_template_id_673c66fa_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_template_id_673c66fa_scoped_true___["b"]; }); /***/ }), /***/ "6eb6300b1093d4b652fb": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $, Highcharts) {var __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { if (['smzdm'].indexOf(G.site) > -1) { return; } /* TODO 支持常用网站列表 支持定时查找 鼠标滚动查找 浏览器兼容性检测 */ var exports = {}; var $ = __webpack_require__("e081b2491b5c9b12b9da"); var 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__("67c216e7f5f4a9735e12"); if (G.from_device === 'bijiago') {} var pageInfo = G.pageInfo; var smallTip, smallTip2; var tipDetail; var time, nowTipDom; var nowUrl, newId, nowPrice = 0; var tipResult = {}; var blacklist = [/shangpin\.com/]; var moneyInfo = undefined; var priceTle = { 'pri-t1': "价格上涨", 'pri-t0': "价格平稳", 'pri-t-1': "价格下降", 'pri-t-2': "历史最低" }; var request = __webpack_require__("91f250ebeb8d5987491c"); function block() { var r = false; for (var i = blacklist.length - 1; i >= 0; i--) { r = blacklist[i].test(location.href); if (r) return r; }; } //获取元素和页面顶部的距离 var getTop = function getTop(e) { var offset = e.offsetTop; if (e.offsetParent != null) offset += getTop(e.offsetParent); return offset; }; //获取元素和页面左侧的距离 var getLeft = function getLeft(e) { var offset = e.offsetLeft; if (e.offsetParent != null) offset += getLeft(e.offsetParent); return offset; }; // const getWidth = (e) => { // let w = $(e).width() // if (!w) // return getWidth(e.parentElement) // return w; // } var getListPrice = function getListPrice() { // 获取列表页鼠标所在当前商品价格 var price = '0'; switch (G.site) { case "360buy": price = $(nowTipDom).parent().parent().find('.p-price strong i').eq(0).text(); break; case "suning": price = $(nowTipDom).parent().parent().parent().find('.res-info .price-box .def-price').eq(0).text(); break; case "taobao": price = $(nowTipDom).parent().next().find('.c-price').text(); if (!price) { price = $(nowTipDom).parent().parent().parent().parent().find('.J_IconMoreNew .g_price').eq(0).text(); } break; case "tmall": price = $(nowTipDom).parent().parent().find('.productPrice>em').eq(0).text(); break; case "amazon": price = $(nowTipDom).parent().parent().parent().parent().find('.a-spacing-mini span.s-price').eq(0).text(); break; case "gome": price = $(nowTipDom).parent().parent().find('.item-price-info .item-price .price').eq(0).text(); break; case "dangdang": price = $(nowTipDom).parent().find('.price .price_n').eq(0).text(); break; case "vipshop": price = $(nowTipDom).parent().parent().parent().parent().find('.special-price .title').eq(0).text(); if (!price) { price = $(nowTipDom).parent().parent().parent().parent().find('.goods-price-info .price').eq(0).text(); } break; default: price = '0'; } price = price.replace(/[,¥¥]+/g, ''); return price; }; // 没有价格走势数据时候的伪造虚拟点 var noTrendAddTrendData = function noTrendAddTrendData(data) { var site_name = undefined; var price = getListPrice(); if (price === '0') return data; var date = util.getTimeNumber(new Date().getTime() - 86400000 * 179, "5"); var date2 = util.getTimeNumber(new Date().getTime(), "5"); var arr = []; date = new Date(date).getTime(); date2 = new Date(date2).getTime(); arr.push([date, Number(price)]); arr.push([date2, Number(price)]); site_name = data.site_name; var noTrendObj = { current_price: price, data: arr, max_price: price, min_price: price, min_stamp: date2 / 1000, name: site_name, start: date, price_status: 0 }; data.trend.store = [noTrendObj]; data.taobaoNoTrend = true; data.start = date; return data; }; exports.init = function () { // 获取价格符号 moneyInfo = countryConfig.getMoneyInfo(G.logsite); var b = G.extBrand; if (G.from_device !== 'bijiago') { 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" src="javascript:void(0)" target="_self">\n <div class="tip_btn_box">\n <em></em>\n <span>比价</span>\n </div>\n <div id="' + b + '_price_tip_detail"></div>\n </a>'); smallTip = $('#' + b + '_price_tip'); smallTip2 = $('#' + b + '_price_tip .tip_btn_box'); tipDetail = $('#' + b + '_price_tip_detail'); } bindDpEvent(); // if (location.hostname.includes('s.taobao.com')) { // $('body').append(` // <style> #mainsrp-header.m-header-fixed { display: block !important; } </style> // `) // } }; function bindDpEvent(area) { $('body').on('mouseover', 'img', function (e) { var img = e.target; if (img.parentElement.getAttribute('data-tip')) return false; if (img.width > 50 && img.height > 50) { var parent = img.parentElement; nowTipDom = parent; if (G.site === 'taobao' && parent.tagName === 'A' && /^https?:\/\//.test(parent.href)) { var id = parent.getAttribute('data-nid'); nowPrice = $(parent).parent().parent().parent().next().find('.price strong').text(); addId(img); if (parent.href.match(/(?:item\.taobao\.com|detail\.tmall\.com)/)) { nowUrl = parent.href; } else { if (!id) return; nowUrl = 'https://item.taobao.com/item.htm?id=' + id; } // 加载小标签 renderTip(parent); bindDpEvent2(parent); } else if (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); } } }); 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__("8003eafdb0b82057206c"); tipDetail.empty().append(template.compile(html)({ url: url })); tipDetail.css('width', 370); }; function render() { tipDetail.html('<img src="' + G.server + '/template/aug/images/035.gif" style="margin: 5px;" id="' + G.extBrand + '_price_tip_loading">'); tipDetail.css('width', 50); // tipDetail.css('left', getLeft($(smallTip)[0]) + $(smallTip).width()) // tipDetail.css('top', getTop($(smallTip)[0])) tipDetail.show(); if (!tipResult[nowUrl]) { var url = G.server + '/brwext/tip_new?days=180&ver=1&site=' + G.site + '&price=' + nowPrice + '&url=' + encodeURIComponent(nowUrl) + newId; request.get(url).then(function (msg) { try { if (msg && msg.now_url) { nowUrl = msg.now_url; } if (msg.is_ban && msg.action && msg.action.method === 'redirect' && msg.action.to) { yanzhengma(msg.action.to); return; } if (msg.trend.store.length === 0) { msg = noTrendAddTrendData(msg); } // msg = currencyChange(msg); //暂时不转化汇率 使用原始货币 价格走势提示框里面才加人民币提示 if (!msg || msg.trend.store.length === 0) return renderError(); if (msg.trend.store[0].current_price == '0.00') return renderError(); tipResult[nowUrl] = msg; render2(msg); } catch (e) {} })['catch'](function () { return renderError(); }); } else render2(tipResult[nowUrl]); } function render2(msg) { // 处理数据 processData(msg); var nostore = undefined; if (!msg.store || msg.store.length === 0) nostore = true; var lowestTime = util.getTimeNumber(msg.trend.store[0].min_stamp * 1000); tipDetail.removeClass('tip-error-info'); if (msg.trend.store[0].max_price === msg.trend.store[0].min_price) { msg.trend.store[0].nowprice = msg.trend.store[0].min_price; } //msg.trend.store[0].price_status = require('bjgou/modules/trend').getPriceStatus(msg.trend.store[0].data).price_status tipDetail.html(template.compile(viewPriceTip)({ data: msg, new_extension: G.new_extension, extName: G.extName, isAliSite: G.aliSite, nostore: nostore, lowestTime: lowestTime, extBrand: G.extBrand, isGwd: G.from_device !== 'bijiago', site: G.site })); if (G.aliSite || nostore) { tipDetail.css('width', 370); } else { tipDetail.css('width', 460); } if ($(window).width() - getLeft($(smallTip)[0]) - $(smallTip).width() < 460) { tipDetail.css('left', 0 - $(tipDetail).width() - 3 + 'px'); } else { tipDetail.css('left', '67px'); } initMiniTrend(msg.trend, msg.taobaoNoTrend, msg.start); bindFavorEvent(msg); } function bindFavorEvent(data) { $('#' + G.extBrand + '_price_tip_notify_btn').on('click', function (event) { event.preventDefault(); $('#' + G.extBrand + '_notify_error').hide(); $('#' + G.extBrand + '_price_tip_notify_btn').text('正在添加......'); request.get(G.c_server + '/collect/aj_add?' + 'dp_id=' + data.dp_id + '&from=tip').done(function (msg) { if (msg.code == 100 || msg.code <= 0) { window.location.href = 'http://www.' + G.extName + '.com/user/login?from_url=' + encodeURIComponent(window.location.href); } else if (msg.code == 1) { $('#' + G.extBrand + '_price_tip_notify_btn').text('已添加到收藏夹').attr('style', 'float:right;color:#fff;background:#18A0F5;'); } else if (msg.code == 2) { if ($('#' + G.extBrand + '_price_tip_notify_btn').text() == '正在添加......') { $('#' + G.extBrand + '_price_tip_notify_btn').text('你已经添加过啦').attr('style', 'float:right;color:#fff;background:#18A0F5;'); } } }); }); } function processData(msg) { var new_icon_site_ids = [1, 103, 108, 123, 124, 126, 129, 134, 136, 14, 141, 15, 167, 168, 19, 2, 21, 25, 26, 28, 3, 31, 34, 35, 41, 6, 66, 7, 86, 93, 9]; var store = msg.store; if (store) { for (var i = store.length - 1; i >= 0; i--) { store[i].icon_url = store[i].icon_url.replace("browser", "s1"); if (store[i].price.indexOf('¥') > -1) store[i].price = '¥' + Number(store[i].price.replace('¥', '').replace(',', '')).toFixed(2); var site_id = /\/(\d+)\.ico/.exec(store[i].icon_url); if (site_id) { site_id = site_id[1]; if (!G.IE6 && new_icon_site_ids.indexOf(Number(site_id)) > -1) { store[i].icon_url = store[i].icon_url.replace(/\d+\.ico/, site_id + ".png").replace(/browser\./, "s1."); } } } } var status_str = 'pri-t' + msg.trend.store[0].price_status; msg.trend.store[0].status_tle = priceTle[status_str]; msg.trend.store[0].max_price = Number(msg.trend.store[0].max_price.replace(',', '')).toFixed(2); msg.trend.store[0].min_price = Number(msg.trend.store[0].min_price.replace(',', '')).toFixed(2); } function renderError(data) { if (data && data.is_ban) { yanzhengma(data.action.to); } else { tipDetail.html('<div>抱歉,当前商品暂无价格走势~</div>'); tipDetail.addClass('tip-error-info'); tipDetail.css('width', 220); tipDetail.show(); } } function initMiniTrend(data, taobaoNoTrend, sstart) { if (G.site == '360buy') { // 京东上的这个影响图表样式 var p = $('.elevator_fix style'); p.remove(); } var yAxistext = ''; if (moneyInfo) { yAxistext = moneyInfo[1]; } var maxP = Number(data.store[0].max_price); var maxN = undefined; if (maxP > 5) { maxN = parseInt(data.store[0].max_price).toString() || ''; } else { maxN = Number(data.store[0].max_price).toString() || ''; } var maxN2 = yAxistext.length * 2; var maxS1 = parseInt(maxN.length * 5.6); var maxS2 = parseInt(maxN2 * 5.6); var maxS = Math.max(maxS1, maxS2); var chartML = maxS + 8 + 8; var yAxisY = maxS + 8; var trend_div = $('#gwd_price_tip_trend'); var obj = { chart: { renderTo: 'gwd_price_tip_trend', type: 'line', marginTop: 10, marginLeft: chartML, marginRight: 15, marginBottom: 27, spacing: [0, 0, 0, 0], events: { load: function load() { var xinterval = parseInt((this.xAxis[0].dataMax - this.xAxis[0].dataMin) / 3.9) || 1; this.xAxis[0].update({ tickInterval: xinterval }); var lmin = undefined, lmax = undefined; lmin = Math.floor(this.yAxis[0].dataMin); lmax = Math.ceil(this.yAxis[0].dataMax); var interv2 = Math.pow(10, lmin.toString().length - 2); var tkinterv = undefined; if (this.yAxis[0].dataMax < 1) { lmin = this.yAxis[0].dataMin; lmax = this.yAxis[0].dataMax; tkinterv = 0; } else if (this.yAxis[0].dataMin === this.yAxis[0].dataMax) { lmin = Math.floor(lmin / interv2) * interv2; lmax = lmin * 2; lmin = 0; tkinterv = parseInt((lmax - lmin) / 2); } else { lmin = Math.floor(lmin / interv2) * interv2; lmax = Math.ceil(lmax / interv2) * interv2; if (lmin === lmax) { lmin = lmin - 1; lmax = lmax + 1; } tkinterv = parseInt((lmax - lmin) / 4); if (lmin + tkinterv < this.yAxis[0].dataMin) { lmin = lmin + tkinterv; } } var tkinterv2 = Math.pow(10, tkinterv.toString().length - 1); tkinterv = Math.ceil(tkinterv / tkinterv2) * tkinterv2; // console.log(lmin, lmax, tkinterv) this.yAxis[0].update({ min: lmin, max: lmax, tickInterval: tkinterv || 1 }); } } }, credits: { enabled: false }, colors: ['#2f7ed8'], title: { text: null }, xAxis: { type: 'datetime', labels: { rotation: 0, y: 16, step: 2, style: { fontSize: '10px', fontFamily: 'Helvetica', color: '#9D9D9D' }, align: 'center' }, dateTimeLabelFormats: { day: '%m-%e', week: '%m-%e', month: '%Y/%m', year: '%Y/%m' }, tickLength: 0, gridLineColor: '#e6e9eb', lineColor: '#e6e9eb', minorTickLength: 0, gridLineWidth: 1 }, yAxis: { title: { text: "", rotation: 0, y: -20, x: -13, align: 'high', offset: 0, style: { fontFamily: 'Microsoft YaHei', fontSize: '10px', color: '#969899' } }, labels: { align: 'left', padding: 4, x: -yAxisY, y: 3, style: { fontSize: '10px', fontFamily: 'Helvetica', color: '#9D9D9D' }, formatter: function formatter() { return this.value; } }, plotLines: [{ value: 0, width: 1, color: '#808080' }], gridLineColor: '#e6e9eb', lineColor: '#e6e9eb', tickPixelInterval: 50 }, plotOptions: { series: { animation: false, marker: { radius: 2 }, enableMouseTracking: true, states: { hover: { enabled: true } }, shadow: false } }, tooltip: { xDateFormat: '%Y-%m-%d', borderColor: "#48BEFE", useHTML: true, backgroundColor: 'white', formatter: function formatter() { var x = new Date(this.x); var year = x.getFullYear(); var month = x.getMonth() + 1; var day = x.getDate(); if (month < 10) month = '0' + month.toString(); if (day < 10) day = '0' + day.toString(); // let format = data.msg.formatted[this.x.toString()]; // let disc = format.discount // if (disc !== 0) // disc = '-' + disc.toString() + '%'; if (taobaoNoTrend) { var nowDate = new Date(); if (x.getMonth() !== nowDate.getMonth() || x.getDate() !== nowDate.getDate()) { return false; } } var price = undefined; if (this.y !== 0) price = this.y.toFixed(2);else price = '0'; var price2 = ""; if (moneyInfo) { price2 = '(¥' + parseprice(price) + ')'; price = moneyInfo[0] + price; } var dom = '\n <div style="background: white">\n <div>' + year + '/' + month + '/' + day + '</div>\n <div class="price-tip-item">\n <span class="price-tip-sp1" style="color: ' + this.series.color + ';font-size:12px;font-family:arial;float:none">●</span>\n <span class="price-tip-sp2">' + this.series.name + '</span>\n <span class="price-tip-sp3" style="font-family:Helvetica">' + price + price2 + '</span>\n </div>\n</div>'; return dom; } }, legend: { enabled: false }, series: [] }; obj.series[0] = { visible: true, name: data.store[0].name, pointStart: sstart, pointInterval: 86400000 * 179, color: "#48BEFE", lineWidth: 1, marker: { enabled: false }, states: { enabled: false, hover: { lineWidth: 1 } }, data: [] }; if (taobaoNoTrend) { obj.series[0].dashStyle = "Dash"; } if (data.store[0].data.length > 0) { var store = data.store[0]; var len2 = store.data.length; var datas = store.data; if (store.min_stamp * 1000 > parseInt(Date.UTC(data.startY, data.startM, data.startD))) { obj.series[0].data.push(null); } if (taobaoNoTrend) { for (var j = 0; j < len2; j++) { obj.series[0].data.push({ y: datas[j][1] }); } } else { obj.series[0].data = data.store[0].data; } } if (taobaoNoTrend) { obj.series[0].data[1].marker = { enabled: true, fillColor: '#5ACFFB', radius: 2.5, lineWidth: 0, symbol: "circle" }; obj.plotOptions.series.states = { hover: { enabled: false } }; } if (moneyInfo) { obj.yAxis.title.text = moneyInfo[1]; obj.yAxis.title.y = 104; obj.yAxis.title.x = -(chartML - 6 - maxS2); } if ($('#' + obj.chart.renderTo).length) { new Highcharts.Chart(obj); } trend_div.show(); } return exports; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("ff50e367dd130fa205e3"))) /***/ }), /***/ "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(template.compile(html)({ email: G.email, extName: 'gwdang', url: encodeURIComponent(location.href) })); CommonLogin = __webpack_require__("2d53f53e0179317f1fdf")['default']; new Vue({ el: '#gwd-bjd-login-box', render: function render(h) { return h(CommonLogin, { props: { position: 'gwd-mini', showAlterLogin: true, alterLoginPosition: 'row' } }); } }); // 获取当前提醒状态 dp_query = userData.get('dp_query'); context$1$0.next = 12; return regeneratorRuntime.awrap(request.get(G.c_server + '/brwext/remind_intime?opt=get&id=' + dp_query.dp.dp_id)); case 12: currentStatus = context$1$0.sent; addEvent(); if (currentStatus.msg === "未收藏" || currentStatus.msg === "用户未登录(不可用)") { log('detected:seckillRemind'); cnzz.log('抢购提醒', '监测到页面抢购'); needLog = true; SeckillSetState(false); } else { SeckillSetState(true); } case 15: case 'end': return context$1$0.stop(); } }, null, _this); }; var secKillState = undefined; var SeckillSetState = function SeckillSetState(state) { secKillState = state; if (state) { $('.sk-remind-btn').hide(); if (userInfo.wx == "1") { $('.sk-remind-state1').show(); } else { $('.sk-remind-state1').hide(); } $('#gwd_mini_seckill').addClass('seckillSet'); $('#gwd_mini_seckill .minibar-btn-box>span').text("已设抢购提醒"); if (needLog) {} } else { //$('.sk-remind-btn').hide() } }; var socketSet = false; var showedOnce = false; // 抢购提醒是否展示过一次 var addEvent = function addEvent() { price_remind.getQRcode(); window.refQRCode = price_remind.getQRcode; $('#gwd_mini_seckill').on('mouseenter', function () { if (G.email) { $('.seckill-detail').show(); $('.seckill-detail').css('width', '205px'); if (!socketSet && userInfo.wx == "0") { // 未绑定微信的情况,不显示提醒按钮 // 同时打开websocket log('notBind:seckillRemind'); cnzz.log('抢购提醒', '未绑定'); $('.sk-remind-state0').show(); if (!secKillState) { $('.sk-remind-state1').hide(); } $('.sk-remind-btn').hide(); renderWebsocket(); } if (needLog) { if ($('.sk-remind-btn').css('display') !== 'none') { if (!showedOnce) { log('showButton:seckillRemind'); cnzz.log('抢购提醒', '显示设置提醒按钮'); } } } showedOnce = true; } else { $('.login-detail').show(); } }); $('#gwd_mini_seckill').on('mouseleave', function () { $('.seckill-common-detail').hide(); }); $('.sk-remind-btn').on('click', function callee$1$0() { var dp, time, title, res; return regeneratorRuntime.async(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: log('click:seckillRemind'); cnzz.log('抢购提醒', '设置按钮点击'); dp = userData.get('dp_query'); time = new Date(globalTime).toHalfHourTime().format("yyyy-MM-dd hh:mm:ss"); title = G.dp.name.replace(' ', ''); context$2$0.next = 7; return regeneratorRuntime.awrap(request.get(G.c_server + '/brwext/remind_intime?opt=add&id=' + dp.dp.dp_id + '&title=' + encodeURIComponent(title) + '&stime=' + time + '&url=' + encodeURIComponent(location.href))); case 7: res = context$2$0.sent; if (res.code === 1 || res.msg === '重复收藏') { if (res.code === 1) { log('setComplete:seckillRemind'); cnzz.log('抢购提醒', '设置成功'); } SeckillSetState(true); } case 9: case 'end': return context$2$0.stop(); } }, null, _this); }); //price_remind.init() $('#loginClickBtn').on('click', function () { var userN = $('.bjd-login-box .username').val(); var psd = $('.bjd-login-box .password').val(); if (userN && psd) { price_remind.loginRenderTop(); __webpack_require__("472c3193857af11233c9").userLogin(userN, psd, function () { location.reload(); }); } else { $('#login_remind_tle').css('display', 'block').fadeOut(5000); return; } }); }; var heartInterval = 0; var renderWebsocket = function renderWebsocket() { // $.ajax({ // url: 'https://www.gwdang.com/user/info', // xhrFields: { // withCredentials: true // }, // //crossDomain: true // }) var socket = new WebSocket("wss://www.gwdang.com/sck"); socket.onopen = function () {}; socket.onmessage = function (evt) { var res = JSON.parse(evt.data); if (res.msg == "Bind") { userInfo.wx = "1"; $('.sk-remind-state0').hide(); if (secKillState) { $('.sk-remind-state1').show(); } else { $('.sk-remind-btn').show(); } if (needLog) { cnzz.log('抢购提醒', '用户已绑定'); log('userBindComplete:seckillRemind'); } window.clearInterval(heartInterval); socket.close(); } }; socket.onclose = function () {}; socket.addEventListener('open', function callee$1$0(evt) { var accountInfo; return regeneratorRuntime.async(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: socketSet = true; accountInfo = { action: 'bindWechatExt', msg: { uid: userInfo.uid } }; socket.send(JSON.stringify(accountInfo)); heartInterval = setInterval(function () { socket.send('{"ping": "pong"}'); }, 10000); case 4: case 'end': return context$2$0.stop(); } }, null, this); }); }; module.exports.getNewTime = function () { hasGetTime = true; return globalTime; }; //return /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "719962cffbaf4ac55086": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("c8a5b6d6a4f6c49bbced"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("b87ceb42", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./PromotionPlan.vue?vue&type=style&index=0&id=24d41b24&lang=less&scoped=true&", function() { var newContent = require("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./PromotionPlan.vue?vue&type=style&index=0&id=24d41b24&lang=less&scoped=true&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "71b7aa48af48111e437a": /***/ (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_TbGiftMoney_vue_vue_type_template_id_53cb8bb8_scoped_true___ = __webpack_require__("a663b3a34cc552f2c45d"); /* 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_TbGiftMoney_vue_vue_type_template_id_53cb8bb8_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_TbGiftMoney_vue_vue_type_template_id_53cb8bb8_scoped_true___["b"]; }); /***/ }), /***/ "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']; /***/ }), /***/ "73027d3bf1a467cf5ac2": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponQr_vue_vue_type_template_id_498face2_scoped_true___ = __webpack_require__("78b9935edabcc835af58"); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponQr_vue_vue_type_template_id_498face2_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponQr_vue_vue_type_template_id_498face2_scoped_true___["b"]; }); /***/ }), /***/ "735bc3c8e2dc98526bc5": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-qr-container[data-v-44c0e93e] {\n display: none;\n position: absolute;\n right: 0px;\n width: 153px;\n height: 156px;\n background: #FFF6F4;\n border: 1px solid #FF6132;\n flex-direction: column;\n z-index: 9;\n bottom: 28px;\n align-items: center;\n}\n.mainbar-fold .gwd-member-coupon-top[data-v-44c0e93e] {\n display: none;\n}\n.gwd-member-coupon-top[data-v-44c0e93e] {\n height: 28px;\n background: linear-gradient(to right, #f28936, #ff351e);\n position: relative;\n background-size: cover;\n display: inline-flex;\n align-items: center;\n margin-top: 2px;\n cursor: pointer;\n border-radius: 2px;\n margin-right: 5px;\n}\n.gwd-member-coupon-top .gwd-qr-container[data-v-44c0e93e] {\n display: none;\n position: absolute;\n}\n.gwd-member-coupon-top[data-v-44c0e93e]::before,\n.gwd-member-coupon-top[data-v-44c0e93e]::after {\n content: '';\n position: absolute;\n left: 115px;\n width: 4px;\n height: 4px;\n background: white;\n border-radius: 2px;\n top: -2px;\n}\n.gwd-member-coupon-top[data-v-44c0e93e]::after {\n top: unset;\n bottom: -2px;\n}\n.gwd-member-coupon-top: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 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 ($(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')) { context$1$0.next = 12; break; } context$1$0.next = 12; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('bottomCouponReady-' + id)); case 12: html = __webpack_require__("97b01a38519bd022430f"); 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 17: 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__("323113ff2d32291051fe"); 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__("323113ff2d32291051fe"); 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) { 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(); 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"))) /***/ }), /***/ "74757817411a9c6f8278": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { module.exports = function () { if (G.site === 'keede' && Array.prototype.forEach.toString() !== "function forEach() { [native code] }") { Array.prototype.forEach = function (callback, thisArg) { var T, k; if (this == null) { throw new TypeError(' this is null or not defined'); } var O = Object(this); var len = O.length >>> 0; if (typeof callback !== "function") { throw new TypeError(callback + ' is not a function'); } if (arguments.length > 1) { T = thisArg; } k = 0; while (k < len) { var kValue; if (k in O) { kValue = O[k]; callback.call(T, kValue, k, O); } k++; } }; } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "74ff18b26ae830696f53": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function (o) { o.__events = {}; o.on = function (type, listener) { o.__events[type] = o.__events[type] || []; o.__events[type].push(listener); }; o.off = function (type, listener) { var eventsListeners = o.__events[type]; if (eventsListeners && eventsListeners.length) { for (var i = 0; i < eventsListeners.length; i++) { if (eventsListeners[i] === listener) { eventsListeners.splice(i, 1); break; } } } }; o.trigger = function (type) { var param = Array.prototype.slice.call(arguments); param.shift(); var eventsListeners = o.__events[type]; if (eventsListeners && eventsListeners.length) { for (var i = 0; i < eventsListeners.length; i++) { eventsListeners[i].apply(this, param); } } }; }; /***/ }), /***/ "7593d287e2be1ef09955": /***/ (function(module, exports) { module.exports = "<div class=\"trend-error-info\">\n <p class=\"error-p\">我们检测到访问异常,请您验证后继续使用</p>\n <a class=\"error-sp\" href=\"{{url}}\">点击验证</a>\n <style type=\"text/css\">\n #gwdang-trend {\n width: 105px;\n }\n #gwdang-trend, #gwdang-trend span {\n cursor: default;\n }\n #gwdang-trend span {\n float: left;\n width: 105px;\n text-align: center;\n line-height: 36px;\n color: #666;\n font-size: 14px;\n }\n #gwdang-trend .trend-error-info {\n position: absolute;\n top: 36px;\n left: -1px;\n width: 100%;\n background: #fff;\n z-index: 99999999;\n height: 268px;\n display: none;\n box-shadow: 0 5px 10px 0 rgba(22,24,26,.15);\n border: 1px solid #edf1f2!important;\n }\n #gwdang-trend .error-p {\n width: 100%;\n float: left;\n text-align: center;\n margin-top: 45px;\n font-size: 14px;\n color: #666;\n }\n #gwdang-trend .error-sp {\n width: 95px;\n margin: 110px auto;\n height: 20px;\n line-height: 20px;\n text-align: center;\n color: #000!important;\n border: 1px solid #333;\n border-radius: 5px;\n display: block;\n text-decoration: none!important;\n }\n #gwdang-trend:hover .trend-error-info {\n display: block;\n }\n </style>\n</div>" /***/ }), /***/ "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"))) /***/ }), /***/ "77a9c55d500e3b83f42d": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("97c0645dcf36e56de349"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("1f96e4e7", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./MemberCouponTop.vue?vue&type=style&index=0&id=28e28ad7&scoped=true&lang=less&", function() { var newContent = require("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./MemberCouponTop.vue?vue&type=style&index=0&id=28e28ad7&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "77f48bfebe18ce336e62": /***/ (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_TbGiftMoney_vue_vue_type_script_lang_js___ = __webpack_require__("91daf6262e9d17322e4c"); /* 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_TbGiftMoney_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_TbGiftMoney_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_TbGiftMoney_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_TbGiftMoney_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_TbGiftMoney_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "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"]; /***/ }), /***/ "78b9935edabcc835af58": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "gwd-member-qr gwd-column gwd-align" }, [ _c("img", { staticStyle: { width: "20px", height: "20px", position: "absolute", left: "50%", top: "53px", transform: "translate(-50%, 0%)", background: "white" }, attrs: { src: __webpack_require__("c9085187c37fc1ab0e5e"), alt: "" } }), _vm._v(" "), _c("img", { style: "visibility: " + (_vm.qr ? "visible" : "hidden"), attrs: { src: _vm.qr, alt: "" } }), _vm._v(" "), _vm._m(0) ]) } var staticRenderFns = [ function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticStyle: { "margin-top": "6px", height: "13px", "line-height": "13px", "white-space": "nowrap", "text-align": "center", "padding-left": "4px" } }, [ _c("span", { staticClass: "gwd-bigger" }, [_vm._v("淘宝APP扫码")]), _vm._v(" "), _c( "span", { staticClass: "gwd-font11", staticStyle: { color: "#333333" } }, [_vm._v("联系客服领取")] ) ] ) } ] render._withStripped = true /***/ }), /***/ "793f4246f58816a5a712": /***/ (function(module, exports) { module.exports = "{{each data}}\n <li >\n <a class=\"item_img\" href=\"{{$value.url}}\" target=\"_blank\" title=\"{{$value.title}}\">\n <img id=\"dp_{{$value.dp_id}}\" src=\"{{imgLoad}}\" data-original=\"{{$value.img}}\">\n </a>\n <div class=\"item_desc\">\n <a class=\"item_title blkcolor3\" href=\"{{$value.url}}\" target=\"_blank\" title=\"{{$value.title}}\">{{$value.title}}</a>\n <span class=\"other_desc\">\n <span class=\"site_icon\" ><img src=\"{{s_server}}/images/favicon/{{$value.site_id}}.ico\"></span>\n <span class=\"item_price prifontf\">{{$value.newPrice}}</span>\n <span class=\"item_close_btn blkcolor4\" data-id=\"{{$value.id}}\">删除</span>\n </span>\n </div>\n </li>\n{{/each}}\n<style>\n .item_img {\n text-decoration: none!important;\n }\n</style>" /***/ }), /***/ "7a162262fe305871f8d9": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($) { var codeOfs = 88; var utitle; try { utitle = ["t=" + $('title').html().substr(0, 250), "k=lxsx", "d=ls"]; } catch (err) { utitle = []; } var pageUrl = encodeURIComponent(location.href); var trendd = { zero: ["0", "00", "000", "0000", "00000", "000000", "0000000", "00000000"], strReverse: function strReverse(a) { var b, l, c = []; for (b = 0, l = a.length; b < l; b++) c[c.length] = a.charAt(b); return c.reverse().join(""); }, isString: function isString(a) { return "[object String]" === Object.prototype.toString.call(a); }, encrypt: function encrypt(a, b, e) { var f, l, g = []; if (!trendd.isString(a)) return ""; for (f = 0, l = a.length; f < l; f++) g[g.length] = trendd.to(a.charCodeAt(f), b); return e ? trendd.strReverse(g.join("")) : g.join(""); }, to: function to(a, c) { var e = "" + (a + codeOfs).toString(16), f = c - e.length; return f > 0 ? trendd.zero[f - 1] + e : e; }, decrypt: function decrypt(a, b, e) { if (!trendd.isString(a)) return ""; var f = []; e && (a = trendd.strReverse(a)); for (var g = 0, h = 0; g < a.length; g += b, h++) { var i = a.substring(g, g + b); f[h] = trendd.tranFormat(i, b); } return String.fromCharCode.apply(String, f); }, tranFormat: function tranFormat(a, c) { return a.length !== c ? 0 : parseInt(a.replace(/^0+/g, ""), 16) - codeOfs; }, genExtensionId: function genExtensionId() { if (window.localStorage['extensionid']) return window.localStorage['extensionid']; var guid = ""; for (var i = 1; i <= 32; ++i) { guid += Math.floor(Math.random() * 16.0).toString(16); if (i == 8 || i == 12 || i == 16 || i == 20) guid += "-"; } window.localStorage['extensionid'] = guid; return guid; } }; module.exports.init = function () { // 这是使用惠惠接口做的接口模拟参数生成模块 var gstr = ""; var ga = "//zhu", gb = "shou.huih", gc = "ui.cn/product", gd = "Sense?br", ge = "owser=chrome&ver", gf = "sion=4.2.9.6&vendor=chrom"; gstr = ga + gb + gc + gd + ge + gf; var extensionid = trendd.genExtensionId(); var trendK = trendd.encrypt(utitle.join("^&"), 4, !1); var z = trendd.encrypt(pageUrl, 2, !0), A = 1900 - z.length; trendK = trendK.length > A ? trendK.substr(0, A) : trendK; var url = location.protocol + gstr + "enew&av=3.0&ext" + "ensionid=" + extensionid + "&email=&pop=&k=" + trendK + "&nl=true&m=" + z; return url; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "7b3df266cd171136e29d": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_template_id_5efee9c0_scoped_true___ = __webpack_require__("dccc180c0627890be6a3"); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_template_id_5efee9c0_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_template_id_5efee9c0_scoped_true___["b"]; }); /***/ }), /***/ "7ba4684358f88bfd7a47": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Normal_vue_vue_type_style_index_0_id_7cd833d3_scoped_true_lang_less___ = __webpack_require__("fad7ead7228f616ec948"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Normal_vue_vue_type_style_index_0_id_7cd833d3_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Normal_vue_vue_type_style_index_0_id_7cd833d3_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Normal_vue_vue_type_style_index_0_id_7cd833d3_scoped_true_lang_less____default.a); /***/ }), /***/ "7bb864157b1329e994ad": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var getQRCode = __webpack_require__("657bad1e7f3b602f7d70"); module.exports = { data: function data() { return { qrcode: '', error: false, logged: false, loading: false, site: location.hostname.indexOf('.jd.com') > -1 ? 'jd' : 'taobao', payload: {} }; }, methods: { goLink: function goLink() { if (this.qr) return; __webpack_require__("83271c7588396d2d5e59").log(this.site + 'GiftMoney:click'); if (this.url) { window.open(this.url); } }, over: function over() { var _this = this; if (!this.qr) return; if (this.qrcode) return; if (this.loading) return; this.loading = true; var payload = { id: G && G.dp ? G.dp.itemId : this.id, amount: this.value, title: '', _type: 'rebate' }; if (this.price) { payload.price = this.price; payload.tip = this.price; } if (this.tag) { payload._tag = this.tag; } this.payload = payload; getQRCode(payload, '', function (res) { if (res[0].etag) { _this.error = true; return; } else { _this.error = false; } _this.qrcode = res[0].imgSrc; if (!_this.logged) { __webpack_require__("83271c7588396d2d5e59").log(_this.site + 'GiftMoney:hover'); __webpack_require__("83271c7588396d2d5e59").log(_this.site + 'GiftMoney:-hover'); if (_this.oldPatch) { __webpack_require__("83271c7588396d2d5e59").log(_this.site + 'GiftMoney:hover-oldPatch'); } _this.logged = true; } }); } } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "7bc264230157b5cefc24": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, Highcharts) { module.exports = function (data) { var highest = parseInt(data.msg.highest); var yAxisTitlex = 10; if (highest > 99) yAxisTitlex = 24; var obj = { chart: { renderTo: data.el, marginTop: 24, marginLeft: 78, marginRight: 24, backgroundColor: data.bg ? data.bg : "#394653", type: 'line', events: { load: function load() { this.yAxis[0].update({ tickInterval: parseInt((this.yAxis[0].dataMax - this.yAxis[0].dataMin) / 4) || 1 }); var xinterval = (this.xAxis[0].dataMax - this.xAxis[0].dataMin) / 86400000; xinterval = xinterval / 3; var tickIntervals = undefined; if (xinterval > 30) { xinterval = parseInt(xinterval / 30) + 1; tickIntervals = xinterval * 30 * 86400000; } else { tickIntervals = xinterval * 86400000; } if (!data.shortTime) this.xAxis[0].update({ tickInterval: tickIntervals }); } } }, credits: { enabled: false }, colors: ['#1e94f8'], title: { text: data.title || '', y: -20, style: { color: '#92ABC2' } }, xAxis: { type: 'datetime', labels: { style: { color: "#777777" } }, dateTimeLabelFormats: { day: '%m-%e', week: '%m-%e', month: '%y/%m', year: '%y/%m' }, tickLength: 0, lineColor: "#3E4C5A", gridLineWidth: 1, gridLineColor: '#555555' }, yAxis: { title: { text: data.unit ? data.unit : '价格(元)', rotation: 0, margin: 0, y: -92, x: yAxisTitlex, style: { color: "#555555" } }, labels: { style: { color: "#777777" }, formatter: function formatter() { return this.value.toFixed(2); } }, plotLines: [{ value: 0, width: 1, color: '#808080' }], gridLineColor: '#3E4C5A', tickPixelInterval: 50 }, tooltip: { xDateFormat: '%Y-%m-%d', shared: true, shape: 'square', useHTML: true, followPointer: false, width: 110, height: 52, borderWidth: G.site === 'epic' ? 0 : 1, style: { padding: 0 }, formatter: function formatter() { var x = new Date(this.x); var year = x.getFullYear(); var month = x.getMonth() + 1; var day = x.getDate(); if (month < 10) month = '0' + month.toString(); if (day < 10) day = '0' + day.toString(); var datestr = year + '.' + month + '.' + day; // let format = data.msg.formatted[this.x.toString()]; // let disc = format.discount // if (disc !== 0) // disc = '-' + disc.toString() + '%'; var price = undefined; if (this.y !== 0) price = this.y.toFixed(2);else price = '0'; var dom = '<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"))) /***/ }), /***/ "7cadd8d25c22f502154a": /***/ (function(module, exports) { module.exports = "<a href=\"#\" id=\"bjg-tkl\" style=\"font-size: 0; position: relative; vertical-align: middle; top: 0.5px;\">\n <img src=\"{{ s_server }}/images/extensions/[email protected]\" alt=\"\" style=\"width: 14px; height: 14px; margin-top: -4px;\">\n <span style=\"width: 4px; display: inline-block\"></span>\n <span style=\"font-size: 12px; color: #727272\" id=\"gwd-tkl-text\">生成淘口令</span>\n</a>\n<input type=\"\" name=\"\" value=\"456\" class=\"gggbox-input\">\n<a id=\"box_btn\" class=\"box-btn\" contenteditable=\"1\">456</a>\n<style>\n .gwd-notkl-error::after {\n content: '此商品暂不支持生成淘口令';\n position: absolute;\n top: 6px;\n left: 50%;\n width: 150px;\n margin-left: -75px;\n font-size: 12px;\n transform: scale(0.8333);\n display: inline-block;\n transform-origin: top center;\n color: #ff8c2b;\n }\n\n .gggbox-input {\n height: 1px;\n width: 1px;\n overflow: hidden;\n position: fixed;\n bottom: 0px;\n left:-999px;\n }\n\n #box_btn {\n height: 1px;\n width: 1px;\n overflow: hidden;\n float: left;\n position: fixed;\n bottom: 0px;\n }\n</style>\n" /***/ }), /***/ "7d0cec30e0ac9c2cd304": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _vm._m(0) } var staticRenderFns = [ function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "gwd-app-download" }, [ _c("img", { staticStyle: { width: "80px", height: "80px", "margin-top": "20px" }, attrs: { src: "https://cdn.gwdang.com/images/extensions/apptg181019/cli_1000px.png", alt: "" } }), _vm._v(" "), _c( "span", { staticStyle: { "font-size": "12px", color: "#555555", "margin-top": "4px" } }, [_vm._v("立即下载APP")] ), _vm._v(" "), _c("div", { staticClass: "gwd-btnSlogan" }, [ _c("span", [_vm._v("比价格")]), _vm._v(" "), _c("span", [_vm._v("查历史")]), _vm._v(" "), _c("span", [_vm._v("找优惠券")]) ]) ]) } ] render._withStripped = true /***/ }), /***/ "7ffda7d29dfea4a64d16": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var deviceEncode = __webpack_require__("57981fc895e0110a4346"); var util = __webpack_require__("d54879e983a83d07f093"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var addEvent = function addEvent() { var time1 = undefined; $('#bjd_logo').on('mouseenter', function () { $('#nbt_setting').show(); }); $('#bjd_logo').on('mouseleave', function () { time1 = setTimeout(function () { $('#nbt_setting').hide(); }, 200); }); $('#nbt_setting').on('mouseenter', function () { clearTimeout(time1); }); $('#nbt_setting').on('mouseleave', function () { $('#nbt_setting').hide(); }); $('#nbt_setting .setting-item').on('mouseenter', function () { $(this).addClass('setting_hover'); }); $('#nbt_setting .setting-item').on('mouseleave', function () { $(this).removeClass('setting_hover'); }); $('.main-setting').on('click', function () { util.openTab(); }); }; var render = function render() { var perinfo = userData.get('permanent'); var href = document.location.href; var btype = G.btype ? G.btype : ''; if (G.aliSite) return; var settingUrl = undefined; if (!perinfo.setPage) { settingUrl = G.server + '/brwext/setting?from=' + deviceEncode(G.from_device) + '&btype=' + (G.btype ? G.btype : ''); } var html = __webpack_require__("d71d6565d3ec2f523a79"); $('#bjd_bottom_detail').append(template.compile(html)({ mainset: G.server + '/brwext/setting?from=' + deviceEncode(G.from_device) + '&btype=' + btype, feedback: G.c_server + '/brwext/suggest?refer=' + encodeURIComponent(href) + '&from_device=' + G.from_device + '&btype=' + btype, help: G.c_server + '/app/extension?page=question', settingUrl: settingUrl, webpage: G.c_server + '/' })); addEvent(); }; module.exports.init = function () { render(); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "8003eafdb0b82057206c": /***/ (function(module, exports) { module.exports = "<div class=\"trend-error-info-mini\">\n <p class=\"error-p\">我们检测到访问异常,请您验证后继续使用</p>\n <a class=\"error-sp\" href=\"{{url}}\">点击验证</a>\n <style type=\"text/css\">\n .trend-error-info-mini {\n float: left;\n width: 370px;\n height: 242px;\n background: #fff;\n z-index: 99999999;\n height: 268px;\n }\n .error-p {\n width: 100%;\n float: left;\n text-align: center;\n margin-top: 45px!important;\n font-size: 14px;\n color: #666;\n }\n .error-sp {\n width: 95px;\n margin: 110px auto!important;\n height: 20px;\n line-height: 20px;\n text-align: center;\n color: #000!important;\n border: 1px solid #333;\n border-radius: 5px;\n display: block;\n text-decoration: none!important;\n }\n </style>\n</div>" /***/ }), /***/ "817cf5489444460b05d0": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "gwd-inline-row gwd-align gwd-jd-rank", class: _vm.additionalClass, style: "margin-top: " + _vm.mt + "px" }, [ _c("img", { staticClass: "gwd-icon-rank", attrs: { src: "https://cdn.gwdang.com/images/extensions/jdRanking/icon.svg", alt: "" } }), _vm._v(" "), _vm.additionalClass === "gwd-w217" ? _c("img", { staticStyle: { "margin-left": "-2px" }, attrs: { src: "https://cdn.gwdang.com/images/extensions/jdRanking/text.svg", alt: "" } }) : _vm._e(), _vm._v(" "), _vm.additionalClass === "gwd-w210" || _vm.additionalClass === "gwd-w235" ? _c("img", { staticStyle: { "margin-left": "2px", "margin-right": "1px" }, attrs: { src: "https://cdn.gwdang.com/images/extensions/jdRanking/text-w210.svg", alt: "" } }) : _vm._e(), _vm._v(" "), _c("hr", { staticClass: "gwd-vline" }), _vm._v(" "), _c( "div", { staticClass: "gwd-rank-list gwd-row gwd-align", class: _vm.data.length > 1 ? "gwd-rotate" : "", staticStyle: { position: "relative" } }, [ _c( "a", { staticClass: "gwd-row gwd-align gwd-rank-first", attrs: { title: _vm.data[0].rname, href: _vm.data[0].rurl, target: "_blank" } }, [ _c("span", { staticClass: "gwd-font11" }, [ _c("span", { staticClass: "gwd-mw" }, [ _vm._v(_vm._s(_vm.data[0].rname)) ]), _vm.data[0].rank ? _c("span", [_vm._v("第" + _vm._s(_vm.data[0].rank) + "名")]) : _vm._e() ]) ] ), _vm._v(" "), _vm.data.length > 1 ? _c( "div", { staticClass: "gwd-rank-addition" }, _vm._l(_vm.addition, function(item) { return _c( "a", { key: item.rurl, attrs: { title: item.rname, href: item.rurl, target: "_blank" } }, [ _c("span", { staticClass: "gwd-font11 gwd-mw" }, [ _vm._v(_vm._s(item.rname)) ]) ] ) }), 0 ) : _vm._e() ] ) ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "820ada4eda60a4c0283e": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Special_vue_vue_type_template_id_07414d06_scoped_true___ = __webpack_require__("b5078ed36a39849f3e1e"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Special_vue_vue_type_script_lang_js___ = __webpack_require__("ddd340b1a0d4eaae0c6e"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__Special_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__Special_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Special_vue_vue_type_style_index_0_id_07414d06_lang_less_scoped_true___ = __webpack_require__("8969f1055c9d9ed5038b"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__Special_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__Special_vue_vue_type_template_id_07414d06_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__Special_vue_vue_type_template_id_07414d06_scoped_true___["b" /* staticRenderFns */], false, null, "07414d06", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('07414d06')) { api.createRecord('07414d06', component.options) } else { api.reload('07414d06', component.options) } module.hot.accept("./Special.vue?vue&type=template&id=07414d06&scoped=true&", function () { api.rerender('07414d06', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/PromoHistory/Special.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "823821d84de8e4f8adfd": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_template_id_29b33b2e_scoped_true___ = __webpack_require__("51f976974a6ecf19db5f"); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_template_id_29b33b2e_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_template_id_29b33b2e_scoped_true___["b"]; }); /***/ }), /***/ "82410f902da08ba0a973": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "gwd-row gwd-align" }, [ _c( "a", { staticClass: "gwd-row gwd-align", attrs: { href: "https://tb.gwdang.com/extension/qrpage?dp_id=" + _vm.dpId + "&tag=" + _vm.tag + "&limit=" + _vm.coupon.limit + "&discount=" + _vm.coupon.discount, title: "点击领取", target: "_blank" } }, [ _c( "span", { staticClass: "gwd-content", staticStyle: { flex: "1" } }, [ _vm._v("\n 当前商品可领" + _vm._s(_vm.couponTypeText) + " "), _vm.coupon ? [ _vm._v( "满" + _vm._s(_vm.coupon.limit) + "减" + _vm._s(_vm.coupon.discount) ) ] : _vm._e() ], 2 ), _vm._v(" "), _c("span", { staticClass: "gwd-take" }, [_vm._v("点击领取")]) ] ), _vm._v(" "), _c("img", { attrs: { src: __webpack_require__("7dd623a3756f546cc3f6"), alt: "" } }) ]) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "83271c7588396d2d5e59": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var tm = undefined; var load = undefined; var caches = undefined; function addcnzz(c) { // var head = document.getElementsByTagName('head') // if(head && head[0]) head = head[0] // var script = document.createElement('script'); // script.src = c; // script.async = true; // script.defer = true; // script.language = "JavaScript"; // head.appendChild(script); // load = true } module.exports.init = function (cnzz) { if (cnzz) { addcnzz(cnzz); } setTimeout(function () { log('ChromeVersion', __webpack_require__("2517c4f5c89f34233e53").getChromeVersion()); }, 1000); if (navigator.userAgent.toLowerCase().includes('edg')) { G.browser = 'edge'; } else { G.browser = G.from_device; } }; window.cnzzLogCount = 0; var log = function log(category, action, label, value, nodeid) { window.cnzzLogCount++; // console.log('cnzz', [category, action, label, value, nodeid]) if (!load) { //console.log('cnzz not load') return; }; if (caches === category) { clearTimeout(tm); tm = setTimeout(function () { if (window._czc && window._czc.push) { action = action || '.'; label = label || ''; window._czc.push(["_trackEvent", category, action, label, value, nodeid]); caches = category; } }, 300); } else { if (window._czc && window._czc.push) { action = action || '.'; label = label || ''; window._czc.push(["_trackEvent", category, action, label, value, nodeid]); caches = category; } } }; var logged = []; var logOnce = function logOnce(category, action, label, value, nodeid) { // 同log,只记录一次 var id = [category, action, label, value, nodeid].join('-'); if (logged.indexOf(id) === -1) { log(category, action, label, value, nodeid); logged.push(id); } }; module.exports.log = log; module.exports.logOnce = logOnce; // 记录某个元素的曝光和悬浮 module.exports.hoverLog = function (element, name) { setTimeout(function () { if ($(element).length) { log(name, '曝光'); } $(element).hover(function () { logOnce(name, '悬浮'); }); }, 0); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "83c13f37011b24ec3e73": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_style_index_0_id_09436700_scoped_true_lang_less___ = __webpack_require__("f3072a0cf83cf2b5938a"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_style_index_0_id_09436700_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_style_index_0_id_09436700_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_style_index_0_id_09436700_scoped_true_lang_less____default.a); /***/ }), /***/ "83e35fc844511575ba23": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GiftMoney_vue_vue_type_style_index_1_id_5b302872_scoped_true_lang_css___ = __webpack_require__("ac35c8e60ed144cec594"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GiftMoney_vue_vue_type_style_index_1_id_5b302872_scoped_true_lang_css____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GiftMoney_vue_vue_type_style_index_1_id_5b302872_scoped_true_lang_css___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GiftMoney_vue_vue_type_style_index_1_id_5b302872_scoped_true_lang_css____default.a); /***/ }), /***/ "84636dd97cee8bc936cf": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_script_lang_js___ = __webpack_require__("349e2a33b311aaaed53d"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "8474f357316d313d73fa": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponMini_vue_vue_type_template_id_42d39176_scoped_true___ = __webpack_require__("f82463ef8bf582c65ac0"); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponMini_vue_vue_type_template_id_42d39176_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponMini_vue_vue_type_template_id_42d39176_scoped_true___["b"]; }); /***/ }), /***/ "84a72adcc1d619950ad4": /***/ (function(module, exports) { module.exports = "<div id=\"promo_item_ad\">\n <a class=\"item_id_img\" href=\"{{item.url}}\" target=\"_blank\">\n <img src=\"{{item.img}}\">\n </a>\n <a href=\"{{item.url}}\" class=\"item_tle\" target=\"_blank\" title=\"{{item.title}}\">{{item.title}}</a>\n <span class=\"item_brand\">{{item.brand}}</span>\n <a href=\"{{item.store_url}}\" class=\"item_shopname\" target=\"_blank\">{{if item.platform}} {{item.platform + \" \"}} {{/if}}{{item.store_name}}</a>\n <span class=\"tuiguang_link\" >热卖</span>\n <style type=\"text/css\">\n #promo_item_ad {\n position: relative;\n width: 206px;\n height: 248px;\n text-align: center;\n }\n #promo_item_ad>a, #promo_item_ad>span {\n display: inline-block;\n font-size: 12px;\n }\n #promo_item_ad .item_id_img {\n width: 100px;\n height: 100px;\n margin: 0 auto;\n margin-top: 35px;\n }\n #promo_item_ad .item_id_img img {\n width: 100px;\n height: 100px;\n }\n div#promo_item_ad a.item_tle {\n margin-top: 20px;\n font-size: 12px;\n color: #111;\n width: 100%;\n font-weight: bold;\n line-height: 16px;\n height: 33px;\n }\n #promo_item_ad .item_brand {\n color: #666;\n width: 100%;\n height: 24px;\n line-height: 24px;\n }\n #promo_item_ad .item_shopname {\n color: #333;\n font-weight: bold;\n }\n div#promo_item_ad span.tuiguang_link {\n position: absolute;\n color: #bbb;\n right: 10px;\n top: 15px;\n }\n </style>\n</div>" /***/ }), /***/ "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(template.compile(t)({})); $('#review_btn').css('display', 'block'); }; var addEvent = function addEvent() { var choosed = undefined, time = undefined; $('#review_btn').on('mouseenter', function () { if (!choosed) { var cls = $('.review-good').attr('data-d'); $('.' + cls).show(); } var left = $(this).offset().left; $('#review_detail').css('left', left + 'px'); $('#review_detail').show(); $(this).addClass('msenter'); if ($(window).width() - ($('#review_detail').offset().left + $('#review_detail').outerWidth() + 2) < 0) { $('#review_detail').css('right', '0px').css('left', 'auto'); } }); $('#review_btn').on('mouseleave', function () { var that = this; time = setTimeout(function () { $('#review_detail').hide(); $(that).removeClass('msenter'); }, 200); }); $('#review_detail').on('mouseenter', function () { clearTimeout(time); }); $('#review_detail').on('mouseleave', function () { $('#review_detail').hide(); $('#review_btn').removeClass('msenter'); }); $('#review_detail .review-tab').on('click', function () { choosed = true; var cls = $(this).attr('data-d'); $('#review_detail .review-tab').removeClass('selected'); $(this).addClass('selected'); $('.review-right>div').hide(); $('.' + cls).show(); }); }; var addUrls = function addUrls(data) { var other_info = userData.get('other_info'); var dpid = other_info && other_info.now.dp_id; if (!dpid) return data; if (data.bad && data.bad.length > 0) { for (var i = 0; i < data.bad.length; i++) { var href = G.c_server + '/crc64/dp' + dpid + '/reviews/?rword=' + encodeURIComponent(data.bad[i].label) + '&ext=1&rtype=2'; data.bad[i].url = href; } } if (data.good && data.good.length > 0) { for (var i = 0; i < data.good.length; i++) { var href = G.c_server + '/crc64/dp' + dpid + '/reviews/?rword=' + encodeURIComponent(data.good[i].label) + '&ext=1&rtype=1'; data.good[i].url = href; } } return data; }; var getInfo = function getInfo(callback) { var href = encodeURIComponent(location.href); var url = G.server + '/extension/review?url=' + href; request.get(url).done(function (data) { if (data && !(data instanceof Array)) { callback(data); // if (callback2) // callback2(data) // else // globalData = data; } }); }; var renderReview = function renderReview(data) { data.goodbox = 'review-r-good'; data.badbox = 'review-r-bad'; if (!data.good) data.goodbox = 'review-r-noinfo'; if (!data.bad) data.badbox = 'review-r-noinfo'; var html = __webpack_require__("e5d4b0822df9259af4c6"); data = addUrls(data); var dom = template.compile(html)({ data: data, s_server: G.s_server }); $('.gwd-topbar-left').append(dom); addEvent(); }; // module.exports.getReviewTrend = (callback) => { // if (globalData) callback(globalData) // else callback2 = callback // } module.exports.init = function (data) { getInfo(function (data) { if (data.reviews.length === 0) { __webpack_require__("9c38beef5ff283e15bd2").setMet('no_reviews'); return; } renderBtn(); renderReview(data.reviews); }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "86382bef702254f6385c": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, Vue) { var QRLink = __webpack_require__("041f80fea3d67bf79b22")['default']; var util = __webpack_require__("3e983ecbff4e1a29654c"); module.exports = { init: function init() { if (window.gwd_G && G.from_device === 'bijiago') return; setTimeout(function () { if (!document.querySelector('.policy_tip-checkbox').checked) { document.querySelector('.policy_tip-checkbox').click(); } }, 2000); if (location.href.indexOf('plogin.m.jd.com') === -1 || location.href.indexOf('sku') === -1) { return; } var giftMoney = false; if (location.href.indexOf('giftcoupon') > -1) { giftMoney = true; //return } console.log(util); var d = decodeURIComponent(util.getParameterByName('returnurl')); d = decodeURIComponent(util.getParameterByName('returnurl', d)); var dpId = util.getParameterByName('sku', d); console.log(d); console.log(util.getParameterByName('returnurl', d)); if (!dpId) { return; } var e = document.createElement('DIV'); document.body.appendChild(e); var tag = ''; if (G.from_device === 'bijiago') { tag = 7; } var app = new Vue({ el: e, render: function render(h) { return h(QRLink, { ref: 'qr', props: { mode: giftMoney ? 'gwd-mode-login gwd-giftMoney' : 'gwd-mode-login', dpId: dpId + '-3', tag: tag } }); } }); setTimeout(function () { app.$refs.qr.over(); }, 0); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "863c1f55a779c0593c30": /***/ (function(module, exports) { module.exports = "<div id=\"gwdang-b2c_fuzzy-dp-detail\" class=\"panel gwd_compare top-compare-detail top-bar-detail\">\n <div class=\"panel-wrap\">\n <div class=\"b2c-pages blkcolor4\">\n 第 \n <span class=\"current-page\" id=\"b2c-current-page\">1</span>\n 页,共 \n <span class=\"page-num blkcolor4\" id=\"b2c-page-num\">{{pages}}</span>\n 页\n </div>\n <div class=\"left-page turn-page\" style=\"left:10px;\">\n <a id=\"fuzzy-prev-page\" target=\"_self\" title=\"上一页\" class=\"gwd_bg\"></a>\n </div>\n <div class=\"all-products\" style=\"width:{{productW}}px\">\n <ul id=\"b2c-item-list\">\n {{each data.product}}\n <li id=\"b2c_fuzzy-prod-item-{{$index}}\" >\n <a id=\"img-{{$value.dp_id}}\" title=\"{{$value.title}}\" target=\"_blank\" class=\"small-img\" href=\"{{$value.url}}\">\n <img src=\"{{imgLoad}}\" data-original=\"{{$value.img_url}}\" id=\"dp-image-small-{{$value.dp_id}}\" class=\"gwdang-lazy\">\n </a>\n <a target=\"_blank\" class=\"b2c-other-info\" href=\"{{$value.url}}\">\n <div class=\"priceinfo-box\">\n <div class=\"center-box\">\n <span class=\"gwd-price prifontf\">{{$value.unit ? $value.unit: '¥'}}{{$value.price_rmb ? $value.price_rmb : $value.price}}</span>\n {{if $value.promo2}}\n <span class=\"dp-promotion gwd_bg\">\n <div class=\"dp-promotion-detail\">\n {{each $value.promo2}}\n <span class=\"dp-pro-item\">{{$value}}</span>\n {{/each}}\n </div>\n </span>\n {{/if}}\n {{if $value.coupon2}}\n <span class=\"dp-coupon gwd_bg\">\n <div class=\"dp-coupon-detail\">\n {{each $value.coupon2}}\n <span class=\"dp-coupon-item\">{{$value}}</span>\n {{/each}}\n </div>\n </span>\n {{/if}}\n {{if $value.yushou2}}\n <span class=\"dp-yushou gwd_bg\">\n <div class=\"dp-yushou-detail\">\n {{each $value.yushou2}}\n <span class=\"dp-pro-item\">{{$value}}</span>\n {{/each}}\n </div>\n </span>\n {{/if}}\n </div>\n </div>\n \n <span class=\"b2c-store blkcolor1\">{{$value.site_name}}</span>\n <span id=\"{{$value.dp_id}}_promotion\">{{#$value.promodom}}</span>\n <span class=\"b2c-fees blkcolor4\">{{$value.comment_num ? (\"评论数:\" +$value.comment_num) : $value.fee }}</span>\n <span class=\"b2c-tle blkcolor1\">{{$value.title}}</span>\n </a>\n </li>\n {{/each}}\n </ul>\n </div>\n <div class=\"right-page turn-page\">\n <a role=\"button\" id=\"fuzzy-next-page\" class=\"gwd_bg\" title=\"下一页\"></a>\n </div>\n </div>\n <style type=\"text/css\">\n #gwdang-b2c_fuzzy-dp-detail {\n display: none;\n }\n #gwdang-b2c_fuzzy-dp-detail .turn-page {\n width: {{width}}px;\n }\n </style>\n</div>" /***/ }), /***/ "87038ee9f896d5ddf0a2": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_style_index_0_id_b671e2be_scoped_true_lang_less___ = __webpack_require__("ba004501820aed46ea98"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_style_index_0_id_b671e2be_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_style_index_0_id_b671e2be_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkLeft_vue_vue_type_style_index_0_id_b671e2be_scoped_true_lang_less____default.a); /***/ }), /***/ "882193f0b82bf82cfec1": /***/ (function(module, exports) { module.exports = " <ul>\n {{each data}}\n <li class=\"li_{{$index}}\">\n <span>{{$value.promokeys}}</span>\n <a href=\"{{$value.url}}\" target=\"_blank\" title=\"{{$value.title}}\">{{$value.title}}</a>\n </li>\n {{/each}}\n </ul>\n <em class=\"promo_shuxian\"></em>" /***/ }), /***/ "8896bf15e5230f0c5970": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-common-login.gwd-favor[data-v-5efee9c0] {\n box-sizing: border-box !important;\n align-items: center;\n}\n.gwd-common-login.gwd-favor .gwd-main-login[data-v-5efee9c0] {\n box-sizing: border-box;\n width: 240px;\n}\n.gwd-common-login.gwd-favor .gwd-main-login .gwd-login-methods[data-v-5efee9c0] {\n padding-left: 8px;\n padding-right: 8px;\n}\n.gwd-common-login.gwd-favor .gwd-main-login .gwd-login-methods button[data-v-5efee9c0] {\n font-size: 14px;\n color: #333333;\n}\n.gwd-common-login.gwd-favor .gwd-main-login .gwd-login-methods .gwd-login-active[data-v-5efee9c0] {\n font-weight: bold;\n}\n.gwd-common-login.gwd-favor .gwd-main-login .gwd-login-main[data-v-5efee9c0] {\n width: 240px;\n}\n.gwd-common-login.gwd-favor .gwd-main-login .gwd-login-main input[data-v-5efee9c0] {\n box-sizing: border-box !important;\n height: 32px;\n line-height: 32px;\n}\n.gwd-common-login.gwd-favor .gwd-main-login .gwd-login-main button[data-v-5efee9c0] {\n box-sizing: border-box !important;\n}\n.gwd-common-login.gwd-favor .gwd-main-login .gwd-login-main .gwd-light-btn[data-v-5efee9c0] {\n height: 32px;\n line-height: 30px;\n}\n.gwd-common-login.gwd-favor .gwd-main-login .gwd-login-main .bottom-line[data-v-5efee9c0] {\n width: 240px;\n align-items: center;\n justify-content: center;\n}\n.gwd-common-login.gwd-favor .gwd-main-login button[data-v-5efee9c0] {\n width: 220px;\n}\n.gwd-common-login.gwd-favor .gwd-alter-login[data-v-5efee9c0] {\n margin-top: 54px;\n}\n", ""]); // exports /***/ }), /***/ "8912b42075188a668b27": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, "#gwdang-trend:hover {\n background: #edf1f2;\n}\n#gwdang-trend:hover #gwdang-trend-detail {\n display: block;\n}\n.gwdang-tab .top-bar-detail {\n display: none!important;\n}\n.gwdang-tab:hover .top-bar-detail {\n display: block!important;\n}\n", ""]); // exports /***/ }), /***/ "8969f1055c9d9ed5038b": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Special_vue_vue_type_style_index_0_id_07414d06_lang_less_scoped_true___ = __webpack_require__("c354d994acb241e7d167"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Special_vue_vue_type_style_index_0_id_07414d06_lang_less_scoped_true____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Special_vue_vue_type_style_index_0_id_07414d06_lang_less_scoped_true___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Special_vue_vue_type_style_index_0_id_07414d06_lang_less_scoped_true____default.a); /***/ }), /***/ "89d1adbe1b58d82e839d": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, "\n#page #content #bd {\n z-index: 0!important;\n}\n", ""]); // exports /***/ }), /***/ "8b0ac201d3fddea2e383": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['date', 'badge', 'type', 'price'] }; module.exports = exports['default']; /***/ }), /***/ "8b533351445f44b98685": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) {var __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { 'use strict'; var $ = __webpack_require__("e081b2491b5c9b12b9da"); var parseprice = __webpack_require__("cb0906562effcf1b0e6c"); var cacheprovince; function getProductInfoPrice() { var price = G.dp.price; if (price) price = Number(price); return price; } return { /** * 价格实时反馈模块 * 监控当前网站价格情况,并提取价格数据 * @author:mllong([email protected]) * @since:2013-05-20 */ //提取当前页面的价格 getOnlinePrice: function getOnlinePrice(siteName) { siteName = siteName || G.pageInfo.siteName; var price = 0; try { if (typeof this.pricePattern[siteName] != 'undefined') { var len = this.pricePattern[siteName].length, patterns = this.pricePattern[siteName]; for (var i = 0; i < len; i++) { try { var pattern = patterns[i]; price = $(pattern + ':visible').length && $(pattern).eq(0).text(); if (!price) continue; price = parseprice(price); if (price) break; } catch (e) { /*eslint-disable */ if (G.debug) { console.log(e); } /*eslint-enable */ } } } } catch (e) { /*eslint-disable */ if (G.debug) { console.log(e); } /*eslint-enable */ } /*新蛋中国价格为图片显示,没法获取到,只能从其他地方拿到*/ if (price == 0 || price == '') price = getProductInfoPrice(); return price; }, //部分主流站点的价格模板 pricePattern: { 'coocaa': ['#ECS_SHOPPRICE span:eq(1)', '#ECS_SHOPPRICE'], 'nubia': ['.pdtby-price'], 'coolpad': ['.produce_scall_right_textb ul li span.produce_scall_right_textx'], 'lenovo': ['.lenovo-member-price font', '#gprice'], 'gjw': ['#spPrice', '.goujiu_price'], 'homevv': ['.ht_money'], 'xiaomi': ['.goods-info-head .J_mi_goodsPrice', '.J_mi_goodsPrice', '.price .num'], 'xiu': ['#prd_price_div .style3'], 'moonbasa': ['#p_saleprice', '.detailprice', '.leftPrice b'], 'j1': ['#jianyiPrice'], 's': ['.salePrice_big'], 'letao': ['#special+.ltprice', '.ltprice'], 'muyingzhijia': ['.p-price'], 'paixie': ['#js_current_price'], 'zhiwo': ['.mumer', '.dsingle_nowprice'], 'bookschina': ['span.thisprice', '.thisprice'], 'leyou': ['#leyoujia'], 'taobao': ['.tm-promo-price .tm-price', '.tb-wrTuan-num', '#J_StrPriceModBox .tm-price', '#J_PromoPrice .tb-rmb-num', '#J_PromoBox .J_CurPrice', '#J_StrPrice', '.tbid-detail-price'], 'taobao-ju': ['.currentPrice'], 'tmall': ['#J_Price', '#J_StrPrice', '.tm-promo-price .tm-price', '#J_StrPriceModBox .tm-price', '.tm-price'], 'amazon': [ /*'#olpDivId .price',*/ '#priceblock_ourprice', '.priceLarge'], 'gome-q': ['.price'], 'dangdang': ['#promo_price', '.priceLarge', '#salePriceTag', '#d_price'], 'm18': ['.detailsArea strong[data-price]'], 'sephora': ['.proDetInfo .proPrice span'], 'taoxie': ['#divtxprice .d-real-price'], 'lusen': ['#ProductPrice'], 'mbaobao': ['.price-num'], 'chunshuitang': ['.tuan-buy-text', '.Gd_shop_Price dt'], 'oyeah': ['.pricesty'], 'x': ['.pro_big_right .list .jsj[style^=text]', '.jsj b'], 'no5': ['.prodRedTxt.price'], '360kxr': ['#pro_mall_price'], 'm6go': ['#SGoodsPrice'], 'likeface': ['.tPrc1.tPrcOn>div>b', '#jrtj'], 'morefood': ['.pro-info .text2'], 'yaofang': ['.s_xianjia_140519'], '99read': ['#panel-right .pro-InfoList li span.f-Price'], 'china-pub': ['#xxjg .pro_buy_sen', '.pro_buy_sen'], 'winxuan': ['.price-n dd b'], 'efeihu': ['.ui_price strong em'], 'happigo': ['#real_price'], 'gap': ['#productShowPrice'], 'tiantian': ['.xx_price'], 'xijie': ['.detail_pro_d_1'], 'lingshi': ['#shopprice'], 'banggo': ['#salePriceText'], 'yesmywine': ['.explain .myPrice'], 'jxdyf': ['#zc_jiage .jxPrice'], 'tootoo': ['#price'], 'zm7': ['#ECS_SHOPPRICE'], 'miqi': ['.left_topTable_btn'], 'jiumei': ['#jiage .cuxiao .numb strong'], 'okhqb': ['.cz-num'], 'bookuu': ['#bk-d-price'], 'tao3c': ['.detail_info_rm1 cite'], 'd1': ['.p_mp'], 'ruiyi': ['.goods-price .price1'], 'lamiu': ['.action-price'], 'wbiao': ['#g5_price'], 'ehaier': ['.cur-price'], 'secoo': ['#secooPriceJs'], 'xifuquan': ['.jg_cuhong'], 'yiguo': ['.pro-price>div strong'], 'yummy77': ['.cprice .price'], 'fruitday': ['.prod_price', '#jq-price'], 'zuipin': ['.detail_price'], 'yohobuy': ['.price-sale'], 'ikjtao': ['#ECS_GOODS_AMOUNT'], 'miyabaobei': ['#item_price'], 'ule': ['.productPrice .price strong'], 'minshengec': ['.ms_price .dd strong'], 'wangfujing': ['#pro-price .cost'], 'meilele': ['#JS_effect_price'], 'supuy': ['#ShowPrice', '.good_d_pricenew', '#g_price'], 'lining': ['#offerPrice .v'], 'rrs': ['.cur-price'], 'lifevc': ['#shoppingPanelUpper .shoppingInfo .salePrice'], 'ymatou': ['#proDetail .promotion .count'], 'kjt': ['.mainPrice'], 'logitech': ['.sale-price'], 'xiji': ['.action-price'], 'nike': ['.exp-pdp-product-price-container .exp-pdp-local-price'], '360kad': ['#pricenumber'], 'meici': ['.price', '.pro_price .c_purple'], 'beibei': ['#detail-meta .price-info .price'], '100yue': ['.action-price', '#price'], 'daling': ['.goods-price .bold'], 'sfht': ['.goods-price-r1 strong'], '360buy': ['#jd-price', '#priceinfo', '#teamStatus .p-price', '#summary-price', '.summary-price .p-price .price'], '51buy': [".xprice_val[itemprop='lowPrice']", ".xprice_val[itemprop='price']", ".price_font"], 'suning': ['#promotionPrice', '#promotionPrice em', '#isquickBuyBoxPrice em', '#bookprdprice', '#netPrice em', '#mainPrice em', '#rpPrice', '#promoPrice', '#ePrice em'], 'yihaodian': ['#detail_prom_price', '#current_price', '#productFacadePrice', '#nonMemberPrice strong', '.pricebox'], 'vancl': ['.cuxiaoPrice strong'], 'gome': ['#prdPrice', '.detail .price'], 'okbuy': ['#prodPriceAj'], 'vjia': ['#SpecialPrice'], 'jumei': ['.newdeal_deal_price', '.price_now', '#mall_price', '.deal_ori_price .deal_accout_two'], 'jumeiglobal': ['.jumei_price'], 'yougou': ['.xsbuy_itm strong.price', '#yitianPrice i', '#yitianPrice'], 'shopin': ['.selPrice span:eq(1)', '.shopinjg1'], 'vmall': ['#pro-price'], 'sfbest': ['.priceBox .price', '.price', '#price font'], 'ouku': ['#pdAllPrice .prc', '.sale-price'], 'womai': ['#buyPrice'], /* 'coo8': [ 'li:contains("促") .c8-cxprice em', '.c8-money' ], */ 'baidu-weigou': ['#new-price', '.old-price'], 'yintai': ['span.yt-num', '.yt-num'], 'feiniu': ['#priceFn', '#J_product_value .fn-rmb-num'], 'jiuxian': ['#actPricePrice', '#_nowPriceStr'], 'zol': ['.price-type'], 'feifei': ['.price-box .price-detail', '.price-info-value', '.price-box'], 'kzj365': ['#rprice'], 'kaola': ['#js_currentPrice'], 'metao': ['.pi_price_box_row .pbox_price', '.price_sendplace .price'], 'philips': ['.pdc-blue-c span'], 'tcl': ['#priceBuy'], 'changhong': ['.ti_scc strong'], 'konka': ['.action-price'], 'hisense': ['.inlist .flva'], 'ineigo': ['#ULPrice font'], 'skg': ['.productSale .salePrice'], 'k-touch': ['.procie'], 'gionee': ['#JgoodsPrice'], 'oppo': ['.buying-price .price'], 'vivo': ['.action-price'], 'grainger': ['#summary-price .p-price'], 'ebay': ['#prcIsum'], 'taobao-95095': ['#J_PromoPrice .tm-price'], 'meilishuo': ['#price-now'], 'mogujie': ['#J_NowPrice'], 'sephoracps': ['.proDetInfo .proPrice span'], 'strawberrynet': ['#divShopPrice .mt-10'], 'jia': ['.sale-price span'], 'lemall': ['#addbits'], 'handu': ['.promote_price'], 'taoshu': ['#price-txt'], 'camel': ['#prod_price'], 'quwan': ['#price_goods_div strong'], 'lefeng': ['.dity-price-c span'], '139shop': ['#bdj'], 'wangjiu': ['#finalPriceValue'], 'liebo': ['#8_CurPrice'], 'aimer': ['#postPrice em'], 'kadang': ['#J_Price'], 'lizi': ['#s_price'], 'metromall': ['.proDprice'], 'pba': ['.price'], 'shangpin': ['.spDetail_spPriceBigRed i'], 'masamaso': ['.price24'], 'zhen': ['#sale-price'], 'zhenpin': ['#sale-price'], 'sportica': ['.special-price-tittle+.price'], 'milier': ['.big_price'], 'nop': ['.action-price'], 'bbready': ['.action-flashbuy_price'], 'qinqinbaby': ['.content-main-zk-1'], 'sasa': ['.price .action-price'], '5lux': ['.fsk_goods_price'], 'aliexpress': ['#sku-discount-price'], 'shopbop': ['.priceBlock'], 'fengqu': ['.goods-price-r1 strong'], 'keede': ['.message_price'], 'showjoy': ['.j_PriceNum'], 'easeeyes': ['.fontArial'], 'yunhou': ['.jFirstPrice'], '51din': ['.product_price b'], 'aidai': ['#_thisfp'], 'spider': ['.hmcptwo_sjjg'], 'zzl365': ['.goods-price .price1'] }, //分站信息配置 subStationPattern: { '51buy': 'prid', 'yihaodian': 'provinceId', 'womai': 'siteinfotemp', 'suning': 'cityId' }, //获取分站信息 getSubStationId: function getSubStationId(siteName) { if (cacheprovince) return cacheprovince; siteName = siteName || G.pageInfo.siteName; if (typeof this.subStationPattern[siteName] != 'undefined') { var name = this.subStationPattern[siteName] + "="; var ca = document.cookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; c = $.trim(c); if (c.indexOf(name) == 0) { var province_id = c.substring(name.length, c.length); if (siteName == '51buy') { try { var sp = province_id.indexOf('_'); if (sp >= 0) { province_id = province_id.substr(sp + 1); } } catch (e) {} } cacheprovince = province_id; return province_id; } } } return ''; }, //尝试获取js延迟加载的价格 tryGetLazyLoadPrice: function tryGetLazyLoadPrice(site, callback, dp_ids, dp_id, style) { var selector = ""; //计时器默认循环次数,如果循环了5秒还是没有结果,那就不要监控价格,先请求price_trend var loopNumber = 0; var siteSelector = { "tmall.com": ".tm-price,.tb-wrTuan-num", "taobao.com": ".tb-detail-price strong:not(.del)" }; try { selector = siteSelector[site]; } catch (e) { /*eslint-disable */ if (G.debug) { console.log(e); } /*eslint-enable */ selector = ""; } var priceTimer = setInterval(function () { ++loopNumber; if ($(selector).length || loopNumber > 5) { var price = ""; if ($(selector).length) { price = $(selector).text().split('-')[0]; price = parseFloat(price.replace(/[^0-9.]/g, "")); //不要直接使用fixed,这里不是四舍五入,因为tmall淘宝可能有两个价格,一个真实价格12.10,一个原售价20.10,有时候会扣到 12.102010这样的情形,直接干掉小数点后两位的数字 price = parseInt(price * 100) / 100.0; price = price.toFixed(2); } dp_ids += "&price=" + price + "&site=" + site.split('.')[0]; clearInterval(priceTimer); callback(dp_ids, dp_id, style); } }, 1000); } }; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "8c93e61de275d04e62e7": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <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(); }); } /***/ }), /***/ "8dc7f5a7e7a7f98e12b6": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { module.exports.init = function (obj) { var unionUrl = G.u_server; var ukey = 'u.' + G.u_key + '.com'; if (obj.url.includes('.amazon.')) { unionUrl = 'https://u.smartlinkclick.com'; } if (typeof obj != 'object') return; if (obj.url.indexOf(ukey) > -1) return obj.url; var ext = ""; if (obj.ext) ext = "-" + obj.ext; if (obj.is_mobile) { if (obj.isbrowser) return obj.url;else return unionUrl + '/union/go/?site_id=' + obj.site_id + '&target_url=' + encodeURIComponent(obj.url) + '&union=' + obj.union + '&column=' + obj.mod + '-' + obj.dp_id + ext; } else { return unionUrl + '/union/go/?site_id=' + obj.site_id + '&target_url=' + encodeURIComponent(obj.url) + '&union=' + obj.union + '&column=' + obj.mod + '-' + obj.dp_id + ext; } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "8e6e0c725513ff58325a": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("CommonCouponBarMini", { attrs: { icon: "https://cdn.bijiago.com/images/extensions/activity/[email protected]", type: _vm.qr ? "qr" : "link", href: _vm.url, text: "当前商品可领购物党红包,预估立减" + _vm.value + "元", couponValue: _vm.value, mainColor: "#ff3b5c", secondColor: "#ff809a", qrParams: _vm.payload, takeBg: _vm.takeBg, qrTitle: "领红包" } }) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "8e8507d71ff6e8b54aa2": /***/ (function(module, exports) { module.exports = "<a id=\"coupon_box\" title=\"{{tle}}\" class=\"coupon-box1\" {{if !isShowPic}} href=\"{{data.click_url2}}\" target=\"_blank\" style=\"cursor:pointer\"{{/if}}>\n <span class=\"coupon-icon\"></span>\n <div class=\"coupon-tle\">\n <span>当前商品领券立减{{data.coupon.coupon_money}}元</span> \n <em class=\"coupon_gif\"></em>\n </div>\n <div class=\"click2get\">\n <span class=\"c2g-sp1\">¥{{data.coupon.coupon_money}}</span>\n <span class=\"c2g-sp2\">领取</span>\n </div>\n {{if picUrl && isShowPic}}\n <div class=\"minicoupon_detail\">\n <img src=\"{{picUrl}}\">\n <span>{{ useTaobao? '淘宝': '微信' }}扫码领券</span>\n </div>\n {{/if}}\n <style type=\"text/css\">\n #coupon_box.coupon-box1 {\n width: 460px;\n height: 34px;\n background-color: #fff;\n border: 1px solid #e8e8e8;\n border-top: none;\n position: relative;\n margin: 0px;\n padding: 0px;\n float: left;\n display: block;\n }\n #coupon_box:after {\n display: block;\n content: \"\";\n clear: both;\n }\n .gwd_tmall #gwd_minibar {\n float: none;\n }\n #coupon_box * {\n {{if isShowPic}}\n cursor: default;\n {{else}}\n cursor: pointer;\n {{/if}}\n }\n .minicoupon_detail {\n position: absolute;\n top: 35px;\n right: -1px;\n height: 150px;\n width: 132px;\n display: none;\n z-index: 99999999999;\n background: #FFF7F8;\n border: 1px solid #F95774;\n }\n #coupon_box:hover .minicoupon_detail {\n display: block;\n }\n .minicoupon_detail img {\n width: 114px;\n height: 114px;\n float: left;\n margin-left: 9px;\n margin-top: 9px;\n }\n .minicoupon_detail span {\n font-size: 14px;\n color: #F95572;\n letter-spacing: 0;\n font-weight: bold;\n float: left;\n height: 12px;\n line-height: 14px;\n width: 100%;\n margin-top: 6px;\n text-align: center;\n }\n .coupon-box1 * {\n font-family: 'Microsoft YaHei',Arial,SimSun;\n }\n .coupon-icon {\n float: left;\n width: 20px;\n height: 20px;\n background: url('https://cdn.gwdang.com/images/extensions/newbar/coupon_icon.png') 0px 0px no-repeat;\n margin: 9px 8px 9px 12px;\n }\n #coupon_box .coupon-tle {\n color: #FF3B5C;\n font-size: 12px;\n margin-right: 11px;\n float: left;\n height: 34px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: 301px;\n line-height: 34px;\n text-decoration: none!important;\n }\n #coupon_box .coupon-tle * {\n color: #f15672;\n }\n #coupon_box .coupon-tle span {\n margin-right: 5px;\n font-weight: bold;\n }\n .coupon_gif {\n background: url('https://cdn.gwdang.com/images/extensions/newbar/turn.gif') 0px 0px no-repeat;\n float: right;\n height: 20px;\n width: 56px;\n margin-top: 9px;\n }\n .click2get {\n background: url('https://cdn.gwdang.com/images/extensions/newbar/coupon_01.png') 0px 0px no-repeat;\n float: left;\n height: 30px;\n width: 96px;\n margin-top: 5px;\n }\n .click2get span {\n height: 24px;\n float: left;\n margin-left: 1px;\n }\n .c2g-sp1 {\n width: 50px;\n color: #FF3B5C;\n text-align: center;\n font-size: 14px;\n line-height: 24px!important;\n }\n .c2g-sp2 {\n width: 44px;\n line-height: 24px!important;\n color: #fff!important;\n text-align: center;\n }\n div#gwd_wishlist_div.gwd_wishlist_div {\n border-bottom-right-radius: 0px;\n border-bottom-left-radius: 0px;\n }\n </style>\n</a>" /***/ }), /***/ "8fa197530a881ccf85b8": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-row {\n display: flex;\n flex-direction: row;\n}\n.gwd-inline-row {\n display: inline-flex;\n flex-direction: row;\n}\n.gwd-column {\n display: flex;\n flex-direction: column;\n}\n.gwd-inline-column {\n display: inline-flex;\n flex-direction: column;\n}\n.gwd-align {\n align-content: center;\n align-items: center;\n}\n.gwd-jcc {\n justify-content: center;\n}\n.gwd-jic {\n justify-items: center;\n}\n.gwd-button {\n outline: none;\n border: none;\n}\n.bjg-bar-button {\n font-size: 0;\n}\n.bjg-bar-button:hover {\n background: #fffbef;\n cursor: pointer;\n}\n.bjg-bar-button:hover .bjg-window {\n display: block;\n}\n.mainbar-fold .bjg-bar-button,\n.mainbar-fold #top_coupon_btn,\n.mainbar-fold .rinfo-btn,\n.mainbar-fold .gwd-bottom-tmall {\n display: none!important;\n}\n.gwd-font12 {\n font-size: 12px;\n}\n.gwd-font14 {\n font-size: 14px;\n}\n.gwd-red {\n color: #ff3532;\n}\n.gwd-red-bg {\n background: #ff3532;\n}\n.gwd-hui333 {\n color: #333333;\n}\n.gwd-hui999 {\n color: #999999;\n}\n.gwd-font10 {\n font-size: 12px;\n transform: scale(0.8333);\n transform-origin: bottom center;\n}\n.gwd-font11 {\n font-size: 12px;\n transform: scale(0.91666);\n transform-origin: bottom center;\n}\n.gwd-font9 {\n font-size: 12px;\n transform: scale(0.75);\n transform-origin: bottom center;\n}\n.gwd-hoverable:hover {\n background: #edf1f2;\n}\n.right-info > * {\n border-left: 1px solid #edf1f2;\n}\n.gwd-red-after-visit:hover {\n color: #e03024 !important;\n}\n", ""]); // exports /***/ }), /***/ "91daf6262e9d17322e4c": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _QrErrorVue = __webpack_require__("d57cd728628c618acba9"); var _QrErrorVue2 = _interopRequireDefault(_QrErrorVue); var _GiftMoneyMixin = __webpack_require__("7bb864157b1329e994ad"); var _GiftMoneyMixin2 = _interopRequireDefault(_GiftMoneyMixin); var _standardModuleComponentsCommonCouponBarMini = __webpack_require__("bf749102803a6e48eddc"); var _standardModuleComponentsCommonCouponBarMini2 = _interopRequireDefault(_standardModuleComponentsCommonCouponBarMini); exports['default'] = { data: function data() { return { takeBg: __webpack_require__("99ca541843e26ba97e4b") }; }, name: "Subsidy", props: ['value', 'url', 'qr', 'id', 'name', 'price', 'oldPatch'], components: { QrError: _QrErrorVue2['default'], CommonCouponBarMini: _standardModuleComponentsCommonCouponBarMini2['default'] }, mixins: [_GiftMoneyMixin2['default']], mounted: function mounted() { this.over(); } }; module.exports = exports['default']; /***/ }), /***/ "91f250ebeb8d5987491c": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var $ = __webpack_require__("e081b2491b5c9b12b9da"); var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); Promise.prototype.done = function (onFulfilled, onRejected) { return this.then(onFulfilled, onRejected)['catch'](function (error) { setTimeout(function () { throw error; }, 0); }); }; Promise.prototype.fail = function (onFulfilled, onRejected) { this.then(onFulfilled, onRejected)['catch'](function (error) { setTimeout(function () { throw error; }, 0); }); }; var wrap = function wrap(url) { if (!url) throw new Error('url 不能为空'); var start = '?'; var callback = 'callback=?&'; if (url.indexOf('?') > -1) { start = '&'; } var extension_env; //format是历史接口兼容 var format = 'format=jsonp&'; if (G.chrome_extension || G.from_device === 'maxthon' || G.from_device === 'firefox' || G.from_device === 'chrome') { extension_env = true; } //extension_env = true if (G.allowBackgroundRequest) { extension_env = true; } if (extension_env) { callback = ''; format = 'format=json&'; } var fp = ''; if (localStorage.getItem('gwdang-fp')) { fp = 'fp=' + localStorage.getItem('gwdang-fp') + '&dfp=' + localStorage.getItem('gwdang-dfp') + '&'; } return '' + url + start + callback + format + fp; }; module.exports.getCouponFromUrl = function (url) { return new Promise(function (resolve, reject) { module.exports.get(G.server + '/extension/CouponHandler?op=get&rawApi=' + encodeURIComponent(url)).then(function (res) { if (res.map && res.map.length > 0 && res.map[0].is_api && res.handle) { var _ret = (function () { var escapeStringRegExp = function escapeStringRegExp(str) { return str.replace(escapeStringRegExp.matchOperatorsRe, '\\$&'); }; var trueUrl = res.map[0].api.uri; var tag = res.map[0].api.tag; var NamedRe = __webpack_require__("a7b2f56734970cb48205").named; escapeStringRegExp.matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g; if (!res.handle[tag]) { if (url.indexOf('open.lesiclub.cn') > -1) { module.exports.rawGet(url).then(function (res) { resolve(res); }); return { v: undefined }; } else { // module.exports.rawGet(url).then(res => { // resolve(res) // }) res.handle = { "sg.weitaoke": ['"coupon_click_url":"(:<link>.+?)"[\\s\\S]*?"coupon_info":"满(:<limit>\\d+)元减(:<coupon>\\d+)元"'], "weitaoke": ['"coupon_click_url":"(:<link>.+?)"[\\s\\S]*?"coupon_info":"满(:<limit>\\d+)元减(:<coupon>\\d+)元"'], "uc.weitaoke": ['"coupon_click_url":"(:<link>.+?)"[\\s\\S]*?"coupon_info":"满(:<limit>\\d+)元减(:<coupon>\\d+)元"'], "edge.weitaoke": ['"coupon_click_url":"(:<link>.+?)"[\\s\\S]*?"coupon_info":"满(:<limit>\\d+)元减(:<coupon>\\d+)元"'] }; } } var re = NamedRe(new RegExp(res.handle[tag][0])); //trueUrl = trueUrl.replace('http://q.weitaoke.net', 'https://q.apptimes.cn') var r = undefined; if (trueUrl.indexOf('open.lesiclub.cn') > -1) { if (G.from_device === 'bijiago') { (function () { var runned = false; r = new Promise(function (resolve) { $.get(url).done(function (res) { runned = true; resolve(res); }); setTimeout(function () { if (!runned) { resolve(null); } }, 4000); }); })(); } else { r = module.exports.rawGet(trueUrl); } } else { r = module.exports.rawGet(trueUrl); } r.then(function (data) { if (!data.data) { resolve(null); return; } window.toTest = JSON.stringify(data); window.toTestRe = re; try { var result = re.exec(JSON.stringify(data)).captures; resolve({ code: 200, data: { click_url: result.link[0], tkl: result.tkl ? result.tkl[0] : '', coupon: { coupon_money: result.coupon[0], coupon_limit: result.limit[0] } } }); } catch (e) { resolve(null); } }); })(); if (typeof _ret === 'object') return _ret.v; } else { resolve(null); } })['catch'](function (e) { return resolve(null); }); }); }; module.exports.raw = function (url, isarg) { if (isarg) { url = url + '&union=' + G.union + '&version=' + G.version + '&from_device=' + G.from_device; } var _done; if (G.allowBackgroundRequest) { return new Promise(function (resolve) { communicate.trigger({ type: 'proxyRequest', url: url }); communicate.on(function (info) { if (info.type === 'proxyRequest' && info.id === url) { resolve(JSON.stringify(info.value)); } }); }); } else { var r = { done: function done(cb) { _done = cb; } }; var xhr = new XMLHttpRequest(); xhr.addEventListener('load', function () { if (_done) _done(xhr.responseText); }); xhr.addEventListener('error', function () { if (_done) _done(xhr.responseText); }); xhr.open("GET", url, true); xhr.send(); return r; } }; module.exports.getScript = function (url, fc, callback) { window[fc] = function (data) { callback(data); }; var dom = document.createElement('script'); dom.src = url; dom.type = "text/javascript"; document.body.appendChild(dom); }; /** * 普通GET请求,不会加上多余的参数 * @param url * @returns {Promise<unknown>|*} */ module.exports.rawGet = function (url) { var allowCredentials = arguments.length <= 1 || arguments[1] === undefined ? false : arguments[1]; if (G.allowBackgroundRequest) { return new Promise(function (resolve, reject) { var resolved = false; communicate.trigger({ type: 'proxyRequest', url: url, referer: location.href }); communicate.on(function (info) { if (info.type === 'proxyRequest' && info.id === url) { resolved = true; resolve(info.value); } }); setTimeout(function () { if (!resolved) { reject(); } }, 3000); }); } else { if (allowCredentials) { return module.exports.requestXHR(url, {}); } return $.get(url); } }; // function request(url, callback, referer) { // var xmlhttp = new XMLHttpRequest(); // xmlhttp.addEventListener('load', function() { // callback(xmlhttp.responseText) // }) // xmlhttp.withCredentials = true // xmlhttp.open("GET", url, true); // // if (referer) { // // xmlhttp.setRequestHeader('x-referer', referer) // // } // xmlhttp.send(); // }; /** 请求自己接口 */ module.exports.get = function (url) { var instanceId = G.instanceId; var from_type = ""; if (G.from_type) { from_type = '&from_type=' + G.from_type; } url = wrap(url) + 'union=' + G.union + '&version=' + G.version + '&from_device=' + G.from_device + from_type; if (G.crc64) url += "&crc64=1"; if (!Promise.prototype.done) { Promise.prototype.done = Promise.prototype.then; Promise.prototype.fail = Promise.prototype['catch']; } if (G.allowBackgroundRequest) { return new Promise(function (resolve) { communicate.trigger({ type: 'proxyRequest', url: url, referer: location.href }); communicate.on(function (info) { if (instanceId && instanceId !== G.instanceId) { resolve(null); return; } if (info.type === 'proxyRequest' && info.id === url) { resolve(info.value); } }); }); } else { return new Promise(function (resolve, reject) { // request(url, function(res) { // try { // resolve(JSON.parse(res)) // } catch (e) { // resolve(res) // } // }, location.href) window.ts = $; $.ajax({ beforeSend: function beforeSend(request) { if (G.requestNeedToken) { //request.setRequestHeader("x-bjg-token", G.requestNeedToken); } }, dataType: "json", url: url, success: function success(data) { if (instanceId && instanceId !== G.instanceId) { resolve(null); return; } resolve(data); } }); // $.getJSON(url).then(res => resolve(res)) // console.log(url) // $.ajax(url, { // xhrFields: { // withCredentials: true // }, // jsonp: false, // jsonpCallback: '' // }).then(res => { // resolve(res) // }) }); } }; var postingId = 0; module.exports.post = function (url, data) { var useForm = arguments.length <= 2 || arguments[2] === undefined ? false : arguments[2]; var withCredentials = arguments.length <= 3 || arguments[3] === undefined ? true : arguments[3]; var reqId = postingId; postingId++; if (G.allowBackgroundRequest && navigator.userAgent.indexOf('MetaSr') === -1) { return new Promise(function (resolve) { communicate.trigger({ type: useForm ? 'proxyRequestPostForm' : 'proxyRequestPost', url: url, payload: data, reqId: reqId, referer: location.href }); communicate.on(function (info) { if (info.type.indexOf('proxyRequestPost') > -1 && info.id === reqId) { resolve(info.value); } }); }); } else { return module.exports.requestXHRPost(url, data, useForm, withCredentials); } }; /** 请求别人接口,隐藏痕迹 */ var getPure = function getPure(url) { //console.log('getPure ' + url) // 曾用于获取商品信息,现在不需要了 if (url.indexOf('https://acs.m.taobao.com/h5/mtop.taobao.detail.getdetail/6.0') > -1) { //console.warn('interupt ' + url) return { done: function done(cb) { cb({ intercepted: true, msg: 'view request.js' }); }, then: function then(cb) { cb({ intercepted: true, msg: 'view request.js' }); } }; } url = wrap(url); return $.ajax({ beforeSend: function beforeSend(request) { if (G.requestNeedToken) { //request.setRequestHeader("x-bjg-token", G.requestNeedToken); } }, dataType: "json", url: url }); }; module.exports.getPure = getPure; module.exports.requestXHR = function requestXHR(url) { var withCredentials = arguments.length <= 1 || arguments[1] === undefined ? true : arguments[1]; return new Promise(function (resolve) { var xmlhttp = new XMLHttpRequest(); xmlhttp.addEventListener('load', function () { try { var res = JSON.parse(xmlhttp.responseText); resolve(res); } catch (e) { resolve(xmlhttp.responseText); } }); xmlhttp.withCredentials = withCredentials; xmlhttp.open("GET", url, true); if (G.requestNeedToken) {} //xmlhttp.setRequestHeader('x-bjg-token', G.requestNeedToken) // if (referer) { // xmlhttp.setRequestHeader('x-referer', referer) // } xmlhttp.send(); }); }; module.exports.requestXHRPost = function requestXHR(url, data) { var form = arguments.length <= 2 || arguments[2] === undefined ? true : arguments[2]; var withCredentials = arguments.length <= 3 || arguments[3] === undefined ? true : arguments[3]; return new Promise(function (resolve) { var xmlhttp = new XMLHttpRequest(); xmlhttp.addEventListener('load', function () { try { var res = JSON.parse(xmlhttp.responseText); resolve(res); } catch (e) { resolve(xmlhttp.responseText); } }); xmlhttp.withCredentials = withCredentials; xmlhttp.open("POST", url, true); if (G.requestNeedToken) { //xmlhttp.setRequestHeader('x-bjg-token', G.requestNeedToken) } if (form) { (function () { var formData = new FormData(); Object.keys(data).forEach(function (item) { formData.append(item, data[item]); }); xmlhttp.send(formData); })(); } else { xmlhttp.setRequestHeader('Content-Type', 'text/plain'); xmlhttp.send(data); } }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "91f58afd0ad3a4e2ef06": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {//content-env 与 extension-env 通信 module.exports.trigger = function (data) { if (document.createEvent) { var evt = document.createEvent('CustomEvent'); data.evt_from = G.from_device; evt.initCustomEvent('gwd_extension', true, true, data); document.dispatchEvent(evt); } }; module.exports.on = function (cb) { if (document.addEventListener) { document.addEventListener('gwd_content', function (e) { if (navigator.userAgent.indexOf('Firefox') > -1) { cb(JSON.parse(e.detail)); } else { cb(e.detail); } }); } else { document.attachEvent('gwd_content', function (e) { cb(e.detail); }); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "923c5ed34e206e1c38e1": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniPromoHistory_vue_vue_type_script_lang_js___ = __webpack_require__("15f190fd9ef61a3cd23c"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniPromoHistory_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniPromoHistory_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniPromoHistory_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniPromoHistory_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniPromoHistory_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "92a83c142f1547311c74": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, "\n.bjgou-subsidy-bar:hover .qrcode {\n display: flex!important;\n flex-direction: column;\n align-items: center;\n}\n", ""]); // exports /***/ }), /***/ "93201dafc10fe2ec927e": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_script_lang_js___ = __webpack_require__("ed91e916f05d2986bcd1"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "943197de5d5f506919a6": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( _vm.type === "link" ? "a" : "div", { tag: "component", staticClass: "gwd-row gwd-align gwd-coupon-bar", attrs: { href: _vm.href, target: "_blank", title: _vm.type === "link" ? "点击领取" : "" }, on: { mouseenter: function($event) { return _vm.over() } } }, [ _c("img", { staticStyle: { "margin-left": "12px", "margin-right": "8px", "max-width": "15px" }, attrs: { src: _vm.icon, alt: "" } }), _vm._v(" "), _c("span", { style: "color: " + _vm.mainColor + "; font-size: 13px" }, [ _vm._v(_vm._s(_vm.text)) ]), _vm._v(" "), _c("div", { staticStyle: { flex: "1" } }), _vm._v(" "), _vm.type === "link" ? _c("CouponArrow", { attrs: { color: _vm.mainColor } }) : _vm._e(), _vm._v(" "), _vm.type === "link" ? _c( "span", { staticClass: "gwd-round-click", style: "background: linear-gradient(180deg, " + _vm.secondColor + " 0%, " + _vm.mainColor + " 100%)" }, [_vm._v("点击领取")] ) : _vm._e(), _vm._v(" "), _vm.type === "qr" ? _c( "div", { staticClass: "gwd-take gwd-row gwd-align", style: "background: url(" + _vm.takeBg + ")" }, [ _c("span", { style: "color: " + _vm.mainColor }, [ _vm._v("¥" + _vm._s(_vm.couponValue)) ]), _vm._v(" "), _c("span", { staticStyle: { color: "white" } }, [_vm._v("领取")]) ] ) : _vm._e(), _vm._v(" "), _vm.type === "qr" ? _c( "div", { staticClass: "gwd-qr-hover-window gwd-column gwd-align", style: "border-color: " + _vm.mainColor }, [ !_vm.error && _vm.actualQr ? _c("img", { staticStyle: { width: "120px", height: "120px", "margin-top": "8px" }, attrs: { src: _vm.actualQr, alt: "" } }) : _vm._e(), _vm._v(" "), _vm.error ? _c("QRError", { on: { refresh: _vm.over } }) : _vm._e(), _vm._v(" "), _c( "div", { staticClass: "gwd-row", staticStyle: { "margin-top": "8px" } }, [ _c( "span", { style: "color: " + _vm.mainColor + "; font-size: 12px;" }, [_vm._v("微信扫码")] ), _vm._v(" "), _c( "span", { staticStyle: { color: "#070707", "font-size": "12px", transform: "scale(0.8333)", "transform-origin": "center left", "margin-top": "1px" } }, [_vm._v(_vm._s(_vm.qrTitle))] ) ] ) ], 1 ) : _vm._e() ], 1 ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "94dcbcd87711142a8b0b": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, $, G) { var _this = this; module.exports.init = function callee$0$0(data) { var icon, dom; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: console.log(data); icon = __webpack_require__("af90ffcf5e70f2bd4f87"); if (data && data.link) { dom = '\n <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>'; console.log($('#' + G.extName + '-trend')); //await require('common/globalCondition').met('GwdPriceTrendLoaded') if ($('#' + G.extName + '-trend').length > 0) $('#' + G.extName + '-trend').after($(dom));else $('#' + G.extName + '-main-contents').append($(dom)); console.log('showing dom'); //require('common/mutationObserver').observe($('#gwd-ingre')[0]) $('#gwd-ingre').css('display', 'flex'); __webpack_require__("9c38beef5ff283e15bd2").setMet('ingreComplete'); } case 3: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "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); /***/ }), /***/ "95b5a8392f3e95ca15b5": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($) { var getQRCode = __webpack_require__("657bad1e7f3b602f7d70"); var qrFailed = __webpack_require__("f04b664539e36696cb81"); module.exports = { init: function init(newData, url, element, cb) { var appended = false; $(element).css('visibility', 'hidden'); var get = function get() { return getQRCode(newData, url, function (newData2) { console.log(newData.couponUrl); if (element === '.bjgext-toptabs .mini-coup-detail > img') { qrFailed = qrFailed.replace(/118px/g, '100px').replace(/59px/g, '50px'); } if (newData2[0].etag && parseInt(newData2[0].etag) >= 1 && parseInt(newData2[0].etag) <= 2) { $(element).css('visibility', 'hidden'); var el = $(element).parent(); if (appended) { $(element.replace('img', '.gwd-qr-warn')).show(); $(element.replace('img', '.gwd-qr-warn img')).css('visibility', 'visible'); $(element.replace('img', '.gwd-qr-warn img')).attr('src', 'https://cdn.gwdang.com/images/extensions/[email protected]'); } else { appended = true; $(el).append(qrFailed); $(element.replace('> img', '.gwd-qr-reload')).click(function () { get(); $(element.replace('img', '.gwd-qr-warn')).hide(); }); } // $(element).click(function() { // $(element).css('visibility', 'hidden') // $(element).css('cursor', 'pointer') // get() // }) } else { $(element).attr('src', newData2[0].imgSrc); $(element).css('visibility', 'visible'); } cb(newData2); }, false, false); }; get(); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "97b01a38519bd022430f": /***/ (function(module, exports) { module.exports = "<div class=\"btcom-detail {{if pages > 1}} hasmorepage {{/if}}\" style=\"width:{{detailW}}px;{{if showpages}}left:0px;{{/if}}\">\n {{if showpages}}\n <div class=\"turnpage-div turnpage-left\" style=\"width:{{turnpW}}px;height: 100%;\">\n <span class=\"gwd_bg turnleft\"></span>\n </div>\n {{/if}}\n <div class=\"all-products\" style=\"{{if showpages}} width:{{prowidth}}px; {{/if}}\">\n <ul class=\"btcom-list\">\n {{each data}}\n <li class=\"dp-index-{{$index}}\">\n <a href=\"{{$value.url}}\" target=\"_blank\" class=\"com-item-img\">\n <img src=\"https://cdn.gwdang.com/images/extensions/newbar/120.gif\" data-src=\"{{$value.img_url}}\">\n {{if $value.tspan}}\n {{#$value.tspan}}\n {{/if}}\n </a>\n <a href=\"{{$value.url}}\" target=\"_blank\" class=\"com-item-otinfo\">\n {{if $value.ta}}\n {{#$value.ta}}\n {{else}}\n <div class=\"priceinfo-box\">\n <div class=\"center-box\">\n <span class=\"com-price prifontf\">¥{{$value.price}}</span>\n {{if $value.promo2}}\n <span class=\"dp-promotion gwd_bg\">\n <div class=\"dp-promotion-detail\">\n {{each $value.promo2}}\n <span class=\"dp-pro-item\">{{$value}}</span>\n {{/each}}\n </div>\n </span>\n {{/if}}\n {{if $value.coupon2}}\n <span class=\"dp-coupon gwd_bg\">\n <div class=\"dp-coupon-detail\">\n {{each $value.coupon2}}\n <span class=\"dp-coupon-item\">{{$value}}</span>\n {{/each}}\n </div>\n </span>\n {{/if}}\n {{if $value.yushou2}}\n <span class=\"dp-yushou gwd_bg\">\n <div class=\"dp-yushou-detail\">\n {{each $value.yushou2}}\n <span class=\"dp-pro-item\">{{$value}}</span>\n {{/each}}\n </div>\n </span>\n {{/if}}\n </div>\n </div>\n \n {{/if}}\n <span class=\"com-store blkcolor1\">{{$value.site_name}}</span>\n {{if $value.comment_num}}\n <span class=\"com-fee blkcolor4\">{{$value.comment_num ? (\"评论数:\" +$value.comment_num) : $value.fee }}</span>\n {{else if sale_tle}}\n <span class=\"com-fee blkcolor4\">{{sale_tle}}{{$value.volume}}件</span>\n {{else}}\n <span class=\"com-fee blkcolor4\">{{$value.fee}}</span>\n {{/if}}\n <p class=\"com-tle\" title=\"{{$value.title}}\">\n {{$value.title}}\n </p>\n </a>\n </li>\n {{/each}}\n </ul>\n </div>\n {{if showpages}}\n {{if link && sale_tle}}\n <a href=\"{{link}}\" target=\"_blank\" class=\"tb-morelink blkcolor4\">查看全部结果<em class=\"see_all_icon\">></em></a>\n {{/if}}\n <div class=\"turnpage-div turnpage-right\" style=\"width:{{turnpW}}px;height: 100%;\">\n <span class=\"gwd_bg turnright\"></span>\n </div>\n <div class=\"bjd-pages blkcolor4\">\n 第 \n <span class=\"current-page\">1</span>\n 页,共\n <span class=\"page-num blkcolor4\">{{pages}}</span>\n 页\n </div>\n {{/if}}\n</div>" /***/ }), /***/ "97c0645dcf36e56de349": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-member-coupon-top[data-v-28e28ad7] {\n height: 28px;\n background: linear-gradient(to right, #f28936, #ff351e);\n position: relative;\n background-size: cover;\n display: inline-flex;\n align-items: center;\n margin-top: 2px;\n cursor: pointer;\n border-radius: 2px;\n}\n.gwd-member-coupon-top .gwd-qr-container[data-v-28e28ad7] {\n display: none;\n position: absolute;\n top: 28px;\n}\n.gwd-member-coupon-top[data-v-28e28ad7]::before,\n.gwd-member-coupon-top[data-v-28e28ad7]::after {\n content: '';\n position: absolute;\n left: 115px;\n width: 4px;\n height: 4px;\n background: white;\n border-radius: 2px;\n top: -2px;\n}\n.gwd-member-coupon-top[data-v-28e28ad7]::after {\n top: unset;\n bottom: -2px;\n}\n.gwd-member-coupon-top[data-v-28e28ad7]:hover {\n text-decoration: none;\n}\n.gwd-member-coupon-top:hover .gwd-qr-container[data-v-28e28ad7] {\n display: block;\n}\n", ""]); // exports /***/ }), /***/ "97fdbca8ef7c5ce49bce": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $, Vue, regeneratorRuntime) { var _this = this; var request = __webpack_require__("91f250ebeb8d5987491c"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var getQRCode = __webpack_require__("657bad1e7f3b602f7d70"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var PddActivityQr = __webpack_require__("c17a6432d05d6c46edd5")['default']; var rnd = Math.random(); module.exports.init = function (dp_id) { G.dp.itemId = dp_id; if (['360buy', 'yangkeduo'].indexOf(G.site) === -1) return; var url = undefined; getCouponInfo(dp_id, url, renderCoupon); if (G.site === 'yangkeduo') { $('body').append('\n <div style="position: fixed; bottom: 245px; right: 50%; margin-right: 410px"><div id="gwd-pdd-act-qr"></div></div>\n '); new Vue({ el: '#gwd-pdd-act-qr', render: function render(h) { return h(PddActivityQr, { props: { needMouseOver: false, rnd: rnd } }); } }); } }; var getCouponInfo = function getCouponInfo(dp_id, url, callback) { dp_id = dp_id ? 'dp_id=' + dp_id : ''; url = url ? 'url=' + url : ''; var url2 = 'https://browser.gwdang.com/extension/Coupon?' + dp_id + url + (G.dp.price ? '&price=' + G.dp.price : ''); request.get(url2).done(function (data) { if (data.coupon && data.click_url) { //globalCondition.setMet('coupon', data.coupon) globalCondition.setMet('coupon', '满' + data.limit + '减' + data.coupon); callback(data); setTimeout(function () { __webpack_require__("12aab5fd482f5627ccd1").init(true); }, 1000); } else if (G.site === 'yangkeduo') { //let id = (G.dp.itemId.replace('-370', '')); //showQrCode(`https://mobile.yangkeduo.com/goods.html?goods_id=${id}`) data.coupon = 0; callback(data); $('.gwd-topbar-left').append('<div id="gwd-pdd-qr-top" style="display: inline-block; margin-top: 2px;"></div>'); new Vue({ el: '#gwd-pdd-qr-top', render: function render(h) { return h(PddActivityQr, { props: { needMouseOver: true, rnd: rnd } }); } }); } else { globalCondition.setMet('coupon', 0); setTimeout(function callee$2$0() { return regeneratorRuntime.async(function callee$2$0$(context$3$0) { while (1) switch (context$3$0.prev = context$3$0.next) { case 0: context$3$0.next = 2; return regeneratorRuntime.awrap(globalCondition.met('noOtherGiftMoney')); case 2: __webpack_require__("12aab5fd482f5627ccd1").init(false); case 3: case 'end': return context$3$0.stop(); } }, null, _this); }, 1000); __webpack_require__("d36a74aa21bb110ae407").init(); } }); }; var showCustomQrCode = function showCustomQrCode(content) { var couponValue = arguments.length <= 1 || arguments[1] === undefined ? '' : arguments[1]; if (G.site !== 'yangkeduo') return; var templateHtml = __webpack_require__("a4d665fcb1536a15865d"); var showPinPrice = true; if (localStorage.getItem('gwd-disable-pinPrice') && parseInt(localStorage.getItem('gwd-disable-pinPrice')) + 3600000 * 24 > new Date().getTime()) { showPinPrice = false; } var result = template.compile(templateHtml)({ qrcode: content, s_server: G.s_server, coupon: couponValue, showPinPrice: showPinPrice }); cnzz.log('二维码', '展示', '底部拼多多'); $('body').append(result); setTimeout(function () { $('.gwd-pinPrice').click(function (e) { if (e.offsetX >= 175 && e.offsetY <= 10) { $('.gwd-pinPrice').css('display', 'none'); localStorage.setItem('gwd-disable-pinPrice', new Date().getTime()); } }); }, 0); }; var renderCoupon = function renderCoupon(data) { var tle = "点击领券"; var html = __webpack_require__("487014f393da302d31f6"); if (G.site !== '360buy') { renderMini(data); } $('#gwdang-banner-ad').remove(); if (G.site === 'yangkeduo') { var title = G.site === '360buy' ? $('.contact .J-hove-wrap a')[0] ? $('.contact .J-hove-wrap a')[0].title : '京东' : G.site; var productInfo = { itemNumId: G.dp.itemId, amount: data.coupon, couponUrl: data.click_url, discountPrice: data.price, effectiveStartTime: data.start_time, effectiveEndTime: data.end_time, id: G.dp.itemId, picUrl: $('.islider-outer img').attr('src'), pid: 'top', tmall: false, pdd: G.site === 'yangkeduo', shopName: G.site === 'yangkeduo' ? '拼多多' : title, title: $('.enable-select').text() }; if (!productInfo.amount) { productInfo.discountPrice = G.dp.price; } if (G.site === '360buy') { productInfo.picUrl = $('#spec-img').attr('src'); productInfo.title = $.trim($('.sku-name').text()); } getQRCode(productInfo, data.click_url, function (qrcodeData) { if (parseInt(data.coupon)) { (function () { $('.gwd-topbar-left').append(template.compile(html)({ price: data.coupon, url: data.click_url, tle: tle, isShowPic: true, picUrl: qrcodeData[0].imgSrc })); var newCouponHtml = __webpack_require__("b507ce92177bcb778041"); setTimeout(function () { var html = template.compile(newCouponHtml)({ picUrl: qrcodeData[0].imgSrc }); $('.coupon_detail').replaceWith(html); }, 0); renderMini(data, qrcodeData[0].imgSrc); var topLogged = false; $('#top_coupon_btn').hover(function () { if (topLogged) return; topLogged = true; cnzz.log('二维码', '展示', '顶部'); }); showCustomQrCode(qrcodeData[0].imgSrc, '当前商品领券立减 <strong>' + data.coupon + '元</strong>'); })(); } else { showCustomQrCode(qrcodeData[0].imgSrc); } }, true); } else { $('.gwd-topbar-left').append(template.compile(html)({ price: data.coupon, url: data.click_url, tle: tle, isShowPic: false })); cnzz.log('京东顶部优惠券', '展示'); cnzz.log('京东中间优惠券', '展示'); $('#top_coupon_btn').click(function () { cnzz.log('京东顶部优惠券', '点击'); }); $('#top_coupon_btn').hover(function () { cnzz.logOnce('京东顶部优惠券', '悬浮'); }); renderMini(data); $('#coupon_box').click(function () { cnzz.log('京东中间优惠券', '点击'); }); $('#coupon_box').hover(function () { cnzz.logOnce('京东中间优惠券', '悬浮'); }); } }; var renderMini = function renderMini(info) { var qr = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1]; var data = { coupon: { coupon_money: info.coupon }, click_url2: info.click_url }; if (G.site === '360buy') { var _ret2 = (function () { var CommonCouponBarMini = __webpack_require__("bf749102803a6e48eddc")['default']; $('#gwd'); new Vue({ el: '#gwd-coupon-placeholder', render: function render(h) { return h(CommonCouponBarMini, { props: { type: 'link', icon: __webpack_require__("7c92b815f92d7fc350e4"), text: '当前商品领券立减' + info.coupon + '元', mainColor: '#fd0937', href: info.click_url, secondColor: '#ff5e79' } }); } }); return { v: undefined }; })(); if (typeof _ret2 === 'object') return _ret2.v; } var html = __webpack_require__("c0cdeb31ce8267dc3f97"); var views = template.compile(html)({ data: data, isShowPic: !!qr, picUrl: qr }); $('#gwd_minibar').after(views); if (!qr) return; setTimeout(function () { var newCouponHtml = __webpack_require__("2bf2a7edf97ee4557731"); setTimeout(function () { var html = template.compile(newCouponHtml)({ picUrl: qr }); $('.minicoupon_detail').replaceWith(html); }, 0); }, 0); var logged = false; $('#coupon_box').hover(function () { if (logged) return; logged = true; cnzz.log('二维码', '展示', '中间'); }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"], __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "984fb26cd63aa11f2f19": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-qr-bottom-line[data-v-4148f062] {\n transform: scale(0.5);\n transform-origin: top center;\n white-space: nowrap;\n height: 20px;\n line-height: 20px;\n}\n.gwd-qr-bottom-line span.bold[data-v-4148f062] {\n font-size: 22px;\n font-weight: bold;\n color: #EF6701;\n}\n.gwd-qr-bottom-line span.normal[data-v-4148f062] {\n font-size: 16px;\n color: #070707;\n}\n.gwd-qr-logo[data-v-4148f062] {\n position: absolute;\n left: 50%;\n top: 50%;\n width: 20px;\n height: 20px;\n margin-left: -10px;\n margin-top: -10px;\n}\n.gwd-contact-link[data-v-4148f062] {\n margin-left: 7px;\n top: -3px;\n display: inline-block;\n font-size: 12px;\n color: #333333;\n text-decoration: underline;\n cursor: pointer;\n position: relative;\n z-index: 999999;\n}\n.gwd-contact-link .gwd-app-qr-content[data-v-4148f062] {\n position: absolute;\n width: 123px;\n height: 137px;\n background: #FFF3ED;\n border-radius: 0px 0px 2px 2px;\n border: 1px solid #FF9851;\n top: 24px;\n left: -38px;\n visibility: hidden;\n z-index: 999;\n}\n.gwd-contact-link:hover .gwd-app-qr-content[data-v-4148f062] {\n visibility: visible;\n}\n", ""]); // exports /***/ }), /***/ "98e571e6ad843edfcada": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $, regeneratorRuntime) { var _this = this; var template = __webpack_require__("274e32dfd54a6b0d18a9"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); var request = __webpack_require__("91f250ebeb8d5987491c"); module.exports.init = function () { render(); }; var link = ""; var dpId = ''; var getLink = function getLink() { var payload = { dp_id: dpId }; if (G.dp.price) { payload.price = G.dp.price; } $.post(G.server + '/extension/ShareUrl', payload).then(function (res) { res = JSON.parse(res); if (res.code) { link = res.link; $('.shareExt').remove(); render(); } }); }; var render = function render() { var html, priceInfo, priceInfoCopy; return regeneratorRuntime.async(function render$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: html = __webpack_require__("a5656a19c5a241335dee"); priceInfo = '', priceInfoCopy = ''; context$1$0.next = 4; return regeneratorRuntime.awrap(globalCondition.met('GwdPriceTrendLoaded')); case 4: context$1$0.next = 6; return regeneratorRuntime.awrap(globalCondition.met('GwdDpIdGot')); case 6: dpId = context$1$0.sent; if (G.dp.storeInfo && G.dp.storeInfo.length) { (function () { var store = G.dp.storeInfo[0]; var current = parseFloat(store.all_line[store.all_line.length - 1]); if (!current) { current = parseFloat(store.current_price); } var p = store.all_line.filter(function (x) { return x !== current; }); var last = current; if (p.length) { last = p[p.length - 1]; } //let last = store.last_price / 100; var priceTrend = '价格平稳'; if (current < last) { priceTrend = '价格下降'; if (current === store.lowest) { priceTrend = '历史最低'; } } else if (current > last) { priceTrend = '价格上涨'; } if (last === current) { last = 0; } var lowestStr = store.lowest ? ',历史最低价¥' + store.lowest : ''; var oriStr = last ? ' 原价¥' + last : ''; priceInfo = '' + priceTrend + oriStr + ',现价¥' + parseFloat(current) + lowestStr; priceInfoCopy = '' + priceTrend + oriStr + ',现价¥' + parseFloat(current) + lowestStr; })(); } $(template.compile(html, { escape: false })({ title: G.dp.name.replace(/ /g, '').replace(/\n/g, ''), priceInfo: priceInfo, priceInfoCopy: priceInfoCopy, link: link })).insertBefore('.gwd-topbar-right .top-bar-setting'); addEvent(); case 10: case 'end': return context$1$0.stop(); } }, null, _this); }; var addEvent = function addEvent() { var isshow = undefined; $('.shareExt').on('mouseenter', function () { if (!isshow) { isshow = true; log("share-ext-show"); cnzz.log("share-ext-show"); } if (link === '') { getLink(); } }); $('.shareExt').on('mouseleave', function () { $('#copy-btn').removeClass('copyss').text('复制去分享'); }); $('#copy-btn').on('click', function () { var element = $('#copy-input')[0]; element.select(); element.setSelectionRange(0, element.value.length); window.selectedText = element.value; var t = window.document.execCommand("copy"); if (t) { $('#copy-btn').addClass('copyss').text("复制成功!"); log("share-ext-copy"); cnzz.log("share-ext-copy"); } }); }; //$(`.gwd-topbar-right`).prepend(template.compile(html)()) /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "98e93ed4a85e80c55160": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var getCoupon = __webpack_require__("2eb8d6935e044e0d6d06"); var request = __webpack_require__("91f250ebeb8d5987491c"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var globalInfo = {}, hasReqId = []; var 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' } }; var getTypes = function getTypes() { var urlPattern = { 'list\\.tmall\\.com': 'tmall1', 's\\.taobao\\.com': 'taobao1', 'www\\.taobao\\.com/market/': 'taobao2', 'www\\.taobao\\.com/markets/promotion/': 'taobao3', 'www\\.taobao\\.com/markets/amusement/': 'taobao6', 'www\\.taobao\\.com/markets/': 'taobao7', 'list\\.taobao\\.com': 'taobao4' }; var url = location.href; for (var i in urlPattern) { if (url.match(new RegExp(i))) { return urlPattern[i]; } } }; var getQRcode = __webpack_require__("657bad1e7f3b602f7d70"); var callbacks = undefined, hasreq = undefined, urls = undefined; var getPageInfo = function getPageInfo(info, callback) { var infoObj = {}; if (hasreq) { callbacks = callback; urls = info.click_url; return; } var itemId = info.itemId; var obj = { itemNumId: itemId }; var url = 'https://acs.m.taobao.com/h5/mtop.taobao.detail.getdetail/6.0/?data=' + encodeURIComponent(JSON.stringify(obj)); request.getPure(url).done(function (data) { try { var item = data.data.item; var seller = data.data.seller; var item2 = JSON.parse(data.data.apiStack[0].value); infoObj.title = item.title; infoObj.picUrl = item.images[0]; infoObj.shopName = seller.shopName; infoObj.shopLogo = seller.shopIcon; infoObj.shopUrl = seller.shopUrl; infoObj.biz30Day = item2.item.sellCount; infoObj.discountPrice = (Number(item2.skuCore.sku2info['0'].price.priceMoney) / 100).toFixed(2); } catch (e) { __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) { getCoupon.init(id, '10002', function (data) { if (!data.data) return; data = data.data; data.site = site; globalInfo[id] = data; var link = 'https://tb.gwdang.com/extension/qrpage?dp_id=' + id + '-83&tag=9_' + G.browser + '&discount=' + data.coupon.coupon_money; 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>'; } $(parentD).append($(dom)); }); }; var listenDom = function listenDom() { var Timer = undefined, maxTimes = 0; var type = getTypes(); var obj = domPattern[type]; if (!obj) return; var dom = $(obj['listen'])[0]; if (!dom) return; dom.addEventListener('DOMSubtreeModified', function () { clearTimeout(Timer); if (maxTimes > 15) return; if ($(dom).find(obj['lschild']).attr('c_coupon')) return; Timer = setTimeout(function () { maxTimes++; renderInit(); }, 1000); }, false); }; var renderInit = function renderInit() { // 获取链接形式 不同页面 列表页不同 var type = getTypes(); if (!type) return; var obj = domPattern[type]; var list = $(obj['list']); if (type === 'taobao1' && list.length === 0) { obj = domPattern['taobao11']; list = $(obj['list']); } for (var i = 0; i < list.length; i++) { var dom = list.eq(i).find(obj['url']); var href = dom.attr('href'); var site = 'taobao'; if (!href) continue; if (href.indexOf('detail.tmall.com') > -1) site = 'tmall'; var id = href.match(/[?&]id=(\d+)/) && href.match(/[?&]id=(\d+)/)[1]; if (!id) continue; var appendDom = list.eq(i).find(obj['dom']); if (appendDom.length === 0) appendDom = list.eq(i); renderCouponTip(id, appendDom, site); } if (type.indexOf('taobao') > -1) { $(obj['listen']).find(obj['lschild']).attr('c_coupon', '1'); } $('body').on('click', function (e) { if ($(e.target).hasClass('search_coupon_tip')) { cnzz.log('click:searchcoupon'); log('click:searchcoupon'); } }); $('body').on('mouseover', function (e) { if ($(e.target).hasClass('search_coupon_tip')) { var id = $(e.target).attr('data-id'); if ($(e.target).find('.qr_coupondetail').length === 0 && useQrCode) { cnzz.log('track:searchcoupon'); log('track:searchcoupon'); addQRcode(id, e.target); } } }); }; module.exports.init = function () { if (G.forbidCoupon) return; // 360浏览器版本不加载优惠券 不然审核不通过 if (G.from_device === '360') return; // useQrCode = true; useQrCode = false; if (G.from_device === 'chrome') { useQrCode = true; } renderInit(); setTimeout(function () { // 监听dom 有更新, 再一次加载优惠券 listenDom(); }, 10000); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "9920f8981151f34ffc09": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, $, Vue) { var _this = this; module.exports.init = function callee$0$0(mode) { var className, allowedList, subClass, text; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: className = $('.crumb .item.first').text(); allowedList = '家用电器、食品饮料、电脑/办公、母婴、手机通讯、家庭清洁/纸品、数码、个人护理、美妆护肤、医疗、营养保健、厨具、酒类、家装建材、汽车用品、运动户外、生鲜、家纺、服饰内衣、玩具乐器、家居日用、箱包皮具、家具、钟表、鞋靴、宠物生活、礼品、图书、珠宝首饰、文娱、工业品'.split('、').map(function (x) { return x.replace('电脑/办公', '电脑、办公'); }); if (!(allowedList.indexOf(className) > -1)) { context$1$0.next = 15; break; } subClass = $('.crumb .item').text(); if (!(className === '手机通讯' && subClass.indexOf('办号卡') > -1)) { context$1$0.next = 6; break; } return context$1$0.abrupt('return'); case 6: if (!(className === '珠宝首饰' && subClass.indexOf('黄金') > -1)) { context$1$0.next = 8; break; } return context$1$0.abrupt('return'); case 8: text = $('.u-jd').text().trim(); if (!text) { text = $('.shopHeader .tag').text().trim(); } if (!(text !== '自营')) { context$1$0.next = 12; break; } return context$1$0.abrupt('return'); case 12: context$1$0.next = 14; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('GwdPriceTrendLoaded')); case 14: render(mode); case 15: case 'end': return context$1$0.stop(); } }, null, _this); }; var render = function render(mode) { __webpack_require__("83271c7588396d2d5e59").log('jdPriceProtect:show'); var GwdPriceProtectMiddle = __webpack_require__("a48225d279d5cbed8beb")['default']; new Vue({ el: '.gwd-price-protect', render: function render(h) { return h(GwdPriceProtectMiddle, { props: { mode: mode } }); } }); // $('.gwd-price-protect').replaceWith(` // // `) setTimeout(function () { $('#gwd-price-protect').click(function (e) { __webpack_require__("83271c7588396d2d5e59").log('jdPriceProtect:click'); }); }, 0); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "99967238159b55ea4e52": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G, regeneratorRuntime) { var _this2 = this; var detect = __webpack_require__("60624e018be49fb2d959"); var priceParser = __webpack_require__("e29ce4c2a4af273fcade"); var request = __webpack_require__("91f250ebeb8d5987491c"); var quanobj = { 'manjian': {}, 'zhe': {}, 'quanmanjian': {}, 'quanmeimanjian': {}, 'manzhe': {} }, promoobj = { 'manjian': {}, 'meimanjian': {}, 'manzhe': {}, 'manzhe2': {}, 'zhe': {} }; var disPrice = undefined, callbacks = undefined, disPrice2 = {}; var coudanObj = {}, xdljObj = {}, vipPromo = ""; var dingjinzhekou = { "suning": function suning() { var dj = Number($('#mainPrice dt:contains("定金") +dd .small-price').text().replace('¥', '')); var djdk = $('.deposit-info-small').text().match(/[0-9.]+/); if (djdk) djdk = Number(djdk[0]); if (dj && djdk) { return djdk - dj; } else { return 0; } }, "360buy": function buy() { var dj = $('#pingou .summary-price div.dt:contains("定")+.dd .price').text(); var djdk = $('#pingou .summary-price div.dt:contains("定")+.dd .yy-category').text().match(/[0-9.]+/); if (djdk) djdk = Number(djdk[0]); if (dj && djdk) { return djdk - dj; } else { return 0; } }, 'tmall': function tmall() { return false; } }; var sitePattern = { "360buy": function buy() { var quan = undefined, promo = []; // if ($('#pingou .summary-price>.dt').text().replace(/\s/g, '').indexOf("定金") > -1) { // return { // quan: quan, // promo: promo // } // } var quandom = $('#summary-quan:visible'); var promodom = $('#prom-one .J-prom:visible'); if (!promodom.length) { promodom = $('#summary-promotion .J-prom:visible'); } if (quandom.length > 0) { var arrs = quandom.find('span.' + 'quan-item span.text'); quan = Array.prototype.map.call(arrs, function (e) { return { text: $(e).text(), title: $(e).parents('.quan-item').attr('title') }; }).filter(function (x) { if (x.title) { var re = new RegExp('有效期([\\d\\-: ]*)至([\\d\\-: ]*)').exec(x.title); if (re && re[1]) { if (new Date(re[1]) > new Date()) { console.warn('filter early coupon', x); return false; } } } return true; }).map(function (x) { return x.text; }); } if (promodom.length > 0) { var arrs = promodom.find('em.hl_red'); var arrs2 = promodom.find('em.hl_red_bg+em'); promo = Array.prototype.map.call(arrs, function (e) { var strt = $(e).prev().text(); if (strt.indexOf('跨自营/店铺满减进行中') > -1 || strt.indexOf('活动预告') > -1) return "";else { var url = $(e).parent().find('a').attr('href'); if (url) { return url + ':' + $(e).text(); } else { return $(e).text(); } } }); var promo2 = Array.prototype.map.call(arrs2, function (e) { var strt = $(e).prev().text(); if (strt.indexOf('跨自营/店铺满减进行中') > -1 || strt.indexOf('活动预告') > -1) return "";else { var url = $(e).parent().find('a').attr('href'); if (url) { return url + ':' + $(e).text(); } else { return $(e).text(); } } }); promo = promo.concat(promo2); } var fanPrice = $('.p-price-fans .price').text(); if (fanPrice) { promo.push('粉丝价' + fanPrice); } return { quan: quan, promo: promo }; }, "suning": function suning() { var quan = undefined, promo = undefined; var quandom = $('#freeCouponTitle .more-juan .p-quan2'); var promodom = $('.promo-list li>label:contains("满 减")+i+p'); if (quandom.length > 0) { var arrs = quandom.find('span.p-quan-white'); quan = Array.prototype.map.call(arrs, function (e) { var txt = $(e).text(); if (txt.match(/每\d+用\d+/)) { txt = txt + '最多可减' + $(e).prev().prev().text(); } return txt; }); } if (promodom.length > 0) { var arrs = promodom; promo = Array.prototype.map.call(arrs, function (e) { var txt = $(e).text(); if ($(e).children().text()) { var txt2 = $(e)[0].childNodes[0].nodeValue; if (txt2) { txt = txt2; } } return txt; }); } return { quan: quan, promo: promo }; }, 'tmall': function tmall() { var list = []; $('.tm-shopPromotion-title dd').each(function (idx, item) { list.push(item.innerText); }); return { promo: list }; }, 'dangdang': function dangdang() { var coupons = $('#coupon-list li a').toArray().map(function (item) { return item.innerText.trim(); }); return { quan: coupons, promo: $('.rule .text').toArray().map(function (item) { return item.innerText.trim(); }) }; } }; var pingxingcelue = function pingxingcelue() { var arr = ["360buy"]; if (arr.indexOf(G.site) > -1) { return true; } return false; }; var getPromoInfoNum = function getPromoInfoNum(pagePrice, arr, type) { var infoObj = promoobj; var dishead = "促: "; if (type === 'quan') { infoObj = quanobj; dishead = "券: "; } if (!disPrice) disPrice = {}; for (var j = 0; j < arr.length; j++) { var item = arr[j]; var _reg0 = /且满[¥¥]?([.\d]{2,})元?(?:售价)?[^件]{0,3}?可?立?减[¥¥]?([.\d]+)/; if (_reg0.test(item)) { continue; } var reg00 = /每(\d+)用(\d+)最多可减.?([1-9]\d+)/; if (reg00.test(item) && type === 'quan') { var qmmjobj = infoObj['quanmeimanjian']; var match = item.match(reg00); if (match[3]) { qmmjobj[match[1] + '-' + match[2] + '-' + match[3]] = dishead + item; } else { qmmjobj[match[1] + '-' + match[2]] = dishead + item; } continue; } var reg0 = /每满([.\d]{2,})元?.{0,3}?可?减([.\d]+)元现金(?:(?:,|,)(?:最多可减|)([.\d]+))?/; if (reg0.test(item)) { var mmjobj = infoObj['meimanjian']; var match = item.match(reg0); if (match[3]) { mmjobj[match[1] + '-' + match[2] + '-' + match[3]] = dishead + item; } else { mmjobj[match[1] + '-' + match[2]] = dishead + item; } continue; } var reg = /(?:[^每]|^)满[¥¥]?([.\d]{1,})元?(?:售价)?[^件]{0,3}?可?立?减[¥¥]?([.\d]+%?)元?/; var _reg = /(?:[^每]|^)满[¥¥]?([.\d]{1,})元?(?:售价)?[^件]{0,3}?可?立?减[¥¥]?([.\d]+%?)元?/g; var mjobj = infoObj['manjian']; if (reg.test(item)) { var _match = item.match(_reg); if (_match.length > 1) { for (var i = 0; i < _match.length; i++) { var m = _match[i].match(reg); mjobj[m[1] + '-' + m[2]] = dishead + _match[i].trim().replace(/^[,,;;]/, ''); } } else { var match = item.match(reg); mjobj[match[1] + '-' + match[2]] = dishead + item; } continue; } var reg1 = /满([.\d]{2,})享([.\d]+)折/; var mzobj = infoObj['manzhe']; if (reg1.test(item)) { var match = item.match(reg1); mzobj[match[1] + '-' + match[2]] = dishead + item; continue; } var reg2 = /金额达到([.\d]{2,}).*?享受([.\d]+)/; if (reg2.test(item)) { var match = item.match(reg2); mjobj[match[1] + '-' + match[2]] = dishead + item; continue; } var reg3 = /([.\d]{2,})\-([.\d]+)/; if (reg3.test(item)) { var match = item.match(reg3); mjobj[match[1] + '-' + match[2]] = dishead + item; continue; } var zkobj = infoObj['zhe']; var reg4 = /满(\d+)件.{0,4}打([.\d]+)折/; var _reg4 = /满(\d+)件.{0,4}打([.\d]+)折/g; if (reg4.test(item)) { var _match = item.match(_reg4); if (_match.length > 1) { for (var i = 0; i < _match.length; i++) { var m = _match[i].match(reg4); zkobj[m[1] + '-' + m[2]] = dishead + _match[i]; } } else { var match = item.match(reg4); zkobj[match[1] + '-' + match[2]] = dishead + item; } continue; } var reg4_1 = /满(\d+)件([.\d]+)折/; var _reg4_1 = /满(\d+)件([.\d]+)折/g; if (reg4_1.test(item)) { var _match = item.match(_reg4_1); if (_match.length > 1) { for (var i = 0; i < _match.length; i++) { var m = _match[i].match(reg4_1); zkobj[m[1] + '-' + m[2]] = dishead + _match[i]; } } else { var match = item.match(reg4_1); zkobj[match[1] + '-' + match[2]] = dishead + item; } continue; } var quanmj = infoObj['quanmanjian']; var reg5 = /满?(\d+)(?:减|用|可用|可减)(\d+)/; if (reg5.test(item)) { var match = item.match(reg5); quanmj[match[1] + '-' + match[2]] = dishead + item; continue; } var mz2Obj = infoObj['manzhe2']; var reg6 = /满(\d)件.{1,4}减最低1件商品价格/; if (reg6.test(item)) { var match = item.match(reg6); mz2Obj[match[1]] = dishead + item; continue; } } for (var pattern in infoObj) { switch (pattern) { case "manjian": for (var mjitem in infoObj[pattern]) { var mjarr = mjitem.split('-'); // 如果计算的是优惠券且到手价里有促销活动的价格数据 会在到手价的基础上进行计算 if (type === "quan" && Object.keys(disPrice).length > 0) { for (var dis in disPrice) { // 京东使用平行式门槛 // jd 不凑单条件 var jdtj = pingxingcelue() && xdljObj[dis] && Number(mjarr[0]) <= pagePrice; // jd 凑单条件 var jdcdtj = pingxingcelue() && coudanObj[dis] && coudanObj[dis]["tt1"] > Number(mjarr[0]); // 到手价满足起减点 if (jdtj || Number(mjarr[0]) <= Number(dis) && xdljObj[dis]) { var pPrice = Number(dis) - Number(mjarr[1]); if (xdljObj[dis]) xdljObj[pPrice] = true; disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][mjitem]]); // 促销活动需要凑单 凑单计算优惠之后的价格大于起减点 或者平行策略 促销活动凑单之后大于优惠券起减点 } else if (coudanObj[dis] && coudanObj[dis]["tt1"] - coudanObj[dis]["tt2"] > Number(mjarr[0]) || jdcdtj) { var pPrice = undefined; if (coudanObj[dis]["type"] === "manzhe2") { // manzhe2 满多少件减一件商品价格 if (pingxingcelue()) { if (coudanObj[dis]["tt1"] >= Number(mjarr[0])) { pPrice = (coudanObj[dis]["tt1"] - Number(mjarr[1]) - pagePrice) / coudanObj[dis]["t2"]; } else { var p1 = coudanObj[dis]["tt1"] * (Number(mjarr[1]) / Number(mjarr[0])); pPrice = (coudanObj[dis]["tt1"] - pagePrice - p1) / coudanObj[dis]["t2"]; } } else { var price1 = coudanObj[dis]["t1"] > Number(mjarr[0]) ? coudanObj[dis]["t1"] : Number(mjarr[0]); pPrice = (price1 - Number(mjarr[1])) / coudanObj[dis]["t2"]; } } else if (coudanObj[dis]["type"] === "zhe") { // 满多少件打多少折 if (pingxingcelue()) { pPrice = (coudanObj[dis]["t1"] * coudanObj[dis]["t4"] - Number(mjarr[1])) / coudanObj[dis]["t3"]; } else { pPrice = (coudanObj[dis]["t1"] * coudanObj[dis]["t4"] - Number(mjarr[1])) / coudanObj[dis]["t3"]; } } else if (coudanObj[dis]["type"] === "manzhe") { // 满多少元打多少折 var price1 = coudanObj[dis]["t1"] - coudanObj[dis]["t2"]; pPrice = (price1 - Number(mjarr[1])) / (coudanObj[dis]["t1"] / pagePrice); } else { pPrice = (coudanObj[dis]["t1"] - coudanObj[dis]["t2"] - Number(mjarr[1])) / (coudanObj[dis]["t1"] / pagePrice); } pPrice = pPrice.toFixed(4); coudanObj[pPrice] = true; disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][mjitem]]); // 折扣力度大于20% 或者 到手价不低于起减点90% 不管促销活动是否凑单 到优惠券计算的时候都不满足条件 都需要凑单 } else if (Number(mjarr[1]) / Number(mjarr[0]) > 0.2 || dis / Number(mjarr[0]) > 0.9 || coudanObj[dis] && (coudanObj[dis]["tt1"] - coudanObj[dis]["tt2"]) / Number(mjarr[0]) > 0.9 || pingxingcelue() && coudanObj[dis] && coudanObj[dis]["tt1"] / Number(mjarr[0]) > 0.9 || pingxingcelue() && pagePrice / Number(mjarr[0]) > 0.9) { var pPrice = undefined; if (xdljObj[dis] && xdljObj[dis]["type"] === "meimanjian") { //每满减 if (pingxingcelue()) { pPrice = xdljObj[dis]["lastp"] - Number(mjarr[1]) * (pagePrice / Number(mjarr[0])); } else { pPrice = xdljObj[dis]["lastp"] - Number(mjarr[1]) * (xdljObj[dis]["lastp"] / Number(mjarr[0])); } } else if (xdljObj) { if (pingxingcelue()) { pPrice = dis - Number(mjarr[1]) * (pagePrice / Number(mjarr[0])); } else { pPrice = dis - Number(mjarr[1]) * (dis / Number(mjarr[0])); } } else if (coudanObj[dis]["type"] === "zhe") { if (pingxingcelue()) { pPrice = (coudanObj[dis]["t1"] * coudanObj[dis]["t4"] - Number(mjarr[1]) * (coudanObj[dis]["t1"] / Number(mjarr[1]))) / coudanObj[dis]["t3"]; } else { pPrice = (coudanObj[dis]["t1"] * coudanObj[dis]["t4"] - Number(mjarr[1]) * (coudanObj[dis]["t1"] * coudanObj[dis]["t4"] / Number(mjarr[1]))) / coudanObj[dis]["t3"]; } } else if (coudanObj[dis]["type"] === "manzhe") { // 满多少元打多少折 if (pingxingcelue()) { pPrice = coudanObj[dis]["t1"] * coudanObj[dis]["t3"] - Number(mjarr[1]) * (coudanObj[dis]["t1"] / Number(mjarr[0])); } else { pPrice = coudanObj[dis]["t1"] * coudanObj[dis]["t3"] - Number(mjarr[1]) * (coudanObj[dis]["t1"] * coudanObj[dis]["t3"] / Number(mjarr[0])); } } else { if (pingxingcelue()) { pPrice = coudanObj[dis]["t1"] - coudanObj[dis]["t2"] - Number(mjarr[1]) * (coudanObj[dis]["t1"] / Number(mjarr[0])); } else { pPrice = coudanObj[dis]["t1"] - coudanObj[dis]["t2"] - Number(mjarr[1]) * (coudanObj[dis]["t1"] - coudanObj[dis]["t2"] / Number(mjarr[0])); } } pPrice = pPrice.toFixed(4); coudanObj[pPrice] = true; disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][mjitem]]); } } // 没有促销活动只针对优惠券计算 } else if (type === "quan") { if (Number(mjarr[0]) <= pagePrice) { var pPrice = pagePrice - Number(mjarr[1]); xdljObj[pPrice] = true; disPrice2[pPrice] = [infoObj[pattern][mjitem]]; } else if (Number(mjarr[1]) / Number(mjarr[0]) > 0.2 || pagePrice / Number(mjarr[0]) > 0.9) { var salePrice = pagePrice - pagePrice * Number(mjarr[1]) / Number(mjarr[0]); var pPrice = salePrice.toFixed(4); coudanObj[pPrice] = true; disPrice2[pPrice] = [infoObj[pattern][mjitem]]; } // 促销活动计算 } else { if (Number(mjarr[0]) <= pagePrice) { if (mjarr[1].indexOf('%') > -1) { mjarr[1] = pagePrice * Number(mjarr[1].replace('%', '')) / 100; } var pPrice = pagePrice - Number(mjarr[1]); xdljObj[pPrice] = true; disPrice[pPrice] = [infoObj[pattern][mjitem]]; } else { var salePrice = pagePrice - pagePrice * Number(mjarr[1]) / Number(mjarr[0]); var pPrice = salePrice.toFixed(4); if (mjarr[1].indexOf('%') > -1) { pPrice = pagePrice - pagePrice * Number(mjarr[1].replace('%', '')) / 100; } if (coudanObj[pPrice] && typeof coudanObj[pPrice] === 'object' && coudanObj[pPrice].type === 'manjian') { if (Number(mjarr[0]) >= coudanObj[pPrice]["t1"]) { continue; } } coudanObj[pPrice] = { "type": "manjian", "tt1": Number(mjarr[0]), "tt2": Number(mjarr[1]), "t1": Number(mjarr[0]), "t2": Number(mjarr[1]) }; disPrice[pPrice] = [infoObj[pattern][mjitem]]; } } } break; case "meimanjian": for (var mmjitem in infoObj[pattern]) { var mmjarr = mmjitem.split('-'); if (Number(mmjarr[0]) <= pagePrice) { var num = parseInt(pagePrice / Number(mmjarr[0])); var disp = num * Number(mmjarr[1]); if (Number(mmjarr[2]) && Number(mmjarr[2]) < disp) disp = Number(mmjarr[2]); var pPrice = pagePrice - disp; xdljObj[pPrice] = { "type": "meimanjian", "tt1": pagePrice, "tt2": disp, "t1": Number(mmjarr[0]), "t2": Number(mmjarr[1]), "disp": disp, "lastp": pPrice }; disPrice[pPrice] = [infoObj[pattern][mmjitem]]; } else { var salePrice = pagePrice - pagePrice * Number(mmjarr[1]) / Number(mmjarr[0]); var pPrice = salePrice.toFixed(4); coudanObj[pPrice] = { "type": "meimanjian", "tt1": Number(mmjarr[0]), "tt2": Number(mmjarr[1]), "t1": Number(mmjarr[0]), "t2": Number(mmjarr[1]) }; disPrice[pPrice] = [infoObj[pattern][mmjitem]]; } } break; case "quanmeimanjian": for (var qmmjitem in infoObj[pattern]) { var qmmjarr = qmmjitem.split('-'); if (Object.keys(disPrice).length > 0) { for (var dis in disPrice) { if (coudanObj[dis]['type'] == 'zhe') { if (coudanObj[dis]['t1'] * coudanObj[dis]['t4'] >= Number(qmmjarr[0]) || pingxingcelue() && coudanObj[dis]['t1'] >= Number(qmmjarr[0])) { var nums = coudanObj[dis]['t3']; var pPrice = (coudanObj[dis]['t1'] * coudanObj[dis]['t4'] - Number(qmmjarr[0])) / nums; coudanObj[pPrice] = true; disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][qmmjitem]]); } } } } else { var pPrice = undefined; if (Number(qmmjarr[0]) > pagePrice) { if (Number(qmmjarr[1]) / Number(qmmjarr[0]) > 0.2) { pPrice = (Number(qmmjarr[0]) - Number(qmmjarr[1])) / (Number(qmmjarr[0]) / pagePrice); coudanObj[pPrice] = true; } } else { var nums1 = parseInt(pagePrice / Number(qmmjarr[0])); var nums2 = 99999; if (Number(qmmjarr[2])) { nums2 = parseInt(Number(qmmjarr[2]) / Number(qmmjarr[1])); } if (nums1 < nums2) { pPrice = pagePrice - nums1 * Number(qmmjarr[1]); } else { pPrice = pagePrice - nums2 * Number(qmmjarr[1]); } } if (pPrice) disPrice2[pPrice] = [infoObj[pattern][qmmjitem]]; } } break; case "zhe": for (var zheitem in infoObj[pattern]) { var zhearr = zheitem.split('-'); var point = Number(zhearr[1]) / 10; var pPrice = (pagePrice * point).toFixed(4); if (Number(zhearr[0]) > 1) { coudanObj[pPrice] = { "type": "zhe", "tt1": Number(zhearr[0]) * pagePrice, "tt2": Number(zhearr[0]), "t1": Number(zhearr[0]) * pagePrice, "t3": Number(zhearr[0]), "t4": Number(zhearr[1]) / 10, "t2": Number(zhearr[0]) * pagePrice * (1 - Number(zhearr[1]) / 10) }; } else { xdljObj[pPrice] = true; } disPrice[pPrice] = [infoObj[pattern][zheitem]]; } break; case "manzhe": for (var mzitem in infoObj[pattern]) { var mzarr = mzitem.split('-'); if (type === "quan" && Object.keys(disPrice).length > 0) { for (var dis in disPrice) { var jd1 = coudanObj[dis] && Number(mzarr[0]) <= coudanObj[dis]['tt1']; var jd2 = xdljObj[dis]; if (Number(mzarr[0]) <= Number(dis) || pingxingcelue() && (jd1 || jd2)) { var pPrice = undefined; if (pingxingcelue() && coudanObj[dis]) { var p2 = coudanObj[dis]['tt1'] - coudanObj[dis]['tt2'] - coudanObj[dis]['tt1'] * (1 - Number(mzarr[1]) / 10); pPrice = p2 / (coudanObj[dis]['tt1'] / pagePrice); } else if (pingxingcelue() && xdljObj[dis]) { pPrice = dis - pagePrice * (1 - Number(mzarr[1]) / 10); } else { pPrice = Number(dis) * (Number(mzarr[1]) / 10); } if (coudanObj[dis]) coudanObj[pPrice] = true; if (xdljObj[dis]) xdljObj[pPrice] = true; disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][mzitem]]); } else if (Number(mzarr[1]) <= 8 || dis / Number(mzarr[0]) > 0.9) { var pPrice = Number(dis) * (Number(mzarr[1]) / 10); disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][mzitem]]); coudanObj[pPrice] = true; } else if (coudanObj[dis] && Number(mzarr[0]) <= coudanObj[dis]) { var pPrice = Number(dis) * (Number(mzarr[1]) / 10); coudanObj[pPrice] = true; disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][mzitem]]); } } } else if (type === "quan") { if (Number(mzarr[0]) <= pagePrice) { var pPrice = pagePrice * (Number(mzarr[1]) / 10); xdljObj[pPrice] = true; disPrice2[pPrice] = [infoObj[pattern][mzitem]]; } else if (Number(mzarr[1]) < 9 || pagePrice / Number(mzarr[0]) > 0.9) { var pPrice = pagePrice * (Number(mzarr[1]) / 10); coudanObj[pPrice] = true; disPrice2[pPrice] = [infoObj[pattern][mzitem]]; } } else { if (Number(mzarr[0]) <= pagePrice) { var pPrice = pagePrice * (Number(mzarr[1]) / 10); xdljObj[pPrice] = true; disPrice[pPrice] = [infoObj[pattern][mzitem]]; } else { var pPrice = pagePrice * (Number(mzarr[1]) / 10); coudanObj[pPrice] = { "type": "manzhe", "tt1": Number(mzarr[0]), "tt2": Number(mzarr[0]) - pPrice, "t1": Number(mzarr[0]), "t2": Number(mzarr[0]) - pPrice, "t3": Number(mzarr[1]) / 10 }; disPrice[pPrice] = [infoObj[pattern][mzitem]]; } } } break; case "manzhe2": for (var mzitem in infoObj[pattern]) { var pPrice = pagePrice * (Number(mzitem) - 1) / Number(mzitem); coudanObj[pPrice] = { "type": "manzhe2", "tt1": pagePrice * Number(mzitem), "tt2": pagePrice, "t1": pagePrice * (Number(mzitem) - 1), "t2": Number(mzitem) }; disPrice[pPrice] = [infoObj[pattern][mzitem]]; } break; case "quanmanjian": for (var quanmjitem in infoObj[pattern]) { var quanmjarr = quanmjitem.split('-'); if (Object.keys(disPrice).length > 0) { for (var dis in disPrice) { if (Number(dis) >= Number(quanmjarr[0]) || pingxingcelue() && pagePrice >= Number(quanmjarr[0])) { var pPrice = Number(dis) - Number(quanmjarr[1]); xdljObj[pPrice] = true; disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][quanmjitem]]); } } } else { if (Number(quanmjarr[0]) <= pagePrice) { var pPrice = pagePrice - Number(quanmjarr[1]); xdljObj[pPrice] = true; disPrice2[pPrice] = [infoObj[pattern][quanmjitem]]; } else if (Number(quanmjarr[1]) / Number(quanmjarr[0]) > 0.2) { var pPrice = (Number(quanmjarr[0]) - Number(quanmjarr[1])) / (Number(quanmjarr[0]) / pagePrice); coudanObj[pPrice] = true; disPrice2[pPrice] = [infoObj[pattern][quanmjitem]]; } } } } } }; var vipPrice = function vipPrice(price) { var PLUSDom = $('.plus-price .price'); if (PLUSDom.length === 0) { PLUSDom = $('.p-price-plus .price'); } if (G.site === '360buy' && PLUSDom.length > 0) { var price1 = PLUSDom.text().replace(/[¥¥\s]+/g, ''); price1 = price1 && Number(price1); if (price1) { price = price1; vipPromo = "PLUS会员专享价" + price1; } } return price; }; module.exports.getPrice = function (callback) { if (disPrice) callback(disPrice, coudanObj, xdljObj);else callbacks = callback; }; module.exports.reload = function (cb) { disPrice = null; module.exports.init(); cb(); }; var domRequired = { '360buy': function buy() { return $('#summary-quan').length || $('#J-summary-topcjmj').length; } }; var init2 = function init2() { var info, pagePrice, plusPrice, toSend, loginCoupon, coupon, k, promoText, globalCondition, dp_id; return regeneratorRuntime.async(function init2$(context$1$0) { var _this = this; while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!domRequired[G.site]) { context$1$0.next = 3; break; } context$1$0.next = 3; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(domRequired[G.site])); case 3: info = sitePattern[G.site](); pagePrice = G.dp.price; plusPrice = vipPrice(pagePrice); toSend = []; if (plusPrice !== pagePrice) { toSend.push('plus:' + plusPrice); } if (!info.promo) info.promo = []; if (!info.quan) info.quan = []; if (!(G.site === '360buy')) { context$1$0.next = 19; break; } context$1$0.next = 13; return regeneratorRuntime.awrap(__webpack_require__("4c7fa20dd9a026cd043e").init()); case 13: loginCoupon = context$1$0.sent; if (loginCoupon instanceof Array) { info.quan = loginCoupon; } context$1$0.next = 17; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('coupon')); case 17: coupon = context$1$0.sent; if (coupon) { info.quan.push(coupon); } case 19: // if (G.aliSite) { // let coupon = await require('common/globalCondition').met('coupon') // if (coupon) { // info.quan.push(coupon + '元券') // } // } info.promo = __webpack_require__("d54879e983a83d07f093").arrayUnique(info.promo); if (!(G.site === '360buy')) { context$1$0.next = 29; break; } context$1$0.prev = 21; context$1$0.next = 24; return regeneratorRuntime.awrap((function callee$1$0() { var linkData, promoLinkData, couponLinkData; return regeneratorRuntime.async(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: context$2$0.next = 2; return regeneratorRuntime.awrap(__webpack_require__("91f250ebeb8d5987491c").get('https://item-soa.jd.com/getWareBusiness?skuId=' + pageConfig.product.skuid + '&cat=' + encodeURIComponent(pageConfig.product.cat.join(',')) + '&shopId=' + pageConfig.product.shopId + '&venderId=' + pageConfig.product.venderId + '¶mJson=' + encodeURIComponent(pageConfig.product.paramJson) + '&num=1')); case 2: linkData = context$2$0.sent; promoLinkData = linkData.promotion.activity; couponLinkData = linkData.couponInfo; info.promo = info.promo.map(function (item) { promoLinkData.forEach(function (promo) { if (item.indexOf(promo.value) > -1 && (item.indexOf('.jd.com') === -1 || item.indexOf('item.jd.com/') > -1)) { if (item.indexOf(':') > -1) { item = item.split(':')[1]; } if (promo.promoId) { item = 'https://search.jd.com/Search?activity_id=' + promo.promoId + '&sku=' + pageConfig.product.skuid + ':' + item; } } }); return item; }); info.quan = info.quan.map(function (item) { couponLinkData.forEach(function (coupon) { if (item.indexOf(coupon.couponValue) > -1 && item.indexOf('.jd.com') === -1) { item = 'https://search.jd.com/Search?coupon_batch=' + coupon.batchId + '&sku=' + pageConfig.product.skuid + ':' + item; } if ((item.indexOf(coupon.quota + '元减') > -1 || item.indexOf(coupon.quota + '减') > -1) && item.indexOf('.jd.com') === -1) { item = 'https://search.jd.com/Search?coupon_batch=' + coupon.batchId + '&sku=' + pageConfig.product.skuid + ':' + item; } }); return item; }); case 7: case 'end': return context$2$0.stop(); } }, null, _this); })()); case 24: context$1$0.next = 29; break; case 26: context$1$0.prev = 26; context$1$0.t0 = context$1$0['catch'](21); __webpack_require__("316f9c352c6202560d16").error(context$1$0.t0); case 29: toSend = toSend.concat(info.promo.map(function (x) { return '促: ' + x.replace('http://', '//').replace('https://', '//'); })).concat(info.quan.map(function (x) { return '券: ' + x.replace('http://', '//').replace('https://', '//'); })); //if (true) { k = $('.J-prom > .prom-item > img').attr('src'); if (k && k.indexOf('6223615cd83592b5') > -1) { toSend.push('会员特权:9.5折'); } promoText = encodeURIComponent(toSend.join(';')); globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); context$1$0.next = 36; return regeneratorRuntime.awrap(globalCondition.met('GwdDpIdGot')); case 36: dp_id = context$1$0.sent; request.get(G.server + '/extension/InTimePromotion?dp_id=' + dp_id + '&price=' + pagePrice + '&promo_text=' + promoText).then(function (res) { __webpack_require__("9c38beef5ff283e15bd2").setMet('promoGot', res.data); __webpack_require__("9c38beef5ff283e15bd2").setMet('localPromoGot', info); __webpack_require__("9c38beef5ff283e15bd2").setMet('remoteUrlMap', res._map); if (callbacks) { callbacks(res.data); } G.dp.promoPrice = res.data.current_price; }); //此处需要优先计算促销活动 再计算优惠券 // pagePrice = vipPrice(pagePrice) // if (info.promo) // getPromoInfoNum(pagePrice, info.promo, "promo") // if (info.quan) // getPromoInfoNum(pagePrice, info.quan, "quan") // for (let dis2 in disPrice2) { // disPrice[dis2] = disPrice2[dis2] // } // let dk = dingjinzhekou[G.site](); // if (dk || vipPromo) { // for (let disp in disPrice) { // let newdisp = disp - dk; // if (vipPromo) { // disPrice[disp].push(vipPromo) // } // if (Number(newdisp) !== Number(disp)) { // disPrice[newdisp] = disPrice[disp]; // } // } // } // if (callbacks) // callbacks(disPrice, coudanObj, xdljObj) case 38: case 'end': return context$1$0.stop(); } }, null, _this2, [[21, 26]]); }; module.exports.init = function () { if (['360buy', 'suning', 'tmall', 'dangdang'].indexOf(G.site) === -1) return; var instanceId = G.instanceId; var perform = function perform() { var siteName = G.site; var siteId = detect.getSiteId(siteName); priceParser.init(siteId, function (price) { if (!G.dp) return; if (G.instanceId && instanceId !== G.instanceId) return; if (price && price > 0) { G.dp.oldPrice = price; G.dp.price = price; } init2(); }); }; if (G.site === '360buy') { var observer; var _ret2 = (function () { if ($('.prom-item').length || $('.quan-item').length) { setTimeout(perform, 2000); return { v: undefined }; } MutationObserver = window.MutationObserver || window.WebKitMutationObserver; var runned = false; observer = new MutationObserver(function (mutations, observer) { if ($('.prom-item').length || $('.quan-item').length) { if (runned) return; runned = true; setTimeout(perform, 1000); } }); try { observer.observe(document.querySelector('.p-promotions'), { subtree: true, attributes: true }); } catch (e) { setTimeout(perform, 6000); } })(); if (typeof _ret2 === 'object') return _ret2.v; } else { setTimeout(perform, 4000); } }; // 京东plus价格参加实际计算 /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "999cc56b04566e456c6b": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var sitePattern = { '京东': { site_id: 3, pattern: "http://search.jd.com/Search?enc=utf-8&keyword=" }, '亚马逊': { site_id: 1, pattern: "http://www.amazon.cn/s?field-keywords=" }, '当当': { site_id: 2, pattern: "http://search.dangdang.com/?key=" }, '苏宁': { site_id: 25, pattern: "http://search.suning.com/emall/search.do?keyword=" }, '淘宝': { site_id: 83, pattern: "http://s.taobao.com/search?q=" }, '国美': { site_id: 28, pattern: "http://www.gome.com.cn/search?question=" }, '一号店': { site_id: 31, pattern: "http://search.yhd.com/s2/c0-0/k" }, '唯品会': { site_id: 129, pattern: 'https://category.vip.com/suggest.php?keyword=' }, '购物党': { 'pattern': 'https://www.' + G.extName + '.com/search?from=ext&s_product=', 'site_id': 0 } }; var replaceUrl = function replaceUrl(name) { var url = ''; var searchApi = sitePattern[name].pattern; var site_id = sitePattern[name].site_id; var inputtxt = $('.search-input.blkcolor3').val(); if (name === '购物党' || name === '唯品会' || name === '苏宁') { url = searchApi + encodeURIComponent(inputtxt); } else if (name === '当当') { url = searchApi + encodeURIComponent(inputtxt) + '&act=input'; } else { url = G.u_server2 + '/union/go/?s_product=' + encodeURIComponent(inputtxt) + '&target_url=' + encodeURIComponent(searchApi + encodeURI(inputtxt)) + '&site_id=' + site_id; } window.open(url); //$('.search-submit').attr('href', url) //return url; }; var addEvent = function addEvent() { var time = undefined, show = undefined; $('.search-tle').on('click', function () { if (show) { $('.bjd-search-list').hide(); $('.search-tle em').removeClass('emup'); $('.search-tle').removeClass('search-select'); show = false; } else { show = true; $('.bjd-search-list').show(); $('.search-tle').addClass('search-select'); $('.search-tle em').addClass('emup'); } }); $('.bjd-search-list').on('click', function (e) { if (e.target.nodeName === 'SPAN') { var txt = $(e.target).text(); var dom = $('.search-tle span'); var txtold = dom.text(); dom.text(txt); $('.bjd-search-list').hide().append($('<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__("ea01780c75dd0a1f378a"); if (style === 'top') html = __webpack_require__("9e1a34e43d76a5a1a2f5"); $('.search-mod').append(template.compile(html)({ keyword: keyword, site_k: site_k, site_k2: site_k2 })).addClass('hasSearch'); addEvent(); if (style === 'top') { __webpack_require__("1c640a99db9f6f8a16c2").autoFixWidth(); } function appendCss(cssStr) { var s2 = document.createElement('STYLE'); s2.innerHTML = cssStr; document.body.appendChild(s2); } if (location.href.indexOf('taobao.com') > -1 || location.href.indexOf('tmall.') > -1) { $('.bjd-search-list span').toArray().forEach(function (item) { if (item.innerHTML.indexOf('购物党') > -1) { $(item).remove(); } }); appendCss('.bjd-search-list { height: 140px }'); } }; module.exports.init = function (data) { // if ($(window).width() < 1150) { // $('.search-mod').hide() // return; // } renderBottom(data); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "9bf6d059e9a265559f0c": /***/ (function(module, exports, __webpack_require__) { "use strict"; var money = { 'us': ['$', '美元', 'USD'], 'Europe': ['€', '欧元', 'EUR'], 'Japan': ['JP¥', '日元', 'JPY'], 'Europe2': ['€', '欧元', 'EUR'], 'UK': ['£', '英镑', 'GBP'], 'Australlia': ['AU$', '澳元', 'AUD'], 'HK': ['HK$', '港元', 'HKD'], 'New-Zealand': ['NZ$', '新元', 'NZD'], 'Canada': ['CDN$', '加元', 'CAD'] }; var countrys = { 'wemakeprice': 'us', 'dod': 'Europe', 'apo': 'Europe', 'ansgo': 'Australlia', 'perfumesclub': 'Europe', 'net-a-porter': 'us', 'kidsroom': 'Europe', 'getthelabel': 'UK', 'babyhaven': 'us', 'danielwellington': 'us', 'dewaren': 'Europe', 'bose': 'us', 'takeya': 'Japan', 'bienmanger': 'Europe2', 'tlcpharmacy': 'UK', 'petit-bateau': 'us', 'esteelauder': 'us', '51taouk': 'UK', 'amcal': 'Australlia', 'joesnewbalanceoutlet': 'us', 'gnc': 'us', 'royyoungchemist': 'Australlia', 'kohls': 'us', 'bodybuilding': 'us', 'newbalance': 'us', 'newegg-us': 'us', 'pharmacy4less': 'Australlia', 'beautybay': 'us', 'katespade': 'UK', 'carters': 'us', 'discount-apotheke': 'Europe2', 'pharmacyonline': 'Australlia', 'skinstore': 'us', 'feelunique': 'UK', 'x0061': 'Australlia', 'bonjourhk': 'HK', 'ba': 'Europe2', 'chemistdirect': 'Australlia', 'target': 'us', 'ashford-zh': 'us', 'forever21': 'UK', 'holland-at-home': 'Europe2', 'kiehls': 'us', 'pharmacydirect': 'New-Zealand', 'shoes': 'us', 'shopbop': 'us', 'windeln': 'Europe2', 'bhphotovideo': 'us', 'lookfantastic': 'UK', 'hqhair': 'UK', 'amazon-com': 'us', 'amazon-jp': 'Japan', 'amazon-fr': 'Europe', 'amazon-de': 'Europe', 'amazon-it': 'Europe', 'amazon-uk': 'UK', 'amazon-ca': 'Canada', 'amazon-es': 'Europe', 'amazon-au': 'Australlia', // 'iherb': 'us', '6pm': 'us', 'aliexpress': 'us', '821': 'Europe' }; module.exports.getSymbol = function (name) { var v = Object.values(money); var tgt = v.filter(function (x) { return x[2] === name || x[1] === name; }); if (tgt.length) { return tgt[0]; } }; module.exports.getMoneyInfo = function (site) { if (countrys[site] && money[countrys[site]]) { return countrys[site] && money[countrys[site]]; } return ['¥', '人民币', 'CNY']; }; /***/ }), /***/ "9c38beef5ff283e15bd2": /***/ (function(module, exports, __webpack_require__) { "use strict"; // 有时需要等待条件满足再执行 var metConditions = []; var waitList = {}; var dataList = {}; module.exports = { met: function met(condition) { var timeout = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1]; var defaultValue = arguments.length <= 2 || arguments[2] === undefined ? null : arguments[2]; return new Promise(function (resolve) { if (metConditions.indexOf(condition) > -1) { resolve(dataList[condition]); } else { if (waitList[condition]) { waitList[condition].push(resolve); } else { waitList[condition] = [resolve]; } if (timeout) { setTimeout(function () { resolve(defaultValue); }, timeout); } } }); }, clearAll: function clearAll() { metConditions = []; waitList = {}; dataList = {}; }, clear: function clear(condition) { var idx = metConditions.indexOf(condition); if (idx > -1) { metConditions.splice(idx, 1); delete dataList[condition]; } }, setMet: function setMet(condition) { var data = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1]; if (metConditions.indexOf(condition) === -1) { metConditions.push(condition); dataList[condition] = data; } if (waitList[condition]) { waitList[condition].forEach(function (x) { return x(data); }); waitList[condition] = []; } } }; /***/ }), /***/ "9c9b99688069c7c98a03": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__QRLinkTaobaoLogin_vue_vue_type_template_id_6179ab9e_scoped_true___ = __webpack_require__("664f6df1f2ec50016f49"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QRLinkTaobaoLogin_vue_vue_type_script_lang_js___ = __webpack_require__("d7b8bdfd8cae885025eb"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__QRLinkTaobaoLogin_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__QRLinkTaobaoLogin_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__QRLinkTaobaoLogin_vue_vue_type_style_index_0_id_6179ab9e_scoped_true_lang_less___ = __webpack_require__("db518a3e544b1a3c4e0f"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__QRLinkTaobaoLogin_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__QRLinkTaobaoLogin_vue_vue_type_template_id_6179ab9e_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__QRLinkTaobaoLogin_vue_vue_type_template_id_6179ab9e_scoped_true___["b" /* staticRenderFns */], false, null, "6179ab9e", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('6179ab9e')) { api.createRecord('6179ab9e', component.options) } else { api.reload('6179ab9e', component.options) } module.hot.accept("./QRLinkTaobaoLogin.vue?vue&type=template&id=6179ab9e&scoped=true&", function () { api.rerender('6179ab9e', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/QRLinkTaobaoLogin.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "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 }, data: function data() { return { site: this.mode ? '360buy' : G.site, qr: '', loading: false, hasBuyButton: true }; }, mounted: function mounted() { var _this = this; setTimeout(function () { if ($('#J_ButtonWaitWrap').length) { _this.hasBuyButton = false; } }, 500); }, methods: { over: function over() { var _this2 = this; if (!this.qr && !this.loading) { this.loading = true; // if (this.mode && this.mode.includes && this.mode.includes('gift')) { // let link1 = util.getParameterByName('returnurl') // let link2 = util.getParameterByName('returnurl', link1) // console.log(link2) // QRCode.toDataURL(link2.replace('&isMainBack=1&loginback=1', ''), {}, (err, url) => { // if (err) { // //require('common/extConsole').error(err) // return // } // this.qr = url // }) // return // } __webpack_require__("91f250ebeb8d5987491c").rawGet(G.u_server + ('/helper/qrcode?event=appQrcode' + (this.mode || this.tag ? this.mode.includes('gift') ? '&rebate=1' : '&tag=' + (this.tag ? this.tag : 1) : '') + '&dp_id=') + (this.dpId ? this.dpId : G.dp.dpId)).then(function (res) { console.log(res); if (typeof res === 'string') { res = JSON.parse(res); } _this2.qr = res.data.qrImgStr; }); } } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "9e1a34e43d76a5a1a2f5": /***/ (function(module, exports) { module.exports = "<div class=\"search-tle\">\n <span class=\"blkcolor1\">{{site_k}}</span>\n <em class=\"gwd_bg\"></em>\n</div>\n<input class=\"search-input blkcolor3\" value=\"{{keyword}}\" style=\"position: initial\">\n<a href=\"\" class=\"search-submit\" target=\"_blank\">\n <em class=\"gwd_bg\"></em>\n</a>\n<div class=\"bjd-search-list\">\n <span>{{site_k2}}</span>\n <span>京东</span>\n <span>苏宁</span>\n <span>亚马逊</span>\n <span>当当</span>\n <span>一号店</span>\n <span>国美</span>\n <span>购物党</span>\n <style type=\"text/css\">\n .search-tle {\n background: #F0F5F7;\n width: 61px;\n height: 28px;\n border-right: none;\n cursor: pointer;\n border-bottom-left-radius: 18px;\n border-top-left-radius: 18px;\n line-height: 22px;\n margin-top: 4px;\n }\n .search-tle.search-select {\n border-bottom-left-radius: 0px;\n }\n .search-tle span {\n float: left;\n width: 36px;\n height: 28px;\n line-height: 28px;\n margin-left: 10px;\n text-align: center;\n text-align: justify;\n -webkit-text-align-last:justify;\n font-size: 12px;\n }\n .search-tle em {\n float: left;\n height: 6px;\n width: 10px;\n margin-top: 12px;\n margin-left: 5px;\n background-position: -201px -15px;\n }\n .search-tle em.emup {\n background-position: -201px -25px;\n }\n .bjd-search-list {\n position: absolute;\n height: 160px;\n width: 70px;\n display: none;\n top: 32px;\n background-color: #F0F5F7;\n border: 1px solid #edf1f2;\n border-top: none;\n }\n .gwd_amazon .bjd-search-list {\n bottom: 57px;\n }\n .gwd_vipshop .bjd-search-list {\n left: 10px;\n }\n .bjd-search-list span {\n width: 36px;\n margin-left: 10px;\n font-size: 12px;\n float: left;\n height: 20px;\n color: #303233;\n cursor: pointer;\n text-align: justify;\n -webkit-text-align-last:justify;\n }\n .bjd-search-list span:hover {\n color: #5ebeff;\n }\n @media screen and (-webkit-min-device-pixel-ratio:0){\n .bjd-search-list span:after, .search-tle span:after{\n content:\".\";\n display: inline-block;\n width:100%;\n overflow:hidden;\n height:0;\n }\n }\n .search-input {\n width: 123px;\n margin: 0;\n height: 28px;\n padding: 0 4px 0 12px;\n line-height: 28px;\n border: 0px solid #cdcdcd;\n border-left: none;\n outline: 0;\n font-size: 12px;\n font-family: 'Microsoft YaHei',tahoma,arial,SimSun;\n background-color: #F0F5F7;\n margin-top: 4px!important;\n }\n a.search-submit {\n width: 30px;\n height: 28px;\n cursor: pointer;\n background-color: #F0F5F7;\n border-bottom-right-radius: 18px;\n border-top-right-radius: 18px;\n margin-top: 4px;\n }\n a.search-submit em {\n width: 17px;\n height: 24px;\n background-position: -13px -39px;\n display: inline-block;\n float: right;\n margin-right: 7px;\n margin-top: 3px;\n }\n </style>\n</div>" /***/ }), /***/ "9e4c2dea34add1526306": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GiftMoneyTop_vue_vue_type_script_lang_js___ = __webpack_require__("5b28fa11a0ec134d9ef1"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GiftMoneyTop_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GiftMoneyTop_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GiftMoneyTop_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GiftMoneyTop_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GiftMoneyTop_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "9ea3993fbe926fac1855": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponMini_vue_vue_type_style_index_0_id_42d39176_scoped_true_lang_less___ = __webpack_require__("69d21005bc806483bd7c"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponMini_vue_vue_type_style_index_0_id_42d39176_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponMini_vue_vue_type_style_index_0_id_42d39176_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponMini_vue_vue_type_style_index_0_id_42d39176_scoped_true_lang_less____default.a); /***/ }), /***/ "9edc88f739fb33f2c091": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CouponArrow_vue_vue_type_template_id_4f0f1e98___ = __webpack_require__("6c4158d4a8844af2f16e"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__CouponArrow_vue_vue_type_script_lang_js___ = __webpack_require__("31565daf77a36862a767"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__CouponArrow_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__CouponArrow_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_2__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__CouponArrow_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__CouponArrow_vue_vue_type_template_id_4f0f1e98___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__CouponArrow_vue_vue_type_template_id_4f0f1e98___["b" /* staticRenderFns */], false, null, null, null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('4f0f1e98')) { api.createRecord('4f0f1e98', component.options) } else { api.reload('4f0f1e98', component.options) } module.hot.accept("./CouponArrow.vue?vue&type=template&id=4f0f1e98&", function () { api.rerender('4f0f1e98', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/CouponArrow.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "9f431c2e6e4e69141d4c": /***/ (function(module, exports) { module.exports = "<div id=\"topfavor_detail\" class=\"{{if userLogin}}islogin{{/if}}\" style=\"{{style}}\">\n <div class=\"topf-head\" >\n <div class=\"blkcolor1\">收藏并降价提醒</div>\n <span class=\"sp-del\">删除成功</span>\n {{if !hidebtn}}\n <span class=\"sp-col\">收藏商品</span>\n {{/if}}\n </div>\n <div class=\"topf-body\">\n <div class=\"login_detail\" style=\"\">\n <div id=\"gwd-login-favor\"></div>\n </div>\n <div class=\"favor-dp-detail\">\n <ul class=\"favor-list\">\n \n </ul>\n <a class=\"see-all-favor blkcolor4\" target=\"_blank\" href=\"\">查看全部(<em></em>)</a>\n </div>\n </div>\n\n <style type=\"text/css\">\n #topfavor_detail {\n position: absolute;\n right: 67px;\n width: 280px;\n height: 374px;\n background: #FFFFFF;\n box-shadow: 0 5px 10px 0 rgba(22,24,26,0.15);\n display: none;\n }\n #topfavor_detail .topf-head {\n height: 40px;\n float: left;\n width: 100%;\n display: none;\n }\n #topfavor_detail.islogin .topf-head {\n display: block;\n }\n #topfavor_detail .topf-body {\n float: left;\n width: 100%;\n }\n .topf-head * {\n float: left;\n }\n #topfavor_detail .topf-head div {\n font-size: 14px;\n line-height: 14px;\n margin-top: 14px;\n margin-left: 14px;\n font-weight: bold;\n }\n #topfavor_detail .topf-head span.sp-col {\n border: 1px solid #F07860;\n color: #F07860;\n border-radius: 20px;\n height: 24px;\n width: 68px;\n line-height: 24px;\n text-align: center;\n position: absolute;\n top: 10px;\n right: 14px;\n cursor: pointer;\n display: none;\n font-size: 12px;\n }\n #topfavor_detail .topf-head .sp-del {\n position: absolute;\n color: #F07860;\n font-size: 12px;\n top: 12px;\n left: 130px;\n display: none;\n } \n #topfavor_detail .topf-head .sp-col.collected {\n color: #fff;\n background-color: #F07860;\n }\n #topfavor_detail.islogin .topf-head span.sp-col {\n display: inline-block;\n }\n .topf-body {\n height: 336px;\n }\n .islogin .login_detail {\n display: none;\n }\n .topf-body p.login-remind {\n font-size: 12px;\n margin-left: 14px;\n line-height: 12px;\n }\n .login_detail .logininfo {\n margin-top: 30px;\n text-align: center;\n position: relative;\n }\n .login_detail .password {\n margin-top: 18px;\n }\n .login_detail .forget_pass {\n margin-left: 201px;\n float: left;\n margin-top: 21px;\n font-size: 12px;\n line-height: 12px;\n }\n .login_detail .forget_pass:hover {\n color: #48befe!important;\n text-decoration: none;\n }\n #topfavor_detail .login_detail .logininfo input {\n width: 196px;\n height: 30px;\n font-size: 14px;\n padding: 0px 6px 0px 16px;\n display: inline-block;\n border-radius: 15px;\n outline: none;\n }\n .login_detail .login_click {\n float: left;\n margin-left: 97px;\n height: 28px;\n width: 86px;\n cursor: pointer;\n margin-top: 15px;\n background-color: #48befe;\n color: #fff!important;\n line-height: 28px;\n text-align: center;\n font-size: 14px;\n border-radius: 15px;\n }\n .login_detail .login_click:hover {\n background-color: #18ACFC;\n }\n .login_detail .login_remind {\n position: absolute;\n top: 172px;\n left: 37px;\n height: 20px;\n font-size: 12px;\n width: 116px;\n color: #EC4966;\n display: none;\n }\n .login_detail .register {\n float: left;\n width: 100%;\n height: 12px;\n line-height: 12px;\n text-align: center;\n margin-top: 9px;\n color: #48BEFE!important;\n font-size: 12px;\n border: none;\n background-color: #fff;\n }\n .register:hover {\n text-decoration: none;\n color: #48BEFE;\n }\n .slice_div {\n height: 12px;\n width: 100%;\n float: left!important;\n margin-top: 23px;\n background-position: 14px -239px;\n }\n .login_detail .qqlogin, .login_detail .sinalogin, .login_detail .weixinlogin {\n display: inline-block;\n width: 32px;\n height: 32px;\n margin-top: 20px;\n \n }\n .login_detail .qqlogin {\n margin-left: 51px;\n }\n .login_detail .sinalogin {\n margin-left: 41px;\n }\n .login_detail .weixinlogin {\n margin-left: 41px;\n }\n .login_detail .other_login {\n float: left;\n height: 57px;\n width: 100%;\n } \n .login_detail .other_login a {\n float: left;\n }\n .favor-dp-detail {\n display: none;\n }\n .islogin .favor-dp-detail {\n display: block;\n }\n #topfavor_detail .favor-list {\n height: 256px;\n width: 280px;\n margin: 0px;\n padding: 0px;\n float: left;\n }\n #topfavor_detail .favor-list li {\n list-style: none;\n height: 76px;\n margin-top: 20px;\n overflow: hidden;\n margin-left: 14px;\n float: none;\n }\n #topfavor_detail .favor-list li:first-child {\n margin-top: 14px;\n }\n #topfavor_detail .favor-list li .item_img {\n height: 74px;\n width: 74px;\n float: left;\n text-align: center;\n border: 1px solid #edf1f2;\n }\n #topfavor_detail .favor-list li .item_img:after {\n content:'';\n width:0;\n height:100%;\n display:inline-block;\n vertical-align:middle;\n }\n #topfavor_detail .item_img img {\n max-height: 74px;\n max-width: 74px;\n margin: 0 auto;\n display: inline-block;\n vertical-align: middle;\n }\n #topfavor_detail .item_desc {\n display: inline-block;\n margin-left: 14px;\n float: left;\n -margin-left: 10px;\n width: 164px;\n }\n #topfavor_detail a.item_title {\n font-size: 12px;\n line-height: 16px;\n height: 32px;\n width: 159px;\n text-decoration: none;\n }\n #topfavor_detail a.item_title:hover {\n text-decoration: none;\n color: #48befe;\n }\n #topfavor_detail .other_desc, #topfavor_detail .item_title {\n height: 16px;\n line-height: 16px;\n display: block;\n text-align: left;\n overflow: hidden;\n float: left;\n }\n #topfavor_detail .other_desc {\n margin-top: 26px;\n width: 164px;\n }\n #topfavor_detail span.site_icon {\n height: 16px;\n line-height: 16px;\n cursor: text;\n }\n #topfavor_detail .site_icon img {\n height: 16px;\n }\n #topfavor_detail span.item_price {\n margin-left: 6px;\n margin-top: 2px;\n cursor: text;\n display: inline-block;\n height: 14px;\n line-height: 14px;\n color: #e4393c;\n font-size: 14px;\n font-weight: bold;\n }\n #topfavor_detail span.item_close_btn {\n font-size: 12px;\n height: 12px;\n width: 25px;\n float: right;\n text-align: center;\n line-height: 16px;\n letter-spacing: 0;\n cursor: pointer;\n }\n #topfavor_detail span.item_close_btn:hover {\n color: #48befe;\n }\n #topfavor_detail .see-all-favor {\n position: absolute;\n bottom: 17px;\n right: 14px;\n font-size: 12px;\n text-decoration: none;\n }\n #topfavor_detail .see-all-favor:hover{\n color: #48befe;\n }\n </style>\n</div>" /***/ }), /***/ "a277d2d1e7d7916957bf": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var script = __webpack_require__("081526742bfe6e0e4762"); var $ = __webpack_require__("e081b2491b5c9b12b9da"); if (script) script.parentNode && script.parentNode.removeChild && script.parentNode.removeChild(script); if (document.getElementById('BIJIA_HAS_BUILT')) { $("#BIJIA_HAS_BUILT").addClass(G.from_device); console.log('has built, return'); module.exports = true; } else { var BUILT_FLAG = document.createElement('div'); BUILT_FLAG.id = 'BIJIA_HAS_BUILT'; var head = document.getElementsByTagName('head'); if (head && head[0]) head = head[0]; head.appendChild(BUILT_FLAG); $("#BIJIA_HAS_BUILT").addClass(G.from_device); module.exports = false; } /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "a3752ec682eda733a057": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "gwd-minibar-element", staticStyle: { height: "36px", width: "460px", background: "white", "align-items": "center", display: "flex", position: "relative" }, attrs: { id: "gwd-price-protect" }, on: { mouseover: _vm.over } }, [ _c("img", { staticStyle: { "margin-left": "11px", width: "16px" }, attrs: { src: "https://cdn.gwdang.com/images/extensions/[email protected]", 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 /***/ }), /***/ "a4447e95a8966a5c4979": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($) { // lazyload图片地址获取 function getLazyLoadImageUrl(lazyloadImage) { var imgLink; if (lazyloadImage) { var lazyloadImageUrl = lazyloadImage.getAttribute("data-ks-lazyload"); if (lazyloadImageUrl && (lazyloadImageUrl.indexOf("//") === 0 || lazyloadImageUrl.indexOf("http") === 0)) { imgLink = lazyloadImageUrl; } } if (!imgLink) { imgLink = lazyloadImage.src; } if (!imgLink) { return; } if (imgLink.indexOf("//") === 0) { imgLink = "https:" + imgLink; } if (imgLink.indexOf("http") !== 0) { return; } var matchResult = imgLink.match(/.*?\.(jpg|png)/); if (matchResult) { return matchResult[0]; } else { return imgLink; } } function fixReviewCount(reviewText) { var review = reviewText.match(/[\d\.]+/)[0]; if (reviewText.indexOf("万") > -1) { review = (parseFloat(review) * 10000).toString(); } return review; } // 在某些页面上需要搜集一些信息发送给服务器端 //tmall.com/search.htm, //比如https://futianchengjl.tmall.com/search.htm?spm=a1z10.3-b.w4011-18934291793.35.41383b485iqDzl&user_number_id=4149992945&rn=8b19ddff892b06d8de80a6e62a35467b&keyword=%B0%D7%BE%C6&search=y&orderType=newOn_desc&tsearch=y function getTmallShopListInfo() { var productList = document.querySelectorAll(".J_TItems > div > .item"); var items = []; var userId = document.documentElement.innerHTML.match(/userId=(\d+)(;|")/)[1]; var shopName = document.querySelector(".slogo-shopname ").textContent; for (var i = 0; i < productList.length; i++) { var product = productList[i]; var pid = product.getAttribute("data-id"); var title = product.querySelector(".item-name").textContent.trim(); var imgLink = getLazyLoadImageUrl(product.querySelector(".photo > a > img")); var price = product.querySelector(".c-price").textContent; var review = ""; var sellNumber = ""; try { review = fixReviewCount(product.querySelector(".rates > div > h4 > a > span ").textContent); sellNumber = fixReviewCount(product.querySelector(".sale-num").textContent); } catch (e) {} var item = { 'category': "", 'img': imgLink, 'nnid': pid, 'price': price, 'review': review, 'sale_num': sellNumber, 'shopId': userId, 'shopname': shopName, 'taobao': false, 'title': title }; items.push(item); } return items; } //list.tmall.hk, list.tmall.com //比如https://list.tmall.com/search_product.htm?spm=a220m.1000858.0.0.1391303aXK4E21&s=120&q=%B0%D7%BE%C6&sort=s&style=g&from=mallfp..pc_1_searchbutton&active=1&smAreaId=320106&type=pc#J_Filter //https://list.tmall.hk/search_product.htm?spm=a2231.7718719.2014120102.1.25fc12feg41o0n&cat=52792006&auction_tag=71682;&sort=d&acm=lb-zebra-34359-425786.1003.4.536907&style=g&q=%C3%E6%C4%A4&from=tmallhk.list.pc_1_searchbutton&scm=1003.4.lb-zebra-34359-425786.OTHER_1_536907&tmhkmain=1#J_Filter function getTmallListInfo() { var productList = document.querySelectorAll(".product"); var items = []; for (var i = 0; i < productList.length; i++) { var product = productList[i]; var titleNode = product.querySelector(".productTitle > a"); var title = titleNode.title; var productUrl = product.querySelector(".productImg-wrap > a").href; var pid = productUrl.match(/(?:\?|&)id=(\d+)/)[1]; try { var skuId = productUrl.match(/skuId=(\d+)/)[1]; } catch (e) {} var imgLink = getLazyLoadImageUrl(product.querySelector(".productImg > img ")); var price = product.querySelector(".productPrice > em").textContent.match(/[\d\-\.]+/)[0]; try { var shopNode = product.querySelector(".productShop-name"); var shopName = shopNode.textContent.trim("↵"); var userId = shopNode.href.match(/user_number_id=(\d+)/)[1]; var review = fixReviewCount(product.querySelector(".productStatus > span > a").textContent); var sellNumber = fixReviewCount(product.querySelector(".productStatus > span > em").textContent); } catch (e) {} var item = { 'category': "", 'img': imgLink, 'nnid': pid, 'price': price, 'review': review, 'sale_num': sellNumber, 'shopId': userId, 'shopname': shopName, 'taobao': false, 'title': title, 'sku': skuId }; items.push(item); } return items; } // function getTmallChaoShiListInfo() { // var productList = document.querySelectorAll(".product"); // var items = []; // for (var i = 0; i < productList.length; i++ ) { // var product = productList[i]; // var titleNode = product.querySelector(".product-title > a"); // var title = titleNode.title; // var pid = product.getAttribute("data-itemid"); // var imgLink = getLazyLoadImageUrl(product.querySelector(".product-img img")); // var price = product.querySelector(".ui-price > strong").textContent.match(/[\d\-\.]+/)[0]; // var sellNumber = product.querySelector(".item-sum > strong").textContent.match(/\d+/)[0]; // var review = "0"; // try { // review = product.querySelector(".productStatus > span > a").textContent.match(/\d+/)[0]; // } catch(e) { // // } // var item = { // 'category': "", // 'img': imgLink, // 'nnid': pid, // 'price': price, // 'review': review, // 'sale_num': sellNumber, // 'shopname': "天猫超市", // 'taobao': false, // 'title': title, // } // items.push(item); // } // return items; // } //s.taobao.com //https://s.taobao.com/search?spm=a21bo.2017.201867-links-1.3.5af911d97W83KL&q=%E6%B5%81%E8%A1%8C%E5%A5%B3%E9%9E%8B&imgfile=&js=1&stats_click=search_radio_all%3A1&initiative_id=staobaoz_20190320&ie=utf8 function getTaobaoListInfo() { var productList = document.querySelectorAll(".m-itemlist > div > .items > .item"); var items = []; for (var i = 0; i < productList.length; i++) { var product = productList[i]; var imgLink = getLazyLoadImageUrl(product.querySelector(".pic > a >img")); var title = product.querySelector(".title > a").textContent.trim(); var pid = product.querySelector(".title > a").getAttribute("data-nid"); var userId = product.querySelector(".shopname").getAttribute("data-userid"); var shopName = product.querySelector(".shopname").textContent.trim(); var price = product.querySelector(".price").textContent.match(/[\d\-\.]+/)[0]; var sellNumber = fixReviewCount(product.querySelector(".deal-cnt").textContent); var review = ""; var isTaobao = true; if (product.querySelector(".icon-service-tianmao")) { isTaobao = false; } var item = { 'category': "", 'img': imgLink, 'nnid': pid, 'price': price, 'review': review, 'sale_num': sellNumber, 'shopId': userId, 'shopname': shopName, 'taobao': isTaobao, 'title': title }; items.push(item); } return items; } function tmallOffShelf() { var items = []; if (document.querySelector(".sold-out-left")) { items.push({ "nnid": document.URL.match(/id=(\d+)/)[1], "price": "-1" }); } return items; } function tmallPromo() { if (document.querySelector(".tb-wrTuan-deposit") && document.querySelector(".depositexpand")) { var presalePrice = document.querySelector(".tb-wrTuan-num ").textContent.replace(/¥/, ""); var deposit = document.querySelector(".tb-wrTuan-deposit").textContent.replace(/¥/, ""); var expand = document.querySelector(".depositexpand").textContent.match(/付定金立减([\d+\.]+)/)[1]; return [{ nnid: document.URL.match(/id=(\d+)/)[1], title: document.querySelector(".tb-detail-hd > h1").textContent.replace(/\s/g, ""), promo: [presalePrice, deposit, expand], price: "0" }]; } else { return []; } } // 修改提取结果,使其格式符合要求,然后提交 function processResult(result) { var toSend = result.map(function (item) { return { crc32: "", price: parseFloat(item.price), tle: "", url: JSON.stringify(item) }; }); __webpack_require__("ee3f371a85b894c823bf").sendPriCheck(toSend); } function getInfoAndSend() { // if (navigator.language != "zh") { // return; // } if (location.href.indexOf('.tmall.com/search.htm?') > -1) { var result = getTmallShopListInfo(); processResult(result); } if (location.href.indexOf('list.tmall.hk/search_product.htm') > -1 || location.href.indexOf('list.tmall.com/search_product.htm') > -1) { var result = getTmallListInfo(); processResult(result); } // if (location.href.indexOf('list.tmall.com/search_product.htm') > -1) { // let result = getTmallChaoShiListInfo(); // processResult(result) // } if (location.href.indexOf('s.taobao.com/search') > -1) { var result = getTaobaoListInfo(); processResult(result); } if (location.href.indexOf('https://detail.tmall.com/item.htm') > -1) { var result = tmallOffShelf(); if (result.length != 0) { processResult(result); } var promo = tmallPromo(); if (promo.length != 0) { processResult(promo); } } } module.exports.init = function () { $(document).ready(function () { setTimeout(getInfoAndSend, 1000); }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "a48225d279d5cbed8beb": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__GwdPriceProtectMiddle_vue_vue_type_template_id_09436700_scoped_true___ = __webpack_require__("1933d89a9414ea50fbbd"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__GwdPriceProtectMiddle_vue_vue_type_script_lang_js___ = __webpack_require__("1b7cd483fef8d06be5bd"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__GwdPriceProtectMiddle_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__GwdPriceProtectMiddle_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__GwdPriceProtectMiddle_vue_vue_type_style_index_0_id_09436700_scoped_true_lang_less___ = __webpack_require__("83c13f37011b24ec3e73"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__GwdPriceProtectMiddle_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__GwdPriceProtectMiddle_vue_vue_type_template_id_09436700_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__GwdPriceProtectMiddle_vue_vue_type_template_id_09436700_scoped_true___["b" /* staticRenderFns */], false, null, "09436700", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('09436700')) { api.createRecord('09436700', component.options) } else { api.reload('09436700', component.options) } module.hot.accept("./GwdPriceProtectMiddle.vue?vue&type=template&id=09436700&scoped=true&", function () { api.rerender('09436700', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/GwdPriceProtectMiddle.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "a4b9fe4efa073a5334ec": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("4244f82d21040fd55aca"); 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("49f4f77e", 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!./GiftMoney.vue?vue&type=style&index=0&id=5b302872&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!./GiftMoney.vue?vue&type=style&index=0&id=5b302872&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(); }); } /***/ }), /***/ "a4d665fcb1536a15865d": /***/ (function(module, exports) { module.exports = "<div class=\"gwd-qrcode {{ if coupon }} gwd-coupon-code {{ /if }}\">\n {{ if showPinPrice }}\n <div class=\"gwd-pinPrice\">\n <img src=\"{{s_server}}/images/extensions/pindanjia.svg\" alt=\"\">\n </div>\n {{/if}}\n {{ if (coupon) }}\n <div class=\"top-coupon\">\n <span style=\"font-size: 13px; color: white; font-family: Microsoft Yahei\">{{ #coupon }}</span>\n </div>\n {{ /if}}\n <img src=\"{{ qrcode }}\" alt=\"\" style=\"width: 130px; height: 130px; margin-top: {{ if coupon }}40{{ else }}10{{/if}}px\">\n <span><span style=\"color: #14a723; font-weight: bold; font-size: 14px;\">微信扫码</span> 购买</span>\n</div>\n<style lang=\"less\">\n .gwd-qrcode {\n position: fixed;\n bottom: 9px;\n width: 160px;\n height: 173px;\n left: 50%;\n margin-left: 410px;\n box-sizing: border-box;\n border: 1px solid #e02d24;\n background: #fff7f6;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n\n .gwd-pinPrice {\n position: absolute;\n top: -61px;\n width: 185px;\n height: 41px;\n left: -9px;\n animation: go 1s infinite;\n }\n\n @keyframes go {\n 0% {\n top: -61px;\n }\n 50% {\n top: -52px;\n }\n 100% {\n top: -61px;\n }\n }\n\n .gwd-coupon-code {\n width: 160px;\n height: 203px;\n background: url({{s_server}}/images/extensions/newcouponbg.svg);\n border: none;\n }\n\n .gwd-qrcode .top-coupon {\n width: 160px;\n height: 28px;\n text-align: center;\n line-height: 28px;\n\n position: absolute;\n top: 0px;\n left: 0px;\n }\n\n .gwd-qrcode span {\n text-align: center;\n font-size: 12px;\n font-family: \"Microsoft YaHei\", \"Arial\", \"SimSun\";\n color: #333333;\n margin-top: 4px;\n margin-bottom: 10px;\n }\n</style>" /***/ }), /***/ "a51eacdde690fe7bfb28": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { module.exports = function (data) { var siteIdArr = ['15', '94', '108', '196', '32', '234', '273', '290', '292', '367', '373', '377']; var img_server = G.crc64 ? G.img64_server : G.img_server; if (!data || !data.length) return []; for (var i = 0; i < data.length; i++) { var d = data[i]; var dp_id = d.dp_id; if (!dp_id) continue; var siteId = dp_id.match(/\d+-(\d+)/) && dp_id.match(/\d+-(\d+)/)[1]; if (!siteId) continue; for (var j = 0; j < siteIdArr.length; j++) { if (siteId === siteIdArr[j]) { if (data[i].pic_url) data[i].pic_url = img_server + '/c_zoom,h_90/dp' + d.dp_id;else data[i].img_url = img_server + '/c_zoom,h_90/dp' + d.dp_id; } } } return data; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "a53850c80a1cfefa4efa": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) {var __WEBPACK_AMD_DEFINE_RESULT__;/* * 库存实时反馈模块 * 监控当前网站库存情况,并提取单品页商品库存数据 * @version:0.0.1 * @author:OuyJun([email protected]) * @since:2014-02-17 * */ !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { 'use strict'; var $ = __webpack_require__("e081b2491b5c9b12b9da"); return { //部分主流站点的库存(普通单品页)模板 //lefeng jiuxian 暂时没有处理 inventoryPatterns: { '360buy': { '#stocktext strong': '无货', '#store-prompt strong': '无货', //无货 '#store-prompt': '无货', '#stock-state': '无货', '#product-intro .itemover-title h3 strong': '商品已下柜' //商品已下柜 }, '51buy': { '#sea_buy_wrap': '到货通知', //到货通知 '#buyQty .godds_info_data span[style]': '无货' //'a.xbtn_notsale' : '\u6682\u4E0D\u9500\u552E'//暂不销售 }, 'amazon': { '.a-color-price': '缺货登记', '.ddm-sbr-avail-title': '缺货登记', //缺货登记 '#dynamicDeliveryMessage,#ddmAvailabilityMessage': '目前无货', '#dynamicDeliveryMessage span': '缺货登记' }, 'yihaodian': { '#arrivalNotice span': '到货通知', //到货通知 '#notSaleBtn .cartbox a span': '已售完', //已售完 '#detail_addToCart span.steal_btn': '抢光了', //抢光了 '.buy_btn3:visible': '已售完', '#detailStockInfo': '无货', '#addCart': '已售完' //如果不加入这个,总是返回-2 }, 'suning': { '#c_kucun span': '无货', //无货 '#recomTitle': '商品已下架', '#c_kucun': '无货' }, 'dangdang': { '#stock_writing_status': '缺货', //缺货 '.show_info_right strong.qh': '暂时缺货|罄', //暂时缺货 '#geo-info': '无货' }, 'gome': { '#stockTxt': '无货|下架|无货|暂不可送' //无货|下架|暂不可送 }, 'yougou': { '.buy': '已售罄', '.soldoutsty .fb': '此颜色商品已售罄' }, 'vmall': { '.button-notice-arrival span': '到货通知' //到货通知 }, 'vancl': { '.danpin_SouqingTitle h3': '该商品暂不能购买', '.NowHasGoods': '无货' }, 'jumei': { '.soldout_text': '已抢光', '.add_cart a.subscribe': '订阅到货通知' //订阅到货通知 }, 'newegg': { '#inventory .inventoryText': '暂无|接受预定', //暂无|接受预定 '#getQueueNumber': '立即预订', '.godds_info_data span:contains("库存")': '接受预定' }, 'moonbasa': { '#spanCountk': '无货' }, 'winxuan': { '.status': '无货' }, 'happigo': { '#goodskucun .f_red': '无货' }, 'xijie': { '.detail_pro_c_con': '很抱歉,该商品已售空' }, 'lingshi': { '#currentLocation': '无货' }, 'yesmywine': { '#delivery-tip': '无货' }, 'bookuu': { '.stock span': '无货' }, 'homevv': { '#stock+.hom': '缺货' }, 'lenovo': { '#idstockstatus': '暂无库存' }, 'secoo': { '#location-t+i': '无货' }, 'yummy77': { '#stockdesc': '无货' }, 'fruitday': { '.have': '无货' }, 'kaola': { '#js_dometxt': '无货' }, 'kjt': { '.black': '无货' }, 'jiumei': { '#kucuninfo .font14': '无货' }, 'womai': { '.nobuy_top_tit': '商品已售完,暂时无货', //商品已售完,暂时无货 '.unsellable_recommend_description': '商品已售完' //商品已售完 }, /* 'vjia':{}, 'okbuy':{}, 'yintai':{}, */ 'sfbest': { '#arrival_notice': '到货通知', '#stock font': '缺货', //缺货 '#cart-add-btn-sf': '到货|缺货' }, 'lefeng': { '.disexp span.stime': '无货' //无货 }, 'leyou': { '#stockStatus': '无货' }, 'jiuxian': { '#respNubs': '无货' } }, init: function init(siteName) { siteName = siteName || G.pageInfo.siteName; return this.getCheckInventory(siteName); }, //获取当前页面商品库存 //1是正常,0是无货,-2是下架 getOnlineInventory: function getOnlineInventory(siteName) { var inventoryText = { 'online': null, 'pattern': null }; var stringToUnicode = function stringToUnicode(str) { return str.replace(/[^\u0000-\u00FF]/g, function ($0) { return escape($0).replace(/(%u)(\w{4})/gi, '\\u$2'); }); }; try { if (typeof this.inventoryPatterns[siteName] != 'undefined') { var patterns = this.inventoryPatterns[siteName]; for (var selection in patterns) { try { if ($(selection).is(':visible')) { inventoryText['online'] = $(selection).html(); if (inventoryText['online'] !== null) { inventoryText['online'] = stringToUnicode(inventoryText['online']); inventoryText['pattern'] = stringToUnicode(patterns[selection]); return inventoryText; } } } catch (e) { /*eslint-disable */ if (G.debug) { console.log(e); } /*eslint-enable */ } } } } catch (e) { /*eslint-disable */ if (G.debug) { console.log(e); } /*eslint-enable */ } return inventoryText; }, //校验库存 getCheckInventory: function getCheckInventory(siteName) { var inventory = 1; var inventoryTextArray = this.getOnlineInventory(siteName); var onlineUnicodeText = inventoryTextArray['online'], patternUnicodeText = inventoryTextArray['pattern']; try { if (onlineUnicodeText !== null && onlineUnicodeText != '' && patternUnicodeText !== null) { if (patternUnicodeText.indexOf('|') >= 0) { var patternUnicodeTextArray = patternUnicodeText.split('|'); for (var i in patternUnicodeTextArray) { if (onlineUnicodeText.indexOf(patternUnicodeTextArray[i]) >= 0) { inventory = 0; } } } else if (onlineUnicodeText.indexOf(patternUnicodeText) >= 0) { inventory = 0; } } else { inventory = -2; } } catch (e) { /*eslint-disable */ if (G.debug) { console.log(e); } /*eslint-enable */ } return inventory; } }; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "a5656a19c5a241335dee": /***/ (function(module, exports) { module.exports = "<div class=\"shareExt gwdang-tab\">\n <span class=\"btn-tab-sp\">\n <em></em>\n <span class=\"tab-sp1 blkcolor1\">分享</span>\n </span>\n <div class=\"share-detail bjd-product-detail topdetail\">\n <span class=\"share-sp2 gwd-share-title\">{{ title }}</span>\n <div class=\"share-sp2\">\n {{ priceInfo }}\n </div>\n <span class=\"share-sp2\">\n 点击链接查看具体历史价格详情<a href=\"{{ link }}\" target=\"_blank\">{{ link }}</a>\n </span>\n <div style=\"text-align: center\">\n <span id=\"copy-btn\" class=\"share-sp3 share-btn\" style=\"margin-bottom: 20px\">复制去分享</span>\n </div>\n <textarea id=\"copy-input\" type=\"\" name=\"\">{{ title }}\n\n{{ priceInfoCopy }}\n\n点击链接查看具体历史价格详情{{ link }}\n </textarea>\n </div>\n <style type=\"text/css\">\n div.shareExt {\n display: inline-block;\n position: relative;\n /* border-left: none!important; */\n }\n .shareExt .btn-tab-sp em {\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 {\n display: block;\n }\n .share-detail {\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 {\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 {\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 {\n text-decoration: underline;\n color: #333333;\n }\n .share-sp2 a:hover {\n color: #48befe;\n }\n .share-sp3 {\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 {\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 {\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 {\n background-color: #2FCE98;\n }\n </style>\n</div>" /***/ }), /***/ "a663b3a34cc552f2c45d": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("CommonCouponBarMini", { attrs: { icon: "https://cdn.bijiago.com/images/extensions/activity/[email protected]", type: "qr", text: "当前商品可领" + _vm.name + "红包,预估立减" + _vm.value + "元", couponValue: _vm.value, mainColor: "#ff3b5c", qrParams: _vm.payload, takeBg: _vm.takeBg, qrTitle: "领红包" } }) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "a8d04aabebd76e8bb3f7": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var request = __webpack_require__("91f250ebeb8d5987491c"); var calWidth = __webpack_require__("54be372a53153922dc13"); // const replaceHref = require('common/replaceHref') var golbal2 = __webpack_require__("1c640a99db9f6f8a16c2"); var htmlObj = { 'taobao': __webpack_require__("cc7594b9ffd3b3e00faf"), 'tmall': __webpack_require__("afa666c4e2290bb1c92b") }; var tmData = {}; var renderBtnTop = function renderBtnTop(data) { var html = __webpack_require__("f850f08dfe2248a6ab94"); data.ss = 0; if (data.tmall.length !== 0 && data.tmall.product) { $('#tm_compare').append(template.compile(html)({ store_tle: '天猫', min_price: data.tmall.min_price })).css("display", "block"); tmData['tmall'] = data.tmall; data.ss++; data.tmm = true; renderTopDetail('tmall'); } if (data.taobao.length !== 0 && data.taobao.product) { $('#tb_compare').append(template.compile(html)({ store_tle: '淘宝', min_price: data.taobao.min_price })).css("display", "block"); tmData['taobao'] = data.taobao; data.ss++; data.tbb = true; renderTopDetail('taobao'); } __webpack_require__("1c640a99db9f6f8a16c2").autoFixWidth(); userData.set('tbData', data); if (G.site === 'suning') { $('#tb_compare, #tm_compare').on('click', 'a', function (e) { if ($(this).find('.coupon_span')) return; var url = $(this).attr('href'); if (url && url.indexOf('http') > -1) { window.open($(this).attr('href')); e.preventDefault(); } }); } }; var render = function render(data) { var permanent = userData.get('permanent'); if (permanent.style === 'top') { renderTop(data); } else { __webpack_require__("73e5d235bd431b446c03").renderBt(data); } }; var renderTopDetail = function renderTopDetail(id) { var data = tmData[id]; // if (!G.aliSite && G.from_device !== '360') // replaceHref.init(id, data.product, '&column=b2c') var len = data.product.length; var str = 'tb'; if (id === 'tmall') str = 'tm'; var widthObj = calWidth.init(); var sale_tle = "最近销量"; if (data.from_self === true) sale_tle = "总销量"; var html = htmlObj[id]; var pages = Math.ceil(len / widthObj.showListNum); $('#' + str + '_compare').append(template.compile(html)({ data: data.product, s_server: G.s_server, width: widthObj.turnpW, link: data.more_link, pages: pages, imgLoad: G.imgLoad, sale_tle: sale_tle, allProductW: widthObj.allProductW })); if (G.from_device !== '360') __webpack_require__("b8226e22112290600083").init(data.product, id, false, data.min_price); // $(`#gwdang-${id}-dp-detail`).show() }; var renderTop = function renderTop(data) { renderBtnTop(data); }; var getTmInfo = function getTmInfo(callback) { var code_server = '1'; var other_info = userData.get('other_info'); var msg = other_info.exact_arr; var code = other_info['code-server']; var coreword = encodeURIComponent(other_info.now.coreword); if (!code) { code = {}; code_server = '0'; } var price = G.dp.price * 100; var url = G.server + '/brwext/tbres?union=' + G.union + '&url=' + encodeURIComponent(msg.url) + '&site=' + msg.site + '&isbn=' + msg.isbn + '&keywords=' + encodeURIComponent(msg.keywords) + '&brand=' + encodeURIComponent(msg.brand) + '&type=' + encodeURIComponent(msg.type) + '&price=' + price + '&class_id=' + msg.class_id + '&name=' + encodeURIComponent(G.dp.name) + '&code_brand_id=' + code.brand_id + '&code_clean_title=' + encodeURIComponent(code.clean_title) + '&code_code=' + code.code + '&code_display_brand=' + encodeURIComponent(code.display_brand) + '&code_brand=' + encodeURIComponent(code.brand) + '&code_class_id=' + encodeURIComponent(code.class_id) + '&code_price=' + encodeURIComponent(code.price) + '&code_spec=' + encodeURIComponent(code.spec) + '&code-server=' + code_server + '&coreword=' + coreword + '&catid=' + G.dp.cat_id; request.get(url).done(function (data) { if (data) { if (G.site == 'taobao' || G.site == 'tmall') { getUniqPid(data, function (mm) { callback(mm); }); } else { getImgSearch(data, function (mm) { callback(mm); }); } } }); }; var getImgSearch = function getImgSearch(msg, callback) { var buildTaobaoUrl = __webpack_require__("cc45d932d8dbdb86f2f3"); msg = buildTaobaoUrl.buildCommon(msg); if (G.btype == 'luyou') { callback(msg); return; } var dataShare = __webpack_require__("cde79cb5670e8bdeb4fb"); var brandId = dataShare.get('dp_data') && dataShare.get('dp_data')['exact_arr']['brand_id']; if (G.site == '360buy' && brandId && (!msg.taobao.sort || !msg.tmall.sort)) { // 在京东有brand 有比价结果的情况下, 不走图片检索 callback(msg); return; } __webpack_require__("ff881c8b15091819a13e").init(function (data) { if (data) { if (msg.tmall.sort) msg.tmall = {}; if (data.tmall.length > 0) { msg.tmall.min_price = data.tmall[0].price; msg.tmall.max_price = data.tmall[data.tmall.length - 1].price; msg.tmall.store = data.tmall; msg.tmall.product = data.tmall; } if (msg.taobao.sort) msg.taobao = {}; if (data.taobao.length > 0) { msg.taobao.product = data.taobao; msg.taobao.store = data.taobao; msg.taobao.min_price = data.taobao[0].price; msg.taobao.max_price = data.taobao[data.taobao.length - 1].price; } if (!msg.tmall.more_link) msg.tmall.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union; if (!msg.taobao.more_link) msg.taobao.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union; callback(msg); } else { callback(msg); } }); }; var getUniqPid = function getUniqPid(msg, callback) { var buildTaobaoUrl = __webpack_require__("cc45d932d8dbdb86f2f3"); msg = buildTaobaoUrl.buildCommon(msg); __webpack_require__("75d41ad7d5a1bceb52d2").getTaobaouniqData(function (data) { if (data) { if (msg.tmall.sort) { msg.tmall = {}; } if (data.tmall.length > 0) { msg.tmall.min_price = data.tmall[0].price; msg.tmall.max_price = data.tmall[data.tmall.length - 1].price; msg.tmall.store = data.tmall; msg.tmall.product = data.tmall; } if (msg.taobao.sort) { msg.taobao = {}; } if (data.taobao.length > 0) { msg.taobao.product = data.taobao; msg.taobao.store = data.taobao; msg.taobao.min_price = data.taobao[0].price; msg.taobao.max_price = data.taobao[data.taobao.length - 1].price; } if (!msg.tmall.more_link) msg.tmall.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union; if (!msg.taobao.more_link) msg.taobao.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union; callback(msg); } else { callback(msg); } }); }; module.exports.init = function () { getTmInfo(render); }; module.exports.renderTopDetail2 = function (id) { var widthObj = calWidth.init(); golbal2.loadImg(0, widthObj.showListNum, $('#' + id + '-item-list li .small-img img')); $('#gwdang-' + id + '-dp-detail').show(); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "aa16a056510f1028879c": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function () { var host = document.location.host; if (host.indexOf('hao123') > -1 || host.indexOf('baidu') > -1) return true;else return false; }; /***/ }), /***/ "aa51cc982b2c1333cb43": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <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(); }); } /***/ }), /***/ "aab666384cabf081c4de": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) {var __WEBPACK_AMD_DEFINE_RESULT__;/* 新版界面的设置功能 author:CaoYuaYe([email protected]) time:2014-07-23 */ !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var $ = __webpack_require__("e081b2491b5c9b12b9da"); var deviceEncode = __webpack_require__("57981fc895e0110a4346"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var util = __webpack_require__("d54879e983a83d07f093"); // apple.com会改变字体 $('body').append('\n<style>\n #gwd_setting_content .gwd_setting_item a {\n font-family: "Microsoft Yahei"!important;\n }\n</style>\n '); return { hiddenTimer: null, insertnormalView: function insertnormalView() { if (G.aliSite) return; var permanent = userData.get('permanent'); var html = __webpack_require__("2434f337fd6a094fb5fe"); var pageurl = encodeURIComponent(document.location.href); var settingUrl = undefined; if (!permanent.setPage) { settingUrl = G.server + '/brwext/setting?from=' + deviceEncode(G.from_device) + '&btype=' + (G.btype ? G.btype : ''); } $('.gwd-topbar-logo').append(template.compile(html)({ settingUrl: settingUrl, fdbkUrl: G.c_server + '/brwext/suggest?refer=' + pageurl + '&from_device=' + G.from_device + '&btype=' + (G.btype ? G.btype : ''), helpUrl: G.c_server + '/app/extension?page=question', homeUrl: G.c_server + '/' })); }, insertSettingView: function insertSettingView(data) { this.insertnormalView(); this.bindEvent(); }, bindEvent: function bindEvent() { var $this = this; $("#gwd_setting_div").delegate(".gwd_setting_item", "mouseenter", function () { $(this).addClass('gwd_setting_item_hover'); }); $("#gwd_setting_div").delegate(".gwd_setting_item", "mouseleave", function () { $(this).removeClass('gwd_setting_item_hover'); }); $("#gwd_setting_div").delegate("a", "click", function () { $this.hiddenSettingDiv(); }); $("#" + G.logoName + ",.gwd_logo,.gwd-logo,.gwd-re-change-logo").bind("mouseenter", function () { if (!G.show_closeMainBar) { $('#gwd_closeMainbar').hide(); $('#gwd_setting_div').addClass('close_mainbar'); } $("#gwd_setting_div").show(); }).bind("mouseleave", function () { $this.hiddenSettingDiv(); }); $("#gwd_setting_div").bind("mouseenter", function () { clearTimeout($this.hiddenTimer); }).bind("mouseleave", function () { $this.hiddenSettingDiv(); }); $('.gwd_setting_item').on('click', function () { util.openTab(); }); }, hiddenSettingDiv: function hiddenSettingDiv() { this.hiddenTimer = setTimeout(function () { $("#gwd_setting_div").hide(); }, 300); } }; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "aac0839f8078e3c8248c": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var request = __webpack_require__("91f250ebeb8d5987491c"); var detect = __webpack_require__("60624e018be49fb2d959"); var priceParser = __webpack_require__("e29ce4c2a4af273fcade"); var nowpage = 0; var globalPage = undefined; var time = 0; var globalDom = undefined; module.exports.init = function (data, dom) { if (G.forbidCoupon) return; globalDom = dom; var tbData = userData.get('tbData'); time++; if (tbData.ss === time) { if (data.tmall.length === 0 && data.taobao.length === 0) { getHymInfo(render2); } else { var siteName = G.site; var siteId = detect.getSiteId(siteName); priceParser.init(siteId, function (price) { if (price && price > 0) { G.dp.oldPrice = price; G.dp.price = price; } render(data, tbData); }); } } }; var getHymInfo = function getHymInfo(callback) { if (true) return; var info = userData.get('other_info'); var url = G.server + '/extension/getCouponTao?keyword=' + encodeURIComponent(info.now.coreword) + '&class_id=' + info['code-server'].class_id + '&brand=' + encodeURIComponent(info.exact_arr.sbrand) + '&sige_id=' + info.now.site_id; request.get(url).done(function (data) { if (data && data.data && data.data.length > 0) { callback(data.data); } }); }; var render2 = function render2(data) { for (var i = 0; i < data.length; i++) { data[i].click_url = data[i].url; data[i].promoPri = data[i].currentPrice; data[i].price = data[i].originPrice; data[i].coupon_money = data[i].couponInfo; } renderBar(data); }; var render = function render(data, tbData) { var comarr = []; if (tbData.tmm && data.tmall.length > 0) { for (var i = 0; i < tbData.tmall.product.length; i++) { var itemi = tbData.tmall.product[i]; for (var j = 0; j < data.tmall.length; j++) { var itemj = data.tmall[j]; if (itemi.num_iid === itemj.reqid) { itemi.click_url = itemj.click_url; itemi.click_url2 = itemj.click_url2; itemi.coupon_money = itemj.coupon.coupon_money; itemi.sicon = "https://cdn.gwdang.com/images/favicon/83.ico"; itemi.promoPri = (Number(itemi.price) - itemj.coupon.coupon_money).toFixed(2); if (Number(itemi.promoPri) > G.dp.price) continue; comarr.push(itemi); } } } } if (tbData.tbb && data.taobao.length > 0) { for (var i = 0; i < tbData.taobao.product.length; i++) { var itemi = tbData.taobao.product[i]; for (var j = 0; j < data.taobao.length; j++) { var itemj = data.taobao[j]; if (itemi.num_iid === itemj.reqid) { itemi.click_url = itemj.click_url; itemi.click_url2 = itemj.click_url2; itemi.coupon_money = itemj.coupon.coupon_money; itemi.sicon = "https://cdn.gwdang.com/images/favicon/123.ico"; itemi.promoPri = (Number(itemi.price) - itemj.coupon.coupon_money).toFixed(2); if (Number(itemi.promoPri) > G.dp.price) continue; comarr.push(itemi); } } } } renderBar(comarr); }; var lunbo = function lunbo() { try { var dom = $('#miniCouponCom ul'); var _top = Number(dom.css('top').replace('px', '')); _top = _top - 62; nowpage++; if (nowpage === globalPage) { dom.css('top', '0px'); nowpage = 0; return; } dom.animate({ 'top': _top + 'px' }, 600); } catch (e) {} }; var renderBar = function renderBar(data) { data = data.sort(function (v1, v2) { if (Number(v1.promoPri) > Number(v2.promoPri)) return 1;else if (Number(v1.promoPri) === Number(v2.promoPri)) return 0;else return -1; }); globalPage = data.length; if (globalPage === 0) return; var html = __webpack_require__("ca8c3a1f86734e6b67fb"); if (location.host.indexOf('detail.ju.taobao') > -1 && G.ss_name === 'priceDog') { $('.pricedog-bar').before(template.compile(html)({ data: data, fmdv: G.from_device, lang: G.lang })); $('.botbar').css('margin-top', '150px'); } else { $(globalDom).append(template.compile(html)({ data: data, fmdv: G.from_device, lang: G.lang })); } setInterval(lunbo, 5000); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "aac1e6668367bfac2185": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_script_lang_js___ = __webpack_require__("b5843e97b143ca65ddbe"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "abb2c55465e8bd1d8753": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var getPromoInfo = __webpack_require__("99967238159b55ea4e52"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var request = __webpack_require__("91f250ebeb8d5987491c"); var now_dp_id = undefined; var posPattern = { '360buy': ['#notice-downp', '.J-notify-sale', '.summary-price .dd .p-price+em', '#summary-wrap .dd .p-price', '.summary-price .dd>:last-child'], 'suning': ['#mainPrice dd #PriceNotice1', '#mainPrice dd .btn-price-notice', '#mainPrice dd .btn-price-business', '#mainPrice dd .mainprice'], 'tmall': [], 'dangdang': [] }; var getJdPromotion = function getJdPromotion(info, callback) { if (G.site !== '360buy') return; var dp = G.dp; var skuId = dp.itemId.replace('-3', ''); if (!dp.cat_id) return; var catarr = dp.cat_id.split('-'); catarr = catarr.slice(0, 3); var cat = encodeURIComponent(catarr.join(',')); var price = dp.price.toFixed(2); var area = $('.ui-area-text').attr('data-id').replace(/-/g, '_') + '_0'; var timeStr = new Date().getTime(); var url = 'https://cd.jd.com/promotion/v2?skuId=' + skuId + '&area=' + area + '&shopId=' + dp.shopId + '&venderId=' + dp.venderId + '&cat=' + cat + '&isCanUseDQ=isCanUseDQ-1&isCanUseJQ=isCanUseJQ-1&platform=0&orgType=2&jdPrice=' + price + '&appid=1&_=' + timeStr; request.get(url).done(function (data) { callback(info, data); }); }; var getProMidPage = function getProMidPage(id, callback) { var url = 'https://browser.gwdang.com/extension?ac=promoUrl&promo_id=' + id; request.get(url).done(function (data) { callback(data); }); }; var renderLink = function renderLink(info, data) { var info2 = info[1]; var couponId = undefined, promoId = undefined; var coupon = data.skuCoupon; var promo = data.prom.pickOneTag; var midPageId = undefined; if (!info2) { return; } for (var i = 0; i < info2.length; i++) { if (info2[i].indexOf('券:') > -1) { var nums = info2[i].match(/\d+/g); for (var j = 0; j < coupon.length; j++) { if (Number(nums[0]) === coupon[j].quota && Number(nums[1]) === coupon[j].discount) { couponId = coupon[j].batchId; } } } else if (info2[i].indexOf('促:') > -1) { var promstr = info2[i].replace('促:', ''); promstr = promstr.trim(); for (var j = 0; j < promo.length; j++) { if (promo[j].content.indexOf(promstr) > -1) { promoId = promo[j].pid; break; } } } } if (promoId && promoId.indexOf('_') > -1) { promoId = promoId.split('_')[0]; } if (couponId && promoId) { midPageId = promoId + ',' + couponId; } else if (couponId || promoId) { midPageId = couponId || promoId; } getProMidPage(midPageId, function (urlInfo) { if (urlInfo && urlInfo.link) { $('.dsj-promo-link').addClass('islink').attr('href', urlInfo.link).attr('target', '_blank'); cnzz.log('track:dsprice'); log('track:dsprice'); $('.dsj-promo-link').on('click', function () { cnzz.log('click:dsprice'); log('click:dsprice'); }); } }); }; var renderServerOnHandPriceResult = function renderServerOnHandPriceResult(resp) { var html = __webpack_require__("1b6e543795a8607b10bc"); var dom = $('#coupon_box'); if (G.from_device.indexOf('bijiago') > -1) { dom = $('#coupon_box_bjg'); html = __webpack_require__("19d783aa5f74a9e4ac9c"); } else { $('.gwd-minibar-bg > .dsj-content').remove(); } if (dom.length === 0) { if (G.from_device.indexOf('bijiago') > -1) { dom = $('.promo-box'); html = __webpack_require__("19d783aa5f74a9e4ac9c"); } else { dom = $('#gwd_minibar'); } } if (G.from_device.indexOf('bijiago') > -1) { $('#bjg-dsj-placeholder').replaceWith(template.compile(html)({ tle: '', desc: resp.promo_list.map(function (item) { if (item.id) { var trueUrl = item.id.indexOf('http') === 0 ? item.id : 'https:' + item.id; trueUrl = encodeURIComponent(trueUrl); var url = item.url_format.replace('$URL', trueUrl); return '<a href="' + url.replace('ext_promo_calc', 'promo_calc') + '" target="_blank" style="text-decoration: underline">' + item.text + '</a>'; } return item.text; }).join(';'), pri: parseFloat(resp.current_price).toFixed(2), lang: G.lang })); if ($('.promo-box').css('display') !== 'none') { setTimeout(function () { $('.promo-box').prev().css('border-bottom', '1px solid #e6e9eb'); $('.promo-box').prev().css('width', '100%'); }, 0); } } else { var promo2 = { tle: '', desc: resp.promo_list.map(function (item) { if (item.id) { var trueUrl = item.id.indexOf('http') === 0 ? item.id : 'https:' + item.id; trueUrl = encodeURIComponent(trueUrl); var url = item.url_format.replace('$URL', trueUrl); // // if (item.tag === 'promo') { // globalPromoLink.push({ // text: item.text, // url: url.replace('ext_promo_calc', 'promo_calc') // }) // } // if (item.tag === 'coupon') { // globalCouponLink.push({ // text: item.text, // url: url.replace('ext_promo_calc', 'promo_calc') // }) // } return '<a href="' + url.replace('ext_promo_calc', 'promo_calc') + '" target="_blank" style="text-decoration: underline">' + item.text + '</a>'; } return item.text; }).join(';'), pri: parseFloat(resp.current_price).toFixed(2) }; $('#gwd-dsj-placeholder').replaceWith(template.compile(html)(promo2)); // if (globalPromoLink) { // $('#summary-promotion .p-promotions #prom .J-prom .prom-item:eq(0)').append(`<a href=${globalPromoLink.replace('ext_promo_calc', 'promo_calc_all')} target="_blank" style="color: #ee2f36; margin-left: 5px; font-size: 12px; white-space: nowrap">查看此活动全部商品<img src="https://cdn.gwdang.com/images/extensions/redArrow.svg" style="width: 10px; height: 10px;"></a>`) // } // if (globalCouponLink) { // $('#summary-quan .lh').append(`<a href=${globalCouponLink.replace('ext_promo_calc', 'promo_calc_all')} target="_blank" style="color: #ee2f36; margin-left: 5px; font-size: 12px; position: relative; top: 5px">查看此活动全部商品<img src="https://cdn.gwdang.com/images/extensions/redArrow.svg" style="width: 10px; height: 10px;"></a>`) // $('#summary-quan .lh').css('line-height', 0) // } // if (globalPromoLink.length) { // console.log(globalPromoLink) // const oriPromoList = $('#summary-promotion .p-promotions #prom .J-prom .prom-item') // console.log(oriPromoList) // debugger // } } __webpack_require__("62316f417955bec94cf4").init(); if (G.from_device.includes('bijiago')) { if (!window.gwd_G) { __webpack_require__("cceeed893387dc9fce45").init(); } } else { __webpack_require__("cceeed893387dc9fce45").init(); } var img = new Image(); var promotle = encodeURIComponent(resp.promo_text); img.src = G.tj_server + '/visit/?action=dspricelog&pagePri=' + G.dp.price + '&dsprice=' + resp.current_price + '&dp_id=' + now_dp_id + '&promo=' + promotle; cnzz.log('track:dspriceAll'); log('track:dspriceAll'); // 获取促销活动对应的网站页面 getJdPromotion(resp, renderLink); calwidth(); }; var calwidth = function calwidth() { // let logoW = $('.dsj-content>em').outerWidth() + 22; // let priW = $('.dsj-pri-info').outerWidth() + 10; // let remindW = $('.dsj-remind-icon').outerWidth() + 12; // let freeW = 460 - (logoW + priW + remindW) - 10; // $('.dsj-promo-link').width(freeW); }; module.exports.init = function (dp_id) { now_dp_id = dp_id; if (!posPattern[G.site]) return; getPromoInfo.getPrice(renderServerOnHandPriceResult); // getPromoInfo.getPrice(render) }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "abd6acde42fa294e1e62": /***/ (function(module, exports) { module.exports = "<div class=\"gwd_addCart bjd_btn_box\">\n <a href=\"{{c_server}}\" target=\"_blank\" title=\"购物党\"></a>\n <span class=\"bjd_addcart\">一键海淘</span>\n <span class=\"bjd_close\"></span>\n</div>\n<style type=\"text/css\">\n .gwd_addCart {\n width: 180px;\n height: 36px;\n background-color: #fff;\n color: #494b4d;\n position: absolute;\n left: -216px;\n top: 36px;\n text-align: center;\n line-height: 35px;\n border-bottom-left-radius: 28px;\n border-top-left-radius: 28px;\n font-size: 14px;\n border: 1px solid #47befe;\n font-family: 'Microsoft Yahei';\n }\n .gwd_addCart a, .gwd_addCart span {\n float: left;\n margin-left: 19px;\n }\n .gwd_addCart .bjd_addcart {\n cursor: text;\n }\n .gwd_addCart a {\n background: url('{{s_server}}/images/extensions/haitao_siteicon.png') 0px 6px no-repeat;\n background-size: 24px 22px;\n height: 35px;\n width: 26px;\n }\n .bjd_close {\n background: url('{{s_server}}/images/extensions/haitao_closeicon.png') 0px 0px no-repeat;\n width: 20px;\n height: 20px;\n margin-top: 12px;\n background-size: 12px 12px;\n }\n .gwd_addCart:before{\n border: 18px solid transparent;\n border-left-color: #47befe;\n content: \"\";\n position: absolute;\n left: 178px;\n width: 0px;\n height: 0px;\n top: -1px;\n }\n .gwd_addCart:after{\n border: 17px solid transparent;\n border-left-color: #fff;\n content: \"\";\n position: absolute;\n left: 178px;\n width: 0px;\n height: 0px;\n top: 0px;\n }\n #buybox_feature_div #addToCart .a-button-stack span.a-button-inner {\n overflow: visible;\n }\n #rbbContainer div.rbbSection {\n overflow: visible;\n }\n</style>" /***/ }), /***/ "ac35c8e60ed144cec594": /***/ (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__("1fe950940db4316946fc"); 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!./GiftMoney.vue?vue&type=style&index=1&id=5b302872&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!./GiftMoney.vue?vue&type=style&index=1&id=5b302872&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(); }); } /***/ }), /***/ "aca5814478aabde3586e": /***/ (function(module, exports) { module.exports = "<div class=\"gwd_addcredit bjd_btn_box\" id=\"addcredit_btn\">\n <a href=\"{{c_server}}\" target=\"_blank\" title=\"购物党\"></a>\n <span class=\"bjd_addcart\">添加信用卡</span>\n <span class=\"bjd_close\"></span>\n <div class=\"credit_detail\"></div>\n</div>\n<style type=\"text/css\">\n .gwd_addcredit {\n width: 180px;\n height: 36px;\n background-color: #fff;\n color: #494b4d;\n position: absolute;\n line-height: 35px;\n border-bottom-right-radius: 28px;\n border-top-right-radius: 28px;\n font-size: 14px;\n border: 1px solid #47befe;\n font-family: 'Microsoft Yahei';\n top: 47px;\n z-index: 99;\n left: 122px;\n }\n .amazon-jp .gwd_addcredit {\n top: 54px;\n left: 130px;\n }\n .amazon-de .gwd_addcredit {\n top: 53px;\n left: 180px;\n }\n .credit_detail {\n position: absolute;\n display: none;\n z-index: 999;\n top: -53px;\n left: 196px;\n background: url('{{s_server}}/images/extensions/haitao/amazon_remind_credit_info.png') 0px 0px no-repeat;\n width: 342px;\n height: 140px;\n }\n .amazon-de .credit_detail {\n background: url('{{s_server}}/images/extensions/haitao/amazon_remind_credit_info_de.png') 0px 0px no-repeat;\n }\n .amazon-jp .credit_detail {\n background: url('{{s_server}}/images/extensions/haitao/amazon_remind_credit_info_jp.png') 0px 0px no-repeat;\n }\n #addcredit_btn:hover .credit_detail {\n display: block;\n }\n .gwd_addcredit a, .gwd_addcredit span {\n float: left;\n margin-left: 19px;\n }\n .gwd_addcredit .bjd_addcart {\n cursor: text;\n }\n .gwd_addcredit a {\n background: url('{{s_server}}/images/extensions/haitao_siteicon.png') 0px 6px no-repeat;\n background-size: 24px 22px;\n height: 35px;\n width: 26px;\n margin-left: 7px;\n }\n .bjd_close {\n background: url('{{s_server}}/images/extensions/haitao_closeicon.png') 0px 0px no-repeat;\n width: 20px;\n height: 20px;\n margin-top: 12px;\n background-size: 12px 12px;\n }\n .gwd_addcredit:before{\n border: 29px solid transparent;\n border-right-color: #47befe;\n content: \"\";\n border-bottom-width: 18px;\n border-top-width: 18px;\n position: absolute;\n left: -58px;\n width: 0px;\n height: 0px;\n top: -1px;\n }\n .gwd_addcredit:after {\n border: 27px solid transparent;\n border-right-color: #fff;\n content: \"\";\n border-bottom-width: 17px;\n border-top-width: 17px;\n border-left-width: 30px;\n position: absolute;\n left: -57px;\n width: 0px;\n height: 0px;\n top: 0px;\n }\n #identity-add-new-address #enterAddressFullNameContainer{\n position: relative;\n }\n</style>" /***/ }), /***/ "aca67d8a24b79ee1f7e2": /***/ (function(module, exports) { module.exports = "<div id=\"promo_quan_detail\" class=\"promo_quan_box\">\n <div class=\"detail_left\">\n {{ if promos.length }}\n <div class=\"promo_div\">\n <div class=\"d_head\">\n <span class=\"blkcolor1\">{{promo_site}}促销活动</span>\n {{if !new_extension}}\n <a href=\"{{promo_url}}\" target=\"_blank\" class=\"blkcolor4\">查看全部<em class=\"see_all_icon\">></em></a>\n {{/if}}\n </div>\n <div class=\"promo_body\">\n {{each promos}}\n <a href=\"{{$value.url}}\" class=\"promo_item promo-item-{{$index}}\" target=\"_blank\">\n <em class=\"circle\"></em>\n {{#$value.title}}\n </a>\n {{/each}}\n </div>\n </div>\n {{/if}}\n {{if !new_extension}}\n <div class=\"quan_div\">\n <div class=\"d_head\">\n <span class=\"blkcolor1\">{{quan_site}}优惠券</span>\n {{if !new_extension}}\n <a href=\"{{quan_url}}\" target=\"_blank\" class=\"blkcolor4\">查看全部<em class=\"see_all_icon\">></em></a>\n {{/if}}\n </div>\n <div class=\"quan_body\">\n {{each quans}}\n <a href=\"{{$value.url}}\" class=\"quan_item quan-item-{{$index}}\" target=\"_blank\">\n <em class=\"circle\"></em>\n {{#$value.title}}\n </a>\n {{/each}}\n </div>\n </div>\n {{/if }}\n </div>\n <div class=\"detail_right\"></div>\n <style type=\"text/css\">\n #promo_quan_detail {\n position: absolute;\n top: 36px;\n left: 0px;\n width: auto;\n display: none;\n background-color: #fff;\n text-align: left;\n border: 1px solid #EAEAEA;\n box-shadow: 0 5px 10px 0 rgba(22,24,26,0.15);\n }\n {{if style == \"bottom\"}}\n #promo_quan_detail {\n top: inherit;\n bottom: 60px;\n }\n {{/if}}\n #promo_quan_detail .detail_left {\n width: 621px;\n float: left;\n border-right: 1px solid #e6e9eb;\n padding: 0px;\n height: auto;\n }\n .promo_quan_box .promo_div, .promo_quan_box .quan_div {\n height: 135px;\n }\n .promo_quan_box .d_head {\n height: 34px;\n line-height: 26px;\n float: none;\n }\n #promo_quan_detail .detail_left .d_head a {\n font-size: 12px;\n margin-top: 12px;\n height: 12px;\n line-height: 12px;\n }\n #promo_quan_detail .detail_left .d_head a:hover {\n color: #5EBEFF;\n }\n .promo_quan_box .see_all_icon {\n height: 13px;\n width: 12px;\n float: right;\n font-size: 13px;\n line-height: 12px;\n }\n .promo_quan_box .d_head span{\n font-size: 14px;\n font-weight: bold;\n margin-left: 14px;\n float: left;\n line-height: 14px;\n margin-top: 14px;\n }\n .promo_quan_box .d_head a {\n float: right;\n width: 64px;\n height: 26px;\n margin-right: 14px;\n }\n .promo_quan_box .promo_body {\n overflow: auto;\n width: 100%;\n height: 96px;\n }\n #promo_quan_detail .promo_body .promo_item, #promo_quan_detail .quan_item {\n float: left;\n height: 36px;\n width: 274px;\n border-radius: 10px;\n background-color: #F0F5F7;\n margin-left: 14px;\n line-height: 36px;\n margin-top: 7px;\n font-size: 12px;\n text-align: left;\n overflow: hidden;\n color: #666;\n padding-right: 10px;\n text-decoration: none;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n #promo_quan_detail .promo_body .promo_item.promo-item-1, #promo_quan_detail .quan_item.quan-item-1,#promo_quan_detail .promo_body .promo_item.promo-item-3, #promo_quan_detail .quan_item.quan-item-3 {\n margin-left: 24px;\n }\n #promo_quan_detail .promo_body .promo_item:hover, #promo_quan_detail .quan_item:hover {\n background-color: #f07860;\n color: #fff!important;\n }\n #promo_quan_detail.promo_quan_box .promo_item em , #promo_quan_detail.promo_quan_box .quan_item em{\n color: #f07860;\n font-weight: bold;\n margin: 0 2px;\n font-style: normal;\n font-family: Helvetica;\n }\n #promo_quan_detail .promo_body .promo_item:hover em , #promo_quan_detail .quan_item:hover em{\n color: #fff!important;\n }\n #promo_quan_detail .promo_body .promo_item:hover .circle , #promo_quan_detail .quan_item:hover .circle{\n background-color: #fff!important;\n }\n #promo_quan_detail.promo_quan_box .promo_body .circle, #promo_quan_detail.promo_quan_box .quan_item .circle{\n float: left;\n height: 8px;\n width: 8px;\n background-color: #f07860;\n border-radius: 8px;\n margin-top: 14px;\n margin-left: 12px;\n margin-right: 8px;\n }\n .promo_quan_box .detail_right {\n width: 206px;\n float: left;\n display: none;\n }\n .quan_body {\n height: 80px;\n width: 100%;\n }\n .quan_body:after {\n content: \"\";\n display: block;\n clear: both;\n }\n {{if new_extension}}\n #promo_quan_detail div.detail_left {\n width: 322px;\n }\n .promo_quan_box .promo_div, .promo_quan_box .quan_div {\n height: 250px;\n border: none;\n }\n .promo_quan_box .promo_body {\n height: 220px;\n }\n {{/if}}\n </style>\n</div>" /***/ }), /***/ "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, $) { module.exports.init = function (css) { var imgurl = undefined; try { if (G.from_device === 'firefox' || G.localHost && G.from_device !== 'default') { css = G.localHost + 'css/' + css; imgurl = G.localHost + 'css/images.css'; } else if (chrome && chrome.extension && (G.from_device === 'chrome' || G.from_device === '2345')) { css = 'css/' + css; css = chrome.extension.getURL(css); imgurl = chrome.extension.getURL('css/images.css'); } else { css = G.s_server + '/css/brwext/' + css; imgurl = G.s_server + '/css/brwext/images.css'; } } catch (e) { css = G.s_server + '/css/brwext/' + css; imgurl = G.s_server + '/css/brwext/images.css'; } $('head').append('<link type="text/css" href="' + css + '" rel="stylesheet" />'); $('head').append('<link type="text/css" href="' + imgurl + '?v=' + G.version + '" rel="stylesheet" />'); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "ae80362cd6a2d17c50a8": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) {var __WEBPACK_AMD_DEFINE_RESULT__;/* * 监控模块,负责监控库存和价格,上报给服务器,需要依赖 库存监控模块 和价格监控模块 * @version:0.0.1 * @author:caoyuanye * @since:2014-07-30 */ !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var request = __webpack_require__("91f250ebeb8d5987491c"); var priceParser = __webpack_require__("e29ce4c2a4af273fcade"); var detect = __webpack_require__("60624e018be49fb2d959"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var priceCheck = __webpack_require__("8b533351445f44b98685"), inventoryCheck = __webpack_require__("a53850c80a1cfefa4efa"); return { timeOut: 5, //监控的最长时间,秒计算 timer: null, //查询库存的计时器 sendTimer: null, //发送计时器,用来确保获取dp_id inventory: null, //监控到的库存 price: null, //监控到的价格 specialSendFlag: false, //如果是天猫淘宝,就不抓取库存直接运行 hasRun: false, init: function init() { if (this.hasRun) { return; } this.hasRun = true; var $this = this; $this._setPrice(function () { $this._setInventory(); $this._trySendMonitorData(); }); }, _trySendMonitorData: function _trySendMonitorData() { var $this = this; var trySendTime = 0; $this.sendTimer = setInterval(function () { ++trySendTime; if (trySendTime > $this.timeOut || G.save_dp_query != null) { var other_info = userData.get('other_info'); var dp_id = other_info && other_info.now && other_info.now.dp_id; $this._sendMonitorData(dp_id); clearInterval($this.sendTimer); } }, 1000); }, //发送监控到的库存和价格趋势,如果没有抓取到,就把库存默认设定成-2,价格默认设定成0 _sendMonitorData: function _sendMonitorData(dp_id) { var $this = this; var spPage = __webpack_require__("d0be176400e0cbc97f82").specialFilter(); if (spPage) return; if ($this.inventory == null) { $this.inventory = "-2"; } if ($this.price == null) { $this.price = "0"; } request.get(G.server + "/brwext/monitor?" + 'site=' + G.site + '&subsite_id=' + G.subsite_id + '&dp_id=' + dp_id + '&province_id=' + G.province_id + '&url=' + encodeURIComponent(G.dp.url) + '&price=' + $this.price + "&stock=" + $this.inventory + '&rawurl=' + encodeURIComponent(window.location.href)); }, _setPrice: function _setPrice(callback) { var that = this; var siteName = G.site; var siteId = detect.getSiteId(siteName); if (!siteId) siteId = 9999; priceParser.init(siteId, function (price) { if (price && price > 0) { that.price = price; G.dp.oldPrice = price; } else { that.price = G.dp.price; } if (!that.price) that.price = priceCheck.getOnlinePrice(siteName); if (siteName == 'taobao' && that.price != '0') { that.specialSendFlag = true; } if (siteName == '360buy') { // 京东的定金不发 if ($(".itemInfo-wrap:contains('定 金')").length) { return; } } if (callback) { callback(); } }); }, _setInventory: function _setInventory() { this.inventory = inventoryCheck.init(G.site); } }; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "af5bd166496de2c5ac06": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniPromoHistory_vue_vue_type_template_id_54b7e36a_scoped_true___ = __webpack_require__("46f805cc74f8e0720fd0"); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniPromoHistory_vue_vue_type_template_id_54b7e36a_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniPromoHistory_vue_vue_type_template_id_54b7e36a_scoped_true___["b"]; }); /***/ }), /***/ "afa666c4e2290bb1c92b": /***/ (function(module, exports) { module.exports = "<div class=\"panel gwd_compare top-compare-detail top-bar-detail\" id=\"gwdang-tmall-dp-detail\">\n <div class=\"panel-wrap\">\n <div class=\"b2c-pages blkcolor4\">\n 第 \n <span class=\"current-page\" id=\"tmall-current-page\">1</span>\n 页,共 \n <span class=\"page-num blkcolor4\" id=\"tmall-page-num\">{{pages}}</span>\n 页\n </div>\n <div class=\"left-page turn-page\" style=\"left:10px;\">\n <a id=\"tmall-prev-page\" target=\"_self\" title=\"上一页\" class=\"gwd_bg\" href=\"javascript:\"></a>\n </div>\n <a href=\"{{link}}\" target=\"_blank\" class=\"tb-morelink blkcolor4\">查看全部结果<em class=\"see_all_icon\">></em></a>\n <div class=\"all-products\" style=\"width:{{allProductW}}px\">\n <ul id=\"tmall-item-list\">\n {{each data}}\n <li id=\"tmall-prod-item-{{$index}}\" data-id=\"{{$value.num_iid}}\">\n <a id=\"img-{{$value.num_iid}}\" title=\"{{$value.title}}\" target=\"_blank\" class=\"small-img\" href=\"{{$value.url}}\">\n <img src=\"{{imgLoad}}\" data-original=\"{{$value.pic_url}}\" id=\"dp-image-small-{{$value.num_iid}}\" class=\"gwdang-lazy\">\n </a>\n <a target=\"_blank\" class=\"b2c-other-info\" href=\"{{$value.url}}\">\n <span class=\"gwd-price prifontf\">¥{{$value.price}}</span>\n <span class=\"b2c-store blkcolor1\">{{$value.nick}}</span>\n <span class=\"b2c-fees blkcolor4\">最近销量{{$value.volume}}件</span>\n <span class=\"b2c-tle blkcolor1\">{{$value.title}}</span>\n </a>\n </li>\n {{/each}}\n </ul>\n </div>\n <div class=\"right-page turn-page\">\n <a href=\"javascript:\" id=\"tmall-next-page\" class=\"gwd_bg\" title=\"下一页\"></a>\n </div>\n </div>\n</div>\n <style type=\"text/css\">\n #gwdang-tmall-dp-detail {\n display: none;\n }\n #gwdang-tmall-dp-detail .turn-page {\n width: {{width}}px;\n }\n </style>" /***/ }), /***/ "afcfbe92108085df7c1c": /***/ (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__("4e89061d3756e521e57c"); 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("7a9e2e36", 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!./AppDownload.vue?vue&type=style&index=0&id=4c125ee6&lang=less&scoped=true&", function() { var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./AppDownload.vue?vue&type=style&index=0&id=4c125ee6&lang=less&scoped=true&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "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 /***/ }), /***/ "b0295bcaad015de0c785": /***/ (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_GiftMoneyTop_vue_vue_type_style_index_0_id_770fdd33_scoped_true_lang_less___ = __webpack_require__("bec69fc5a048e8a91d39"); /* 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_GiftMoneyTop_vue_vue_type_style_index_0_id_770fdd33_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_GiftMoneyTop_vue_vue_type_style_index_0_id_770fdd33_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_GiftMoneyTop_vue_vue_type_style_index_0_id_770fdd33_scoped_true_lang_less____default.a); /***/ }), /***/ "b110ddf767e87a112ae3": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-member-qr[data-v-498face2] {\n width: 148px;\n height: 156px;\n background: #FFF7F7;\n border: 1px solid #FF3D5D;\n}\n.gwd-member-qr span[data-v-498face2] {\n display: inline-block;\n}\n.gwd-member-qr img[data-v-498face2] {\n margin-top: 7px;\n width: 120px;\n height: 120px;\n}\n.gwd-member-qr .gwd-bigger[data-v-498face2] {\n color: #FF3D5D;\n font-size: 13px;\n}\n.gwd-member-qr .gwd-font11[data-v-498face2] {\n font-size: 12px;\n transform: scale(0.8333);\n transform-origin: bottom center;\n}\n.gwd-member-qr .gwd-bottom-desc[data-v-498face2] {\n line-height: 12px;\n font-size: 12px;\n transform: scale(0.833);\n transform-origin: top center;\n color: #999999;\n}\n", ""]); // exports /***/ }), /***/ "b12786f17e483addefd7": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_script_lang_js___ = __webpack_require__("426d7c3d6bd989255c92"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "b15828ee7e842b4ea2fb": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function (isbn) { /*isbn 十位转 13位 odd jishu even 偶数*/ var odd = 0, even = 0, newNum; isbn = isbn.toString(); if (isbn.length > 10) return isbn; var str = isbn.slice(0, 9); str = '978' + str; for (var i = 0; i < str.length; i++) { /*因为从零开始的 所以奇偶交换*/ if (i % 2 === 0) { odd += Number(str[i]); } else { even += Number(str[i]); } newNum = 10 - (odd + even * 3) % 10; } str += newNum.toString(); return str; }; /***/ }), /***/ "b1a1dff154ace0dec0e9": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjg-qr-error[data-v-29b33b2e] {\n width: 118px;\n height: 118px;\n background: white;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.bjg-qr-error img[data-v-29b33b2e] {\n margin-top: 22px;\n width: 32px;\n height: 32px;\n}\n.bjg-qr-error .grayText[data-v-29b33b2e] {\n color: #999999;\n display: inline-block;\n font-size: 20px;\n width: 125px;\n text-align: center;\n line-height: 32px;\n transform: scale(0.5);\n transform-origin: top center;\n}\n.bjg-qr-error .grayText .red[data-v-29b33b2e] {\n color: #ff2d53;\n text-decoration: underline;\n cursor: pointer;\n}\n", ""]); // exports /***/ }), /***/ "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__("f850f08dfe2248a6ab94"); $('#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__("c9ef51cd42b7d31daf67"); var dom = template.compile(html)({ data: { product: data, imgLoad: G.imgLoad }, pages: 1 }); $('#amazon_compare').append(dom); golbal2.loadImg(0, data.length, $('#amazon-item-list li .small-img img')); log('track:amazon_global:track'); }; var times = 0; var renderInner = function renderInner(data) { var product = data[0]; if (!product) return; var html = __webpack_require__("ee2e2e5772c8039497ac"); var dom = $('#gwd_ht_main .ht_head'); if (dom.length === 0 && times < 15) { times++; setTimeout(function () { renderInner(data); }, 800); return; } var view = template.compile(html)({ data: product }); dom.append(view); $('#amazon_global_box').append(view).show(); log('track:amazon_global_inner:track'); $('#amazon_global').on('click', function () { log('track:amazon_global_inner:click'); }); renderInnerDetail(data); }; var renderInnerDetail = function renderInnerDetail(data) { var html = __webpack_require__("d3d380331153e0305d39"); var dom = template.compile(html)({ data: data[0] }); // $('#gwd_ht_main .ht_content').append(dom); $('#amazon_global_box').append(dom); $('#amazon_global').on('mouseenter', function () { var dom = $('#globalInnerDetail'); if (!dom.is(':visible')) { $('.content_default').hide(); dom.show(); } }); $('#gwd_minibar').addClass('hasglobal'); $('#globalInnerDetail .content_default_left a').on('click', function () { log('track:amazon_global_inner_detail:click'); }); }; module.exports.renderTopDetail = renderTopDetail; module.exports.init = function (dp_id) { if (location.host.indexOf('amazon') === -1) return; // 暂时屏蔽中国亚马逊 以为只展示中国亚马逊的商品 if (location.host.indexOf('.cn') > -1) return; reqInfo(dp_id, render); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "b4e3fee31f1bbca1519d": /***/ (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__("0a495424a371aad0e27a"); 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("48f5e23e", 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!./CommonLogin.vue?vue&type=style&index=3&id=5efee9c0&scoped=true&lang=less&data-class-type=gwd-mini&", 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!./CommonLogin.vue?vue&type=style&index=3&id=5efee9c0&scoped=true&lang=less&data-class-type=gwd-mini&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "b5078ed36a39849f3e1e": /***/ (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_Special_vue_vue_type_template_id_07414d06_scoped_true___ = __webpack_require__("58e7c9140d2fc8e2bcbf"); /* 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_Special_vue_vue_type_template_id_07414d06_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_Special_vue_vue_type_template_id_07414d06_scoped_true___["b"]; }); /***/ }), /***/ "b507ce92177bcb778041": /***/ (function(module, exports) { module.exports = "<div class=\"gwd-qrcode-container-top\">\n <div class=\"gwd-qrcode-jd-top\">\n <div style=\"width: 130px; height: 130px; background: white; margin-top: 10px;\">\n <img src=\"{{ picUrl }}\" alt=\"\" style=\"width: 120px; height: 120px; margin: 5px;\">\n </div>\n <a style=\"text-align: center; margin-top: 4px; font-size: 12px; color: #333333; letter-spacing: 1px;\" href=\"\" target=\"_blank\">\n <span>打开</span><span class=\"dl\">微信</span>\n <span>扫码领券</span>\n </a>\n </div>\n</div>\n<style>\n .gwd-qrcode-container-top {\n position: absolute;\n right: 50%!important;\n margin-right: -74px!important;\n top: 28px;\n width: 148px!important;\n display: none;\n }\n\n #top_coupon_btn:hover .gwd-qrcode-container-top {\n display: block;\n }\n\n .gwd-qrcode-jd-top {\n width: 148px;\n height: 170px;\n background: #fff7f6;\n border: 1px solid #ff8006;\n text-align: center;\n box-sizing: border-box!important;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n\n .gwd-qrcode-jd-top a {\n text-align: center;\n display: inline-block;\n }\n\n .gwd-qrcode-jd-top a span {\n color: #333333!important;\n }\n\n .gwd-qrcode-jd-top a .dl {\n color: #ff8006!important;\n font-weight: 600;\n }\n\n /*.gwd-qrcode-jd-top a:hover .dl {*/\n /* color: #ff3c16!important;*/\n /*}*/\n</style>" /***/ }), /***/ "b5843e97b143ca65ddbe": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); var request = __webpack_require__("91f250ebeb8d5987491c"); var userCenter = __webpack_require__("69afa85b8d7929dd88c5"); var wechat = userCenter.getQueryString('/UserUnion/Authorize', { utype: 2, _referer: location.href }); var qq = userCenter.getQueryString('/UserUnion/Authorize', { utype: 1, _referer: location.href }); var weibo = userCenter.getQueryString('/UserUnion/Authorize', { utype: 3, _referer: location.href }); exports['default'] = { props: ['showAlterLogin', 'alterLoginPosition', 'position'], data: function data() { return { currentLoginMethod: 'phone', loginError: false, showPassword: false, extName: G.extName, url: location.href, account: '', password: '', phone: '', verifyCode: '', countDown: 0, remember_me: false, smsLoginUrl: '', wechat: wechat, qq: qq, weibo: weibo }; }, methods: { goLogin: function goLogin() { if (this.position === 'gwd-popup') { window.open('https://www.gwdang.com/user/login'); } else { var u = encodeURIComponent(location.href); location.href = 'https://www.gwdang.com/user/login?ext=1&from_url=' + u; } }, goLink: function goLink(place) { var param = {}; if (place === 'wechat') { param.utype = '2'; } if (place === 'qq') { param.utype = '1'; } if (place === 'weibo') { param.utype = '3'; } if (this.position === 'gwd-popup') { window.open(userCenter.getQueryString('/UserUnion/Authorize', param)); } else { param._referer = location.href; location.href = userCenter.getQueryString('/UserUnion/Authorize', param); } }, goReg: function goReg() { if (this.position === 'gwd-popup') { window.open('https://www.gwdang.com/user/register'); } location.href = 'https://www.gwdang.com/user/register'; }, sendSms: function sendSms() { var _this = this; if (this.countDown > 0) { return; } __webpack_require__("69afa85b8d7929dd88c5").sendSms(this.phone).then(function (res) { _this.countDown = 60; console.log(res); _this.smsLoginUrl = res.data.capi; var t = setInterval(function () { if (_this.countDown === 0) { clearInterval(t); return; } _this.countDown--; }, 1000); }); }, login: function login() { if (this.currentLoginMethod === 'phone') { if (!this.smsLoginUrl) { alert('先发送验证码'); return; } request.post('' + this.smsLoginUrl, { code: this.verifyCode }, true).then(function (res) { console.log(res); if (res.code === 1) { document.body.dispatchEvent(new CustomEvent('gwd-login-complete', { detail: res.data })); } }); } else { __webpack_require__("69afa85b8d7929dd88c5").login(this.account, this.password, this.remember_me).then(function (res) { console.log(res); if (res.code === 1) { document.body.dispatchEvent(new CustomEvent('gwd-login-complete', { detail: res.data })); } }); } } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "b602e8e7e0dd939b0de2": /***/ (function(module, exports) { module.exports = "<div id=\"mini_price_history_detail\" class=\"mini-trend-detail\" style=\"width: 680px;\">\n <div class=\"mini_price_history_detail_wrapper\" style=\"float:left; width: 452px;\">\n <div class=\"max-min-priinfo\"></div>\n <div id=\"mini_price_history_detail_chart\" style=\"width: 452px;\"></div>\n <div id=\"mini_price_history_detail_info\"></div>\n <div id=\"mini_price_history_detail_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 id=\"big_tooltip\" class=\"big_tooltip_box\">\n </div>\n\n <div id=\"gwd-mini-promo-history\"></div>\n \n<!-- {{if showapp}}-->\n<!-- <div class=\"app-tuiguang\">-->\n<!-- <p>立即扫码下载APP</p>-->\n<!-- <img class=\"app-tg-qrcode\" src=\"https://cdn.gwdang.com/images/extensions/apptg181019/cli_1000px.png\">-->\n<!-- <div class=\"app-tg-item item-bijiage\">-->\n<!-- <em ></em>-->\n<!-- <span>比价格</span>-->\n<!-- </div>-->\n<!-- <div class=\"app-tg-item item-history\">-->\n<!-- <em></em>-->\n<!-- <span>查历史</span>-->\n<!-- </div>-->\n<!-- <div class=\"app-tg-item item-coupon\">-->\n<!-- <em></em>-->\n<!-- <span>找优惠券</span>-->\n<!-- </div>-->\n<!-- </div>-->\n<!-- <style type=\"text/css\">-->\n<!-- .showapp #mini_price_history_detail {-->\n<!-- width: 590px;-->\n<!-- }-->\n<!-- .app-tuiguang {-->\n<!-- width: 128px;-->\n<!-- height: 100%;-->\n<!-- float: left;-->\n<!-- border-left: 1px solid #e4e4e4;-->\n<!-- background: #fff;-->\n<!-- border-top: 1px solid #e4e4e4;-->\n<!-- position: relative;-->\n<!-- top: -1px;-->\n<!-- }-->\n<!-- .app-tuiguang p {-->\n<!-- width: 97px;-->\n<!-- height: 16px;-->\n<!-- line-height: 16px;-->\n<!-- text-align: left;-->\n<!-- padding: 0px;-->\n<!-- font-weight: bold;-->\n<!-- font-size: 12px;-->\n<!-- margin: 15px 0 0 17px;-->\n<!-- }-->\n<!-- .app-tg-qrcode {-->\n<!-- float: left;-->\n<!-- height: 128px;-->\n<!-- width: 128px;-->\n<!-- margin-bottom: 3px;-->\n<!-- }-->\n<!-- .app-tg-item {-->\n<!-- height: 22px;-->\n<!-- width: 100%;-->\n<!-- float: left;-->\n<!-- margin-bottom: 14px;-->\n<!-- }-->\n<!-- .app-tg-item em {-->\n<!-- float: left;-->\n<!-- height: 22px;-->\n<!-- width: 22px;-->\n<!-- margin-left: 23px;-->\n<!-- }-->\n<!-- .app-tg-item span {-->\n<!-- height: 22px;-->\n<!-- line-height: 22px;-->\n<!-- width: auto;-->\n<!-- float: left;-->\n<!-- color: #666;-->\n<!-- font-size: 13px;-->\n<!-- margin-left: 10px;-->\n<!-- }-->\n<!-- .item-bijiage em {-->\n<!-- background: url(\"https://cdn.gwdang.com/images/extensions/apptg181019/bjg.png\") 0px 0px no-repeat;-->\n<!-- }-->\n<!-- .item-history em {-->\n<!-- background: url(\"https://cdn.gwdang.com/images/extensions/apptg181019/history.png\") 0px 0px no-repeat;-->\n<!-- }-->\n<!-- .item-coupon em {-->\n<!-- background: url(\"https://cdn.gwdang.com/images/extensions/apptg181019/coupon.png\") 0px 0px no-repeat;-->\n<!-- }-->\n<!-- #mini_price_history_detail .discount-price-re {-->\n<!-- left: 364px;-->\n<!-- right: inherit;-->\n<!-- }-->\n<!-- </style>-->\n<!-- {{/if}}-->\n </div>" /***/ }), /***/ "b751a4bf79e05496e44c": /***/ (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_AmazonSameLinks_vue_vue_type_template_id_e09aa000_scoped_true___ = __webpack_require__("673168c7833425acd31a"); /* 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_AmazonSameLinks_vue_vue_type_template_id_e09aa000_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_AmazonSameLinks_vue_vue_type_template_id_e09aa000_scoped_true___["b"]; }); /***/ }), /***/ "b7625ccf65439ca48f6a": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__QRLinkLeft_vue_vue_type_template_id_b671e2be_scoped_true___ = __webpack_require__("12353e6c503e80823ba4"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QRLinkLeft_vue_vue_type_script_lang_js___ = __webpack_require__("5718695c1fa25d021f07"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__QRLinkLeft_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__QRLinkLeft_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__QRLinkLeft_vue_vue_type_style_index_0_id_b671e2be_scoped_true_lang_less___ = __webpack_require__("87038ee9f896d5ddf0a2"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__QRLinkLeft_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__QRLinkLeft_vue_vue_type_template_id_b671e2be_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__QRLinkLeft_vue_vue_type_template_id_b671e2be_scoped_true___["b" /* staticRenderFns */], false, null, "b671e2be", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('b671e2be')) { api.createRecord('b671e2be', component.options) } else { api.reload('b671e2be', component.options) } module.hot.accept("./QRLinkLeft.vue?vue&type=template&id=b671e2be&scoped=true&", function () { api.rerender('b671e2be', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/QRLinkLeft.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "b7f8622f81f192cd1d95": /***/ (function(module, exports) { module.exports = "<div id=\"favor_box\" {{if choosed }}class=\"favor_choosed\" {{/if}}>\n <div class=\"login-content \" style=\"padding-top: 50px;\">\n <div id=\"gwd-login-remind\"></div>\n </div>\n <div class=\"bar-jiangjia-re\">\n <div class=\"price-head\">\n <div class=\"head-item now-pri-div\">\n <span class=\"re-strong blkcolor1\">当前价格:</span>\n <span class=\"re-price prifontf\">{{money}}{{lastprice}}</span>\n </div>\n <div class=\"head-item his-pri-div\">\n <span class=\"re-strong blkcolor1\">历史价格:</span>\n <span class=\"re-price-num blkcolor1 prifontf\">{{money}}{{price_range}}</span>\n </div>\n </div>\n <div class=\"jj-remind\" data-notify-type=\"{{notify_site}}\">\n <p class=\"blkcolor1\">降价提醒</p>\n <div class=\"remind-item remind-item-fst {{if notify_site == '0' && islogin}}current-selected{{/if}}\" style=\"margin-top: {{if islogin}}18{{else}}9{{/if}}px\">\n <span class=\"select-item gwd_bg {{if notify_site == '0'}}selected current-selected{{/if}}\" data-type=\"0\"></span>\n <span class=\"blkcolor3\">全网商家低于{{money}}</span>\n <input type=\"text\" value=\"{{allprice}}\" class=\"prifontf\">\n <span class=\"blkcolor3\">{{riyuan}}时提醒</span>\n </div>\n <div class=\"remind-item remind-item-snd {{if notify_site == '1' && islogin}}current-selected{{/if}}\" style=\"margin-top: {{if islogin}}18{{else}}9{{/if}}px\">\n <span class=\"select-item gwd_bg {{if notify_site == '1'}}selected current-selected{{/if}}\" data-type=\"1\"></span>\n <span class=\"blkcolor3\">当前商家低于{{money}}</span>\n <input type=\"text\" value=\"{{nowprice}}\" class=\"prifontf\">\n <span class=\"blkcolor3\">{{riyuan}}时提醒</span>\n </div>\n {{if allprice && !aliSite && lowestUrl}}\n<!-- <a class=\"jj-remind-logo2 hasurl gwd_bg\" target=\"_blank\" href=\"{{lowestUrl}}\">今日全网最低价</a>-->\n {{else if !aliSite && !allprice}}\n<!-- <a class=\"jj-remind-logo\" ></a>-->\n {{/if}}\n </div>\n<!-- <div class=\"jj-style\" style=\"clear: both\">-->\n<!-- <p class=\"blkcolor1 {{if islogin}} logined {{/if}}\">提醒方式</p>-->\n<!-- <div class=\"remind-item\">-->\n<!-- <span class=\"qrcode-item select-item gwd_bg {{if remind_type == '0'}}selected {{/if}}\" data-type=\"0\"></span>-->\n<!-- <span class=\"blkcolor3\">关注微信订阅号,微信提醒</span>-->\n<!-- </div>-->\n<!-- <div class=\"remind-item remind-item-snd\">-->\n<!-- <span class=\"email-item select-item gwd_bg {{if remind_type == '1'}}selected {{/if}}\" data-type=\"1\"></span>-->\n<!-- <span class=\"blkcolor3\">邮箱提醒</span>-->\n<!-- <input type=\"text\" value=\"{{emailvalue}}\" class=\"re-mail blkcolor3\">-->\n<!-- </div>-->\n<!-- -->\n<!-- </div>-->\n {{if islogin}}<span class=\"remindHint\" style=\"position: relative; left: -60px;\">提交成功</span>{{/if}}\n {{ if islogin }}<span id=\"bar_subbtn\" class=\"subbtn\" style=\"margin-top: 31px\">提交</span>{{/if}}\n <div id=\"login-remind\" class=\"{{if islogin}} logined {{/if}}\" data-login=\"{{islogin}}\">\n <span class=\"go_login_btn\">去登录(不可用)</span>\n <p class=\"blkcolor4\">登录(不可用)账户,及时获取商品降价信息提醒</p>\n </div>\n <span class=\"error_remind\">请输入正确格式商品价格</span>\n<!-- <span id=\"edit_remind_style\" class=\"blkcolor4\">更改价格提醒方式</span>-->\n {{if islogin}}\n <div style=\"clear: both; text-align: center; top: 10px; position: relative\">\n <span class=\"{{if islogin}} logined {{/if}} blkcolor4\" >为了更好接收降价提醒,请您及时<span id=\"remind_qrcode\" style=\"color: #48befe\">扫码绑定微信</span></span>\n <div id=\"remind_qrcode_img\">\n <img src=\"\" alt=\"二维码\">\n <p>购物党比价</p>\n </div>\n </div>\n {{/if}}\n </div>\n<style>\n .price-trend-btn .remindHint {\n left: -98px!important;\n }\n\n .remind-item {\n position: relative;\n }\n\n .remind-item.current-selected::after{\n content: '当前设置';\n background: #4fc266;\n width: 59px;\n height: 17px;\n color: white;\n font-size: 12px;\n border-radius: 8.5px 8.5px 8.5px 0;\n position: relative;\n top: -10px;\n left: 5px;\n text-align: center;\n display: inline-block;\n }\n\n #bjd_minifavor_content .remind-item.current-selected::after {\n left: 0;\n }\n</style>\n <style type=\"text/css\">\n #favor_box .error_remind {\n position: absolute;\n bottom: 108px;\n font-size: 12px!important;\n color: #e4393c!important;\n display: none;\n width: 100%;\n float: left;\n left: 0px;\n height: 12px;\n text-align: center;\n line-height: 12px;\n }\n #favor_box.favor_choosed .error_remind {\n bottom: 77px;\n }\n #favor_box .forgetpsd:hover {\n color: #48befe;\n text-decoration: none!important;\n }\n #favor_box {\n display: inline-block;\n /*float: right;*/\n width: 320px;\n border-left: 1px solid #edf1f2;\n height: 100%;\n position: relative;\n }\n .login-content {\n display: none;\n height: 268px;\n width: 320px;\n border: 1px solid #edf1f2;\n border-top: none;\n position: absolute;\n top: 0px;\n right: -292px;\n z-index: 999;\n background-color: #fff;\n }\n .login-content .gwd-login-right {\n width: 86px;\n height: 250px;\n }\n .login-content .other-login-style {\n width: 40px;\n padding: 34px 0;\n margin-left: 18px;\n }\n .login-content .login-left {\n width: 226px;\n height: 250px;\n }\n .login-content .other-login-style a {\n margin: 10px 0px;\n }\n .login-content .login-input input {\n width: 148px;\n margin-left: 23px;\n margin-top: 22px;\n }\n #bjd-notifier .price-trend div.chart {\n border-right: none!important;\n }\n #favor_box .price-head {\n margin-top: 14px;\n }\n #favor_box .head-item {\n line-height: 14px;\n height: 14px;\n width: 100%;\n }\n #favor_box .head-item span {\n float: left;\n }\n #favor_box .head-item:after {\n display: block;\n content: \"\";\n clear: both;\n }\n #favor_box .his-pri-div {\n margin-top: 9px;\n }\n #favor_box .login-input div a {\n font-size: 12px;\n }\n #favor_box .login-input div {\n padding-top: 3px;\n padding-right: 27px;\n float: none;\n }\n #favor_box a.quick-reg {\n color: #48befe;\n font-size: 12px;\n float: left;\n margin-top: 8px;\n margin-left: 90px!important;\n text-decoration: none!important;\n }\n #log_back_btn {\n position: absolute;\n top: 10px;\n left: 10px;\n display: inline-block;\n height: 18px;\n width: 18px;\n background: url('{{imgHost}}extensions/newbar/login-delete.png') no-repeat 0px 0px;\n cursor: pointer;\n }\n #loginClickBtnBar {\n display: block;\n height: 28px;\n width: 86px;\n line-height: 28px;\n text-align: center;\n background-color: #48BEFE;\n color: #fff;\n border-radius: 15px;\n margin-left: 72px;\n cursor: pointer;\n font-size: 14px;\n margin-top: 23px;\n }\n #loginClickBtnBar:hover {\n background-color: #18ACFC;\n }\n #favor_box .login-input {\n margin-top: 17px;\n float: none;\n }\n\n #favor_box span.re-strong {\n font-size: 14px;\n font-weight: bold;\n margin-left: 13px;\n }\n #favor_box .re-price-num {\n font-weight: bold;\n font-size: 14px;\n }\n #favor_box span.re-price {\n font-size: 14px;\n color: #E4393C;\n font-weight: bold;\n }\n #favor_box .select-item {\n float: left;\n height: 16px;\n width: 16px;\n background-position: -10px -64px;\n cursor: pointer;\n margin-left: 12px;\n margin-right: 12px;\n padding: 0;\n }\n #favor_box .select-item.selected {\n background-position: -30px -64px;\n }\n #favor_box .jj-remind>p, #favor_box .jj-style>p {\n margin-left: 13px;\n }\n #favor_box .jj-style>p {\n margin-bottom: 13px;\n visibility: hidden;\n }\n #favor_box .jj-style>p.logined {\n visibility: visible;\n }\n .jj-style .remind-item-snd {\n margin-top: 11px;\n }\n .favor_choosed .jj-remind {\n margin-top: 20px;\n height: 102px;\n }\n .favor_choosed .remind-item-fst {\n margin-top: 30px;\n margin-bottom: 22px;\n }\n #favor_box .remind-item {\n height: 16px;\n line-height: 16px;\n }\n #favor_box .remind-item *{\n float: left;\n }\n .remind-item-snd {\n margin-top: 11px;\n }\n #favor_box.favor_choosed .jj-remind .jj-remind-logo {\n top: 16px;\n }\n #favor_box.favor_choosed .jj-remind .jj-remind-logo2 {\n top: 12px;\n }\n .favor_choosed span.subbtn {\n margin-top: 26px;\n margin-left: 125px;\n }\n .jj-style {\n height: 73px;\n }\n .favor_choosed .jj-style {\n display: none;\n }\n #favor_box .jj-remind .jj-remind-logo {\n top: -4px;\n width: 125px;\n left: 113px;\n }\n #favor_box .jj-remind .jj-remind-logo2 {\n position: absolute;\n display: inline-block;\n height: 25px;\n width: 110px;\n color: #5FC676;\n line-height: 23px;\n text-align: center;\n background-position: -9px -82px;\n left: 116px;\n top: -4px;\n font-size: 12px;\n }\n #favor_box .jj-remind .jj-remind-logo2:hover {\n background-position: -9px -189px;\n color: #fff;\n }\n .remind-item-fst {\n margin-top: 14px;\n }\n #login-remind {\n position: absolute;\n background-color: #fff;\n border: 1px solid #edf1f2;\n border-bottom: none;\n height: 104px;\n width: 319px;\n bottom: 0px;\n right: 0px;\n }\n #login-remind.logined {\n display: none;\n }\n #login-remind .go_login_btn {\n width: 74px;\n height: 26px;\n line-height: 26px;\n text-align: center;\n background-color: #48beff;\n font-size: 14px;\n float: left;\n color: #fff;\n margin: 18px 0px 0px 124px;\n border-radius: 100px;\n cursor: pointer;\n }\n #login-remind .go_login_btn:hover {\n background-color: #18ACFC;\n }\n #login-remind p {\n font-size: 14px;\n float: left;\n text-align: center;\n width: 320px;\n margin-top: 13px;\n font-weight: normal;\n }\n .login-content .sp-border {\n background-position: -230px 7px;\n width: 20px;\n }\n /*#edit_remind_style, #remind_qrcode{*/\n /* display: none;*/\n /*}*/\n .favor_choosed #edit_remind_style {\n display: inline-block;\n }\n #remind_qrcode.logined{\n display: inline-block;\n }\n #edit_remind_style {\n position: absolute;\n bottom: 14px;\n left: 14px;\n font-size: 12px;\n cursor: pointer;\n }\n #favor_box #edit_remind_style:hover, #favor_box #remind_qrcode:hover {\n color: #48beff;\n }\n #remind_qrcode {\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 #remind_qrcode {\n bottom: 14px;\n right: 14px;\n z-index: 99999999;\n }\n #remind_qrcode_img {\n position: absolute;\n right: 3px;\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 #remind_qrcode_img img {\n width: 100%;\n }\n #remind_qrcode_img: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 #remind_qrcode_img: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 #remind_qrcode_img p {\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 top: -8px;\n }\n #remind_qrcode_img p:after{\n content:\".\";\n display: inline-block;\n width:100%;\n overflow:hidden;\n height:0;\n }\n /*#favor_box .qqlogin {*/\n /* margin-top: 20px!important;*/\n /*}*/\n\n .remind-item .select-item {\n background: white!important;\n border-radius: 16px;\n border: 2px solid #939597;\n box-sizing: border-box!important;\n background-image: none!important;\n }\n\n .remind-item .select-item:hover {\n border: 4px solid #4ebffb;\n background-image: none!important;\n box-sizing: border-box;\n }\n\n .remind-item .select-item.selected {\n border: 4px solid #4ebffb;\n background-image: none!important;\n box-sizing: border-box;\n }\n </style>\n</div>" /***/ }), /***/ "b80e0015559d9b54ff50": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($) { var pagerParser = { timeout: 1000, tleEdit: function tleEdit(tle) { tle = tle || ''; tle = tle.replace('[广告]', ''); return tle; }, priceFormatter: function priceFormatter(price, radixPoint, split, site_id) { radixPoint = radixPoint || '.'; split = split || ','; price = '' + price; var temp = price.replace(split, '').replace(radixPoint, '.'); temp = temp.match(/[0-9.]+/); if (temp) { try { return parseFloat(temp); } catch (e) { return -1; } } }, template: function template(items_sel, href_sel, price_sel, tle_sel) { var items = document.querySelectorAll(items_sel); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector(href_sel).href; var pridom = items[i].querySelector(price_sel); if (!pridom) continue; var price = pridom.textContent.trim(); if (!price) continue; if (tle_sel) { var tledom = items[i].querySelector(tle_sel); if (!tledom) continue; var tle = tledom.textContent.trim(); } r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'tle': tle || '', 'crc32': '' }); } catch (e) { continue; } } return r; } }; //amazon pagerParser[1] = function (document) { var r = []; var items = document.querySelectorAll('.s-result-item'); for (var i = 0; i < items.length; ++i) { try { var img = items[i].querySelector('.s-access-image'); while (!img.parentNode.href && img.parentNode != document.body) { img = img.parentNode; } if (img.parentNode == document.body) { continue; } var href = img.parentNode.href; var price = items[i].querySelector('div>.a-spacing-mini>.a-spacing-none>a>span.a-color-price'); var tle = items[i].querySelector('div>.a-spacing-mini>.a-spacing-none>a.s-color-twister-title-link h2'); if (!price) { price = items[i].querySelector('span.a-color-price'); } tle = pagerParser.tleEdit(tle.textContent); r.push({ 'url': href, 'price': pagerParser.priceFormatter(price.textContent), 'tle': tle, 'crc32': '' }); } catch (e) { continue; } } return r; }; //dangdang pagerParser[2] = function (document) { var items = document.querySelectorAll('#search_nature_rg li'); if (!items.length) { items = document.querySelectorAll('#content .shop_box'); } if (!items.length) { items = document.querySelectorAll('.shoplist>ul>li'); } var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a.pic').href; var price = items[i].querySelector('.price>span').textContent; var tle = items[i].querySelector('p.name>a').textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'tle': tle, 'crc32': '' }); } catch (e) { continue; } } return r; }; //jd pagerParser[3] = function (document) { return pagerParser.template('.m-list .gl-warp>li', '.p-img>a', '.p-price em+i', '.p-name>a>em'); }; //ouku pagerParser[6] = function (document) { return pagerParser.template('.item-block', 'a.ctr-track', 'a.price'); }; //newegg pagerParser[7] = function (document) { return pagerParser.template('.main .prolist>li', 'a', 'span.price'); }; //m18 pagerParser[10] = function (document) { return pagerParser.template('.item', 'a.thmb', '.prc>strong'); }; //sephora pagerParser[12] = function (document) { return pagerParser.template('#searchResultListDiv li', '.proPic>a', '.proPrice'); }; //lefeng pagerParser[13] = function (document) { return pagerParser.template('#productDivGroup>.pruwrap', 'a', 'span.price'); }; //s.cn pagerParser[14] = function (document) { return pagerParser.template('.product_list>dl', 'dt>a', 'i.price'); }; //menglu pagerParser[16] = function (document) { return pagerParser.template('.smList>ul>li', '.pro155 a', 'span.off'); }; //moonbase pagerParser[17] = function (document) { return pagerParser.template('.chapList dl', 'a', 'span>font'); }; //keede pagerParser[18] = function (document) { return pagerParser.template('#goodsPanel li[class]', 'a', '.classify_price>span'); }; //vancl pagerParser[19] = function (document) { return pagerParser.template('#vanclproducts>ul>li', '.pic a', '.Sprice'); }; //okbuy pagerParser[21] = function (document) { return pagerParser.template('.gl-item', '.gl-img>a', '.okprice'); }; //letao pagerParser[22] = function (document) { return pagerParser.template('.pro_list ul li', '.pro_img>a', '.pro_price'); }; //taoxie pagerParser[24] = function (document) { return pagerParser.template('#list>ul>li', '.pic>a', '.real-price>em'); }; //suning pagerParser[25] = function (document) { setTimeout(function () { document._links = pagerParser.template('.product-list li', 'a.sellPoint', '.price-box .def-price', '.title-selling-point'); }, 2000); return { wait: true }; }; //lusen pagerParser[27] = function (document) { return pagerParser.template('.shows', 'a', '.new'); }; //gome pagerParser[28] = function (document) { return pagerParser.template('#product-box>li', 'a.item-link', '.price'); }; //yhd pagerParser[31] = function (document) { return pagerParser.template('#itemSearchList .mod_search_pro', '.proImg a', '.proPrice .num'); }; //leyou pagerParser[33] = function (document) { return pagerParser.template('.propicList .products', '.pic>a', '.disPrice'); }; //shopin pagerParser[34] = function (document) { return pagerParser.template('.content ul li', 'a', 'strong.price'); }; //xiu pagerParser[35] = function (document) { return pagerParser.template('.item', '.pic>a', 'span.showprice'); }; //mbaobao pagerParser[36] = function (document) { return pagerParser.template('#js-goods-list>ul>li', 'a', 'strong.red'); }; //qinqinbaby pagerParser[39] = function (document) { return pagerParser.template('#proactive>li', '.pro-img a', '.price b.fontYHei'); }; //chunshuitang pagerParser[40] = function (document) { return pagerParser.template('.L_boxlist', 'dt>a', '.L_rmb_xuj'); }; //x pagerParser[41] = function (document) { return pagerParser.template('.s_pro_list li', '.pic>a', '.price'); }; //guopi pagerParser[42] = function (document) { var tr = document.querySelectorAll('#main_table>tbody>tr.img,#main_table>tbody>tr.price'); var r = []; for (var i = 0; i < tr.length; i += 2) { try { var imgs = tr[i].querySelectorAll('td'); var prices = tr[i + 1].querySelectorAll('td'); for (var j = 0; j < imgs.length; ++j) { var href = imgs[j].querySelector('a').href; var price = prices[j].querySelector('span.price').textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } } catch (e) { continue; } } return r; }; //no5 pagerParser[43] = function (document) { return pagerParser.template('.cplist>dl', 'dt a', '.pro-price>span>span'); }; //sasa pagerParser[45] = function (document) { return pagerParser.template('#gallery_show>ul>li', '.arrivals-pic a', 'span.price'); }; //m6go pagerParser[51] = function (document) { return pagerParser.template('.result>ul>li', 'a.pica', '.price-info strong'); }; //likeface pagerParser[52] = function (document) { return pagerParser.template('ul.tLst2 li', 'a.tImg', 'span.tPrc'); }; //morefood pagerParser[54] = function (document) { return pagerParser.template('.goods_list', '.img>a', 'span[datatype="price"]'); }; //99read pagerParser[59] = function (document) { return pagerParser.template('.list_r_list', 'h1 a', '.f-Price:last-child'); }; //chinapub pagerParser[60] = function (document) { return pagerParser.template('.search_result table', '.result_name a', '.book_dis b'); }; //bookschina pagerParser[61] = function (document) { return pagerParser.template('.bookContent', '.titlein', 'span.red12'); }; //winxuan pagerParser[62] = function (document) { return pagerParser.template('#list>li', '.img a', '.price-n'); }; //efeihu pagerParser[63] = function (document) { return pagerParser.template('#Jlist>li', '.ui_pimg>a', '.ui_pprice_e>em'); }; //yintai pagerParser[66] = function (document) { return pagerParser.template('.p-listInfo', '.p-listImgBig a', '.p-listPrice strong'); }; //hapigo pagerParser[72] = function (document) { return pagerParser.template('.sl_list_ul>li', '.goods-pic>a', '.sl_price1>span'); }; //gap pagerParser[73] = function (document) { return pagerParser.template('.categoryProductItem', '.product-image>a', '.special-price .price>.price'); }; //5lux pagerParser[75] = function (document) { var items = document.querySelectorAll('.stblock_body>dl>dd'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a').href; var price = items[i].querySelector('.coc2a67d').childNodes[0].textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; // tmall pagerParser[83] = function (document) { var items = document.querySelectorAll('#J_ItemList div.product'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a.productImg').href; var price = items[i].querySelector('.productPrice em').textContent; var tle = items[i].querySelector('.productTitle a').textContent.trim(); r.push({ 'url': href, 'tle': tle, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //tiantian pagerParser[84] = function (document) { return pagerParser.template('.rg_sl_list>ul>li', '.list1', '.list3>span'); }; //xijie pagerParser[85] = function (document) { return pagerParser.template('.goods_one', '.com_link', '.xj_list_pro_text2>.xj_list_pro_text2'); }; //jumei pagerParser[86] = function (document) { return pagerParser.template('.products_wrap>ul>li', '.s_l_pic>a', '.search_list_price>span'); }; //yougou pagerParser[93] = function (document) { return pagerParser.template('#proList>li', 'a', '.price_sc>em>i'); }; //111 pagerParser[94] = function (document) { setTimeout(function () { document._links = pagerParser.template('#itemSearchList>li', ':not(.none) a', ':not(.none) .price>span:first-child'); }, pagerParser.timeout); return { wait: true }; }; //jianke pagerParser[97] = function (document) { return pagerParser.template('.pro-con>li', 'a.pro-check', '.pro-botxt span'); }; //muyingzhijia pagerParser[98] = function (document) { setTimeout(function () { document._links = pagerParser.template('.goods_list>li', 'a', 'span[data-type="price"]'); }, pagerParser.timeout); return { wait: true }; }; //lingshi pagerParser[99] = function (document) { var items = document.querySelectorAll('.snack_wrap>ul>li'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a').href; var price = items[i].querySelector('.price').childNodes[0].textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //banggo pagerParser[100] = function (document) { return pagerParser.template('.mbshop_listPdCon', 'a', '.mbshop_listPdText>b'); }; //yesmywine pagerParser[101] = function (document) { return pagerParser.template('.piclist>li', 'a', '.price strong'); }; //jiumei pagerParser[102] = function (document) { return pagerParser.template('.gn_m_list_a', 'a', '.gn_m_list_price .b>span'); }; //jiuxian pagerParser[103] = function (document) { return pagerParser.template('.proListSearch>ul>li', 'a', '.price'); }; //gjw pagerParser[108] = function (document) { return pagerParser.template('.main_wrap>.min_in', '.productImg-wrap a', '.productPrice>em>strong'); }; //okhqb pagerParser[109] = function (document) { return pagerParser.template('.result_list_container>ul>li', '.thumb_picture a', '.price_i>em'); }; //bookuu pagerParser[110] = function (document) { return pagerParser.template('.books-list', 'a', '.ll>b'); }; //d1 pagerParser[115] = function (document) { return pagerParser.template('#r_list .libox', '.g_simg>a', '.g_mprice font'); }; //rayi pagerParser[120] = function (document) { return pagerParser.template('.GoodsSearchWrap>table>tbody>tr>td', '.goodpic>a', '.price1'); }; //paixie pagerParser[122] = function (document) { return pagerParser.template('.prolist>li', '.probox>a', '.info>b'); }; //taobao pagerParser[123] = function (document) { var items = document.querySelectorAll('#mainsrp-itemlist div.items>.item'); var r = []; for (var i = 0; i < items.length; ++i) { try { var id = items[i].querySelector('.pic-box a.pic-link').getAttribute('data-nid'); var href = 'https://item.taobao.com/item.htm?id=' + id; var price = items[i].querySelector('.ctx-box .price').textContent; var tle = items[i].querySelector('.ctx-box .title .J_ClickStat').textContent.trim(); var uniqPid = $(items[i]).find('.similars a[href]:contains(同款)').attr('href'); if (uniqPid) uniqPid = uniqPid.match(/&uniqpid=([0-9-]+)/)[1]; r.push({ 'nid': id, 'uniqpid': uniqPid || '', 'url': href, 'tle': tle, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //homevv pagerParser[124] = function (document) { return pagerParser.template('.list_pic>.item', '.goods-pic a', '.sale-price'); }; //jxdyf pagerParser[125] = function (document) { return pagerParser.template('#searchPList>ul>li', '.pImg a', '.price'); }; //sfbest pagerParser[126] = function (document) { return pagerParser.template('.list-all>li', '.pic a', '.price strong'); }; //benlai pagerParser[127] = function (document) { return pagerParser.template('#Content>dl', '.pic a', 'p.price'); }; //tuotuo pagerParser[128] = function (document) { return pagerParser.template('#list_goodslist>li', '.pro_img>a', '.pro_price>b'); }; //vip pagerParser[129] = function (document) { return pagerParser.template('#J_searchCatList>.goods-list-item', '.goods-image>a', '.price'); }; //vmall pagerParser[134] = function (document) { return pagerParser.template('.pro-list>ul>li', 'a', '.p-price>b'); }; //lenovo pagerParser[135] = function (document) { return pagerParser.template('#productList>li', '.search_pro_img', '.search_pro_price'); }; //zm7 pagerParser[138] = function (document) { return pagerParser.template('.goods_table_list>ul>li', '.g_t_list_m>a', '.goods_table_list .fl'); }; //zhiwo pagerParser[140] = function (document) { return pagerParser.template('#bfd_show_fu>li', '.goods_img a', '.price_day'); }; //j1 pagerParser[141] = function (document) { return pagerParser.template('.listsearch-one', '.listsearch-ztimg a', '.listsearch-price>span'); }; //wangjiu pagerParser[142] = function (document) { return pagerParser.template('.shop_list_item>ul>li', '.p_i a', '.p_m'); }; //lamiu pagerParser[146] = function (document) { return pagerParser.template('#gallery_show ul>li', '.goods-pic a', 'ins.price'); }; //aimer pagerParser[147] = function (document) { return pagerParser.template('.infoShop>li', 'div>a', 'span.track'); }; //wbiao pagerParser[153] = function (document) { return pagerParser.template('#search_goods_list>ul>li', 'dd:not([class])>a', 'dt .s_price'); }; //handu pagerParser[154] = function (document) { return pagerParser.template('#tile li', '.boxCont>a', '.price'); }; //ehaier pagerParser[155] = function (document) { return pagerParser.template('.prolist-box>ul>li', 'a', '.strong-price'); }; //secoo pagerParser[156] = function (document) { return pagerParser.template('.commodity-list>dl', 'a', '.dl_price>span'); }; //camel pagerParser[157] = function (document) { return pagerParser.template('.pro_list_ul>li', 'a', '.salePrice'); }; //masamaso pagerParser[158] = function (document) { return pagerParser.template('.in_masa:not([id]) ul>li', '.in_masa_up a', '.in_price>em>span:nth-of-type(2)'); }; //xifuquan pagerParser[164] = function (document) { return pagerParser.template('.ullistcont>li', 'a', 'strong'); }; //mi pagerParser[167] = function (document) { var items = document.querySelectorAll('.goods-list>div'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a').href; var price = items[i].querySelector('.price').childNodes[0].textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //lemall pagerParser[168] = function (document) { var items = document.querySelectorAll('.result_list>li'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('.pro_img a').getAttribute('data-url'); var price = items[i].querySelector('.pro_price>span.red').textContent.trim(); r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } }; // //meituan // pagerParser[172] = function (document) { // return pagerParser.template('.item', 'a', '.price>strong') // } //yiguo pagerParser[174] = function (document) { setTimeout(function () { document._links = pagerParser.template('.product_item', '.p_img a', '.price>strong'); }, pagerParser.timeout); return { wait: true }; }; //fruitday pagerParser[178] = function (document) { return pagerParser.template('.f-list .leftpart>ul>li', 'a', '.s-info>.s-unit'); }; //feiniu pagerParser[180] = function (document) { return pagerParser.template('.u-m-goods>ul>li', '.p-img.J_p_img a', '.J_now_price'); }; //zuipin pagerParser[182] = function (document) { return pagerParser.template('.tea_products .products_box', '.pro_img>span>a', '.zp_price>span'); }; //yohobuy pagerParser[184] = function (document) { return pagerParser.template('.goods-container>div.good-info', 'a[href*="item"]', '.price>span:last-child'); }; //bestkeep pagerParser[188] = function (document) { return pagerParser.template('.listTable>li', 'a', '.goods-price'); }; //mf910 pagerParser[194] = function (document) { return pagerParser.template('#J_goodsList>ul>li', 'a', '.p-price>strong>i'); }; //miyabaobei pagerParser[195] = function (document) { return pagerParser.template('.Lcon.content>div.block', 'a', 'span[id^="sale_price"]'); }; //ule pagerParser[196] = function (document) { setTimeout(function () { document._links = pagerParser.template('.goodsListBlock>ul>li', '.img>a', '.ulePrice>strong'); }, pagerParser.timeout); return { wait: true }; }; //minshengec pagerParser[197] = function (document) { return pagerParser.template('.itemList>div.product', 'a', 'em[name="price"]'); }; //wangfujing // pagerParser[198] = function (document) { // return pagerParser.template('.itemList>li', 'a[id^="catalogEntry_img"]', 'dl .nprice') // } //meilele pagerParser[201] = function (document) { return pagerParser.template('.list-goods:first-child>li', 'a', '.JS_async_price'); }; //supuy pagerParser[210] = function (document) { return pagerParser.template('#ul_content>li', '.list_good_img>a', '.list_good_price_new'); }; //lining pagerParser[213] = function (document) { return pagerParser.template('.cate_search_content .selItem', 'a', '.hprice.price'); }; //rrs pagerParser[217] = function (document) { return pagerParser.template('.product_list>li', 'a', 'div>b'); }; //coocaa pagerParser[218] = function (document) { var items = document.querySelectorAll('#tv_list>ul>li'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a').href.replace('get', 'goodsDetailBuy'); var price = items[i].querySelector('.product_show_right_price').textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //lifevc pagerParser[220] = function (document) { return pagerParser.template('.productPic', 'a.proPic', '.productPrice'); }; //kzj365 pagerParser[222] = function (document) { var items = document.querySelectorAll('.goodsItem>li'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a').href; var price = items[i].querySelector('.price').childNodes[0].textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //kaola pagerParser[223] = function (document) { return pagerParser.template('#result>li', 'a', '.cur'); }; //ymatou pagerParser[224] = function (document) { return pagerParser.template('#product-list >li', 'a.product-img', '.price'); }; //metao pagerParser[225] = function (document) { if (document.querySelectorAll('.special-ul').length) { return pagerParser.template('.special-ul>li', 'a', '.s-product-sale-price'); } var items = document.querySelectorAll('.prod-list.prod-cols3-list:first-child>li'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a').href; var price = items[i].querySelector('.price').childNodes[0].textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //kjt pagerParser[226] = function (document) { return pagerParser.template('.prolist.listhover>li', '.img a', '.price.price16'); }; //logitech pagerParser[227] = function (document) { return pagerParser.template('.productList-list-ul>li', '.p-img a', '.price>strong'); }; //amazon_us pagerParser[228] = pagerParser[1]; //amazon_jp pagerParser[229] = pagerParser[1]; //xiji pagerParser[232] = function (document) { return pagerParser.template('.gallery-grid ul>li', 'a', '.goods-price ins.price'); }; //nike pagerParser[233] = function (document) { return pagerParser.template('.grid-item', '.grid-item-image a', '.prices>.local'); }; //360kad pagerParser[234] = function (document) { return pagerParser.template('.Productlist>li', '.pic>a', '.pri'); }; //lbxcn pagerParser[235] = function (document) { return pagerParser.template('.search_cholist>ul>li', '.ucol_p_img>a', '.ucol_p_wod span:nth-child(1)'); }; //meici pagerParser[236] = function (document) { return pagerParser.template('#product-list>ul>li', 'a', '.product_p .c_purple, .product_p .product_active'); }; //beibei pagerParser[237] = function (document) { var items = document.querySelectorAll('.view-ItemListItem'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a').href; var price = [items[i].querySelector('.price-int').textContent.trim(), items[i].querySelector('.price-decimal').textContent.trim()].join(''); r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //6pm pagerParser[238] = function (document) { // return pagerParser.template('#searchResults>a','','.price-6pm') var items = document.querySelectorAll('#searchResults>a'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].href; var price = items[i].querySelector('.price-6pm').textContent.trim(); r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //shopbop pagerParser[241] = function (document) { return pagerParser.template('.product-list>ul>li', 'a.photo', '.retail-price'); }; //amazon_de pagerParser[246] = function (document) { var r = []; var items = document.querySelectorAll('.s-result-item'); for (var i = 0; i < items.length; ++i) { try { var img = items[i].querySelector('.s-access-image'); while (!img.parentNode.href && img.parentNode != document.body) { img = img.parentNode; } if (img.parentNode == document.body) { continue; } var href = img.parentNode.href; var price = items[i].querySelector('div>.a-spacing-mini>.a-spacing-none>a>span'); if (!price) { price = items[i].querySelector('span.a-color-price'); } r.push({ 'url': href, 'price': pagerParser.priceFormatter(price.textContent, ',', '.', 246), 'crc32': '' }); } catch (e) { continue; } } return r; }; //ashford pagerParser[247] = function (document) { return pagerParser.template('.automaticScrollProductsList>div', 'a', '.product-price'); }; //lookfantastic pagerParser[248] = function (document) { return pagerParser.template('#divSearchResults>div>div', '.product-image>a:first-child', '.item_price'); }; //vsigo pagerParser[252] = function (document) { return pagerParser.template('.search_lst>ul>li', '.Npro_img>a', '.sigoprice'); }; //100yue pagerParser[256] = function (document) { return pagerParser.template('.cont-gd>li', 'a', '.new-price>span:first-child'); }; //amazon_uk pagerParser[266] = function (document) { return pagerParser.template('#resultsCol ul.s-result-list>li', 'a.a-link-normal', '.a-color-price'); }; //daling pagerParser[267] = function (document) { return pagerParser.template('.searchlist>ul>li', 'a', '.now-price'); }; //fengqu pagerParser[268] = function (document) { return pagerParser.template('.product-1-list>li', 'a', 'strong'); }; //mei pagerParser[269] = function (document) { return pagerParser.template('#contentDiv>div.listproduct', 'a', 'span.red'); }; //showjoy pagerParser[270] = function (document) { return pagerParser.template('.widget-brick-item', '.brick-pic', '.price'); }; //ocj pagerParser[271] = function (document) { if (document.querySelectorAll('.pv_shop_list_content.normal_list').length) { return pagerParser.template('.pv_shop_list_content>div.item1', 'a', '.price>em'); } return pagerParser.template('.item1', '.image a', '.price>em'); }; //sundan pagerParser[272] = function (document) { return pagerParser.template('#gallery_show ul>li', '.goods-pic>a', '.price'); }; //easeeyes pagerParser[273] = function (document) { return pagerParser.template('.itemSearchResult.box-items-result>ul>li', '.images a', '.price>strong'); }; //yunhou pagerParser[274] = function (document) { return pagerParser.template('.goods-lists>div', 'a.goods-img', '.p-normal'); }; //haituncun pagerParser[275] = function (document) { return pagerParser.template('.products-grid>li', 'a.product-image', '.regular-price'); }; //walmart pagerParser[276] = function (document) { return pagerParser.template('#tile-container>div', '.js-product-title', '.price-display'); }; //vmei pagerParser[277] = function (document) { return pagerParser.template('.product_list.product_list_v2>ul>li', '.pic', '.price>strong'); }; //51din pagerParser[279] = function (document) { return pagerParser.template('#result>ul', 'a.img_figure', '.boutique_price'); }; //aidai pagerParser[280] = function (document) { var items = document.querySelectorAll('#proNum>li'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a[href^="/Pro"]').href; var price = items[i].querySelector('.proprice'); price = price.childNodes[price.childNodes.length - 1].textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //boqii pagerParser[281] = function (document) { return pagerParser.template('.product_list>li', 'a', 'strong[id^="priceat"]'); }; //spider pagerParser[284] = function (document) { if (document.querySelectorAll('.rsltAll').length) { return pagerParser.template('.rsltAll>ul>li', 'a', '.red2'); } if (document.querySelectorAll('.produclb_cp1').length) { return pagerParser.template('.produclb_cp>.produclb_cp1', 'a', '.font14_red'); } //http://www.spider.com.cn/461970-323-100120.html return pagerParser.template('.prstgdlist>li', 'a', '.f18'); }; //jiae pagerParser[286] = function (document) { return pagerParser.template('.j-item-list-li', '.a-pic', '.item-price'); }; //zazhipu pagerParser[287] = function (document) { return pagerParser.template('#itemList>li', 'a', '.mod_price:first-child'); }; //xgdq pagerParser[288] = function (document) { return pagerParser.template('#gallery_show ul>li', 'a', '.goods-price ins'); }; //xtep pagerParser[289] = function (document) { var doc = document.querySelector('iframe#m').contentWindow.document; var items = doc.querySelectorAll('.pro_list>li'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('.pro_img').href; var price = items[i].querySelector('.pro_price>span>b').textContent.trim(); r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //midea pagerParser[290] = function (document) { return pagerParser.template('.hproduct', 'a', '.price>em'); }; //staples pagerParser[291] = function (document) { return pagerParser.template('.cg_mainContent>div.cg_pro', 'a', '.pro_price>strong'); }; //efotile pagerParser[292] = function (document) { return pagerParser.template('.result>ul>li', 'a', '.item-price'); }; //lovo pagerParser[294] = function (document) { return pagerParser.template('.prolistitems', '.ad-image-wrapper a', 'big.jiacu'); }; //hua pagerParser[295] = function (document) { return pagerParser.template('.grid-item', '.img-box a', '.price-num'); }; //tuhu pagerParser[299] = function (document) { return pagerParser.template('.List tr', 'a.DisplayName', '.price>strong'); }; //taqu pagerParser[313] = function (document) { return pagerParser.template('.p-list>li.p-item', '.p-pic a', '.p-price-current'); }; //bl pagerParser[347] = function (document) { return pagerParser.template('.pro-class>li', '.pro-img>a', '.money-fl'); }; //bestinfoods pagerParser[348] = function (document) { return pagerParser.template('.items-gallery', 'a', '.price1'); }; //163 pagerParser[349] = function (document) { return pagerParser.template('#j-searchList>li', '.hd>a', '.price>span'); }; //guojimami pagerParser[351] = function (document) { return pagerParser.template('.gmg', 'a', '.shop_prices'); }; //baiyangwang pagerParser[352] = function (document) { return pagerParser.template('.g-d-ul>li', '.pic', 'span[id^="JgoodsPrice"]'); }; //tao3c /* pagerParser[111] = function(document) { return pagerParser.merge( pagerParser.slice.call(document.querySelectorAll('#plist a>img')) .map(function(v){ return v.parentNode.href }) , pagerParser.slice.call(document.querySelectorAll('#plist .pd4>span')) .map(function(v) {return v.textContent }) ) } */ //feifei pagerParser[181] = function (document) { var items = document.querySelectorAll('.sku-ul>li'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a').href; var price = items[i].querySelector('.wsl-price.j-wsl-price').childNodes[0].textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //purcotton pagerParser[364] = function (document) { var items = document.querySelectorAll('#productResultList>li'); var r = []; var MallPath = 'http://www.purcotton.com'; for (var i = 0; i < items.length; ++i) { try { var a = items[i].querySelector('a[onclick^="toDetail"]'); var prodNo = a.getAttribute('onclick').match(/[\d-]+/)[0]; var number = prodNo.substr(prodNo.length - 3); var href = MallPath + "/detail/" + number + "/" + prodNo + ".html"; var price = items[i].querySelector('.aprice').textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //amazon_fr pagerParser[365] = function (document) { var items = document.querySelectorAll('#s-results-list-atf>li'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('.a-link-normal').href; var price = items[i].querySelector('.a-color-price').textContent.trim(); r.push({ 'url': href, 'price': pagerParser.priceFormatter(price, ',', '.'), 'crc32': '' }); } catch (e) { continue; } } return r; }; //amazon_ca pagerParser[366] = pagerParser[1]; //wstx pagerParser[367] = function (document) { return pagerParser.template('.goods-item', '.figure-img>a', '.price>b'); }; //hisense pagerParser[368] = function (document) { return pagerParser.template('.product-list>ul>li', 'a', '.price>.red'); }; //zhongjiu pagerParser[369] = function (document) { return pagerParser.template('.list-h>li', '.p-img>a', '.p-price>strong'); }; //kaluli pagerParser[370] = function (document) { return pagerParser.template('.p-l-grid>ul>li', 'a', '.price .red'); }; //to8to pagerParser[371] = function (document) { return pagerParser.template('#goodsList:first-child>li', 'a', '.cur_pric .pri_msg .f_arial'); }; //opposhop pagerParser[372] = function (document) { return pagerParser.template('.grid-special>.box', 'a', '.box-price strong'); }; //baobeigezi pagerParser[373] = function (document) { return pagerParser.template('#main_list > .pro_item', '.pro_infor_img', '.pro_price'); }; //yao123 pagerParser[374] = function (document) { return pagerParser.template('.product-list>ul>li', '.items>a:nth-child(1)', '.opr'); }; //gionee pagerParser[376] = function (document) { return pagerParser.template('ul#JmobileList>li', 'a.ui_pimg', '.ui_pprice'); }; //suanjuzi pagerParser[377] = function (document) { return pagerParser.template('#gallery_show ul>li', '.goods-pic>a', 'ins.price'); }; //aomygod pagerParser[378] = function (document) { return pagerParser.template('.goods-lists>div', 'a.goods-img', '.goods-price>.p-normal'); }; //luolai pagerParser[379] = function (document) { return pagerParser.template('.gallery-grid>ul>li', '.goods-pic>a', 'ins.price'); }; //vivo pagerParser[380] = function (document) { return pagerParser.template('.prod-list>li', 'a', 'p'); }; //dixintong pagerParser[381] = function (document) { return pagerParser.template('.GoodsList>li', 'a', '.goodsprice>span'); }; //coolpad pagerParser[382] = function (document) { return pagerParser.template('.goods-ul-box li', 'a', '.price'); }; //skg pagerParser[383] = function (document) { return pagerParser.template('.goods_list.clearfix>li', 'a.gimg', 'p.gprice'); }; //aolaigo pagerParser[385] = function (document) { return pagerParser.template('.pro>ul>li', 'dl>dd:nth-child(1)>a', '.valc-n>span:nth-child(2)'); }; module.exports = pagerParser; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "b8226e22112290600083": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $, regeneratorRuntime) { var _this = this; var getCoupon = __webpack_require__("2eb8d6935e044e0d6d06"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); var globalData = { tmall: [], taobao: [] }; var minPriceObj = {}; var minPriceStatus = {}; var sizeObj = {}, totalObj = {}; var renderCoupon = function renderCoupon(data, type, isBottom) { sizeObj[type]++; if (data && data.data) globalData[type].push(data.data); if (sizeObj[type] === totalObj[type]) { if (isBottom) { renderProdutBt(type, isBottom); } else { renderProdut(type); } if (G.aliSite) { // 如果是淘宝天猫,当前商品没有优惠券,需要吧比价结果里面有优惠券的商品在中间展示 console.log('renderCoupon', data); // 元旦红包时暂停显示 // if (new Date() < new Date('2020-01-10T23:59:59')) { // return // } if (G.runminiCoup === '1') { __webpack_require__("aac0839f8078e3c8248c").init(globalData, '.gwd-minibar-bg'); } else if (!G.runminiCoup) { G.runminiCoupon2 = true; $(document).on('runminiCoupon2', function () { __webpack_require__("aac0839f8078e3c8248c").init(globalData, '.gwd-minibar-bg'); }); } } } }; var renderProdutBt = function renderProdutBt(type, bdata) { // 渲染底部优惠券 var arr = globalData[type]; for (var i = 0; i < bdata.length; i++) { for (var j = 0; j < arr.length; j++) { if (bdata[i] && arr[j] && bdata[i].num_iid == arr[j].reqid) { var lastP = (Number(bdata[i].price) - arr[j].coupon.coupon_money).toFixed(2); if (Number(lastP) < 0) continue; if (Number(lastP) < minPriceObj[type] && lastP > 0) { minPriceObj[type] = lastP; minPriceStatus[type] = true; } var coupon_money = arr[j].coupon.coupon_money; bdata[i].url = arr[j].click_url2; bdata[i].tspan = '<span class="coupon_span">领' + coupon_money + '元券</span>'; bdata[i].ta = '<div class="coupon_price">\n <span class="coupon_price_span">\n <span class="cou-pri-sp1">券后价:</span>\n <span class="cou-pri-sp2 prifontf">¥' + lastP + '</span>\n <span class="cou-pri-sp3 prifontf">¥' + bdata[i].price + '</span>\n </span>\n </div>'; break; } } } if (minPriceStatus[type]) { if (type === 'taobao') { $('.compare-list li[data-id="tbcompare"] .com-item-pri').text('¥' + minPriceObj[type]); } else { $('.compare-list li[data-id="tmcompare"] .com-item-pri').text('¥' + minPriceObj[type]); } } globalCondition.setMet('bottomCouponReady-' + (type === 'taobao' ? 'tbcompare' : 'tmcompare')); }; var renderProdut = function renderProdut(type) { // 渲染顶部优惠券 var ul = $('#' + type + '-item-list li'); var len = ul.length; var arr = globalData[type]; var _loop = function (i) { var id = ul.eq(i).attr('data-id'); for (var j = 0; j < arr.length; j++) { if (arr[j] && arr[j].reqid == id) { ul.eq(i).find('.small-img').append($('<span class="coupon_span">领' + arr[j].coupon.coupon_money + '元券</span>')); ul.eq(i).find('a').attr('href', arr[j].click_url2); ul.eq(i).find('a').on('click', function (e) { e.preventDefault(); var adzone_id = '10003'; if (G.aliSite) adzone_id = '10004'; getCoupon.init(id, adzone_id, function (data) { window.open(data.data.click_url2); }); }); var price = ul.eq(i).find('span.gwd-price').text(); var lastP = (Number(price.replace(/[¥¥]/g, '')) - arr[j].coupon.coupon_money).toFixed(2); if (Number(lastP) < 0) continue; if (Number(lastP) < minPriceObj[type]) { minPriceObj[type] = lastP; minPriceStatus[type] = true; } ul.eq(i).find('.gwd-price').after($('<div class="coupon_price">\n <span class="cou-pri-sp1">券后价:</span>\n <span class="cou-pri-sp2 prifontf">¥' + lastP + '</span>\n <span class="cou-pri-sp3 prifontf">' + price + '</span>\n </div>')).remove(); } } }; for (var i = 0; i < len; i++) { _loop(i); } if (minPriceStatus[type]) { if (type == 'taobao') { $('#tb_compare .tab-sp2').text('¥' + minPriceObj[type]); } else { $('#tm_compare .tab-sp2').text('¥' + minPriceObj[type]); } } }; // 比价结果部分的优惠券 module.exports.init = function callee$0$0(data, type, isBottom, minpri) { var f2, adzone_id, i; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!G.forbidCoupon) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: if (data) { context$1$0.next = 4; break; } return context$1$0.abrupt('return'); case 4: if (data.length) { context$1$0.next = 6; break; } return context$1$0.abrupt('return'); case 6: minPriceObj[type] = minpri; totalObj[type] = data.length; sizeObj[type] = 0; if (isBottom) isBottom = data; f2 = function f2(newData) { renderCoupon(newData, type, isBottom); }; adzone_id = '10003'; if (G.aliSite) adzone_id = '10004'; G.arrToCheck = data.map(function (x) { return x.num_iid; }); $('#tb_compare').hover(function () { globalCondition.setMet('aliCouponAllowed'); }); $('#tm_compare').hover(function () { globalCondition.setMet('aliCouponAllowed'); }); $('.compare-box').hover(function () { globalCondition.setMet('aliCouponAllowed'); }); $('.compare-list li[data-id="tbcompare"]').hover(function () { globalCondition.setMet('aliCouponAllowed'); }); $('.compare-list li[data-id="tmcompare"]').hover(function () { globalCondition.setMet('aliCouponAllowed'); }); context$1$0.next = 21; return regeneratorRuntime.awrap(globalCondition.met('aliCouponAllowed')); case 21: for (i = 0; i < data.length; i++) { getCoupon.init(data[i].num_iid, adzone_id, f2, false); } case 22: case 'end': return context$1$0.stop(); } }, null, _this); }; // forbidCoupon entry部分给的值 可能会针对特定地区屏蔽 /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "b99206afdb5411c58b0e": /***/ (function(module, exports) { module.exports = "<div class=\"orign-pri-info\">\n {{if lowest_obj.nowprice}}\n <span class=\"opi-sp1 nowpri\">现价:</span>\n <span class=\"opi-sp2 nowpri\">¥{{lowest_obj.nowprice}}</span>\n {{else}}\n <span class=\"opi-sp1\">最高:</span>\n <span class=\"opi-sp2\">{{currency}}{{lowest_obj.Phighest}}</span>\n <span class=\"opi-sp3\">{{lowtle}}</span>\n <span class=\"opi-sp4\">{{currency}}{{lowest_obj.Plowest}}</span>\n <span class=\"opi-sp5\">{{lowestDate}}</span>\n {{/if}}\n</div>\n{{if lowest_obj2 && lowestDate2}}\n <div class=\"promo-pri-info\">\n {{if !lowest_obj.nowprice}}\n <span class=\"ppi-sp1\"></span>\n {{/if}}\n <span class=\"ppi-sp2\">最低(需凑单):</span>\n <span class=\"ppi-sp3\">{{currency}}{{lowest_obj2.Plowest}}</span>\n <span class=\"ppi-sp4\">{{lowestDate2}}</span>\n \n </div>\n{{/if}}\n\n{{if promoUrl}}\n<!-- <a href=\"{{promoUrl}}\" class=\"promo-history-link\" target=\"_blank\">历史促销明细></a>-->\n{{/if}}" /***/ }), /***/ "ba004501820aed46ea98": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("e1295245ec2ddb5b21e1"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("6fd7c3bb", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QRLinkLeft.vue?vue&type=style&index=0&id=b671e2be&scoped=true&lang=less&", function() { var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QRLinkLeft.vue?vue&type=style&index=0&id=b671e2be&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "bab2599cd0670e2b19ff": /***/ (function(module, exports) { module.exports = "<div id=\"trend_com_detail\" class=\"trend-com-detail\">\n <p>同款比价</p>\n <ul>\n {{each data}}\n <li>\n <a href=\"{{$value.url}}\" target=\"_blank\">\n <img src=\"{{$value.icourl}}\">\n <span class=\"t-com-sitename\" title=\"{{$value.site_name}}\">{{$value.site_name}}</span>\n <span class=\"t-com-price prifontf\">¥{{$value.price}}</span>\n </a>\n </li>\n {{/each}}\n </ul>\n {{if storeSize > 6}}\n <a href=\"{{allLink}}\" target=\"_blank\" class=\"t-all-link\">\n 查看全部({{storeSize}})\n </a>\n {{/if}}\n <style type=\"text/css\">\n div#mini_price_history_detail {\n width: 672px;\n }\n .trend-com-detail {\n height: 100%;\n width: 210px;\n float: left;\n border-left: 1px solid #e6e9eb;\n }\n .trend-com-detail * {\n float: left;\n }\n .trend-com-detail>p {\n color: #404547;\n line-height: 37px;\n float: left;\n width: 210px;\n font-size: 13px;\n text-align: center;\n padding: 0px;\n margin: 0px;\n background-color: #FBFBFB;\n }\n .trend-com-detail ul li {\n height: 40px;\n list-style: none;\n width: 210px;\n background-color: #fff;\n }\n .trend-com-detail ul li:hover {\n background-color: #EDF1F2;\n }\n .trend-com-detail ul li a {\n width: 210px;\n height: 40px;\n }\n .trend-com-detail li img {\n height: 16px;\n width: 16px;\n margin: 12px 8px 12px 10px;\n }\n .trend-com-detail span.t-com-sitename {\n line-height: 40px;\n width: 78px;\n height: 40px;\n text-align: left;\n overflow: hidden;\n color: #404547;\n }\n .trend-com-detail span.t-com-price {\n float: right;\n margin-right: 10px;\n line-height: 40px;\n color: #DE3935;\n font-size: 14px;\n font-weight: bold;\n }\n #mini_price_history .t-all-link {\n font-weight: 400;\n font-size: 12px;\n line-height: 17px;\n height: 17px;\n float: right;\n margin-right: 10px;\n margin-top: 10px;\n color: #999!important;\n text-decoration: none!important;\n }\n #mini_price_history .t-all-link:hover {\n color: #5ebeff!important;\n }\n </style>\n</div>\n" /***/ }), /***/ "babca2a4632382485f5f": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("b1a1dff154ace0dec0e9"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("367a3a40", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QrError.vue?vue&type=style&index=0&id=29b33b2e&scoped=true&lang=less&", function() { var newContent = require("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QrError.vue?vue&type=style&index=0&id=29b33b2e&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "bb230b042f0d058f8c66": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var history = __webpack_require__("e97d380adaf6122c0aa9"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var util = __webpack_require__("d54879e983a83d07f093"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var historySize = 0; var go_union = __webpack_require__("8dc7f5a7e7a7f98e12b6"); var global2 = __webpack_require__("1c640a99db9f6f8a16c2"); var siteInfo = __webpack_require__("5e05e6f5fe79ccf5d009"); var renderBtnBottom = function renderBtnBottom() { var btnHtml = '<a id="' + G.extBrand + '_history" class="' + G.extBrand + '-close-module"> <span><em></em>浏览历史</span></a>'; var dom = $('.' + G.extBrand + '_option_setting'); dom.after(template.compile(btnHtml)()); }; var fixtop = function fixtop() { /*修改了dom结构和css文件,为了不影响本地版本,不能直接修改原有的css属性,只能通过添加类名覆盖之前的属性*/ $('#' + G.extName + '-feed-close').addClass('_newbar1'); $('#' + G.extName + '-main').addClass('_newbar2'); }; var renderBtnTop = function renderBtnTop() { fixtop(); var btnHtml = '<div id="gwd_history" class="gwdang-tab">\n <span class="btn-tab-sp">\n <em class="gwd_bg"></em>\n <span class="tab-sp1 blkcolor1">浏览历史</span>\n </span>\n </div>'; $('.search-mod').after(template.compile(btnHtml)()); $('#gwd_history').show(); __webpack_require__("1c640a99db9f6f8a16c2").autoFixWidth(); }; var renderBtn = function renderBtn() { var perinfo = userData.get('permanent'); if (perinfo.style == 'top') { renderBtnTop(); } else if (perinfo.style == 'bottom') { renderBtnBottom(); } }; var historyGot = false; var renderDetailHtml = function renderDetailHtml(dom, data, height) { var html = __webpack_require__("31b428c6916433ff2380"); $(dom).append(template.compile(html)({ 'data': data, 's_server': G.s_server, 'his_size': historySize, extName: G.extName })); }; var renderDetail = function renderDetail(data, height) { var perinfo = userData.get('permanent'); if (perinfo.style == 'top') { renderDetailHtml($('#gwd_history'), data, height); } else if (perinfo.style == 'bottom') { renderDetailHtml('#bjd_bottom_detail', data, height); } }; var calHeight = function calHeight() { if (historySize >= 4) return 343;else { return historySize * 75 + (historySize - 1) * 14 + 1; } }; var addUnion = function addUnion(data) { var newdata = []; for (var i = 0; i < data.length; i++) { if (!data[i].url) continue; var site = siteInfo.isProductPage(data[i].url); var obj = { 'site_id': data[i].site_id, 'url': data[i].url, 'mod': 'history', 'union': G.union.split('_')[1], 'dp_id': data[i].dp_id }; data[i].url = go_union.init(obj); data[i].currency = __webpack_require__("9bf6d059e9a265559f0c").getMoneyInfo(site)[0]; data[i].site = site; newdata.push(data[i]); } return newdata; }; var render = function render(data) { historyGot = true; if (!data || data.length == 0) return; data = addUnion(data.slice(0, 10)); historySize = data.length; var height = calHeight(); renderBtn(); renderDetail(data, height); addEvent(historySize); }; var addEvent = function addEvent(size) { var timer = undefined, loadImg = undefined, setLeft = undefined; var ren = function ren() { if (!loadImg) { loadImg = true; global2.loadImg(0, size, $('#history_detail li .item_img img')); } if (!setLeft) { util.setSimplePagePos($('#gwd_history'), $('#history_detail'), 288); setLeft = true; } $('#' + G.extBrand + '_history').addClass('history_hover'); $('#history_detail').show(); }; ren(); $('#' + G.extBrand + '_history').on('mouseenter', ren); $('#' + G.extBrand + '_history').on('mouseleave', function () { timer = setTimeout(function () { $('#' + G.extBrand + '_history').removeClass('history_hover'); $('#history_detail').hide(); }, 200); }); $('#history_detail').on('mouseenter', function () { clearTimeout(timer); }); $('#history_detail').on('mouseleave', function () { $('#' + G.extBrand + '_history').removeClass('history_hover'); $('#history_detail').hide(); }); $('#history_detail .item_close_btn').on('click', function () { var id = $(this).attr('data-id'); historySize--; delHistory($(this).parents('li'), id); }); $('#history_detail .clear_his').on('click', function () { clearHistory(); }); }; var getHistory = function getHistory() { history.get(render); }; var clearHistory = function clearHistory() { history.delAll(function () { $('.history_detail .history_content ul').empty(); $('.history_detail .history_content').addClass('no-his-content'); $('.history_detail .history_content').height(76); $('.clear_his').hide(); }); }; var setHistory = function setHistory() { /*因为没有抓取屏蔽淘宝天猫*/ var other_info = userData.get('other_info'); var dp_id = other_info && other_info.now && other_info.now.dp_id; if (G.site != 'taobao' && G.site != 'tmall') history.add(dp_id); }; var delHistory = function delHistory(obj, id) { var height = calHeight(); history.del(id, function () { $(obj).remove(); if (height == 343) return; if (historySize === 0) { $('.history_detail .history_content').addClass('no-his-content'); $('.clear_his').hide(); return; } $('.history_detail .history_content').height(height); }); }; module.exports.init = function () { //getHistory() $('#' + G.extBrand + '_history').on('mouseenter', function () { if (!historyGot) { getHistory(); } }); setHistory(); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "bb302187f0e95a99e59e": /***/ (function(module, exports) { module.exports = "<div class=\"gwd-minibar-bg\">\n <div id=\"gwd_minibar\" class=\"{{if aliSite}}alisite_page {{/if}}\" style=\"display: flex\">\n <a class=\"gwd_website\" title=\"购物党\" id=\"gwd_website_icon\" target=\"_blank\" href=\"https://www.gwdang.com\">\n <em class=\"setting-bg website_icon\"></em>\n </a>\n <div style=\"flex: 1\" id=\"mini_price_history\" class=\"minibar-tab\"></div>\n <div style=\"flex: 1\" id=\"gwd_mini_compare\" class=\"minibar-tab\"></div>\n {{if newTime}}\n <div style=\"flex: 1\" id=\"gwd_mini_seckill\" class=\"minibar-tab\">\n <div class=\"minibar-btn-box\">\n <em class=\"\"></em>\n <span>抢购提醒</span>\n </div>\n </div>\n {{else}}\n <div style=\"flex: 1\" id=\"gwd_mini_remind\" class=\"minibar-tab\">\n <div class=\"minibar-btn-box\">\n <em class=\"setting-bg collect_mailout_icon\"></em>\n <span>降价提醒</span>\n </div>\n </div>\n {{/if}}\n </div>\n <div class=\"gwd-mini-placeholder gwd-price-protect\"></div>\n <div class=\"gwd-mini-placeholder\" id=\"gwd-coupon-placeholder\"></div>\n <div class=\"gwd-mini-placeholder\" id=\"gwd-dsj-placeholder\"></div>\n <div id=\"promo_box\"></div>\n</div>\n<style>\n .gwd-mini-placeholder {\n display: none;\n }\n\n .gwd-minibar-element {\n border-left: 1px solid #e8e8e8;\n border-right: 1px solid #e8e8e8;\n border-bottom: 1px solid #e8e8e8;\n }\n\n .gwd-minibar-element:last-of-type {\n border-bottom: 1px solid #e8e8e8;\n }\n</style>" /***/ }), /***/ "be3ebc245c70ce8744cc": /***/ (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__("8896bf15e5230f0c5970"); 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("296d12a3", 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!./CommonLogin.vue?vue&type=style&index=1&id=5efee9c0&scoped=true&lang=less&data-class-type=gwd-favor&", 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!./CommonLogin.vue?vue&type=style&index=1&id=5efee9c0&scoped=true&lang=less&data-class-type=gwd-favor&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "be85ec117a8e337ebbac": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var event = __webpack_require__("74ff18b26ae830696f53"); event(G); module.exports = function () { var plugins = []; if (G.plugins) plugins = plugins.concat(G.plugins); for (var i = plugins.length - 1; i >= 0; i--) { var plugin = plugins[i]; if (plugin && plugin._init) try { plugin._init(); } catch (e) { /* eslint-disable */ if (false) throw e; /* eslint-enable */ } }; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "bec69fc5a048e8a91d39": /***/ (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__("3c6362239b66cef1f39f"); 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("435eb8c8", 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!./GiftMoneyTop.vue?vue&type=style&index=0&id=770fdd33&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!./GiftMoneyTop.vue?vue&type=style&index=0&id=770fdd33&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(); }); } /***/ }), /***/ "beec10bfe871446903ae": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var dict = { '360buy': [[/^(?:http|https):\/\/www\.jd\.com\/pinpai\/.*\.html/, '#J_goodsList', '#plist .list-h'], [/^(?:http|https):\/\/search\.jd\.com\/Search\?keyword/i, '#J_goodsList li', '#plist .list-h'], [/^(?:http|https):\/\/list\.jd\.com/, '#J_main li'], [/^(?:http|https):\/\/sale\.jd\.com/, 'div.layoutcontainer .layoutarea .layout .layout_one']], // 'vipshop':[ // [/^(?:http|https):\/\/list\.vip\.com/, '.pro_list'], // [/^(?:http|https):\/\/act\.vip\.com/, '.floor li', '.act li', '.lh_list'], // [/^(?:http|https):\/\/category\.vip\.com/, '#bulidFloor', '.m-cat-list'] // ], '51buy': [[/http:\/\/searchex\.yixun\.com/, "#container .goods"], [/http:\/\/event\.yixun\.com/, "ul.item_list_3", 'div.bd'], [/http:\/\/sale\.yixun\.com/, "#J_floorHoliday .bd"], [/http:\/\/event\.yixun\.com\/event\/.*\.html/, '.page_event']], 'tmall': [[/(?:https:|http:)\/\/list\.tmall\.com\/search_product.htm/, '#J_ProductList > .product'], [/(?:https:|http:)\/\/list\.tmall\.hk\/search_product.htm/, '#J_ItemList > .product']], 'amazon': [[/http:\/\/www\.amazon\.cn\/[a-z]\//, 'body']], 'suning': [ // [/http:\/\/sale\.suning\.com/,'div.part'], [/(?:https:|http:)\/\/cuxiao\.suning\.com/, '.head-img-wrapper', '.floor'], [/(?:https:|http:)\/\/list\.suning\.com/, '.grid', '#filter-results li'], [/(?:https:|http:)\/\/search\.suning\.com/, '#filter-results li'], [/(?:https:|http:)\/\/www\.suning\.com/, '#filter-results li']], 'dangdang': [[/http:\/\/www\.dangdang\.com\/brands\//, '.search_list'], [/http:\/\/search\.dangdang\.com/, '.bigimg', '.cloth_good_sort'], [/http:\/\/book\.dangdang\.com/, '#bd_auto ul'], // [/http:\/\/category\.dangdang\.com/,'#bd .shoplist', '#bd .content_list'], [/http:\/\/list\.dangdang\.com/, '#bd .resultlist'], [/http:\/\/promo\.dangdang\.com/, '.promotionslist_wrapper .pro_list', '.promo_activity_wrap'], [/http:\/\/v\.dangdang\.com/, '#bd .v_shop_box'], [/http:\/\/t\.dangdang\.com/, '#bd ul']], 'gome': [[/http:\/\/brand\.gome\.com\.cn/, '.result-wrap'], [/http:\/\/list\.gome\.com\.cn/, '.nSearchWarp-main'], [/http:\/\/prom\.gome\.com\.cn/, '.tpage .paget', '.shangpin_fx'], [/http:\/\/search\.gome\.com\.cn/, '.result-wrap', 'li.product-item']], 'yihaodian': [[/http:\/\/list\.yhd\.com/, '.mod_product_list .mod_search_pro'], [/http:\/\/cms\.yhd\.com/, '#cmsBgPath '], [/http:\/\/search\.yhd\.com/, '.mod_product_list .mod_search_pro']], 'jumei': [[/^(?:http|https):\/\/search\.jumei\.com/, '.products_wrap'], [/^(?:http|https):\/\/hd\.jumei\.com/, '.act_product_list']], 'jumeiglobal': [[/^(?:http|https):\/\/hd\.jumeiglobal\.com/, '.act_product_list', '.model_parent ul']], 'vmall': [[/^(?:http|https):\/\/www\.vmall\.com\/.+/, '.layout'], [/^(?:http|https):\/\/sale\.vmall\.com/, '.guide-bd', '#activity_main'], [/^(?:http|https):\/\/mm\.vmall\.com/, '.new-reserve-top-wrp']], 'feiniu': [[/^(?:http|https):\/\/www\.feiniu\.com\/.+/, '.editDomain', '.productshow', '.exhibition', '#tracker_category'], [/^(?:http|https):\/\/sale\.feiniu\.com/, '.title_bg.cms_pool ul'], [/^(?:http|https):\/\/search\.feiniu\.com/, '#cata_choose_product']], 'yougou': [[/^(?:http|https):\/\/www\.yougou\.com\/.+/, '.yui3-g'], [/^(?:http|https):\/\/seoul\.yougou\.com/, 'div.main_goods', '.yui3-g']], // 'womai':[ // [/^(?:http|https):\/\/www\.womai\.com/, '.wrap ul'], // [/^(?:http|https):\/\/gz\.womai\.com/, '.floors .f_m_cont', '.pglist_main .product_list'], // [/^(?:http|https):\/\/sh\.womai\.com/, '.J-floor', '.wrap ul', '.pglist_main .product_list'] // ], 'kaola': [[/^(?:http|https):\/\/www\.kaola\.com\/.+/, 'li.goods', '.wrap ul']], // 'yintai':[ // [/^(?:http|https):\/\/www\.yintai\.com/, '.yt-wrap', '.p-listInfo'], // [/^(?:http|https):\/\/temai\.yintai\.com/, '.offer-list-product', '#bd'], // [/^(?:http|https):\/\/promotion\.yintai\.com/, '.mp_product'] // ], 'jiuxian': [[/^(?:http|https):\/\/www\.jiuxian\.com\/.+/, '.mainBox', '.sequence_list'], // [/^(?:http|https):\/\/list\.jiuxian\.com/, '.proListSearch'], [/^(?:http|https):\/\/special\.jiuxian\.com/, '.fourbox'] // [/^(?:http|https):\/\/sale\.jiuxian\.com/, '.modeltwo'] ], // 'secoo':[ // [/^(?:http|https):\/\/www\.secoo\.com/, '.floor'], // [/^(?:http|https):\/\/list\.secoo\.com/, '.commodity-list'], // [/^(?:http|https):\/\/search\.secoo\.com/, '.commodity-list'], // [/^(?:http|https):\/\/sale\.secoo\.com/, '.contentSpList'] // ], // 'wbiao':[ // [/^(?:http|https):\/\/www\.wbiao\.cn/, '.act-f', '.watchShow', '#search_goods_list', '.wrap'], // [/^(?:http|https):\/\/search\.wbiao\.cn/, '#search_goods_list'] // ], 'sfbest': [[/^(?:http|https):\/\/www\.sfbest\.com\/.+/, '.sfRight', '.p-list']], 'vancl': [[/^(?:http|https):\/\/s\.vancl\.com/, 'li.productwrapper'] // [/^(?:http|https):\/\/catalog\.vancl\.com/, '#new_tb td'] ], // 'miyabaobei':[ // [/^(?:http|https):\/\/www\.mia\.com/, '.HolidayBackgroundBottom', 'body'] // ], 'fengqu': [[/^(?:http|https):\/\/www\.fengqu\.com\/.+/, '.module']], 'lefeng': [[/^(?:http|https):\/\/search\.lefeng\.com/, '#productDivGroup'], [/^(?:http|https):\/\/brand\.lefeng\.com/, '.makeup']], 'ehaier': [[/^(?:http|https):\/\/search\.ehaier\.com/, 'ul.ul-prolist'], [/^(?:http|https):\/\/www\.ehaier\.com\/.+/, 'ul.ul-excel', '.tab-cont', '.kinds-main']], 'yunhou': [[/^(?:http|https):\/\/search\.yunhou\.com/, '#jGoodsCnt .goods-lists div.cols'], [/^(?:http|https):\/\/list\.yunhou\.com\/.+/, '#jGoodsCnt .goods-lists div.cols']], 'ule': [[/^(?:http|https):\/\/(?!item|www).+\.ule\.com\/.+/, '.goodsList .goodsListBlock li.noPre']], 'banggo': [[/^(?:http|https):\/\/search\.banggo\.com/, '.mbshop_pdList li.mbshop_listPdCon']], 'baobeigezi': [[/^(?:http|https):\/\/search\.baobeigezi\.com/, '#main_list .pro_item'], [/^(?:http|https):\/\/list\.baobeigezi\.com/, '#main_list .pro_item'], [/^(?:http|https):\/\/item\.baobeigezi\.com\/[a-z]+_[0-9]+\//, '#main_list .pro_item']], 'zhongjiu': [[/^(?:http|https):\/\/www\.zhongjiu\.cn\/list\//, '#plist li.clearfix'], [/^(?:http|https):\/\/www\.zhongjiu\.cn\/search\./, '#plist li.clearfix'], [/^(?:http|https):\/\/s\.zhongjiu\.cn\/search\/index/, '.rg_sl_list ul li']] }; var cache = undefined; module.exports.check = function (site) { if (cache) return cache; site = G.site || site; if (!dict[site]) return false; for (var i = dict[site].length - 1; i >= 0; i--) { var p = dict[site][i]; if (p[0].test(location.href)) { cache = p.slice(1); return cache; } }; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "beeed89f0363d0d58668": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_style_index_0_id_44c0e93e_scoped_true_lang_less___ = __webpack_require__("dd7bf03a25fb46a8e88e"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_style_index_0_id_44c0e93e_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_style_index_0_id_44c0e93e_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_style_index_0_id_44c0e93e_scoped_true_lang_less____default.a); /***/ }), /***/ "bf749102803a6e48eddc": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CommonCouponBarMini_vue_vue_type_template_id_3fdd510a_scoped_true___ = __webpack_require__("ede8645cc887bf4d66ec"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__CommonCouponBarMini_vue_vue_type_script_lang_js___ = __webpack_require__("b12786f17e483addefd7"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__CommonCouponBarMini_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__CommonCouponBarMini_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__CommonCouponBarMini_vue_vue_type_style_index_0_id_3fdd510a_scoped_true_lang_less___ = __webpack_require__("c285b98bebfd87c77a38"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__CommonCouponBarMini_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__CommonCouponBarMini_vue_vue_type_template_id_3fdd510a_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__CommonCouponBarMini_vue_vue_type_template_id_3fdd510a_scoped_true___["b" /* staticRenderFns */], false, null, "3fdd510a", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('3fdd510a')) { api.createRecord('3fdd510a', component.options) } else { api.reload('3fdd510a', component.options) } module.hot.accept("./CommonCouponBarMini.vue?vue&type=template&id=3fdd510a&scoped=true&", function () { api.rerender('3fdd510a', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/CommonCouponBarMini.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "bf822aacfeba494ced92": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($) { var cnzz = __webpack_require__("83271c7588396d2d5e59"); var log = __webpack_require__("03dd60018ce5ed1344a1"); module.exports.init = function () { cnzz.log('fine3q:track'); log('fine3q:track'); $('#overview .ov-act').on('click', function (e) { var txt = $(e.target).text(); var url = location.href; if (txt.indexOf('立即购买') > -1 && url.indexOf('gouwudang') > -1) { cnzz.log('fine3q:click'); log('fine3q:click'); } }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "bffd1ad7085454d93e70": /***/ (function(module, exports) { module.exports = "<a href=\"{{ link }}\"\n target=\"_blank\"\n style=\"display: inline-flex; position: relative; vertical-align: middle; margin-left: 5px; width: auto\" class=\"gwd-bottom-tmall {{ extClass }}\">\n <img src=\"{{ img }}\" 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>" /***/ }), /***/ "c05bbcb58c86deadc879": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-coupon-bar[data-v-3fdd510a] {\n font-family: \"Microsoft YaHei\", \"Arial\", \"SimSun\", serif;\n font-size: 12px;\n background: white;\n position: relative;\n border: 1px solid #e8e8e8;\n border-top: none;\n width: 462px;\n box-sizing: border-box;\n height: 38px;\n}\n.gwd-coupon-bar .gwd-round-click[data-v-3fdd510a] {\n margin-left: 24px;\n margin-right: 12px;\n display: block;\n width: 68px;\n height: 20px;\n text-align: center;\n border-radius: 12px;\n color: white;\n font-weight: bold;\n}\n.gwd-coupon-bar .gwd-take[data-v-3fdd510a] {\n margin-right: 12px;\n width: 74px;\n height: 20px;\n font-size: 12px;\n}\n.gwd-coupon-bar .gwd-take span[data-v-3fdd510a] {\n flex: 1;\n text-align: center;\n}\n.gwd-coupon-bar .gwd-qr-hover-window[data-v-3fdd510a] {\n width: 136px;\n height: 160px;\n background: #fff9f6;\n position: absolute;\n box-sizing: border-box;\n border-width: 1px;\n border-style: solid;\n top: 37px;\n left: 345px;\n display: none;\n z-index: 99;\n}\n.gwd-coupon-bar[data-v-3fdd510a]:hover {\n text-decoration: none;\n}\n.gwd-coupon-bar:hover .gwd-qr-hover-window[data-v-3fdd510a] {\n display: flex;\n}\n", ""]); // exports /***/ }), /***/ "c094100594c9871487c2": /***/ (function(module, exports) { module.exports = "<div id=\"bdext_mb_bg\" class=\"{{pagetype}} trend-box{{data.trend}}\">\n <div id=\"bdext_minibar\" >\n <div class=\"bdext-toptabs\">\n <div class=\"bdext-mini-logo\">\n <a >\n <em class=\"bdext-bg\"></em>\n </a>\n \n </div>\n <div class=\"bdext-mini-trend\">\n <em class=\"bdext-bg trend-icon{{data.trend}}\"></em>\n <span >{{data.trendMsg}}</span>\n </div>\n </div>\n </div>\n <div class=\"houset-detail\">\n <div class=\"house-trend-img\">\n <img src=\"\" data-src=\"{{server}}{{data.trendImg}}&width=460&height=210&plotFontSize=10\">\n </div>\n <div class=\"house-price-qrcode\">\n <span class=\"mgtop\">每日成交行情</span>\n <span class=\"red-pri\">房源历史报价</span>\n <img src=\"{{s_server}}/images/extensions/newbar/housepri-qrcode.jpg\">\n <p>扫码关注撸房价</p>\n </div>\n <div class=\"price-range\">\n {{if data.maxPrice == data.minPrice}}\n <span >现价:{{data.maxPrice}}万</span>\n {{else}}\n <span class=\"toppri\">最高价:{{data.maxPrice}}万</span>\n <span class=\"lowpri\">最低价:{{data.minPrice}}万</span>\n {{/if}}\n </div>\n </div>\n</div>" /***/ }), /***/ "c0cdeb31ce8267dc3f97": /***/ (function(module, exports) { module.exports = "<a id=\"coupon_box\" title=\"{{tle}}\" class=\"coupon-box1\" {{if !isShowPic}} href=\"{{data.click_url2}}\" target=\"_blank\" style=\"cursor:pointer\"{{/if}}>\n <span class=\"coupon-icon\"></span>\n <div class=\"coupon-tle\">\n <span>当前商品可领内部券,立减{{data.coupon.coupon_money}}元</span> \n <em class=\"coupon_gif\"></em>\n </div>\n <div class=\"click2get\">\n <span class=\"c2g-sp1\">¥{{data.coupon.coupon_money}}</span>\n <span class=\"c2g-sp2\">领取</span>\n </div>\n {{if picUrl && isShowPic}}\n <div class=\"minicoupon_detail\">\n <img src=\"{{picUrl}}\">\n <span>微信扫码领券</span>\n </div>\n {{/if}}\n <style type=\"text/css\">\n #coupon_box.coupon-box1 {\n width: 460px;\n height: 34px;\n background-color: #fff;\n border: 1px solid #e8e8e8;\n border-top: none;\n position: relative;\n margin: 0px;\n padding: 0px;\n float: left;\n display: block;\n }\n #coupon_box:after {\n display: block;\n content: \"\";\n clear: both;\n }\n .gwd_tmall #gwd_minibar {\n float: none;\n }\n #coupon_box * {\n {{if isShowPic}}\n cursor: default;\n {{else}}\n cursor: pointer;\n {{/if}}\n }\n .minicoupon_detail {\n position: absolute;\n top: 35px;\n right: -1px;\n height: 150px;\n width: 132px;\n display: none;\n z-index: 99999999999;\n background: #FFF7F8;\n border: 1px solid #F95774;\n }\n #coupon_box:hover .minicoupon_detail {\n display: block;\n }\n #coupon_box:hover .gwd-qrcode-container {\n display: flex;\n }\n\n #coupon_box:hover .gwd-qrcode-container {\n right: 0!important;\n margin-right: 0!important;\n z-index: 999;\n }\n\n #coupon_box:hover .gwd-qrcode-jd {\n top: 6px;\n }\n\n .minicoupon_detail img {\n width: 114px;\n height: 114px;\n float: left;\n margin-left: 9px;\n margin-top: 9px;\n }\n .minicoupon_detail span {\n font-size: 14px;\n color: #F95572;\n letter-spacing: 0;\n font-weight: bold;\n float: left;\n height: 12px;\n line-height: 14px;\n width: 100%;\n margin-top: 6px;\n text-align: center;\n }\n .coupon-box1 * {\n font-family: 'Microsoft YaHei',Arial,SimSun;\n }\n .coupon-icon {\n float: left;\n width: 20px;\n height: 20px;\n background: url('https://cdn.gwdang.com/images/extensions/newbar/coupon_icon.png') 0px 0px no-repeat;\n margin: 9px 8px 9px 12px;\n }\n #coupon_box .coupon-tle {\n color: #FF3B5C;\n font-size: 12px;\n margin-right: 11px;\n float: left;\n height: 34px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: 301px;\n line-height: 34px;\n text-decoration: none!important;\n }\n #coupon_box .coupon-tle * {\n color: #f15672;\n }\n #coupon_box .coupon-tle span {\n margin-right: 5px;\n }\n .coupon_gif {\n background: url('https://cdn.gwdang.com/images/extensions/newbar/turn.gif') 0px 0px no-repeat;\n float: right;\n height: 20px;\n width: 56px;\n margin-top: 9px;\n }\n .click2get {\n background: url('https://cdn.gwdang.com/images/extensions/newbar/coupon_01.png') 0px 0px no-repeat;\n float: left;\n height: 30px;\n width: 96px;\n margin-top: 5px;\n }\n .click2get span {\n height: 24px;\n float: left;\n margin-left: 1px;\n }\n .c2g-sp1 {\n width: 50px;\n color: #FF3B5C;\n text-align: center;\n font-size: 14px;\n line-height: 24px!important;\n }\n .c2g-sp2 {\n width: 44px;\n line-height: 24px!important;\n color: #fff!important;\n text-align: center;\n }\n div#gwd_wishlist_div.gwd_wishlist_div {\n border-bottom-right-radius: 0px;\n border-bottom-left-radius: 0px;\n }\n </style>\n</a>" /***/ }), /***/ "c129828bb87b012afcd6": /***/ (function(module, exports) { module.exports = "<div class=\"gwd-steam-verify-btn\">\n <span>访问异常</span>\n <div class=\"detail\">\n <a href=\"{{ url }}\" style=\"margin-top: 20px; font-size: 25px; color: black; border: 1px solid black; border-radius: 10px; display: inline-block\">去验证</a>\n </div>\n</div>\n<style>\n .gwd-steam-verify-btn {\n background: white;\n color: black;\n height: 36px;\n line-height: 36px;\n width: 112px;\n display: inline-block;\n text-align: center;\n position: relative;\n cursor: pointer;\n }\n\n .gwd-steam-verify-btn .detail {\n position: absolute;\n left: 50%;\n width: 300px;\n margin-left: -150px;\n height: 200px;\n top: 36px;\n display: none;\n background: white;\n z-index: 9999;\n color: black\n }\n\n .gwd-steam-verify-btn .detail a::selection {\n background: white;\n color: black;\n }\n\n .gwd-steam-verify-btn:hover .detail {\n display: block;\n }\n\n</style>" /***/ }), /***/ "c17a6432d05d6c46edd5": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__PddActivityQr_vue_vue_type_template_id_984546bc_scoped_true___ = __webpack_require__("0d422131ba03d315b596"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__PddActivityQr_vue_vue_type_script_lang_js___ = __webpack_require__("c93b98f87f58a7165cac"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__PddActivityQr_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__PddActivityQr_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__PddActivityQr_vue_vue_type_style_index_0_id_984546bc_scoped_true_lang_less___ = __webpack_require__("2b7dc049f5da0912d4f2"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__PddActivityQr_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__PddActivityQr_vue_vue_type_template_id_984546bc_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__PddActivityQr_vue_vue_type_template_id_984546bc_scoped_true___["b" /* staticRenderFns */], false, null, "984546bc", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('984546bc')) { api.createRecord('984546bc', component.options) } else { api.reload('984546bc', component.options) } module.hot.accept("./PddActivityQr.vue?vue&type=template&id=984546bc&scoped=true&", function () { api.rerender('984546bc', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/PddActivityQr.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "c19dcdaa9e39f34d9e04": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("b110ddf767e87a112ae3"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("78cca8d4", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./MemberCouponQr.vue?vue&type=style&index=0&id=498face2&scoped=true&lang=less&", function() { var newContent = require("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./MemberCouponQr.vue?vue&type=style&index=0&id=498face2&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "c285b98bebfd87c77a38": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_style_index_0_id_3fdd510a_scoped_true_lang_less___ = __webpack_require__("62fe80c9218a9dbf937f"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_style_index_0_id_3fdd510a_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_style_index_0_id_3fdd510a_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_style_index_0_id_3fdd510a_scoped_true_lang_less____default.a); /***/ }), /***/ "c34de72f35aa6a6171dd": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _assetsPddQrLqPng = __webpack_require__("8c07915b3c5bbc30a2f4"); var _assetsPddQrLqPng2 = _interopRequireDefault(_assetsPddQrLqPng); var _assetsPddQr19Png = __webpack_require__("b6a175f435f78f280146"); var _assetsPddQr19Png2 = _interopRequireDefault(_assetsPddQr19Png); exports['default'] = { props: ['needMouseOver', 'rnd'], computed: { text: function text() { return this.rnd > 0.5 ? '先领券 再下单' : '全场1.9元低价包邮'; }, qr: function qr() { return this.rnd > 0.5 ? _assetsPddQrLqPng2['default'] : _assetsPddQr19Png2['default']; } } }; module.exports = exports['default']; /***/ }), /***/ "c354d994acb241e7d167": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("d0bc5d0317e34c96fd68"); 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("0a2a5a0e", 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!./Special.vue?vue&type=style&index=0&id=07414d06&lang=less&scoped=true&", function() { var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./Special.vue?vue&type=style&index=0&id=07414d06&lang=less&scoped=true&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "c4adb5832af3824ff1c6": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, $, Vue) { var _this = this; var request = __webpack_require__("91f250ebeb8d5987491c"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); var JdRankList = __webpack_require__("1a0cda2f74042332262b")['default']; var util = __webpack_require__("3e983ecbff4e1a29654c"); var jdOriginRank = null; var addLink = function addLink() { var a, id, now_url; return regeneratorRuntime.async(function addLink$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: a = document.createElement('A'); a.innerHTML = '\n <img style="width: 24px; height: 24px; margin-right: 5px;" src="https://cdn.gwdang.com/images/extensions/[email protected]">\n <img src="https://cdn.gwdang.com/images/extensions/switchToPc.svg">\n '; a.id = 'gwd-link'; a.style.position = 'fixed'; a.style.width = '258px'; a.style.height = '43px'; a.style.background = '#e03024'; a.style.borderRadius = '4px'; a.style.top = '50%'; a.style.left = '75%'; a.style.zIndex = 9; a.classList.add('gwd-row'); a.classList.add('gwd-align'); a.style.justifyContent = 'center'; a.id = 'gwd-link-m'; id = location.href.split('product/')[1]; if (id) { context$1$0.next = 21; break; } context$1$0.next = 19; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('GwdDpIdGot')); case 19: id = context$1$0.sent; id = id.replace('-3', '.html'); case 21: now_url = 'https://item.jd.com/' + id; a.href = 'http://u.gwdang.com/union/go?site_id=3&target_url=' + encodeURI(now_url) + '&union=' + G.union + '&column=h5_to_pc'; document.body.appendChild(a); case 24: case 'end': return context$1$0.stop(); } }, null, _this); }; var dpAddRanking = function dpAddRanking(dpId) { var aList, cat, last, lastUrl, res, e, r, catId, link, a, e2; return regeneratorRuntime.async(function dpAddRanking$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: aList = $('.crumb-wrap .crumb.fl .item > a').toArray(); cat = ''; if (aList.length) { last = aList[aList.length - 1]; lastUrl = last.href; cat = util.getParameterByName('cat', lastUrl); } context$1$0.next = 5; return regeneratorRuntime.awrap(request.get(G.server + '/extension/RelatedRank?dp_id=' + dpId + (cat ? '&jcid=' + cat : ''))); case 5: res = context$1$0.sent; e = document.createElement('DIV'); $('.preview-wrap').append(e); r = []; if (res.data) { if (res.data.rank_p) { r = r.concat(res.data.rank_p); } if (res.data.rank_c) { r = r.concat(res.data.rank_c); } } if (r.length) { context$1$0.next = 16; break; } catId = G.dp.cat_id.split('-').join(','); context$1$0.next = 14; return regeneratorRuntime.awrap(request.get(G.server + '/extension/RelatedRank?jcid=' + catId)); case 14: r = context$1$0.sent; r = r.data.rank_c; case 16: if (!r.length && jdOriginRank) { link = 'https://ranking.m.jd.com/comLandingPage/comLandingPage?contentId=' + jdOriginRank.rankId + '&rankType=' + jdOriginRank.rankTypeInt + '&from=gwdang'; link = encodeURIComponent(link); r = [{ rname: jdOriginRank.name.split('·')[0], site_id: '3', s: 1, rurl: 'https://u.gwdang.com/union/go/?site_id=3&target_url=' + link + '&union=union_gwdang&column=rank&crc64=1' }]; } a = document.createElement('A'); a.innerHTML = '查看榜单全部商品'; a.classList.add('gwd-font11'); a.classList.add('gwd-red-after-visit'); a.href = r[0].rurl; a.target = '_blank'; a.style.color = '#7d7e80'; a.style.textDecoration = 'underline'; a.style.position = 'relative'; a.style.top = '-3px'; a.style.display = 'inline-block'; a.style.marginLeft = '15px'; $('.preview-wrap').append(a); new Vue({ el: e, render: function render(h) { return h(JdRankList, { props: { data: r.map(function (item) { return item; }), top: 15, additionalClass: 'gwd-w210' } }); } }); e2 = document.createElement('DIV'); $('.crumb.fl').append(e2); new Vue({ el: e2, render: function render(h) { return h(JdRankList, { props: { data: r.map(function (item) { return item; }), top: -3, additionalClass: 'gwd-w235' } }); } }); // const a2 = document.createElement('A') // a2.innerHTML = '查看' // a2.classList.add('gwd-font11') // a2.classList.add('gwd-red-after-visit') // a2.href = r[0].rurl // a2.target = '_blank' // a2.style.color = '#7d7e80' // a2.style.textDecoration = 'underline' // a2.style.position = 'relative' // a2.style.top = '-3px' // a2.style.display = 'inline-block' // a2.style.marginLeft = '15px' // $('.crumb.fl').append(a2) // setTimeout(() => { // let h = $('#crumb-wrap').height() // debugger // if (h > 50) { // a2.remove() // } // }, 300) case 34: case 'end': return context$1$0.stop(); } }, null, _this); }; var listPageAddRanking = function listPageAddRanking(res) { if (!res || !res.data) { return; } var e = document.createElement('DIV'); $('#J_selectorPrice').after(e); new Vue({ el: e, render: function render(h) { return h(JdRankList, { props: { data: res.data.rank_c, top: -1, additionalClass: 'gwd-w217' } }); } }); }; var searchAddRanking = function searchAddRanking() { var word, res; return regeneratorRuntime.async(function searchAddRanking$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: word = util.getParameterByName('keyword'); context$1$0.next = 3; return regeneratorRuntime.awrap(request.get(G.server + '/extension/RelatedRank?w=' + word)); case 3: res = context$1$0.sent; console.log(res); listPageAddRanking(res); case 6: case 'end': return context$1$0.stop(); } }, null, _this); }; var listAddRanking = function listAddRanking() { var word, res; return regeneratorRuntime.async(function listAddRanking$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: word = util.getParameterByName('cat'); context$1$0.next = 3; return regeneratorRuntime.awrap(request.get(G.server + '/extension/RelatedRank?jcid=' + word)); case 3: res = context$1$0.sent; console.log(res); listPageAddRanking(res); case 6: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports = { init: function init() { var s, dpId; return regeneratorRuntime.async(function init$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!(G.site !== '360buy')) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: console.log('start jdMlink'); s = document.createElement('STYLE'); s.innerHTML = ' .gwd_unfold .fixed { top: initial } '; document.body.appendChild(s); if (location.href.includes('item.m.jd.com/product') || location.href.includes('mitem.jd.hk/product') || location.href.includes('.m.jd.com/product')) { addLink(); } if (!(G.pageInfo.type === 2)) { context$1$0.next = 20; break; } context$1$0.next = 10; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return pageConfig.eventTarget; }, 0)); case 10: console.log(pageConfig.eventTarget); window.pageConfig.eventTarget.addListener('onStockReady', function (e) { console.log('tg', e.stock.data.rankUnited.revertItem); jdOriginRank = e.stock.data.rankUnited.revertItem; }); context$1$0.next = 14; return regeneratorRuntime.awrap(globalCondition.met('GwdDpIdGot')); case 14: dpId = context$1$0.sent; context$1$0.next = 17; return regeneratorRuntime.awrap(globalCondition.met('QRLinkReady')); case 17: dpAddRanking(dpId); context$1$0.next = 21; break; case 20: if (location.href.includes('search.jd.com/Search?keyword')) { searchAddRanking(); } else if (location.href.includes('https://list.jd.com/list.html')) { listAddRanking(); } case 21: case 'end': return context$1$0.stop(); } }, null, this); } }; //console.log('add dpId', dpId) /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "c502d23608c93d09b0b9": /***/ (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_TbGiftMoney_vue_vue_type_style_index_1_lang_css___ = __webpack_require__("c7b15cb1a4a38e28d3f5"); /* 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_TbGiftMoney_vue_vue_type_style_index_1_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_TbGiftMoney_vue_vue_type_style_index_1_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_TbGiftMoney_vue_vue_type_style_index_1_lang_css____default.a); /***/ }), /***/ "c5f3c1ad5d1a9e118fb7": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['promoType', 'priceType', 'price', 'date', 'pagePrice', 'promo', 'coupon'] }; module.exports = exports['default']; /***/ }), /***/ "c62f444e95d32876714d": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_script_lang_js___ = __webpack_require__("dc8abfd81085af16105f"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "c71237894d7ceec4e973": /***/ (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__("355921d1b4aed281311d"); 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("6f93dcb3", 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!./TbGiftMoney.vue?vue&type=style&index=0&id=53cb8bb8&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!./TbGiftMoney.vue?vue&type=style&index=0&id=53cb8bb8&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(); }); } /***/ }), /***/ "c72145693e59d4fc8fe3": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) {var __WEBPACK_AMD_DEFINE_RESULT__;/* * 豆瓣模块 * @version:0.0.1 * @author:CaoYuaYe([email protected]) * @since:2014-05-21 * */ !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var $ = __webpack_require__("e081b2491b5c9b12b9da"); var exports = {}; var taobaoCompare = __webpack_require__("12020911dbadcccd7660"), b2cCompare = __webpack_require__("3b20e893040e45bc8dd9"); function insertTop(data, isbn) { if (!data.rate) { return; } var average = data.rate; $(".gwd-topbar-left").append($("<a>", { 'style': 'height:36px', 'title': '豆瓣评分', 'id': 'douban-top', 'class': 'gwdang-tab', 'target': '_blank', 'href': "https://book.douban.com/subject/" + data.id + "/" }).append($("<span>", { 'class': 'douban-icon' })).append($("<span>", { 'style': 'color:#007610' }).append(average + "分"))); } function insertBottom(data, isbn) { if (!data.rate) { return; } var average = data.rate; $("." + G.extBrand + "-favor-module").eq(0).after($("<div>", { 'id': G.extBrand + "-douban", 'class': G.extBrand + "-close-module " + G.extBrand + "-desc re-" + G.extBrand + "-desc" }).append($("<a>", { 'id': 'goto_douban', 'title': "豆瓣评分", 'href': 'javascript:' }).append($("<div>", { 'class': G.extBrand + "and_douban_icon_bottom" })).append($("<div>", { 'class': G.extName + "_douban_text_bottom" }).append(average + "分")))); //这两个模块的需要设置一下偏移位置,因为插入的豆瓣占据了一定的空间 taobaoCompare.setBottomViewOffset(); b2cCompare.setBottomViewOffset(); } exports.show = function (isbn, type) { if (isbn == null || isbn == "") { return; } var request = __webpack_require__("91f250ebeb8d5987491c"); var url = G.server + "/extension/BookRate?isbn=" + isbn; request.getPure(url).done(function (msg) { if (type == "top") { insertTop(msg, isbn); } if (type == "bottom") { insertBottom(msg, isbn); } }); }; return exports; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "c7b15cb1a4a38e28d3f5": /***/ (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__("92a83c142f1547311c74"); 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!./TbGiftMoney.vue?vue&type=style&index=1&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!./TbGiftMoney.vue?vue&type=style&index=1&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(); }); } /***/ }), /***/ "c815d6a749e99fa1daa5": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var request = __webpack_require__("91f250ebeb8d5987491c"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var util = __webpack_require__("d54879e983a83d07f093"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var pagesite = undefined, urlArr = undefined, clickTime = {}, show_ljfqrcode = true; var ListPattern = { 'lianjia': { list: '.sellListContent li.clear', hrefitem: '.info .title a', insertdom: '.sellListContent li.clear' }, 'maitian': { list: '.list_wrap li.clearfix', hrefitem: '.list_title h1 a', insertdom: '.list_wrap li.clearfix' }, 'lianjia2': { list: '#js-ershoufangList .m-list>ul>li', hrefitem: '.prop-title a', insertdom: '#js-ershoufangList .m-list>ul>li' }, 'ke': { list: '.sellListContent li.clear', hrefitem: '.info .title a', insertdom: '.sellListContent li.clear' }, 'ke2': { list: '.sellListContent li.clear', hrefitem: '.info .title a', insertdom: '.sellListContent li.clear' }, '5i5j': { list: '.pListBox .pList>li:has(.listImg)', hrefitem: 'a', insertdom: '.pListBox .pList>li' }, 'centanet': { list: '.section-houselists .house-item', hrefitem: '.house-title a', insertdom: '.section-houselists .house-item' }, 'centanet2': { list: '.result-lists .house-main .house-item', hrefitem: '.house-title a', insertdom: '.result-lists .house-main .house-item' } }; var dpPattern = { 'lianjia': ['.content .price-container', '#topImg+.info>.price'], 'lianjia2': ['.houseInfo', '.maininfo-price'], 'ke': ['.content .price-container', '#topImg+.info>.price'], 'ke2': ['.houseInfo', '.maininfo-price'], '5i5j': ['.housesty'], 'centanet': ['#sidefixedbox .infotop'], 'centanet2': ['.roombase-infor .roombase-price'], "maitian": ['.home_content .hc_left table tr:first-child', '.home_content .home_infos li:first-child'] }; var siteIdPattern = { 'lianjia': 441, '5i5j': 442, 'ke': 441, 'maitian': 443, 'centanet': 511 }; var getHouseCode = function getHouseCode() { var type = pageType(); var housecode = undefined; if (type == 2) { var url = location.href; switch (G.site) { case 'lianjia': housecode = url.match(/\/([a-z0-9A-Z]+)\.html/)[1]; break; case 'ke': housecode = url.match(/\/([a-z0-9A-Z]+)\.html/)[1]; break; case 'maitian': housecode = url.match(/\/esfxq\/([a-z0-9A-Z]+)/)[1]; break; case '5i5j': housecode = url.match(/\/([a-z0-9]+)\.html/)[1]; break; case 'centanet': housecode = url.match(/\/([a-z0-9]+)\.html/)[1]; break; } } else { var urls = urlArr; switch (G.site) { case 'lianjia': housecode = Array.prototype.map.call(urls, function (e) { return e.match(/\/([a-z0-9A-Z]+)\.html/)[1]; }).join(','); break; case 'ke': housecode = Array.prototype.map.call(urls, function (e) { return e.match(/\/([a-z0-9A-Z]+)\.html/)[1]; }).join(','); break; case 'maitian': housecode = Array.prototype.map.call(urls, function (e) { return e.match(/\/esfxq\/([a-z0-9A-Z]+)/)[1]; }).join(','); break; case '5i5j': housecode = Array.prototype.map.call(urls, function (e) { return e.match(/\/([a-z0-9]+)\.html/)[1]; }).join(','); break; case 'centanet': housecode = Array.prototype.map.call(urls, function (e) { return e.match(/\/([a-z0-9]+)\.html/)[1]; }).join(','); break; } } return housecode; }; var existRemind = function existRemind() { var siteId = siteIdPattern[G.site]; if (!siteId) return; var housecode = getHouseCode(); var url = G.u_house + '/api/house_collection?ac=exist&site_id=' + siteId + '&house_code=' + housecode; request.get(url).done(function (data) { if (data && data.exist) { var list = $('.ht-price-remind'); for (var i = 0; i < list.length; i++) { var code = list.eq(i).attr('data-id'); if (data.exist[code]) { list.eq(i).addClass('hasremind'); list.eq(i).find('span').text('已添加提醒'); list.eq(i).attr('data-colid', data.exist[code]); } } } }); }; var addRemind = function addRemind(code, callback) { if (clickTime[code] >= 4) { return; } if (!clickTime[code]) { clickTime[code] = 1; } clickTime[code]++; var siteId = siteIdPattern[G.site]; var url = G.u_house + '/api/house_collection?ac=add&site_id=' + siteId + '&house_code=' + code + '&from_url=' + encodeURIComponent(location.href); request.get(url).done(function (data) { if (data && data.msg === '收藏成功') { callback(data); } else if (data.msg === '请先登录(不可用)') { location.href = data.loginUrl; } }); }; var delRemind = function delRemind(id, callback) { var url = G.u_house + '/api/house_collection?ac=del&collection_id=' + id; request.get(url).done(function (data) { if (data && data.msg === '删除成功') { callback(); } }); }; var addEvent = function addEvent() { var time = undefined, time2 = undefined; $('.ht-trend-desc, #bdext_minibar .bdext-toptabs').on('mouseenter', function () { var c = $(this).parent().parent().hasClass('trend-box-1'); if (c) return; var oldsrc = $(this).parent().next().find('.house-trend-img img').attr('src'); if (!oldsrc) { var src = $(this).parent().next().find('.house-trend-img img').attr('data-src'); $(this).parent().next().find('.house-trend-img img').attr('src', src); } $(this).addClass('mshover'); $(this).parent().next().show(); }); $('.ht-trend-desc, #bdext_minibar .bdext-toptabs').on('mouseleave', function () { var that = this; time = setTimeout(function () { $(that).parent().next().hide(); $(that).removeClass('mshover'); }, 300); }); $('.houset-detail').on('mouseenter', function () { clearTimeout(time); }); $('.houset-detail').on('mouseleave', function () { $(this).hide(); $('.ht-trend-desc, #bdext_minibar').removeClass('mshover'); }); $('.ht-price-remind').on('click', function () { var that = this; var txt = $(this).find('span').text(); var code = $(this).attr('data-id'); if (txt === '降价提醒') { addRemind(code, function (data) { $(that).addClass('hasremind'); $(that).find('span').text('已添加提醒'); $(that).attr('data-colid', data.collect_id); }); } else { var collect_id = $(this).attr('data-colid'); delRemind(collect_id, function () { $(that).attr('data-colid', null); $(that).removeClass('hasremind'); $(that).find('span').text('降价提醒'); }); } }); $('.ht-price-remind').on('mouseenter', function () { if (userData.get('show_ljfqrcode') == 0 || !show_ljfqrcode) return; $(this).parent().parent().find('.ht-wxqrcode').show(); }); $('.ht-price-remind').on('mouseleave', function () { var that = this; time2 = setTimeout(function () { $(that).parent().parent().find('.ht-wxqrcode').hide(); }, 150); }); $('.ht-wxqrcode').on('mouseenter', function () { clearTimeout(time2); }); $('.ht-wxqrcode').on('mouseleave', function () { $('.ht-wxqrcode').hide(); }); $('.ht-wxqrcode .ht-wx-sp3').on('click', function () { $('.ht-wxqrcode').hide(); show_ljfqrcode = false; util.settings('set_show_ljfqrcode', 'show_ljfqrcode', '0'); }); $('body').on('click', function (e) { var dom = $(e.target); var communityDom = dom.parent().parent().parent().find('.community-price'); if (dom.hasClass('house-trend-b')) { communityDom.hide(); dom.parent().find('span').removeClass('trend-choose'); dom.addClass('trend-choose'); } else if (dom.hasClass('community-trend-b')) { if (communityDom.children().length === 0) { renderChart(communityDom, function () { dom.parent().find('span').removeClass('trend-choose'); dom.addClass('trend-choose'); communityDom.show(); }); } else { dom.parent().find('span').removeClass('trend-choose'); dom.addClass('trend-choose'); communityDom.show(); } } }); }; var renderChart = function renderChart(dom, callback) { var href = dom.attr('data-u'); var id = dom.attr('id'); console.log('renderChart called'); getInfo(href, function (data) { console.log('data got'); __webpack_require__("034f9176860d52edf6c0")({ el: id, msg: data }); if (callback && data.community) { callback(); } }); }; var renderBtn = function renderBtn(data) { var html = __webpack_require__("06def2eafc3328454ad8"); if (G.from_device === 'baidu') html = __webpack_require__("c094100594c9871487c2"); var listobj = ListPattern[pagesite]; var list = $(listobj['list']); for (var i = 0; i < list.length; i++) { var item = list.eq(i).find(listobj['hrefitem']); var href = item.attr('href'); if (href.indexOf('http') === -1) href = location.protocol + '//' + location.host + href; var housecode = undefined; switch (G.site) { case 'lianjia': housecode = href.match(/\/([a-z0-9A-Z]+)\.html/)[1]; break; case 'ke': housecode = href.match(/\/([a-z0-9A-Z]+)\.html/)[1]; break; case '5i5j': housecode = href.match(/\/([a-z0-9]+)\.html/)[1]; break; case 'maitian': housecode = href.match(/\/esfxq\/([a-z0-9A-Z]+)/)[1]; break; case 'centanet': housecode = href.match(/\/([a-z0-9]+)\.html/)[1]; break; } href = encodeURIComponent(href.replace('.ke.', '.lianjia.')); if (data.data[href]) { list.eq(i).append(template.compile(html)({ data: data.data[href], server: G.server, s_server: G.s_server, housecode: housecode })); } } setTimeout(existRemind, 500); addEvent(); }; var renderBtnDp = function renderBtnDp(data) { var housecode = getHouseCode(); var dpdom = undefined; var dpobj = dpPattern[pagesite]; for (var i = 0; i < dpobj.length; i++) { if ($(dpobj[i]).length > 0) { dpdom = dpobj[i]; break; } } var html = __webpack_require__("06def2eafc3328454ad8"); if (G.from_device === 'baidu') html = __webpack_require__("c094100594c9871487c2"); var href = encodeURIComponent(location.href.replace('.ke.', '.lianjia.')); $(dpdom).eq(0).after(template.compile(html)({ data: data.data[href], server: G.server, s_server: G.s_server, pagetype: 'dppage', housecode: housecode })); addEvent(); setTimeout(existRemind, 500); }; var getUrls = function getUrls(type) { var obj = ListPattern[pagesite]; var hrefdom = obj['list'] + ' ' + obj['hrefitem']; var host = location.host; if (host.indexOf('lianjia') > -1 && type === 2) { return location.href; } else if (host.indexOf('lianjia') > -1) { var arr = Array.prototype.map.call($(hrefdom), function (e) { var href = $(e).attr('href'); return (href.indexOf('http') > -1 ? '' : 'http://' + location.host) + href; }); urlArr = arr; return arr.join('||'); } if (host.indexOf('maitian') > -1 && type === 2) { return location.href; } else if (host.indexOf('maitian') > -1) { var arr = Array.prototype.map.call($(hrefdom), function (e) { var href = $(e).attr('href'); return (href.indexOf('http') > -1 ? '' : 'http://' + location.host) + href; }); urlArr = arr; return arr.join('||'); } if (host.indexOf('ke') > -1 && type === 2) { return location.href; } else if (host.indexOf('ke') > -1) { var arr = Array.prototype.map.call($(hrefdom), function (e) { var href = $(e).attr('href'); return (href.indexOf('http') > -1 ? '' : 'http://' + location.host) + href; }); urlArr = arr; return arr.join('||'); } if (host.indexOf('5i5j') > -1 && type === 2) { return location.href; } else if (host.indexOf('5i5j') > -1) { var arr = Array.prototype.map.call($('.pListBox .pList>li .listTit>a'), function (e) { return location.protocol + '//' + location.host + $(e).attr('href'); }); urlArr = arr; return arr.join('||'); } if (host.indexOf('centanet') > -1 && type === 2) { return location.href; } else if (host.indexOf('centanet') > -1) { var arr = Array.prototype.map.call($(hrefdom), function (e) { return location.protocol + '//' + location.host + $(e).attr('href'); }); urlArr = arr; return arr.join('||'); } }; var getInfo = function getInfo(url, callback) { console.log('getInfo', url); request.get(url).done(function (data) { callback(data); }); }; var pageType = function pageType() { var url = location.href; var type = 0; var site = pagesite; switch (site) { case 'lianjia': if (url.match(/\d+\.html/)) { type = 2; } else { type = 1; } break; case 'maitian': if (url.match(/esfxq\/\w+/)) { type = 2; } else { type = 1; } break; case 'lianjia2': if (url.match(/\d+\.html/)) { type = 2; } else { type = 1; } break; case '5i5j': if (url.match(/(?:exchange|ershoufang)\/\d+\.html/) && $('.big-slide').length > 0) { type = 2; } else if (url.match(/(?:exchange|ershoufang)/)) { type = 1; } break; case 'centanet': if (url.match(/ershoufang\/[a-z0-9]+\.html/) && $('#picBox').length > 0) { type = 2; } else if (url.match(/ershoufang/)) { type = 1; } break; case 'centanet2': if (url.match(/ershoufang\/[a-z0-9]+\.html/)) { type = 2; } else if (url.match(/ershoufang/)) { type = 1; } break; case 'ke': if (url.match(/\d+\.html/)) { type = 2; } else { type = 1; } break; } return type; }; var renderStyle = function renderStyle() { var html = __webpack_require__("260b6f8353fad73d488f"); $('body').append(template.compile(html)({ s_server: G.s_server, extBrand: G.extBrand })); $('body').addClass('house_' + pagesite); }; module.exports.init = function () { pagesite = G.site; if (pagesite != 'lianjia' && pagesite != '5i5j' && pagesite != 'centanet' && pagesite != 'ke' && pagesite != 'maitian') return; if (location.host === 'sh.centanet.com') { pagesite = 'centanet2'; } var type = pageType(); var urls = getUrls(type); var url = G.server + '/extension/houseTip?url=' + encodeURIComponent(urls); if (type === 2) { getInfo(url, renderBtnDp); } else { getInfo(url, renderBtn); } renderStyle(); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "c8a5b6d6a4f6c49bbced": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-promo-plan[data-v-24d41b24] {\n z-index: 999;\n display: none;\n background: white;\n position: absolute;\n left: 0;\n right: 0;\n box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.2);\n top: 35px;\n box-sizing: border-box;\n padding: 10px;\n}\n.gwd-promo-plan *[data-v-24d41b24] {\n float: initial;\n}\n.gwd-promo-plan table[data-v-24d41b24] {\n border-collapse: collapse;\n width: 100%;\n white-space: initial;\n}\n.gwd-promo-plan table .red[data-v-24d41b24] {\n color: #e4393c;\n}\n.gwd-promo-plan table th[data-v-24d41b24] {\n padding-left: 10px;\n text-align: left;\n height: 30px;\n background: #f1f9fc;\n font-weight: normal;\n}\n.gwd-promo-plan table th span[data-v-24d41b24] {\n display: inline-block;\n font-size: 12px;\n transform: scale(0.833);\n transform-origin: left center;\n color: #969899;\n white-space: nowrap;\n}\n.gwd-promo-plan table th[data-v-24d41b24],\n.gwd-promo-plan table td[data-v-24d41b24] {\n border: 1px solid #edf1f2;\n box-sizing: border-box;\n vertical-align: middle;\n line-height: 17px;\n}\n.gwd-promo-plan table td[data-v-24d41b24] {\n min-height: 35px;\n}\n.gwd-promo-plan table td a[data-v-24d41b24] {\n text-decoration: underline;\n}\n.gwd-promo-plan table td a[data-v-24d41b24]:hover {\n color: #e4393c !important;\n}\n.gwd-promo-plan .gwd-p-qrcode[data-v-24d41b24] {\n box-sizing: border-box;\n position: absolute;\n bottom: -1px;\n top: -36px;\n z-index: 999;\n width: 130px;\n background: white;\n border: 1px solid #e6e9eb;\n box-shadow: 2px 1px 3px 0 rgba(0, 0, 0, 0.2);\n right: -130px;\n font-size: 0;\n}\n.gwd-promo-plan .gwd-p-qrcode span[data-v-24d41b24] {\n display: inline-block;\n}\n", ""]); // exports /***/ }), /***/ "c912948d535762b7172f": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, regeneratorRuntime, G) { var _this = this; var template = __webpack_require__("274e32dfd54a6b0d18a9"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var golbal2 = __webpack_require__("1c640a99db9f6f8a16c2"); var calWidth = __webpack_require__("54be372a53153922dc13"); var fuzzyPage; // let rateSite = { // '228': 'USD', // '229': 'JPY', // '238': 'USD', // '246': 'EUR' // } // let priceSite = { // '228': '$', // '238': '$', // '229': '日元', // '246': 'EUR' // } var globalInfo = {}; // const fixedPrice = (price) => { // if (!price) return price; // try { // let priarr = price.split('.'); // price = priarr[0].replace(',', ''); // if (Number(price) > 99999) { // price = priarr[0]; // } else { // price = priarr[0] + '.' + priarr[1]; // } // } catch (e) { // require('common/log')('b2cCompare:fixedPrice:error') // return price; // } // return price; // } // const transRate = (dp) => { // if (dp.price_rmb) return dp; // let parseprice = require('parseprice'); // if (!dp.dp_id) return dp; // let site_id = dp.dp_id.split('-')[1]; // let type = site_id && rateSite[site_id]; // if (!type) return dp; // let price2 = parseprice(dp.price, type) // let price3 = fixedPrice(dp.price); // if (site_id == '229') { // dp.price_rmb = price2 + `(${price3}${priceSite[site_id]})`; // } else { // dp.price_rmb = price2 + `(${priceSite[site_id]}${price3})`; // } // dp.price = price2; // return dp; // } // const editData = (data) => { // var len = data.store && data.store.length; // if (len && len > 0) { // for (let i = 0; i < len; i++) { // data.store[i].price = (Number(data.store[i].price) / 100).toFixed(2) // } // } // let len2 = data.product.length; // if (len) // data.store2 = data.store.slice(0, 6); // else // len = len2; // return len; // } var renderBtnTop = function renderBtnTop(price, isFuzzy) { var t = '商城'; if (isFuzzy) { t = '商城相似款'; } var html = __webpack_require__("f850f08dfe2248a6ab94"); $('#b2c_compare').append(template.compile(html)({ store_tle: t, min_price: price })).css("display", "block"); }; var renderTopDetail = function renderTopDetail() { var widthObj, showListNum, turnpW, productW, dp_query, html, len, storeLen, pages; return regeneratorRuntime.async(function renderTopDetail$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: widthObj = calWidth.init(); showListNum = widthObj.b2cShowListNum; turnpW = widthObj.b2cTurnpW; productW = widthObj.b2cProductW; dp_query = userData.get('dp_query'); html = __webpack_require__("d8451f9e6477c0bd7752"); if (fuzzyPage) { html = __webpack_require__("863c1f55a779c0593c30"); showListNum = widthObj.showListNum; turnpW = widthObj.turnpW; productW = widthObj.allProductW; } if (G.site && G.site.indexOf('amazon') > -1) turnpW = turnpW - 1; len = globalInfo['b2c_compare'].product.length; storeLen = globalInfo['b2c_compare'].store && globalInfo['b2c_compare'].store.length; pages = Math.ceil(len / showListNum); if (!len) { context$1$0.next = 14; break; } context$1$0.next = 14; return regeneratorRuntime.awrap(Promise.all(globalInfo['b2c_compare'].product.map(function (x) { return new Promise(function (resolve) { if (['8', '83', '123'].indexOf(x.site_id) > -1) { __webpack_require__("2eb8d6935e044e0d6d06").init(x.url_crc, '30001', function (data) { console.log('coupon data', data); if (data && data.data) { var couponVal = data.data.coupon.coupon_money; x.promotions = [{ type: 'coupon', text: couponVal + '元券' }]; x.coupon2 = [couponVal + '元券']; } resolve(); }); } else { resolve(); } }); }))); case 14: globalInfo['b2c_compare'].product = globalInfo['b2c_compare'].product.map(function (item) { var s = __webpack_require__("9bf6d059e9a265559f0c").getMoneyInfo(item.site_id); if (s) { item.unit = s[0]; } return item; }); $('#b2c_compare').append(template.compile(html)({ data: globalInfo['b2c_compare'], storeLen: storeLen, pages: pages, now_dp_id: dp_query.dp.dp_id, width: turnpW, imgLoad: G.imgLoad, productW: productW })); golbal2.loadImg(0, showListNum, $('#b2c-item-list li .small-img img')); //$('#b2c_compare').find('.top-bar-detail').show() if (G.site === 'suning') { $('#b2c_compare').on('click', 'a', function (e) { var url = $(this).attr('href'); if ($(this).find('.coupon_span')) return; if (url && url.indexOf('http') > -1) { window.open($(this).attr('href')); e.preventDefault(); } }); } case 18: case 'end': return context$1$0.stop(); } }, null, _this); }; var renderTop = function renderTop(data) { if (data && data.b2c && !(data.b2c instanceof Array)) { globalInfo['b2c_compare'] = data.b2c; if (Number(data.b2c.min_price) && data.b2c.store.length > 0 && data.b2c.product.length > 0) renderBtnTop(data.b2c.min_price); } else if (data && data.b2c_fuzzy && !(data.b2c_fuzzy instanceof Array) && data.b2c_fuzzy.product.length > 0) { globalInfo['b2c_compare'] = data.b2c_fuzzy; fuzzyPage = true; if (Number(data.b2c_fuzzy.min_price)) renderBtnTop(data.b2c_fuzzy.min_price, true); } }; var renderBottom = function renderBottom(data) { __webpack_require__("73e5d235bd431b446c03").init(data); }; module.exports.init = function (style, data) { if (G.aliSite) return; // 根据style决定加载顶部还是底部 if (style === 'top') { renderTop(data); } else { renderBottom(data); } }; module.exports.renderTopDetail = renderTopDetail; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "c93b98f87f58a7165cac": /***/ (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_PddActivityQr_vue_vue_type_script_lang_js___ = __webpack_require__("c34de72f35aa6a6171dd"); /* 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_PddActivityQr_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_PddActivityQr_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_PddActivityQr_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PddActivityQr_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_PddActivityQr_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "c93ec1baf074bff55639": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "gwd-qr-login gwd-column gwd-align" }, [ _vm._m(0), _vm._v(" "), _c("div", { staticClass: "gwd-column gwd-qr-box gwd-align" }, [ _c( "div", { staticStyle: { width: "174px", height: "174px", padding: "7px", background: "white", "margin-top": "8px" } }, [ _c("img", { staticStyle: { width: "100%" }, attrs: { src: _vm.qr, alt: "" } }) ] ), _vm._v(" "), _vm._m(1) ]) ]) } var staticRenderFns = [ function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "gwd-row gwd-align" }, [ _c("img", { staticStyle: { width: "24px", height: "24px" }, attrs: { src: __webpack_require__("23cbb64b6c383b077299"), alt: "" } }), _vm._v(" "), _c( "span", { staticStyle: { "margin-left": "10px", color: "#ff471a", "font-size": "20px" } }, [_vm._v("淘宝APP扫码领券")] ) ]) }, function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "gwd-row gwd-align", staticStyle: { "margin-top": "6px" } }, [ _c("span", { staticStyle: { color: "#ff471a", "font-size": "16px" } }, [ _vm._v("淘宝APP") ]), _vm._v(" "), _c( "span", { staticStyle: { color: "#333333", "font-size": "14px", "margin-left": "17px" } }, [_vm._v("扫码直接领券")] ) ] ) } ] render._withStripped = true /***/ }), /***/ "c9ef51cd42b7d31daf67": /***/ (function(module, exports) { module.exports = "<div id=\"gwdang-amazon-dp-detail\" class=\"panel gwd_compare top-compare-detail top-bar-detail\">\n <div class=\"panel-wrap\">\n <div class=\"b2c-pages blkcolor4\">\n 第 \n <span class=\"current-page\" id=\"b2c-current-page\">1</span>\n 页,共 \n <span class=\"page-num blkcolor4\" id=\"b2c-page-num\">{{pages}}</span>\n 页\n </div>\n <div class=\"left-page turn-page\" style=\"left:10px;\">\n <a id=\"fuzzy-prev-page\" target=\"_self\" title=\"上一页\" class=\"gwd_bg\" href=\"javascript:\"></a>\n </div>\n <div class=\"all-products\" style=\"width:{{productW}}px\">\n <ul id=\"amazon-item-list\">\n {{each data.product}}\n <li id=\"amazon-prod-item-{{$index}}\" >\n <a id=\"img-{{$value.dp_id}}\" title=\"{{$value.title}}\" target=\"_blank\" class=\"small-img\" href=\"{{$value.url}}\">\n <img src=\"{{imgLoad}}\" data-original=\"{{$value.img_url}}\" id=\"dp-image-small-{{$value.dp_id}}\" class=\"gwdang-lazy\">\n </a>\n <a target=\"_blank\" class=\"b2c-other-info\" href=\"{{$value.url}}\">\n <span class=\"gwd-price prifontf\">{{$value.price_rmb ? $value.price_rmb : $value.price}}</span>\n <span class=\"b2c-store blkcolor1\">{{$value.site_name}}</span>\n <span id=\"{{$value.dp_id}}_promotion\">{{#$value.promodom}}</span>\n <span class=\"b2c-fees blkcolor4\">{{$value.rev_cnt ? (\"评论数:\" + value.rev_cnt) : $value.fee }}</span>\n <span class=\"b2c-tle blkcolor1\">{{$value.title}}</span>\n </a>\n </li>\n {{/each}}\n </ul>\n </div>\n <div class=\"right-page turn-page\">\n <a href=\"javascript:\" id=\"fuzzy-next-page\" class=\"gwd_bg\" title=\"下一页\"></a>\n </div>\n </div>\n <style type=\"text/css\">\n #gwdang-amazon-dp-detail {\n display: none;\n }\n .amazon .turn-page {\n width: {{width}}px;\n }\n </style>\n</div>" /***/ }), /***/ "ca8c3a1f86734e6b67fb": /***/ (function(module, exports) { module.exports = "<div id=\"miniCouponCom\" class=\"{{fmdv}}\">\n <ul>\n {{each data}}\n <li {{if $value.same_style}} class=\"isSamestyle\" {{/if}}>\n <span class=\"samestyle\">{{if lang == 'en'}}Same product{{else}}同款{{/if}}</span>\n <img src=\"{{$value.sicon}}\" class=\"mini-site-icon mini-site-icon1\">\n <a href=\"{{$value.click_url2}}\" target=\"_blank\" class=\"mini-cc-tle\">{{$value.title}}</a>\n <div class=\"cc-other-info\">\n <img src=\"{{$value.sicon}}\" class=\"mini-site-icon\">\n <span class=\"cc-now-price\">{{if lang == 'en'}}Price after coupon{{else}}券后价{{/if}}:¥{{$value.promoPri}}</span>\n <span class=\"cc-old-price\">¥{{$value.price}}</span>\n <a class=\"click2get2\" href=\"{{$value.click_url2}}\" target=\"_blank\">\n <span class=\"c2g2-sp1\">¥{{$value.coupon_money}}</span>\n <span class=\"c2g2-sp2\">{{if lang == 'en'}}Take{{else}}领取{{/if}}</span>\n </a>\n <em class=\"coupon_gif\"></em>\n </div>\n </li>\n {{/each}}\n </ul>\n <style type=\"text/css\">\n #miniCouponCom {\n width: 460px;\n height: 62px;\n float: left;\n background: #FFFFFF;\n overflow: hidden;\n position: relative;\n border: 1px solid #E6E9EB;\n top: -1px;\n }\n #miniCouponCom.east #miniCouponCom.universal {\n top: 0px;\n }\n .gwd_kaola #miniCouponCom {\n float: none;\n }\n #miniCouponCom * {\n font-family: \"Microsoft YaHei\";\n }\n #miniCouponCom ul {\n position: absolute;\n top: 0px;\n }\n #miniCouponCom ul li {\n list-style: none;\n height: 62px;\n width: 460px;\n }\n #miniCouponCom ul li>* {\n float: left;\n }\n #miniCouponCom .samestyle+.mini-site-icon {\n margin-top: 8px;\n }\n #miniCouponCom .mini-site-icon {\n margin-left: 12px;\n margin-right: 11px;\n margin-top: 4px;\n }\n .cc-other-info .mini-site-icon {\n display: none;\n }\n .isSamestyle .cc-other-info .mini-site-icon {\n display: inline-block;\n }\n #miniCouponCom .mini-cc-tle {\n width: 398px;\n height: 32px;\n overflow: hidden;\n line-height: 32px;\n font-size: 12px;\n color: #404547;\n letter-spacing: 0;\n text-decoration: none;\n }\n #miniCouponCom .cc-now-price {\n font-size: 12px;\n color: #FF3B5C;\n letter-spacing: 0;\n font-weight: bold;\n margin-right: 8px;\n margin-left: 12px;\n }\n #miniCouponCom .isSamestyle .cc-now-price {\n margin-left: 0px;\n }\n #miniCouponCom .coupon_gif {\n background: url('https://cdn.gwdang.com/images/extensions/newbar/turn.gif') 0px 0px no-repeat;\n float: right!important;\n height: 20px;\n width: 56px;\n margin-top: 5px;\n margin-right: 11px;\n }\n #miniCouponCom .click2get2 {\n background: url('https://cdn.gwdang.com/images/extensions/newbar/coupon_01.png') 0px 0px no-repeat;\n float: right!important;\n height: 30px;\n width: 96px;\n margin-right: 12px;\n }\n #miniCouponCom .click2get2 span {\n height: 24px;\n float: left;\n margin-left: 1px;\n }\n #miniCouponCom .c2g2-sp1 {\n width: 50px;\n color: #FF3B5C;\n text-align: center;\n font-size: 14px;\n line-height: 24px!important;\n }\n #miniCouponCom .c2g2-sp2 {\n width: 44px;\n line-height: 24px!important;\n color: #fff!important;\n text-align: center;\n }\n #miniCouponCom .cc-other-info {\n width: 100%;\n line-height: 24px;\n }\n #miniCouponCom .cc-other-info * {\n float: left;\n }\n #miniCouponCom .cc-old-price {\n font-size: 12px;\n color: #7D7E80;\n text-decoration: line-through;\n }\n #miniCouponCom .samestyle {\n background: #FFF1F4;\n border: 1px solid #FF3B5C;\n width: 30px;\n height: 16px;\n line-height: 16px;\n text-align: center;\n margin-left: 12px;\n margin-right: 11px;\n margin-top: 7px;\n font-size: 12px;\n color: #FF3B5C;\n display: none;\n }\n #miniCouponCom .isSamestyle .samestyle {\n display: inline-block;\n }\n #miniCouponCom .isSamestyle .mini-site-icon1 {\n display: none;\n }\n </style>\n</div>" /***/ }), /***/ "cae84e5667e41452a15d": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var request = __webpack_require__("91f250ebeb8d5987491c"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var specialFilter = __webpack_require__("ce5673fceec6522bf6f5"); var calWidth = __webpack_require__("54be372a53153922dc13"); var replaceHref = __webpack_require__("dba9674cb89e2f226ce4"); module.exports.init = function (data) { if (G.save_tbres_data != null) { this.renderTbres(G.save_tbres_data); return; } var $this = this; var code_server = '1'; var msg = data.exact_arr; var code = data['code-server']; var price = data.now.price * 100; if (!price) { price = G.dp.price * 100; } if (!code) { code = {}; code_server = '0'; } var sitearr = ['amazon', '6pm', 'ebay']; if (sitearr.indexOf(G.site) > -1) { price = G.dp.price * 100; } /*日亚 美亚 德亚 在没有品牌的情况下 不请求淘宝客*/ if (G.site == 'amazon' && !msg.brand && data.now.site_id !== '1') return; G.dp.min_price = parseInt(G.dp.min_price * 100); G.dp.max_price = parseInt(G.dp.max_price * 100); var url = G.server + '/brwext/tbres?union=' + G.union + '&url=' + encodeURIComponent(msg.url) + '&site=' + msg.site + '&isbn=' + msg.isbn + '&keywords=' + encodeURIComponent(msg.keywords) + '&brand=' + encodeURIComponent(msg.brand) + '&type=' + encodeURIComponent(msg.type) + '&price=' + price + '&class_id=' + msg.class_id + '&name=' + encodeURIComponent(G.dp.name) + '&code_brand_id=' + code.brand_id + '&code_clean_title=' + encodeURIComponent(code.clean_title) + '&code_code=' + encodeURIComponent(code.code) + '&code_display_brand=' + encodeURIComponent(code.display_brand) + '&code_brand=' + encodeURIComponent(code.brand) + '&code_class_id=' + encodeURIComponent(code.class_id) + '&code_price=' + encodeURIComponent(code.price) + '&code_spec=' + encodeURIComponent(code.spec) + '&code-server=' + code_server; request.get(url).done(function (mm) { if (G.site == 'taobao' || G.site == 'tmall' || G.site == 'ai-taobao') { $this.getUniqPid(mm, function (mm) { G.save_tbres_data = mm; $this.renderTbres(mm); }); } else { $this.getImgSearch(mm, function (mm) { G.save_tbres_data = mm; $this.renderTbres(mm); }); } }).fail(function () { if (G.style == 'right') { $('#plt-tmall-block').hide(); $('#plt-taobao-block').hide(); } }); }; module.exports.renderTbres = function (mm) { __webpack_require__("b8226e22112290600083").init(mm.tmall.product, 'tmall'); __webpack_require__("b8226e22112290600083").init(mm.taobao.product, 'taobao'); mm.tmall = specialFilter.tb(mm.tmall); mm.taobao = specialFilter.tb(mm.taobao); if (G.style == 'top') { this.show_taobao_products_top(mm); G.fixWidth(); } }; module.exports.show_taobao_products_top = function (data) { //tmall // from_self 如果为true 说明是用的我们自己的数据, 这个时候销量就是全部的销量 需要改一下。 var widthObj = calWidth.init(); var sale_tle = "最近销量"; if (data.from_self === true) sale_tle = "总销量"; if (G.lang === 'en') { sale_tle = 'Sales: '; } var tmhtml = __webpack_require__("afa666c4e2290bb1c92b"); if (typeof data.tmall.min_price != 'undefined' && data.tmall.min_price !== null) { if (data.search.is_exact == 0 && G.site.indexOf('taobao') >= 0) { var html = $('#' + G.extName + '-tmall-dp').html(); html = html.replace(/\u5929\u732b/ig, '天猫相似款'); $('#' + G.extName + '-tmall-dp').html(html); } replaceHref.init('tmall', data.tmall.product, '&column=b2c'); $('#' + G.extName + '-tmall-dp .gwd-price').html('¥' + data.tmall.min_price); $('#' + G.extName + '-tmall-dp').show(); $('#' + G.extName + '-tmall-dp-detail').append(template.compile(tmhtml)({ data: data.tmall.product, s_server: G.s_server, width: widthObj.turnpW, link: data.tmall.more_link, sale_tle: sale_tle, allProductW: widthObj.allProductW })); $('#tmall-prev-page').click(function () { G.change_page('tmall', -1); }); $('#tmall-next-page').click(function () { G.change_page('tmall', 1); }); } //taobao if (typeof data.taobao.min_price != 'undefined' && data.taobao.min_price !== null) { if (data.search.is_exact == 0 && G.site.indexOf('taobao') >= 0) { var html = $('#' + G.extName + '-taobao-dp').html(); html = html.replace(/\u6dd8\u5b9d/ig, '淘宝相似款'); $('#' + G.extName + '-taobao-dp').html(html); } var tbhtml = __webpack_require__("cc7594b9ffd3b3e00faf"); replaceHref.init('taobao', data.taobao.product, '&column=b2c'); $('#' + G.extName + '-taobao-dp .gwd-price').html('¥' + data.taobao.min_price); $('#' + G.extName + '-taobao-dp').show(); $('#' + G.extName + '-taobao-dp-detail').append(template.compile(tbhtml)({ data: data.taobao.product, s_server: G.s_server, width: widthObj.turnpW, link: data.taobao.more_link, allProductW: widthObj.allProductW })); $('#taobao-prev-page').click(function () { G.change_page('taobao', -1); }); $('#taobao-next-page').click(function () { G.change_page('taobao', 1); }); } /*if (data.search.keywords == '') { data.search.keywords = G.dp.name; }*/ if (G.site === 'vipshop') { $('#' + G.extName + '-search-product').val(G.dp.cat_name || G.save_dp_query.now.coreword); } else { if (data.search.keywords == '' && G.dp.isbn != '') { $('#' + G.extName + '-search-product').val(G.dp.isbn); } if (data.search.keywords != '') { $('#' + G.extName + '-search-product').val(data.search.keywords); } } G.init_item_list('tmall'); G.set_item_args('tmall'); G.set_page_args('tmall'); G.load_image('tmall', 0, G.page_size); G.init_item_list('taobao'); G.set_item_args('taobao'); G.set_page_args('taobao'); G.load_image('taobao', 0, G.page_size); }; module.exports.getImgSearch = function (msg, callback) { var buildTaobaoUrl = __webpack_require__("cc45d932d8dbdb86f2f3"); msg = buildTaobaoUrl.buildCommon(msg); if (G.btype == 'luyou') { callback(msg); return; } var dataShare = __webpack_require__("cde79cb5670e8bdeb4fb"); var brandId = dataShare.get('dp_data') && dataShare.get('dp_data')['exact_arr']['brand_id']; if (G.site == '360buy' && brandId && (!msg.taobao.sort || !msg.tmall.sort)) { // 在京东有brand 有比价结果的情况下, 不走图片检索 callback(msg); return; } __webpack_require__("ff881c8b15091819a13e").init(function (data) { if (data) { if (msg.tmall.sort) msg.tmall = {}; if (data.tmall.length > 0) { msg.tmall.min_price = data.tmall[0].price; msg.tmall.max_price = data.tmall[data.tmall.length - 1].price; msg.tmall.store = data.tmall; msg.tmall.product = data.tmall; } if (data.taobao.length > 0) { msg.taobao.product = data.taobao; msg.taobao.store = data.taobao; msg.taobao.min_price = data.taobao[0].price; msg.taobao.max_price = data.taobao[data.taobao.length - 1].price; } if (!msg.tmall.more_link) msg.tmall.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union; if (!msg.taobao.more_link) msg.taobao.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union; callback(msg); } else { callback(msg); } }); }; module.exports.getUniqPid = function (msg, callback) { var buildTaobaoUrl = __webpack_require__("cc45d932d8dbdb86f2f3"); msg = buildTaobaoUrl.buildCommon(msg); if (G.btype == 'luyou') { callback(msg); return; } __webpack_require__("75d41ad7d5a1bceb52d2").getTaobaouniqData(function (data) { if (data) { if (msg.tmall.sort) msg.tmall = {}; if (data.tmall.length > 0) { msg.tmall.min_price = data.tmall[0].price; msg.tmall.max_price = data.tmall[data.tmall.length - 1].price; msg.tmall.store = data.tmall; msg.tmall.product = data.tmall; } if (data.taobao.length > 0) { msg.taobao.product = data.taobao; msg.taobao.store = data.taobao; msg.taobao.min_price = data.taobao[0].price; msg.taobao.max_price = data.taobao[data.taobao.length - 1].price; } if (!msg.tmall.more_link) msg.tmall.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union; if (!msg.taobao.more_link) msg.taobao.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union; callback(msg); } else { callback(msg); } }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "caeb48377dbdbfe42966": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {//添加基本的参数配置和函数 var protocol = location.protocol === 'https:' ? 'https:' : 'http:'; G.extend({ /** 接口请求的服务器端地址 */ server: 'https://browser.gwdang.com', /** 购物党网站地址 */ c_server: 'https://www.gwdang.com', /** 静态文件地址 */ s_server: protocol + '//cdn.gwdang.com', v_server: 'http://v.gwdang.com', u_server: 'https://u.gwdang.com', u_server2: 'https://u.gwdang.com', //避免冲突 u_house: protocol + '//api.lufangjia.com', tj_server: protocol + '//v.gwdang.com', specialUnion: protocol + "//u.smartlinkclick.com/union/go/", img_server: 'http://f67dfe7ee7e63.cdn.sohucs.com', img64_server: 'http://645568b71d6b6.cdn.sohucs.com', product_keyword: protocol + '//keyword.gwdang.com', toMobileUrl: protocol + '//m.gwdang.com', imgHost: 'https://cdn.gwdang.com/images/', noImg: protocol + '//cdn.gwdang.com/images/extensions/gwd-noimg.png', imgLoad: protocol + '//cdn.gwdang.com/images/extensions/newbar/120.gif', u_key: 'gwdang', dval: '#tbsb-notifiers', mbar: 'gwdang-main', wishdom: 'bjd_plt_bg', wishdom2: 'gwd_wishlist_div', p_k: 'pingluntuan12345', domain: 'browser' }); if (location.host.indexOf('taobao') > -1 || location.host.indexOf('tmall') > -1 || location.host.indexOf('1688') > -1) { var str = 'abcdefghijklmnopqrstuvwxyz'; var str2 = '#'; for (var i = 0; i < 8; i++) { str2 += str[parseInt(Math.random() * 26)]; } G.dval = str2; G.wishdom = str2.replace('#', '') + '_bg'; var browserName = navigator.userAgent.toLowerCase(); var safari = /webkit/i.test(browserName) && !(/chrome/i.test(browserName) && /webkit/i.test(browserName) && /mozilla/i.test(browserName)); if (browserName.indexOf('maxthon') > -1 || browserName.indexOf('2345explorer') > -1 || safari) { G.wishdom2 = 'max_gwd_wishlist_div'; G.mbar = 'max_gwdang-main'; } } /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "cb0906562effcf1b0e6c": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var request = __webpack_require__("91f250ebeb8d5987491c"); var countryConfig = __webpack_require__("9bf6d059e9a265559f0c"); var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var globalCurrency = {}; var unitConfig = [{ unitName: '千', times: 1000 }, { unitName: '万', times: 10000 }]; var unit = 1; var getPriceBeforeExchangeRate = function getPriceBeforeExchangeRate(price, type) { if (!price) return; price = price.toString(); unit = 1; if (Array.prototype.forEach) { unitConfig.forEach(function (i) { if (price.indexOf(i.unitName) > -1) { unit = i.times; } }); } price = price.replace(/^[^\d]+/ig, ''); price = price.replace(/[¥\$]/ig, ''); price = price.match(/[0-9.,]+/) && price.match(/[0-9.,]+/)[0]; if (!price) return price; price = priceFormat(price, type); price = price.replace(/,/ig, ''); price = $.trim(price); var range_left = price.indexOf('-'); if (range_left > 0) { price = price.substr(0, range_left); } //修正价格提取出现的小数部分不准确问题(如一号店) price = price.replace(/^(\d+\.)\<.+\>(\d{0,2})\<\/.+\>/ig, "$1$2"); return price; }; module.exports = function (price, type) { price = getPriceBeforeExchangeRate(price, type); //fix end price = exchangeRate(price, type); if (parseFloat(price) > 0) { price = parseFloat(price); if (unit) price = price * unit; return price; } else return 0; }; module.exports.getPriceBeforeExchangeRate = getPriceBeforeExchangeRate; var exchangeRate = function exchangeRate(price, type) { var exRate = undefined; if (type) { exRate = globalCurrency[type] || 1; } else { exRate = userData.get('currency') || G.currency || 1; } return parseFloat((Number(price) * exRate).toFixed(2)); }; var priceFormat = function priceFormat(price, type) { if (type) return price; if (G.pageInfo.type == 1) return price; var host = location.host; var euroAmazonConfig = { 'www.amazon.de': 'prime', 'www.amazon.fr': 'premium' }; if (euroAmazonConfig[host] && $('#nav-logo .nav-logo-tagline').text().replace(/\s/g, '').trim().toLowerCase().indexOf(euroAmazonConfig[host]) > -1) price = price.replace('.', '').replace(',', '.'); return price; }; var storeRate = function storeRate(currency) { communicate.trigger({ type: 'setStoreRate', info: JSON.stringify(currency) }); }; var getStoreRate = function getStoreRate() { communicate.on(function (info) { if (info && info.type == 'getStoreRate') { try { var currency = info.value.currency; var newInfo = JSON.parse(currency); globalCurrency = newInfo.elsecurr; G.currency = newInfo.currency; } catch (e) {} } }); communicate.trigger({ type: 'getStoreRate' }); }; var readyGet = function readyGet() { if (location.host === 'www.amazon.cn') return; if (location.host.indexOf('amazon') > -1 || location.host.indexOf('6pm') > -1) { getStoreRate(); } }; readyGet(); module.exports.getExRate = function (type) { return parseFloat(globalCurrency[type] | 1); }; module.exports.getRate = function (callback) { var site = G.logsite; var moneyInfo = countryConfig.getMoneyInfo(site); if (moneyInfo) { var url = G.server + '/extension?ac=currency&url=' + encodeURIComponent(location.href); request.get(url).then(function (data) { if (data && data.currency) { userData.set('currency', data.currency); globalCurrency = data.elsecurr; G.currency = data.currency; storeRate(data); } callback(); })['catch'](function () { //callback() }); } else { callback(); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "cc45d932d8dbdb86f2f3": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { module.exports = function (obj) { if (G.from_device === '360' || G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) { if (G.from_device === 'bijiago' && G.ss_name !== 'priceDog' || G.cooperation) { obj.sitename = 'taobao'; } else { if (obj.source) { var url = obj.pureUrl || obj.url; url = url + (url.indexOf('?') > -1 ? '&' : '?') + 'source=' + obj.source; // if (!G.forbidCoupon) { // url = `${G.server}/extension/RedirectInTb?id=${obj.id}&format=&site=taobao` // } return url; } } } var source = ''; var site = obj.sitename || ''; if (obj.source) source = obj.source; if (true) return G.u_server + '/redirect/tao?id=' + obj.id + '&site=' + site + '&source=' + source + '&from_device=' + G.from_device; }; module.exports.buildCommon = function (data) { // 针对淘宝客接口tbres 返回的数据 没有优惠券的部分做链接转换。 if (!(data.tmall instanceof Array)) { for (var i = 0; i < data.tmall.product.length; i++) { var item = data.tmall.product[i]; var obj = { 'source': 'common', 'img_url': item.pic_url, 'title': item.title, 'price': item.price, 'shop_name': item.nick, 'sales': item.volume || '0', 'id': item.num_iid, 'url': item.url, 'discuss': item.comment_count || '0', 'istaobao': '0', 'pureUrl': "https://detail.tmall.com/item.htm?id=" + item.num_iid, 'dp_id': G.now_dp_id, 'site_id': G.site_id }; if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) { if ((G.from_device === 'bijiago' || G.cooperation) && !G.forbidCoupon) { item.url = module.exports(obj); } else if (!G.forbidCoupon) { // item.url = `https://hb.fan-yong.com/tb/convert/?p=108607450089&u=${item.num_iid}&t=0` // item.url = `${G.server}/extension/RedirectInTb?id=${item.num_iid}&format=&site=taobao`; item.url = obj.pureUrl + '&source=common'; } else { item.url = obj.pureUrl + '&source=common'; } } else { item.url = module.exports(obj); } } } if (!(data.taobao instanceof Array)) { for (var i = 0; i < data.taobao.product.length; i++) { var item = data.taobao.product[i]; var obj = { 'source': 'common', 'img_url': item.pic_url, 'title': item.title, 'price': item.price, 'shop_name': '', 'sales': item.volume || '0', 'id': item.num_iid, 'url': item.url, 'discuss': item.comment_count || '0', 'istaobao': '1', 'pureUrl': "https://item.taobao.com/item.htm?id=" + item.num_iid, 'dp_id': G.now_dp_id, 'site_id': G.site_id }; if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) { if ((G.from_device === 'bijiago' || G.cooperation) && !G.forbidCoupon) { item.url = module.exports(obj); } else if (!G.forbidCoupon) { // item.url = `https://hb.fan-yong.com/tb/convert/?p=108607450089&u=${item.num_iid}&t=0` // item.url = `${G.server}/extension/RedirectInTb?id=${item.num_iid}&format=&site=taobao`; item.url = obj.pureUrl + '&source=common'; } else { item.url = obj.pureUrl + '&source=common'; } } else { item.url = module.exports(obj); } } } return data; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "cc7594b9ffd3b3e00faf": /***/ (function(module, exports) { module.exports = "<div class=\"panel gwd_compare top-compare-detail top-bar-detail\" id=\"gwdang-taobao-dp-detail\">\n <div class=\"panel-wrap\">\n <div class=\"b2c-pages blkcolor4\">\n 第 \n <span class=\"current-page\" id=\"taobao-current-page\">1</span>\n 页,共 \n <span class=\"page-num blkcolor4\" id=\"taobao-page-num\">{{pages}}</span>\n 页\n </div>\n <div class=\"left-page turn-page\" style=\"left:10px;\">\n <a id=\"taobao-prev-page\" target=\"_self\" title=\"上一页\" class=\"gwd_bg\" href=\"javascript:\"></a>\n </div>\n <a href=\"{{link}}\" target=\"_blank\" class=\"tb-morelink blkcolor4\">查看全部结果<em class=\"see_all_icon\">></em></a>\n <div class=\"all-products\" style=\"width:{{allProductW}}px\">\n <ul id=\"taobao-item-list\">\n {{each data}}\n <li id=\"taobao-prod-item-{{$index}}\" data-id=\"{{$value.num_iid}}\">\n <a id=\"img-{{$value.num_iid}}\" title=\"{{$value.title}}\" target=\"_blank\" class=\"small-img\" href=\"{{$value.url}}\">\n <img src=\"{{imgLoad}}\" data-original=\"{{$value.pic_url}}\" id=\"dp-image-small-{{$value.num_iid}}\" class=\"gwdang-lazy\">\n </a>\n <a target=\"_blank\" class=\"b2c-other-info\" href=\"{{$value.url}}\">\n <span class=\"gwd-price prifontf\">¥{{$value.price}}</span>\n <span class=\"b2c-store blkcolor1\">{{$value.item_location}}</span>\n <span class=\"b2c-fees blkcolor4\">最近销量{{$value.volume}}件</span>\n <span class=\"b2c-tle blkcolor1\">{{$value.title}}</span>\n </a>\n </li>\n {{/each}}\n </ul>\n </div>\n <div class=\"right-page turn-page\">\n <a href=\"javascript:\" id=\"taobao-next-page\" class=\"gwd_bg\" title=\"下一页\"></a>\n </div>\n </div>\n</div>\n <style type=\"text/css\">\n #gwdang-taobao-dp-detail {\n display: none;\n }\n #gwdang-taobao-dp-detail .turn-page {\n width: {{width}}px;\n }\n </style>" /***/ }), /***/ "cc869e1f4fd78e0a5473": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponMini_vue_vue_type_script_lang_js___ = __webpack_require__("3d1e2b0181974f8586a2"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponMini_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponMini_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponMini_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponMini_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponMini_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "ccd952a0cd9003e1d392": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, $) { var _this = this; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var request = __webpack_require__("91f250ebeb8d5987491c"); var cachedRes = {}; var process = function process(list) { var result; return regeneratorRuntime.async(function process$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(request.post(G.server + '/extension/CouponMulti', { ids: list.join(','), site_id: 3 }, true, false)); case 2: result = context$1$0.sent; render(result); cachedRes = _extends({}, result, cachedRes); case 5: case 'end': return context$1$0.stop(); } }, null, _this); }; var render = function render(result) { Object.keys(result).map(function (key) { if (result[key]) { var d = result[key]; if ($('li[data-sku=' + key + '] .p-img .search_coupon_tip').length) { return; } $('li[data-sku=' + key + '] .p-img').append('\n <a href="' + d.click_url + '" class="search_coupon_tip" title="当前商品点击领券立减' + d.coupon + '元" style="position: absolute; cursor:pointer; line-height: 22px; top: 0; right: 0" target="_blank">¥' + d.coupon + ' 优惠券</a>\n '); } }); }; module.exports.init = function callee$0$0() { var list, url, dom; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: list = $('ul.gl-warp li.gl-item').toArray().map(function (item) { return item.dataset.sku; }); process(list); url = location.href; dom = $('#J_main')[0]; if (dom) { context$1$0.next = 6; break; } return context$1$0.abrupt('return'); case 6: dom.addEventListener('DOMSubtreeModified', function () { var newList = $('ul.gl-warp li.gl-item').toArray().map(function (item) { return item.dataset.sku; }); newList = newList.filter(function (x) { return list.indexOf(x) === -1; }); if (newList.length > 0) { console.log(newList); process(newList); list = list.concat(newList); } else if (location.href !== url) { setTimeout(function () { render(cachedRes); }, 1000); } url = location.href; }, false); case 7: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "cceeed893387dc9fce45": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, $) { var _this = this; var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })(); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); module.exports.init = function callee$0$0() { var localPromo, promoUrlMap, promos, coupons, couponLinks; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!(G.site !== '360buy')) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: context$1$0.next = 4; return regeneratorRuntime.awrap(globalCondition.met('localPromoGot')); case 4: localPromo = context$1$0.sent; context$1$0.next = 7; return regeneratorRuntime.awrap(globalCondition.met('remoteUrlMap')); case 7: promoUrlMap = context$1$0.sent; promos = localPromo.promo.map(function (item) { item = item.replace('http://', '//').replace('https://', '//'); if (item.indexOf(':') > -1) { var _item$split = item.split(':'); var _item$split2 = _slicedToArray(_item$split, 2); var url = _item$split2[0]; var text = _item$split2[1]; return { text: text, url: url }; } }); console.log('localPromo', localPromo); $('#prom .prom-item').toArray().forEach(function (item) { var textNode = $(item).find('.hl_red'); var typeNode = $(item).find('.hl_red_bg'); var urlNode = $(item).find('a'); var text = textNode[0].innerText; var type = typeNode[0].innerText; if (type === '换购') { return; } var thePromo = promos.filter(function (promoItem) { if (!promoItem) { return false; } var url = false; // if (urlNode && urlNode.attr('href')) { // url = urlNode.attr('href') // } if (url && promoItem.url) { return url.indexOf(promoItem.url) > -1; } else { return promoItem && promoItem.text === text; } }); if (thePromo.length) { var url = thePromo[0].url; var link = promoUrlMap[' ' + url]; $(item).append('<a href=' + link + ' target="_blank" style="color: #ee2f36; text-decoration: underline; margin-left: 5px; font-size: 12px; white-space: nowrap">查看此活动全部商品<img src="https://cdn.gwdang.com/images/extensions/redArrow.svg" style="width: 10px; height: 10px;"></a>'); } }); coupons = localPromo.quan.map(function (item) { item = item.replace('http://', '//').replace('https://', '//'); if (item.indexOf(':') > -1) { var _item$split3 = item.split(':'); var _item$split32 = _slicedToArray(_item$split3, 2); var url = _item$split32[0]; var text = _item$split32[1]; return { text: text, url: url }; } }); coupons = coupons.filter(function (item) { return item && item.url; }); couponLinks = coupons.map(function (item, idx) { var link = promoUrlMap[' ' + item.url]; return '<a href=' + link + ' target="_blank"">查看' + item.text.split(',')[0] + '商品' + (idx === 0 ? '<img src="https://cdn.gwdang.com/images/extensions/redArrow.svg" style="width: 10px; height: 10px;">' : '') + '</a>'; }).join(''); if (coupons.length > 1) { $('#summary-quan .lh').append('\n <div class="gwd-jd-promo-coupons-wrapper ' + (coupons.length === 1 ? 'gwd-single-coupon' : '') + '">\n <div class="gwd-jd-promo-coupons">\n ' + couponLinks + '\n </div>\n </div>\n '); } else { $('#summary-quan .lh').append('\n <div class="gwd-single-coupon">\n ' + couponLinks + '\n </div>\n '); } $('#summary-quan .lh').css('line-height', 0); __webpack_require__("077190fa6c9d23369f6d"); case 17: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "cd213fe85ccdbbfd4f71": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_AppDownload_vue_vue_type_template_id_4c125ee6_scoped_true___ = __webpack_require__("7d0cec30e0ac9c2cd304"); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_AppDownload_vue_vue_type_template_id_4c125ee6_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_AppDownload_vue_vue_type_template_id_4c125ee6_scoped_true___["b"]; }); /***/ }), /***/ "cde79cb5670e8bdeb4fb": /***/ (function(module, exports, __webpack_require__) { "use strict"; var data = {}; module.exports.get = function (k) { return data[k]; }; module.exports.set = function (k, v) { data[k] = v; }; /***/ }), /***/ "ce5673fceec6522bf6f5": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var parseprice = __webpack_require__("cb0906562effcf1b0e6c"); module.exports = function (data) { var newdata = []; var dp_price = G.dp.price || 0; if (G.site === '189') { for (var i = 0; i < data.length; i++) { if (parseprice(data[i].price) >= dp_price) newdata.push(data[i]); } return newdata; } else { return data; } }; module.exports.tb = function (data) { if (data instanceof Array) return data; var newdata = []; var product = data.product; var dp_price = G.dp.price || 0; for (var i = 0; i < product.length; i++) { if (product[i].img_url && !product[i].img_url.match(/_\d+x\d+/)) { product[i].img_url = product[i].img_url + '_100x100'; } if (product[i].pic_url && !product[i].pic_url.match(/_\d+x\d+/)) { product[i].pic_url = product[i].pic_url + '_100x100'; } } if (G.site === '189') { for (var i = 0; i < product.length; i++) { if (parseprice(product[i].price) >= dp_price) newdata.push(product[i]); } data.min_price = newdata[0] && newdata[0].price; data.product = newdata; } return data; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "ce95798c8fdc497ef7dd": /***/ (function(module, exports) { module.exports = "<div class=\"trend-error-info-mini\">\n <p class=\"error-p\">我们检测到访问异常,请您验证后继续使用</p>\n <a class=\"error-sp\" href=\"{{url}}\">点击验证</a>\n <style type=\"text/css\">\n #mini_price_history {\n \n }\n #mini_price_history span {\n float: left;\n width: 100%;\n text-align: center;\n line-height: 36px;\n color: #666;\n font-size: 14px;\n }\n #mini_price_history .trend-error-info-mini {\n position: absolute;\n top: 37px;\n left: 0px;\n width: 100%;\n background: #fff;\n z-index: 99999999;\n height: 268px;\n display: none;\n box-shadow: 0px 5px 15px 0 rgba(23,25,27,0.15);\n border-radius: 0 0 4px 4px;\n width: 460px;\n border: 1px solid #ddd;\n border-top: none;\n }\n #mini_price_history .error-p {\n width: 100%;\n float: left;\n text-align: center;\n margin-top: 45px;\n font-size: 14px;\n color: #666;\n }\n #mini_price_history .error-sp {\n width: 95px;\n margin: 110px auto;\n height: 20px;\n line-height: 20px;\n text-align: center;\n color: #000!important;\n border: 1px solid #333;\n border-radius: 5px;\n display: block;\n text-decoration: none!important;\n }\n #mini_price_history:hover .trend-error-info-mini {\n display: block;\n }\n </style>\n <style type=\"text/css\">\n .bjgext-mini-trend {\n\n }\n .bjgext-mini-trend span {\n float: left;\n /*width: 100%;*/\n text-align: center;\n line-height: 36px;\n color: #666;\n font-size: 14px;\n }\n .bjgext-mini-trend .trend-error-info-mini {\n position: absolute;\n top: 37px;\n left: 0px;\n width: 100%;\n background: #fff;\n z-index: 99999999;\n height: 268px;\n display: none;\n box-shadow: 0px 5px 15px 0 rgba(23,25,27,0.15);\n border-radius: 0 0 4px 4px;\n width: 460px;\n border: 1px solid #ddd;\n border-top: none;\n }\n .bjgext-mini-trend .error-p {\n width: 100%;\n float: left;\n text-align: center;\n margin-top: 45px;\n font-size: 14px;\n color: #666;\n }\n .bjgext-mini-trend .error-sp {\n width: 95px;\n margin: 110px auto;\n height: 20px;\n line-height: 20px;\n text-align: center;\n color: #000!important;\n border: 1px solid #333;\n border-radius: 5px;\n display: block;\n text-decoration: none!important;\n }\n .bjgext-mini-trend:hover .trend-error-info-mini {\n display: block;\n }\n </style>\n</div>" /***/ }), /***/ "cf06668231ef5128ea91": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_style_index_0_id_5ccff421_scoped_true_lang_less___ = __webpack_require__("8c93e61de275d04e62e7"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_style_index_0_id_5ccff421_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_style_index_0_id_5ccff421_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_style_index_0_id_5ccff421_scoped_true_lang_less____default.a); /***/ }), /***/ "cf29f8542c435ae4b9b6": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponTop_vue_vue_type_script_lang_js___ = __webpack_require__("5b06e86d4e174cdfac92"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponTop_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponTop_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponTop_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponTop_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponTop_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "cf8f469df8ae6c96f344": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($) {// 某些网站单品页的元素会被工具条遮挡,因此需要修改网站css var appendCss = function appendCss(styleText) { var style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = styleText; document.getElementsByTagName('head')[0].appendChild(style); }; var toolbarHeight = 37; var increaseTop = function increaseTop(elementSelector) { // .gwd_unfold类是顶部工具条展开的情况 appendCss('\n .gwd_unfold ' + elementSelector + ' {\n top: ' + toolbarHeight + 'px!important;\n }\n '); }; module.exports = function () { if (location.hostname === 'item.taobao.com') { increaseTop('.tb-tabbar-wrap-sticky'); } if (location.hostname === 'detail.tmall.com') { increaseTop('#J_TabBarBox'); increaseTop('.tm-floatcart-link'); increaseTop('.hook-float'); increaseTop('#side-shop-info .shop-intro-float'); } if (location.hostname === 'item.jd.com') { increaseTop('.pro-detail-hd-fixed-div'); increaseTop('.popbox .popbox-inner.pro-detail-hd-fixed'); increaseTop('#detail .tab-main.pro-detail-hd-fixed'); // 京东单品页的tabItem点击后会滚动到上面去,导致取消悬浮效果 $('.tab-main ul li').on('click', function () { setTimeout(function () { if ($(document).scrollTop() > 1260) { $(document).scrollTop($(document).scrollTop() + 3); } }, 300); }); } if (location.hostname === 'product.suning.com') { increaseTop('.fixbar'); } if (location.hostname === 'product.dangdang.com') { increaseTop('.product_content .t_box .tab_panel_fixed'); } if (location.hostname === 'www.vmall.com') { increaseTop('.product-tab-top'); } if (location.hostname === 'item.mi.com') { increaseTop('.xm-product-box.nav-bar-hidden.nav_fix'); } if (location.hostname === 'www.adidas.com.cn') { increaseTop('.page-header-new'); $('body').css('padding-top', toolbarHeight + 'px'); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "d090c1e762d2e495b00c": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($) { var log = __webpack_require__("03dd60018ce5ed1344a1"); var sitePattern = { 'cart\\.jd\\.com/addToCart\\.html': 'addcart_success_page:360buy', 'cart\\.gome\\.com\\.cn/addsuccess': 'addcart_success_page:gome', 'shopping\\.suning\\.com/addToCart\\.do': 'addcart_success_page:suning', 'cart\\.jd\\.com/cart\\.action': 'cart_page_visit:360buy', 'shopping\\.suning\\.com/cart\\.do': 'cart_page_visit:suning', 'cart\\.gome\\.com\\.cn/shopping': 'orderwrite_page_visit:gome', 'cart\\.gome\\.com\\.cn': 'cart_page_visit:gome', 'cart\\.taobao\\.com/cart\\.htm': 'cart_page_visit:tmall', 'cart\\.tmall\\.com': 'cart_page_visit:tmall', 'trade\\.jd\\.com/shopping/order/getOrderInfo\\.action': 'orderwrite_page_visit:360buy', 'shopping\\.suning\\.com/order\\.do': 'orderwrite_page_visit:suning', 'buy\\.tmall\\.com/order/confirm_order\\.htm': 'orderwrite_page_visit:tmall', 'buy\\.tmall\\.com/order/confirmOrder\\.htm': 'orderwrite_page_visit:tmall', 'cashier\\.jd\\.com': 'ordersuccess_page_visit:360buy', 'payment\\.suning\\.com': 'ordersuccess_page_visit:suning', 'gpay\\.gome\\.com\\.cn/cashier/default\\.dhtml': 'ordersuccess_page_visit:gome', 'cashierzth\\.alipay\\.com': 'ordersuccess_page_visit:tmall', 'cashierzui\\.alipay\\.com': 'ordersuccess_page_visit:tmall', 'vip\\.jd\\.com': 'vip_page_visit:360buy', 'vip\\.suning\\.com': 'vip_page_visit:suning', 'v\\.gome\\.com\\.cn': 'vip_page_visit:gome', 'vip\\.tmall\\.com': 'vip_page_visit:tmall' }; var whiteList = ['jd', 'suning', 'taobao', 'tmall', 'gome']; /*收藏事件dom*/ var collectEventDicts = { '360buy': '#choose-btn-coll', 'gome': '#collect', 'suning': '#inerestBox', 'tmall': '#J_AddFavorite' }; var getInfo = function getInfo(site) { var type = __webpack_require__("5e05e6f5fe79ccf5d009").isProductPage(document.referrer); type = type ? 'product' : 'other'; var href = location.href; for (var pattern in sitePattern) { if (href.match(new RegExp(pattern))) { log(type + sitePattern[pattern]); return; } } }; var collectProduct = function collectProduct(site) { if (!collectEventDicts[site]) return; $(collectEventDicts[site]).on('click', function () { log('click:collection_click:' + site); }); }; module.exports.init = function () { getInfo(); for (var i = 0; i < whiteList.length; i++) { if (location.host.indexOf(whiteList[i]) > -1) { var site = whiteList[i]; if (site === 'jd') site = '360buy'; collectProduct(site); return; } } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "d0bc5d0317e34c96fd68": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-grayText[data-v-07414d06] {\n font-size: 12px;\n line-height: 18px;\n color: #969899;\n /*transform: scale(0.8333);*/\n /*transform-origin: left center;*/\n}\n.gwd-topSpecialActivity[data-v-07414d06] {\n font-size: 12px;\n color: #5c6266;\n line-height: 12px;\n margin-bottom: 5px;\n white-space: nowrap;\n /*transform: scale(0.8333);*/\n /*transform-origin: left center;*/\n}\n", ""]); // exports /***/ }), /***/ "d0be176400e0cbc97f82": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var sitearr = ['360buy', 'suning', 'gome', 'yihaodian', 'dangdang', 'kaola', 'tmall']; var inventoryCheck = __webpack_require__("a53850c80a1cfefa4efa"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); // const request = require('common/request') var promosPattern = { 'tmall': function tmall() { return { promo: $('.tm-shopPromo-panel').text().trim() }; }, '360buy': function buy() { var tle1 = $('.J-more-prom-ins').text(); var tle2 = $('.J-prom em.hl_red_bg').text(); var price = $('.J-summary-price .p-price').text().replace(/[¥¥\s]+/g, ''); var arr = []; if (tle1.indexOf('满减') > -1 || tle2.indexOf('满减') > -1) { arr.push('满减:' + $('.J-prom em.hl_red_bg:contains("满减") + em.hl_red').text()); } if (tle1.indexOf('多买优惠') > -1 || tle2.indexOf('多买优惠') > -1) { arr.push('多买优惠:' + $('.J-prom em.hl_red_bg:contains("多买优惠") + em.hl_red').text()); } if (tle1.indexOf('满折') > -1 || tle2.indexOf('折') > -1) { arr.push('满折:' + $('.J-prom em.hl_red_bg:contains("满折") + em.hl_red').text()); } if ($('#summary-quan .quan-item').text().length > 0) { var text = Array.prototype.map.call($('#summary-quan .quan-item'), function (v) { return $(v).text().replace(/\s/g, ''); }).join(','); arr.push('领券:' + text); } return { price: price, promo: arr.join(';') }; }, 'suning': function suning() { var dom = $('#voucherTitle'); var labels = dom.find('label').text().replace(/\s/g, ''); var text = ''; var arr = []; if (labels.indexOf('满减') > -1 && dom.is(':visible')) { text = $('#voucherBox').text(); var smtxt = $('#voucherBox a').text(); text = '满减:' + text.replace(smtxt, ''); arr.push(text); } if ($('#getCoupon').length > 0 && $('#getCoupon').is(':visible')) { var text2 = Array.prototype.map.call(document.querySelectorAll('#freeCouponBox .p-quan2 .p-quan-white'), function (e) { return $(e).text(); }).join(","); if (text2) { text2 = "领券:" + text2; arr.push(text2); } } return { promo: arr.join(";") }; }, 'gome': function gome() { var dom = $('.prd-promotions-red'); var labels = dom.find('label').text(); var texts = []; if (dom.is(':visible') && labels.indexOf('满减') > -1) { texts.push('满减:' + $('.prd-promotions-red label:contains("满减")+span').text().replace(/\s/g, '')); } if (dom.is(':visible') && labels.indexOf('领劵') > -1) { texts.push('领券:' + $('.prd-promotions-red label:contains("领劵")+b').text().replace(/(?:左边|右边)/g, '').replace(/劵/g, '券')); } if ($('.prd-price-left').is(':visible') && $('.prd-price-left').text().indexOf('劵') > -1) { var arr = $('#lanjuan b').text().match(/满\d+减\d+/g); if (arr.length > 0) { texts.push('领券:' + arr.join(',')); } } return { promo: texts.join(';') }; }, 'yihaodian': function yihaodian() { var dom = $('#promotion_title'); var arr = []; var labels = dom.find('.list .fl span.sub').text(); if (labels.indexOf('满减') > -1 && dom.find('.list .fl span.sub').is(':visible')) { var text = "满减" + $('#promotion_title .list .fl span.sub:contains("满减")+ span.tit').text(); arr.push(text); } if (labels.indexOf('折扣') > -1 && dom.find('.list .fl span.sub').is(':visible')) { var text = "折扣" + $('#promotion_title .list .fl span.sub:contains("折扣")+ span.tit').text(); arr.push(text); } return { promo: arr.join(';') }; }, 'dangdang': function dangdang() { var dom = $('#promo-list'); var arr = []; if (dom.find('div.clearfix b:contains("满额减")').is(':visible')) { var txt = '满额减:' + $('#promo-list div.clearfix b:contains("满额减")+div.rule span').text(); arr.push(txt); } if (dom.find('div.clearfix b:contains("店铺促销")').is(':visible')) { var txt = '店铺促销:' + $('#promo-list div.clearfix b:contains("店铺促销")+div.rule span').text(); arr.push(txt); } return { promo: arr.join(';') }; }, 'kaola': function kaola() { var arr = []; if ($('.promotionwrap .m-zd-prt .m-dp-prt-title:contains("满额减")').is(':visible')) { var text = '满额减:' + $('.promotionwrap .m-zd-prt .m-dp-prt-title:contains("满额减")+span a').text(); arr.push(text); } if ($('.couponwrap').is(':visible')) { var text2 = '领券:' + Array.prototype.map.call(document.querySelectorAll('.couponwrap .li.ellipsis'), function (e) { return $(e).text(); }).join(","); arr.push(text2); } return { promo: arr.join(';') }; } }; var getJdPromoInfo = function getJdPromoInfo() { var promos = []; var dom = $('#prom-one .J-prom .prom-item'); var dom2 = $('#prom-quan .J-prom-quan'); if (dom.length > 0) { for (var i = 0; i < dom.length; i++) { if (dom.eq(i).find('a').text().indexOf('详情') > -1) { var tle = dom.eq(i).find('.hl_red').text(); var url = dom.eq(i).find('a').attr('href'); promos.push(encodeURIComponent(tle) + ',' + encodeURIComponent(url)); } } } if (dom2.length > 0) { for (var i = 0; i < dom2.length; i++) { if (dom2.eq(i).find('a').text().indexOf('详情') > -1) { var tle = dom2.eq(i).find('.hl_red').text(); var url = dom2.eq(i).find('a').attr('href'); promos.push(encodeURIComponent(tle) + ',' + encodeURIComponent(url)); } } } return promos.join(';'); }; var getPromoInfo = function getPromoInfo(inventory) { var dp = G.dp; var other_info = userData.get('other_info'); var promoinfo = promosPattern[G.site](); var price = other_info['code-server'].price || dp.price; if (!price) price = promoinfo.price; var info = { dp_id: other_info.now.dp_id, name: dp.name, price: price, promo: promoinfo.promo, stock: inventory }; return info; }; var getJdPromo = function getJdPromo(inventory, callback) { var dp = G.dp; var other_info = userData.get('other_info'); var price = other_info['code-server'].price || dp.price; var promoinfo = promosPattern[G.site](); if (!price) price = $('.J-summary-price .p-price').text().replace(/[¥¥\s]+/g, ''); var promo_info = getJdPromoInfo(); var zytxt = $('.name.goodshop.EDropdown').text(); var isZy = '0'; if (zytxt.indexOf('自营') > -1) { isZy = '1'; } if (!dp.fans_price) dp.fans_price = $('.fans-price .p-price-fans span').text().replace(/[¥¥]+/, ''); var info = { dp_id: other_info.now.dp_id, name: dp.name.trim(), price: price, promo: promoinfo.promo, promo_info: promo_info, plus_price: dp.plus_price, fans_price: dp.fans_price, isZy: isZy, stock: inventory // cat: cat, // venderId: vendorId, // noquan: noquan }; info = JSON.stringify(info); callback(info); }; var specialFilter = function specialFilter() { if (G.site === 'suning') { if ($('#timePanel span').text().indexOf('定金团') > -1 && $('#mainPrice .price-promo span').text().indexOf('定金') > -1) { return true; } } if (G.site === '360buy') { if ($('#pingou .summary-price').text().indexOf('定金') > -1) { return true; } } return false; }; var sendPromo = function sendPromo(info) { if (window.XMLHttpRequest) { try { var xml = new XMLHttpRequest(); xml.open('POST', G.server + '/extension?ac=sendPromos&site_id=' + G.site_id + '&jfrom=int'); xml.send(info); log('sendPromo_success'); } catch (e) {} } }; module.exports.init = function () { if (G.new_extension || G.btype == 'luyou') return; if (G.dp.activePrice) return; if (specialFilter()) return; try { var inventory = inventoryCheck.init(G.site); if (sitearr.indexOf(G.site) > -1) { if (G.site == '360buy') { getJdPromo(inventory, sendPromo); } else { var info = getPromoInfo(inventory); info = JSON.stringify(info); sendPromo(info); } } } catch (e) {} }; module.exports.specialFilter = specialFilter; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "d0de61a729123238553b": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, Highcharts, $, Vue, regeneratorRuntime) {var __WEBPACK_AMD_DEFINE_RESULT__; var _this = this; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var today = new Date(); var chart = undefined; var viewTest = __webpack_require__("f6ab27a2ba363b04ef1f"); var parsePrice = __webpack_require__("cb0906562effcf1b0e6c"); var getMidDay = __webpack_require__("f86fbf95570d4916afe7"); var $ = __webpack_require__("e081b2491b5c9b12b9da"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var util = __webpack_require__("d54879e983a83d07f093"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var countryConfig = __webpack_require__("9bf6d059e9a265559f0c"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); var chartBox = '#biggraph_' + G.from_device; var oneDay = 3600 * 24 * 1000; var needFold = false; var foldValue = undefined; // 折叠后的原价线Y轴坐标 var foldChange = undefined; // Y轴坐标与实际原价之差 var coudanSeries = undefined; var toolTipDom = undefined, moneyInfo = undefined; var discountInfo = {}, discountInfo2 = {}; var nopuzzlePpromo = undefined, lowHighInfoObj = {}, hideCoudanManage = {}; var noTbTrend = undefined; var halfYearExist = false; // highcharts的tooltip并没有消失时的onHide选项,给它加上 Highcharts.wrap(Highcharts.Tooltip.prototype, 'hide', function (proceed) { proceed && proceed.apply && proceed.apply(this); this.chart.tooltip.options.onHide && this.chart.tooltip.options.onHide.apply && this.chart.tooltip.options.onHide.apply(this); }); var currentSymbol = { folded: 'smallRect', extended: 'rect' }; if (G.IE7 || G.IE8) { currentSymbol.folded = 'circle'; currentSymbol.extended = 'circle'; } var currentShowing = 'plotAll'; var showingCenter = false; // 控制商城的显示 var showingManager = (function () { var showList = []; return { inList: function inList(name) { return showList.indexOf(name) > -1; }, add: function add(name) { if (showList.indexOf(name) > -1) { return; } else { showList.push(name); } }, remove: function remove(name) { var pos = showList.indexOf(name); if (pos > -1) { showList.splice(pos, 1); } }, clear: function clear() { showList = []; } }; })(); // 用于为商城分配颜色 var generateColorForStore = (function () { var colorList = {}; colorList['评论数'] = '#ca60a6'; var availableColors = ['#5ACFFB', '#eb46eb', '#ffad06', '#21c1db', '#b88ae6', '#b37036', '#b9db0f', '#ffd91c']; var i = 0; return function (storeName) { if (colorList[storeName]) { return colorList[storeName]; } else { if (i < availableColors.length) { colorList[storeName] = availableColors[i++]; return colorList[storeName]; } else { colorList[storeName] = '#' + parseInt(Math.random() * 256 * 256 * 256).toString(16); return colorList[storeName]; } } }; })(); // qrcode log var doLog = (function () { var hasLogged = false; return function () { if (!hasLogged) { hasLogged = true; cnzz.log('trend-qrcode-show'); log('trend-qrcode-show'); } }; })(); var copy = function copy(origin) { return JSON.parse(JSON.stringify(origin)); }; var originPrice = 0; var showHour = false; var store = undefined; var currentTime = undefined; var originData = undefined; var currentLineShowing = undefined; var plotWidth = undefined; originPrice = __webpack_require__("5632ccfc7463a4bc9012"); // 原始的价格数据大多是一天一个数据的,但是如果数据点过少,鼠标滑动时就会有卡顿感,因此绘制走势图时需要增大数据点的数目 // 填充好数据后,由于走势图上的点是连续的,和原始数据并不一致 // 例如3天的价格分别为1、2、3,走势图上第一天和第二天之间的数据为1.5,但是实际上并不存在这个价格,鼠标移到该位置时在tooltip中应该显示为1 // 此函数用于从实际走势图中的位置找到对应的原始价格 var getNearestPriceFromOriginData = function getNearestPriceFromOriginData(name, price, position, time) { var store = originData.store.filter(function (i) { return i.name === name; })[0]; if (store == undefined) { return price; } var arr = store[currentLineShowing]; if (!arr) { return price; } if (!store.all_equal_short && currentLineShowing !== 'short_day_line' && time) { var firstDay = undefined, days = undefined; switch (currentLineShowing) { case 'all_line': firstDay = store.all_line_begin_time; break; case 'half_year_line': firstDay = store.half_year_line_time; break; case 'month_line': firstDay = store.month_line_time; break; } firstDay = new Date(firstDay - 8 * 3600000); firstDay = new Date(firstDay.getYear() + 1900, firstDay.getMonth(), firstDay.getDate()); days = time - firstDay.getTime(); return arr[parseInt(days / oneDay)]; } //return arr[diff.indexOf(minVal)]; var intPos = parseInt(arr.length * position - 1); if (intPos < 0) { intPos += 1; } var toSelect = undefined; if (intPos >= 1) { toSelect = [arr[intPos - 1], arr[intPos], arr[intPos + 1]]; } else { toSelect = [arr[intPos], arr[intPos + 1]]; } toSelect = toSelect.filter(function (x) { return x !== undefined; }); var diff = toSelect.map(function (i) { return Math.abs(i - price); }); var p = diff.indexOf(Math.min.apply(null, diff)); return toSelect[p]; }; var mousePosition = { x: 0, y: 0 }; Highcharts.setOptions({ global: { timezoneOffset: 8 } }); // Highcharts选项 var obj = { chart: { renderTo: 'plotArea_' + G.from_device, type: 'line', animation: false, marginRight: 290, marginLeft: 70, events: { load: function load() { var firstSeries = this.series[0]; var pointStart = this.xAxis[0].max - oneDay * 5; if (firstSeries.options.pointStart > pointStart) { pointStart = firstSeries.options.pointStart; } var waterMarkSrc = showingCenter ? 'https://cdn.gwdang.com/images/extensions/[email protected]' : 'https://cdn.gwdang.com/images/extensions/[email protected]'; var img = this.renderer.image(waterMarkSrc, '50%', this.xAxis[0].top + 45, showingCenter ? 210 : 300, showingCenter ? 64 : 91); img.add(); if (showingCenter) { img.attr({ transform: 'translate(-105, 0)' }); } else { img.attr({ transform: 'translate(-150, 0)' }); } var series = this.series; // 让一个外部变量可访问,方便控制显示隐藏 if (series && series[1] && series[1].name === '凑单到手价') { coudanSeries = series[1]; } plotWidth = this.plotWidth; var theData = series[0].data; // theData.forEach((i) => { // if (i.y !== originPrice) { // originSeriesShouldShow = true; // } // }); var days = 0; switch (currentShowing) { case 'plotYear': days = 180; break; case 'plotMonth': days = 30; break; case 'plot5Day': days = 5; break; } if (currentShowing !== 'plotAll' && !showingCenter) { this.xAxis[0].update({ min: currentTime - days * oneDay, max: currentTime }); } var currentShowingSeries = series.filter(function (item) { return item.visible && item.name !== 'max' && item.name !== 'min'; }); if (currentShowingSeries.length === 0) { return; } var arr = currentShowingSeries.map(function (i) { return i.options.pointStart; }).filter(function (i) { return i; }); var minStart = Math.min.apply(null, arr); if (currentShowing !== 'plotAll' && !showingCenter) { minStart = currentTime - days * oneDay; } for (var i = 0; i < series.length; i++) { if (series[i].data.length) { theData = series[i].data; break; } } var lastPoint = theData[theData.length - 1]; this.xAxis[0].update({ min: minStart, max: lastPoint ? lastPoint.x : today.getTime() }); var lmin = undefined, lmax = undefined; lmin = Math.floor(this.yAxis[0].dataMin); lmax = Math.ceil(this.yAxis[0].dataMax); var interv2 = Math.pow(10, lmin.toString().length - 2); var tkinterv = undefined; if (this.yAxis[0].dataMax < 1) { lmin = this.yAxis[0].dataMin; lmax = this.yAxis[0].dataMax; tkinterv = (lmax - lmin) / 2; } else if (this.yAxis[0].dataMin === this.yAxis[0].dataMax) { lmin = Math.floor(lmin / interv2) * interv2; lmax = lmin * 2; lmin = 0; tkinterv = parseInt((lmax - lmin) / 2); } else { lmin = Math.floor(lmin / interv2) * interv2; lmax = Math.ceil(lmax / interv2) * interv2; tkinterv = parseInt((lmax - lmin) / 5); } // 调整最大最小值 使曲线看起来分布均匀 var tkinterv2 = Math.pow(10, parseInt(tkinterv).toString().length - 1); if (tkinterv < 1) { tkinterv2 = tkinterv; } tkinterv = Math.ceil(tkinterv / tkinterv2) * tkinterv2; this.yAxis[0].update({ min: lmin, max: lmax, tickInterval: tkinterv || 1 }); // if (this.yAxis.length > 1) { // if (this.yAxis[0].dataMin == this.yAxis[0].dataMax) { // let interv = parseInt(this.yAxis[0].dataMin * 0.2); // if (interv > 100) { // interv = Math.round(interv / 100) * 100 // } // this.yAxis[0].update({ // min: parseInt(this.yAxis[0].dataMin * 0.5), // max: parseInt(this.yAxis[0].dataMin * 1.5), // tickInterval: interv // }); // } // this.yAxis[1].update({ // min: this.yAxis[1].dataMin, // max: this.yAxis[1].dataMax, // tickInterval: parseInt(this.yAxis[1].dataMax / 5) || 1 // }); // this.xAxis[0].update({ // min: this.series[1].data[0].category // }); // } } } }, credits: { enabled: false }, title: { text: null, style: { fontWeight: 'bold', fontFamily: 'Microsoft YaHei', fontSize: 16 } }, xAxis: { offset: 0, type: 'datetime', dateTimeLabelFormats: { minute: '%m/%d', hour: '%m/%d', day: '%m/%d', week: '%m/%d', month: '%y/%m' }, crosshair: { dashStyle: 'ShortDash', snap: false, zIndex: 999, color: '#444' }, minorGridLineColor: '#dfdfdf', labels: { rotation: 0, y: 30, style: { fontSize: '12px', fontFamily: 'Helvetica', color: '#969899' }, align: 'center' }, gridLineColor: '#e6e9eb', lineColor: '#e6e9eb', gridLineWidth: 1, tickLength: 0, minTickInterval: oneDay, startOnTick: false, tickPositioner: function tickPositioner() { var positions = []; var min = this.min; var max = this.max; var minDate = new Date(min); var tick = 0; var mode = undefined; var months = 1; if (max - min > 300 * oneDay) { var s = new Date(1900 + minDate.getYear(), minDate.getMonth() + 1, 2); tick = s.getTime(); var widthPerMonth = plotWidth / ((max - min) / (30 * oneDay)); while (months * widthPerMonth < 100) { months++; } mode = 'nmonth'; } else if (max - min > 64 * oneDay) { var s = new Date(1900 + minDate.getYear(), minDate.getMonth() + 1, 2); tick = s.getTime(); mode = 'month'; } else if (max - min > 10 * oneDay) { tick = min; mode = 'day'; } else { var s = new Date(1900 + minDate.getYear(), minDate.getMonth(), minDate.getDate() + 1); tick = s.getTime(); mode = 'hour'; } while (tick - 3600000 * 15 <= max) { positions.push(tick - 3600000 * 15); switch (mode) { case 'month': var s = new Date(tick); var s1 = new Date(1900 + s.getYear(), s.getMonth() + 1, 2); tick = s1.getTime(); break; case 'day': tick += 5 * oneDay; break; case 'hour': tick += oneDay; break; case 'nmonth': s = new Date(tick); s1 = new Date(1900 + s.getYear(), s.getMonth() + months, 2); tick = s1.getTime(); break; } } if (showingCenter) { var i = 0; while (positions[i] < this.min) i++; positions = [positions[i], positions[positions.length - 1]]; } switch (mode) { case 'month': case 'nmonth': positions.info = { unitName: 'month', higherRanks: {} }; break; default: positions.info = { unitName: 'day', higherRanks: {} }; } // positions.forEach((i) => { // // }); return positions; } }, yAxis: { offset: 0, labels: { align: 'right', style: { fontSize: '12px', fontFamily: 'Helvetica', color: '#969899' }, formatter: function formatter() { var valStr = undefined; if (!needFold || this.value < foldValue) { valStr = Highcharts.numberFormat(this.value, 2); } else { valStr = Highcharts.numberFormat(this.value + foldChange, 2); } // if (valStr[valStr.length - 1] === '.') { // valStr += '00'; // } valStr = valStr.replace(',', ''); if (Number(valStr) > 9999) { valStr = Number(valStr); } else if (Number(valStr) > 10) { valStr = parseInt(valStr); } var min = this.axis.tickPositions[0]; if (this.axis.tickInterval === 1 && min === parseInt(min)) { valStr = valStr.toString().replace('.00', ''); } // let valNum = Number(valStr.replace(/,/g, '')) // if (valNum/100000 > 1) { // valStr = valNum/10000 + '万' // } return valStr; } }, align: 'high', gridLineColor: '#e6e9eb', minorGridLineWidth: 0, title: { text: null, rotation: 0, y: -20, x: -13, align: 'high', offset: 0, style: { fontFamily: 'Microsoft YaHei', fontSize: 12, color: '#969899' } } }, legend: { enabled: false }, plotOptions: { series: { turboThreshold: 0, states: { hover: { enabled: true, halo: { size: 0 } } }, marker: { enabled: false }, dataGrouping: { enabled: false }, animation: false }, line: { states: { hover: { enabled: true, lineWidth: 1 } } } }, tooltip: { shadow: false, shared: true, valueSuffix: '元', hideDelay: 0, shape: 'square', followPointer: false, dateTimeLabelFormats: { day: '%Y/%m/%e', minute: '%Y/%m/%e', second: '%Y/%m/%e', hour: '%Y/%m/%e %H:%M' }, useHTML: true, positioner: function positioner(boxWidth, boxHeight, point) { if (point.plotX + boxWidth > this.chart.plotWidth + 12) { return { x: point.plotX - boxWidth + this.chart.plotLeft, y: this.chart.plotHeight / 2 - boxHeight / 2 + 45 }; } return { x: point.plotX + this.chart.plotLeft, y: this.chart.plotHeight / 2 - boxHeight / 2 + 45 }; }, onHide: function onHide() { renderTooltip('hide'); }, formatter: function formatter() { var tipObj = {}; tipObj.x = this.x; var x = new Date(this.x - 3600000 * 8); var year = x.getFullYear(); var month = x.getMonth() + 1; var day = x.getDate(); var hour = x.getHours(); var hasdiscount = undefined; if (month < 10) month = '0' + month; if (day < 10) day = '0' + day; //showHour = true; var timeStr = year + '/' + month + '/' + day + (showHour ? ' ' + hour + ':00' : ''); tipObj.time = timeStr.replace(/\//g, '.'); var result1 = ""; var filtered = this.points.sort(function (a, b) { var s = getNearestPriceFromOriginData(b.series.name, b.y, (b.point.index + 1) / b.series.data.length, b.x - 8 * 3600000) - getNearestPriceFromOriginData(a.series.name, a.y, (a.point.index + 1) / a.series.data.length, b.x - 8 * 3600000); return s; }).filter(function (item) { if (item.series.name === 'max' || item.series.name === 'min') { return false; } return true; }); if (filtered.length === 0) { return false; } filtered.forEach(function (i, index) { var showName = i.point.series.name; var showPrice = getNearestPriceFromOriginData(showName, i.point.y, (i.point.index + 1) / i.point.series.data.length, i.point.x - 8 * 3600000); showPrice = Highcharts.numberFormat(showPrice, 2); if (showPrice[showPrice.length - 1] === '.') { showPrice += '00'; } if (showName == '页面价') { tipObj.pagePrice = showPrice.replace(/,/g, ''); } else if (showName == '凑单到手价') { tipObj.addpro = showPrice.replace(/,/g, ''); } if (showName === "凑单到手价" && i.y === filtered[0].y && i.y === Number(tipObj.pagePrice)) { result1 += ""; } else { if (showName === "凑单到手价") hasdiscount = true; } }); if (hasdiscount) { var promoObj = discountInfo[(this.points[0].x - 3600000 * 19).toString()]; var promotion = promoObj && promoObj["promotion"] || ""; var quan = promoObj && promoObj["coupon"] && promoObj["coupon"].replace("领券:", ""); var promoStr = ""; if (quan) { if (quan.match(/\d+-\d+/)) { var quanarr = quan.split('-'); promoStr += '券: 满' + quanarr[0] + '减' + quanarr[1] + ' '; } else { promoStr += '券: ' + quan + ' '; } } if (promotion) { promoStr += '促: ' + promotion; } tipObj.promo1 = promoStr; } if (noTbTrend) { var time = util.getTimeNumber(new Date().getTime(), '5'); // 不用highchart默认的tooltip 使用自定义的 if (timeStr === time) { renderTooltip(null, tipObj); } else { renderTooltip('hide'); } } else { renderTooltip(null, tipObj); } return; }, backgroundColor: 'rgba(255,255,255,0.94)', borderColor: '#d5d5d5', borderWidth: 1, style: { padding: 0 } }, series: [] }; if (G.IE7 || G.IE8) { obj.tooltip.style = { width: '400px' }; } var getEarlistDay = function getEarlistDay(store) { if (!store.length) { return false; } if (store.length === 1) { return store[0].all_line_begin_time; } return store.reduce(function (prev, next) { if (typeof prev == 'number') { return Math.min(prev, next.all_line_begin_time); } else { return Math.min(prev.all_line_begin_time, next.all_line_begin_time); } }); }; var seriesList = { plotAll: [], plotYear: [], plotMonth: [], plot5Day: [], plotSpecial: [], days180: [] }; var setXAxisMinInterval = function setXAxisMinInterval(x) { obj.xAxis.minTickInterval = x; }; var qrlogged = false; var showSeries = function showSeries(series, isCenter, obj, minibar) { if (isCenter === undefined) isCenter = false; if (!seriesList[series] || !seriesList[series].length) { var k = Object.keys(seriesList).filter(function (x) { return seriesList[x].length; }); series = k[0]; } $('#gwd-topText').hide(); $('.gwd-blurLayer').removeClass('gwd-blurLayer'); var series2 = series; showingCenter = isCenter; if (hideCoudanManage && hideCoudanManage[series]) { $('#mini_price_history_detail_btn').addClass('no-review'); $('.discount-price-re').hide(); $('#bar_trend_legend_btn').addClass('no-review'); } else if (hideCoudanManage) { $('#mini_price_history_detail_btn').removeClass('no-review'); $('.discount-price-re').show(); $('#bar_trend_legend_btn').removeClass('no-review'); } if (series === 'center') { series = 'plotAll'; } if (series !== 'days180') { // 加载概况 最高最低等信息 renderBarTrendInfo(series); } obj.series = seriesList[series]; if (series === 'days180') series = 'plotAll'; $('.floatButtons>a').removeClass('activePlot'); $('.floatButtons>#' + series).addClass('activePlot'); //new Highcharts.Chart(obj); var theSeries = seriesList[series2]; if (series === 'plot5Day') { setXAxisMinInterval(oneDay); showHour = true; currentLineShowing = 'short_day_line'; } else { showHour = false; } if (series === 'plotMonth') { setXAxisMinInterval(5 * oneDay); currentLineShowing = 'month_line'; } $('.gwd-not-login').removeClass('gwd-not-login'); if (series === 'plotAll') { if (minibar) { obj.chart.marginBottom = 23; } var dayLength = Math.max.apply(null, theSeries.map(function (i) { return i.data.length; })); if (!G.email) { // $('.max-min-priinfo').addClass('gwd-not-login') $('.barTrendInfoBox').addClass('gwd-not-login'); } else { $('.gwd-not-login').removeClass('gwd-not-login'); } //在非淘宝天猫网站上,如果全部的时间超过180天,需要登陆 if (store[0].half_year_line) { halfYearExist = true; } if (G.site !== 'tmall' && G.site !== 'taobao' && halfYearExist) { if (theSeries[0].pointStart < new Date().getTime() - 180 * 24 * 3600000 && !G.email) { (function () { $('#gwd-topText').show(); if (__webpack_require__("2517c4f5c89f34233e53").getChromeVersion() < 53) { $('#gwd-topText').css('background', 'white'); } var LoginBox = __webpack_require__("2d53f53e0179317f1fdf")['default']; new Vue({ el: '#gwd-trend-login', render: function render(h) { return h(LoginBox); } }); $('#plotArea_' + G.from_device).addClass('gwd-blurLayer'); })(); } } if (dayLength > 30) { setXAxisMinInterval(30 * oneDay); } else if (dayLength > 5) { setXAxisMinInterval(5 * oneDay); } else { setXAxisMinInterval(oneDay); } currentLineShowing = 'all_line'; if (store[0].all_equal_short || store[0].all_line.length < 5 && store.length == 1) { currentLineShowing = 'short_day_line'; showHour = true; if (store[0].all_line.length < 5 && store.length == 1) { obj.series[0].pointStart = today.getTime() + 8 * 3600000 - (store[0].all_line.length - 1) * oneDay; } } } if (series === 'plotYear') { setXAxisMinInterval(30 * oneDay); currentLineShowing = 'half_year_line'; } if (isCenter) { //currentShowing = 'center'; } else { currentShowing = series; } chart = new Highcharts.Chart(obj); window.gwd_chart = chart; if (isCenter) { var s = chart.series[0].data; var lastPoint = s[s.length - 1]; if (chart.series.length > 1) { s = chart.series[1].data; if (s[s.length - 1].plotX === lastPoint.plotX && s[s.length - 1].plotY !== lastPoint.plotY) { lastPoint = s[s.length - 1]; } } globalCondition.setMet('lastPointPos', lastPoint); } }; var enablePlot = function enablePlot(plotName) { $('.floatButtons>' + plotName).removeClass('bjd-hidden'); }; var doBind = function doBind() { $('.floatButtons').on('click', 'a', function (e) { showSeries(e.target.id, false, util.deepCopy(obj)); }); }; var doMainBind = function doMainBind() { var hidecoudanBar = undefined; $('#bar_trend_legend_btn').on('click', function (e) { var id = $(e.target).attr('data-id'); if (!id) id = $(e.target).parent().attr('data-id'); if (id === 'plotSpecial') { if (!hidecoudanBar) { hidecoudanBar = true; coudanSeries.hide(); $('#bar_trend_legend_btn').addClass('hideserires'); } else { coudanSeries.show(); hidecoudanBar = false; $('#bar_trend_legend_btn').removeClass('hideserires'); } } }); }; var doMiniBind = function doMiniBind() { var hidecoudan = undefined; $('#mini_price_history_detail_btn').on('click', function (e) { var id = $(e.target).attr('data-id'); if (!id) id = $(e.target).parent().attr('data-id'); if (id === 'plotSpecial') { if (!hidecoudan) { hidecoudan = true; coudanSeries.hide(); $('#mini_price_history_detail_btn').addClass('hideserires'); } else { coudanSeries.show(); hidecoudan = false; $('#mini_price_history_detail_btn').removeClass('hideserires'); } } }); }; var resetData = function resetData(i) { return { y: i, marker: { enabled: false } }; }; // 加载价格走势最高最低信息 var renderBarTrendInfo = function renderBarTrendInfo(series) { var showcoudan = undefined; var obj1 = lowHighInfoObj[series + '0']; if (!obj1) { obj1 = Object.keys(lowHighInfoObj)[0]; obj1 = lowHighInfoObj[obj1]; } if (typeof obj1.lowestDate === 'number') obj1.lowestDate = util.getTimeNumber(obj1.lowestDate); var obj2 = lowHighInfoObj[series + '1']; if (obj2) { if (obj2.Plowest < obj1.Plowest) showcoudan = true; if (typeof obj2.lowestDate === 'number') obj2.lowestDate = util.getTimeNumber(obj2.lowestDate); if (moneyInfo) { obj2.display_nowprice = obj2.nowprice ? moneyInfo[0] + obj2.nowprice : obj2.nowprice; obj2.display_Phighest = obj2.Phighest ? moneyInfo[0] + obj2.Phighest : obj2.Phighest; obj2.display_Plowest = obj2.Plowest ? moneyInfo[0] + obj2.Plowest : obj2.Plowest; } else { obj2.display_nowprice = '¥' + obj2.nowprice; obj2.display_Phighest = '¥' + obj2.Phighest; obj2.display_Plowest = '¥' + obj2.Plowest; } } if (moneyInfo) { obj1.display_nowprice = obj1.nowprice ? moneyInfo[0] + obj1.nowprice : obj1.nowprice; obj1.display_Phighest = obj1.Phighest ? moneyInfo[0] + obj1.Phighest : obj1.Phighest; obj1.display_Plowest = obj1.Plowest ? moneyInfo[0] + obj1.Plowest : obj1.Plowest; } else { obj1.display_nowprice = '¥' + obj1.nowprice; obj1.display_Phighest = '¥' + obj1.Phighest; obj1.display_Plowest = '¥' + obj1.Plowest; } var html = __webpack_require__("3879e534af5afa81bdf4"); $('.barTrendInfoBox').remove(); var lowtle = '最低(单 件):'; if (G.aliSite) { lowtle = '最低:'; } else if (!hideCoudanManage || !obj2) { lowtle = '最低(单件):'; } var oinfo = userData.get('other_info'); var dp_id = oinfo && oinfo.now && oinfo.now.dp_id; var promoUrl = undefined; if (dp_id) { promoUrl = 'https://www.gwdang.com/trend/' + dp_id + '.html?static=true'; } if (obj1 && obj2 && obj1.Plowest === obj2.Plowest && obj1.lowestDate === obj2.lowestDate) { obj2 = null; } if (!G.h_nopuzzle_promo) { promoUrl = null; } $('#gwdang-pri-trend-chart').append(template.compile(html)({ d1: obj1, d2: obj2, aliSite: G.aliSite, promoUrl: promoUrl, lowtle: lowtle, showcoudan: showcoudan })); globalCondition.setMet('promoUrl', promoUrl); setTimeout(function () { // 为了上下对齐, 需要手动计算一次上面的距离给下面 var ppiW = $('#gwdang-trend-detail .opi-sp1').outerWidth() + $('#gwdang-trend-detail .opi-sp2').outerWidth(); $('#gwdang-trend-detail .ppi-sp1').width(Math.ceil(ppiW) + 2); }, 100); }; var getLowestDate2 = function getLowestDate2(ki, data) { var store = data.store[ki]; if (ki === 1) { var origin_st = data.store[0].all_line; if (store.all_line.join("") === origin_st.join("")) { return; } } getLowestDate('plotAll', ki, store.all_line, store.all_equal_short, store.all_line_begin_time, data.promo); if (store.half_year_line && store.half_year_line.length > 0) { if (ki === 1) { var origin_st = data.store[0].half_year_line; if (store.half_year_line.join("") === origin_st.join("")) { return; } } getLowestDate('plotYear', ki, store.half_year_line, store.all_equal_short, store.half_year_line_time, data.promo); } var newStsize = store.all_line.length; if (newStsize > 180) { newStsize = store.all_line.length; var newSt = store.all_line.slice(newStsize - 180); if (ki === 1) { var origin_st = data.store[0].all_line.slice(newStsize - 180); if (newSt.join("") === origin_st.join("")) { return; } } var pointStart = store.all_line_begin_time + 86400000 * (newStsize - 180); getLowestDate('days180', ki, newSt, store.all_equal_short, pointStart, data.promo); } else { if (ki === 1) { var origin_st = data.store[0].all_line; if (store.all_line.join("") === origin_st.join("")) { return; } } getLowestDate('days180', ki, store.all_line, store.all_equal_short, store.all_line_begin_time, data.promo); } if (store.month_line && store.month_line.length > 0) { if (ki === 1) { var origin_st = data.store[0].month_line; if (store.month_line.join("") === origin_st.join("")) { return; } } getLowestDate('plotMonth', ki, store.month_line, store.all_equal_short, store.month_line_time, data.promo); } }; var getLowestDate = function getLowestDate(id, ki, newSt, all_equal_short, pointStart, promo) { // 计算最低最高点 以及最低点对应的时间 id = id + ki.toString(); lowHighInfoObj[id] = {}; var Plowest = undefined, Phighest = undefined; var lowestDate = undefined; var lowestPromo = undefined, lowestPromoPprice = undefined, lowestCoupon = undefined; Plowest = Math.min.apply(Math, newSt); Phighest = Math.max.apply(Math, newSt); var low_index = newSt.lastIndexOf(Plowest); var low_index2 = low_index; var point_interval = 86400000; if (all_equal_short) point_interval = 3600000; lowestDate = pointStart + point_interval * low_index; if (ki == 1) { for (var k = low_index2; k > 0; k--) { if (newSt[k] === newSt[low_index2]) { var str = (pointStart + point_interval * k - 3600000 * 8).toString(); if (Number(discountInfo2[str] && discountInfo2[str].price) == Plowest) { lowestDate = Number(str) + 3600000 * 8; break; } } } for (var i = 0; i < promo.length; i++) { // 获取最低点对应的促销活动 if (promo[i].time * 1000 === lowestDate - 3600000 * 8) { lowestPromo = promo[i].msg.promotion; lowestCoupon = promo[i].msg.coupon && promo[i].msg.coupon.replace("领券:", ""); lowestPromoPprice = (promo[i].ori_price / 100).toFixed(2); } } } lowHighInfoObj[id].lowestDate = lowestDate; lowHighInfoObj[id].Plowest = Number(Plowest).toFixed(2); lowHighInfoObj[id].Phighest = Number(Phighest).toFixed(2); if (lowHighInfoObj[id].Phighest === lowHighInfoObj[id].Plowest) { lowHighInfoObj[id].nowprice = lowHighInfoObj[id].Plowest; } if (lowestPromo || lowestCoupon) { var str = ''; str += '页面价' + lowestPromoPprice + ' '; if (lowestCoupon) { if (lowestCoupon.match(/\d+-\d+/)) { var quanarr = lowestCoupon.split('-'); str += '券: 满' + quanarr[0] + '减' + quanarr[1] + ' '; } else { str += '券: ' + lowestCoupon + ' '; } } if (lowestPromo) str = str + '促: ' + lowestPromo.replace(/,/g, ','); lowHighInfoObj[id].lowestPromo = str; lowHighInfoObj[id].lowestPromoPprice = lowestPromoPprice; } }; var pageLow = {}; // 在走势图上加label标签 var addSeriesDataLabels = function addSeriesDataLabels(data, nopuzzle_promo, key) { var addpromo = undefined; if (data.name === '页面价' && nopuzzle_promo) { addpromo = true; } var obj = { enabled: true, borderColor: '#f2f2f2', borderWidth: 1, padding: 3, backgroundColor: 'rgba(255, 255, 255, 0.7)', shadow: false, borderRadius: 2, style: { fontWeight: 'normal', fontFamily: 'Helvetica', fontSize: '13px' }, y: -3, formatter: function formatter() { return '¥' + this.y.toString().replace(',', ''); } }; var list = data.data; var lowestIndex = 0; var highestIndex = 0; var low = list[0].y || 9999999; var high = list[0].y || 0; var allNull = true; for (var i = 0; i < list.length; i++) { if (i != 0 && i != list.length - 1 && list[i].y) { allNull = false; } if (addpromo) { for (var j = 0; j < nopuzzle_promo.length; j++) { if (data.pointStart + data.pointInterval * i - 3600000 * 19 === nopuzzle_promo[j].time * 1000) { if (nopuzzle_promo[j].showCircle) { list[i].marker = { enabled: true, fillColor: '#fff', lineColor: '#5ACFFB', radius: 2.5, lineWidth: 1, symbol: "circle" }; } } } } if (list[i].y && list[i].y >= high) { high = list[i].y; highestIndex = i; } if (list[i].y && list[i].y <= low) { low = list[i].y; lowestIndex = i; } } if (data.name === '页面价') { pageLow[key] = list[lowestIndex].y; } if (allNull && data.name === '凑单到手价' && hideCoudanManage) { hideCoudanManage[key] = true; return; } if ((!list[lowestIndex - 1] || list[lowestIndex - 1].y === null) && (!list[lowestIndex + 1] || list[lowestIndex + 1].y === null)) { return; } if (data.name === '凑单到手价' && pageLow[key] === list[lowestIndex].y) { return; } if (highestIndex === lowestIndex) { obj.color = '#3FC0F0'; // list[highestIndex].dataLabels = obj; } else { obj.color = '#E4393C'; if (data.name === '页面价') { // list[highestIndex].dataLabels = obj; list[highestIndex].marker = { enabled: true, fillColor: 'rgba(228,57,60,1)', lineColor: 'rgba(228,57,60,0.3233)', radius: 2.5, lineWidth: 4, symbol: "circle" }; } var obj2 = JSON.parse(JSON.stringify(obj)); obj2.color = '#35BD68'; var fillColor = 'rgba(53,189,104,1)'; var lineColor = 'rgba(53,189,104,0.3233)'; if (data.name === '凑单到手价') { obj2.color = '#FFC06D'; fillColor = 'rgba(255,166,0,1)'; lineColor = 'rgba(255,166,0,0.3233)'; } // list[lowestIndex].dataLabels = obj2; list[lowestIndex].marker = { enabled: true, fillColor: fillColor, lineColor: lineColor, radius: 2.5, lineWidth: 4, symbol: "circle" }; } if (noTbTrend) { list[list.length - 1].marker = { enabled: true, fillColor: '#5ACFFB', radius: 2.5, lineWidth: 0, symbol: "circle" }; } }; var renderTooltip = function renderTooltip(ishide, data) { if (ishide) { $(toolTipDom).hide(); return; } $(toolTipDom).show(); if (data.addpro === data.pagePrice) data.addpro = null; if (nopuzzlePpromo) { for (var i = 0; i < nopuzzlePpromo.length; i++) { if (data.x - 3600000 * 19 === nopuzzlePpromo[i].time * 1000) { var str = ''; if (nopuzzlePpromo[i].msg.coupon) { var coupon = nopuzzlePpromo[i].msg.coupon; if (coupon.match(/\d+-\d+/)) { var quanarr = coupon.split('-'); str += '券: 满' + quanarr[0] + '减' + quanarr[1] + ' '; } else { str += '券: ' + coupon + ' '; } } if (nopuzzlePpromo[i].msg.promotion) { str = str + '促: ' + nopuzzlePpromo[i].msg.promotion + ' '; } data.directpro = (nopuzzlePpromo[i].price / 100).toFixed(2); data.promo2 = str; data.pagePrice = (nopuzzlePpromo[i].ori_price / 100).toFixed(2); } } } var html = __webpack_require__("f310ed98be534b8c4bd0"); if (toolTipDom !== '#big_tooltip') { html = __webpack_require__("2b14a6ec322d5724c6b1"); } var domclass = ''; if (data.directpro) domclass += 'directpro '; if (data.addpro) domclass += 'addpro '; if (data.addpro || data.directpro) { $(toolTipDom).addClass('bigheight'); } else { $(toolTipDom).removeClass('bigheight'); } if (moneyInfo) { var np = parsePrice(data.pagePrice, moneyInfo[2]); data.pagePrice = moneyInfo[0] + data.pagePrice + ('(¥' + np + ')'); } else { data.pagePrice = '¥' + data.pagePrice; } $(toolTipDom).empty().append(template.compile(html)({ data: data, domclass: domclass, aliSite: false })); }; // 两条线相同点部分去掉 避免重叠造成颜色污染 var sliceData = function sliceData(data) { for (var pattern in data) { if (data[pattern].length && data[pattern].length > 1 && data[pattern][1].name === "凑单到手价") { var size = data[pattern][0].data.length; for (var i = 2; i < size; i++) { var a1 = data[pattern][0].data; var a2 = data[pattern][1].data; if (a1[i].y === a2[i].y && a1[i - 1].y === a2[i - 1].y && (a1[i - 2].y === a2[i - 2].y || a2[i - 2].y === null)) { a2[i - 1].y = null; } } } } }; exports = { init: function init(data) { var currentPage = arguments.length <= 1 || arguments[1] === undefined ? 'dpPage' : arguments[1]; var target = arguments.length <= 2 || arguments[2] === undefined ? false : arguments[2]; var plotLinesHideStatus = arguments.length <= 3 || arguments[3] === undefined ? false : arguments[3]; var renderMiniTrendInfo, biggraphState, renderMiniTrend; return regeneratorRuntime.async(function init$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: // 评论走势 //renderReviewData(data) currentShowing = 'plotAll'; seriesList = { plotAll: [], plotYear: [], plotMonth: [], plot5Day: [], plotSpecial: [], days180: [] }; originPrice = 0; renderMiniTrendInfo = undefined; // 加载货币配置 获取当前网站货币符号 moneyInfo = countryConfig.getMoneyInfo(G.logsite); if (moneyInfo[2] === 'CNY') moneyInfo = null; if (data.taobaoNoTrend) noTbTrend = true; if (!(data.store && data.store[0] && data.store[0].all_line.length === 0)) { context$2$0.next = 9; break; } return context$2$0.abrupt('return'); case 9: $('body').append('<div id="biggraph_' + G.from_device + '" style="position: absolute;left: -1000000px; top: -100000px;background: white;overflow: hidden"></div>'); $(chartBox).append(template.compile(viewTest)({ extBrand: G.extBrand, from_device: G.from_device, s_server: G.s_server })); biggraphState = ''; doBind(); if (target) { $(target).append($(chartBox)); } // 顶部 $('#' + G.extName + '-trend').hover(function () { toolTipDom = '#big_tooltip_top'; obj.chart.marginRight = 30; obj.chart.marginBottom = 23; obj.chart.marginTop = 4; obj.xAxis.labels.y = 22; if (moneyInfo) { obj.yAxis.title.text = moneyInfo[1]; obj.yAxis.title.y = 176; } var num = parseInt(lowHighInfoObj['plotAll0'].Phighest).toString().length; obj.chart.marginLeft = 29 + 9 + parseInt(num * 6.8); obj.yAxis.labels.x = -9; obj.yAxis.title.x = -(9 + parseInt(num * 6.8) - 24); $(chartBox).css({ left: 0, top: 0, bottom: 0, right: 0 }); if (biggraphState === 'trend') return; var chartArea = $('#' + G.extName + '-pri-trend-chart'); chartArea.append($(chartBox)); biggraphState = 'trend'; $('.floatButtons').show(); $('#bjd-qrcode-trend').show(); if ($('#bjd-qrcode-trend').length) { doLog(); } $(chartBox).css({ visibility: 'hidden' }); window.setTimeout(function () { var width1 = $('.floatButtons').width(); $('#bar_trend_legend_btn').css('right', width1 + 50 + 'px'); showSeries(currentShowing, false, util.deepCopy(obj)); var width = $('#' + G.extName + '-pri-trend-chart').width(); chart.setSize(width, 182); plotWidth = chart.plotWidth; chart.axes[0].update(obj.xAxis); $(chartBox).css({ visibility: 'visible' }); doMainBind(); }, 0); }); renderMiniTrend = function renderMiniTrend(detail) { toolTipDom = '#big_tooltip'; var lowest_obj = lowHighInfoObj['days1800']; var lowest_obj2 = undefined, lowestDate = undefined, lowestDate2 = undefined; if (data.store[1] && data.store[1].name === '凑单到手价') { lowest_obj2 = lowHighInfoObj['days1801']; lowestDate2 = lowest_obj2 && lowest_obj2.lowestDate; lowestDate2 = lowestDate2 && util.getTimeNumber(lowestDate2); } lowestDate = lowest_obj.lowestDate; if (G.aliSite && data.lowestTime) lowestDate = new Date(data.lowestTime).getTime(); lowestDate = lowestDate - 3600000 * 8; lowestDate = util.getTimeNumber(lowestDate); if (!renderMiniTrendInfo) { var oinfo = userData.get('other_info'); var dp_id = oinfo && oinfo.now && oinfo.now.dp_id; var promoUrl = undefined; if (dp_id) { promoUrl = 'https://www.gwdang.com/trend/' + dp_id + '.html?static=true'; } var infohtml = __webpack_require__("b99206afdb5411c58b0e"); var lowtle = '最低(单 件):'; if (G.aliSite) { lowtle = '最低:'; } else if (!hideCoudanManage || !lowestDate2) { lowtle = '最低(单件):'; } if (lowest_obj && lowest_obj2 && lowest_obj.Plowest === lowest_obj2.Plowest && lowest_obj.lowestDate === lowest_obj2.lowestDate) { lowest_obj2 = null; } if (!G.h_nopuzzle_promo) { promoUrl = null; } if ($('.orign-pri-info').length) { $('.orign-pri-info').remove(); } if ($('.mini-share-product').length) { $('.mini-share-product').remove(); $('#mini-share-btn').remove(); } $('.max-min-priinfo').append(template.compile(infohtml)({ lowtle: lowtle, aliSite: G.aliSite, lowest_obj: lowest_obj, lowestDate: lowestDate, lowestDate2: lowestDate2, promoUrl: promoUrl, lowest_obj2: lowest_obj2, currency: moneyInfo ? moneyInfo[0] : '¥' })); globalCondition.setMet('promoUrl', promoUrl); // 分享商品 // require('shareProduct').init(data.price_status) if (!lowest_obj2) { $('#mini_price_history').removeClass('coudanpri'); } setTimeout(function () { var ppiW = $('.opi-sp1').outerWidth() + $('.opi-sp2').outerWidth(); $('.promo-pri-info .ppi-sp1').width(Math.ceil(ppiW) + 2); }, 100); renderMiniTrendInfo = true; } if (moneyInfo) { $('#mini_price_history .ht-mm-max').text(moneyInfo[0] + lowest_obj.Phighest); $('#mini_price_history .ht-mm-min').text(moneyInfo[0] + lowest_obj.Plowest); $('#big_tooltip').addClass('ht_tip'); } obj.title.x = 0; obj.chart.marginRight = 16; obj.chart.marginTop = 5; obj.yAxis.title.text = null; obj.xAxis.labels.y = 20; obj.xAxis.labels.x = -2; obj.yAxis.title.y = -26; if (moneyInfo) { obj.chart.marginTop = 4; var num = parseInt(lowest_obj.Phighest).toString().length; obj.chart.marginRight = 2; obj.chart.marginLeft = Math.ceil(num * 6.8 + 11); obj.chart.marginBottom = 24; // obj.yAxis.labels.x = -Math.ceil(num * 6.8 + 11); obj.yAxis.labels.x = -14; obj.yAxis.title.x = -(Math.ceil(num * 6.8 + 11) - 24); //25 title长度 obj.yAxis.title.text = moneyInfo[1]; // obj.yAxis.title.y = 162; obj.yAxis.title.y = -12; } else { var num = parseInt(lowest_obj.Phighest).toString().length; obj.chart.marginLeft = 16 + 14 + parseInt(num * 6.8); obj.yAxis.labels.x = -14; } if (lowest_obj.Phighest < 1) { obj.chart.marginLeft = 16 + 14 + parseInt(4 * 6.8); } if (G.site === 'amazon') { obj.chart.marginLeft = 50; } $('.floatButtons').hide(); $('#bjd-qrcode-trend').hide(); // yhd.com $('#detailPromotion').css({ zIndex: 0 }); $(chartBox).css({ left: 0, top: 0, bottom: 0, right: 0 }); if (biggraphState === 'btn') return; $(detail).append($(chartBox)); doMiniBind(); biggraphState = 'btn'; $(chartBox).css({ visibility: 'hidden' }); window.setTimeout(function () { originPrice = 0; // if (data.store[0].all_line.length > 31 && !data.store[0].all_equal_short) { // showSeries('plotMonth', true); // } else { // showSeries('plotAll', true); // } // debugger var toShow = 'days180'; if (store[0].all_line.length < 180) { toShow = currentShowing; } if (store[0].half_year_line) { halfYearExist = true; } showSeries(toShow, true, util.deepCopy(obj), true); var width1 = $('#bdext_mini_trendbox').width(); var height1 = 182; if (!width1) { width1 = 460; } if (G.site == 'amazon') { width1 = 450; } if (width1 && width1 > 0) { chart.setSize(width1, height1, false); } $(chartBox).css({ visibility: 'visible' }); }, 25); }; // 中间 $('#mini_price_history').hover(function () { var doms = '#mini_price_history_detail_chart'; // if (G.site == 'amazon' || G.site == '6pm') { // doms = '#mini_ht_detail_chart' // } renderMiniTrend(doms); }); // yhd.com $('#mini_price_history_detail').mouseleave(function () { $('#detailPromotion').css({ zIndex: 15 }); }); // 底部 $('#gwd-trend').hover(function () { // obj.yAxis.title.text = foreignTitle if (biggraphState === 'gwd') return; obj.chart.marginRight = 60; obj.chart.marginBottom = 23; obj.chart.marginTop = 4; obj.xAxis.labels.y = 22; $(chartBox).css({ left: 0, top: 0, bottom: 0, right: 0 }); $('#gwd-trend-chart').append($(chartBox)); biggraphState = 'gwd'; $(chartBox).css({ visibility: 'hidden' }); window.setTimeout(function () { showSeries(currentShowing, false, util.deepCopy(obj)); chart.reflow(); $(chartBox).css({ visibility: 'visible' }); $('#gwd-trend-chart').show(); doMainBind(); }, 0); $('.floatButtons').show(); $('#bjd-qrcode-trend').show(); if ($('#bjd-qrcode-trend').length) { doLog(); } $('#bjd-qrcode-trend').css('bottom', '9px'); }); $('#plotArea_' + G.from_device).css({ maxWidth: document.body.clientWidth - 280 + 'px' }); $('#plotArea_' + G.from_device).mousemove(function (e) { mousePosition.x = e.pageX; mousePosition.y = e.pageY; }); $('#plotArea_' + G.from_device).click(function () { return false; }); if (data) { (function () { store = data.store; getLowestDate2(0, data); if (data.store[1] && data.store[1].name === "凑单到手价" && data.promo) { // 如果有凑单到手价同时有对应的促销活动 把促销活动信息给一个全局变量方便取用 for (var i = 0; i < data.promo.length; i++) { discountInfo[(data.promo[i].time * 1000).toString()] = data.promo[i].msg; discountInfo2[(data.promo[i].time * 1000).toString()] = { price: data.promo[i].price, info: data.promo[i].msg.promotion }; } // 计算最低最高价和时间 getLowestDate2(1, data); $(".discount-price-re").show(); $('#mini_price_history').addClass('coudanpri'); } else { hideCoudanManage = null; $('#bar_trend_legend_btn').addClass('no-review'); $('#mini_price_history_detail_btn').addClass('no-review'); } if (data.nopuzzle_promo) { G.h_nopuzzle_promo = true; } // if (G.aliSite) { // $('#bar_trend_legend_btn').remove() // $('#mini_price_history_detail_btn').addClass('aliSite') // } originData = data; var earlistDay = Math.min(data.store[0] && data.store[0].all_line_begin_time, getEarlistDay(store)); var currentDay = data.now_day; currentTime = data.now_day; var seriesConfig = [{ plot: 'plotAll', start: 'all_line_begin_time', minDay: 0.1, data: 'all_line' }, { plot: 'plotMonth', start: 'month_line_time', minDay: 30, data: 'month_line' }, { plot: 'plotYear', start: 'half_year_line_time', minDay: 0.1, data: 'half_year_line' }, { plot: 'days180', start: 'all_line_begin_time', minDay: 0.1, data: 'all_line' }]; enablePlot('#plotAll'); // if (store[0].name.indexOf('(当前)') === -1) { // store[0].name += '(当前)'; // } store[0].name = "页面价"; var storeLimit = 18; if (currentPage === 'zhidemai') { storeLimit = 1; } if (currentPage === 'priceHistory') { storeLimit = 20; } var allDays = parseInt((currentDay - earlistDay) / oneDay); for (var i = 0; i < Math.min(store.length, storeLimit); i++) { if (store[i].all_line.length === 0) continue; // if (store[i].promo && store[i].promo.length > 0) { // promotionData[store[i].name] = store[i].promo[0].desc; // } if (store[i].all_equal_short && store.length !== 1) { store[i].all_line = []; for (var j = 0; j < store[i].short_day_line.length; j += 24) { store[i].all_line.push(store[i].short_day_line[j]); } store[i].all_line_begin_time = data.now_day - 5 * oneDay; store[i].all_equal_short = false; } for (var k = 0; k < seriesConfig.length; k++) { var j = seriesConfig[k]; if (getMidDay(currentDay) - getMidDay(earlistDay) >= j.minDay * oneDay) { if (!store[i][j.data]) { continue; } if (j.start !== 'short_day_line_begin_time') { store[i][j.start] = getMidDay(store[i][j.start]); } if (store[i].all_equal_short && j.start === 'all_line_begin_time') { store[i][j.start] = store[i].short_day_line_begin_time; } enablePlot('#' + j.plot); var newSeries = { color: generateColorForStore(store[i].name), name: store[i].name, pointStart: store[i][j.start], pointInterval: oneDay, legendIndex: 1, connectNulls: false, lineWidth: 1, zIndex: 500 - i * 500 - 1, marker: { //symbol: 'rect', symbol: currentSymbol.extended, states: { hover: { enabled: false } } }, states: { hover: { enabled: false, halo: { size: 0 } } }, data: store[i][j.data] }; if (store[i].name === '凑单到手价') { newSeries.color = "#FFC06D"; } if (noTbTrend) { newSeries.dashStyle = "Dash"; } if (j.plot === 'plot5Day') { //newSeries.pointStart -= 5*oneDay; newSeries.pointInterval = 3600000; if (newSeries.pointInterval * newSeries.data.length + newSeries.pointStart > currentTime) { currentTime = newSeries.pointInterval * newSeries.data.length + newSeries.pointStart; } } if (j.plot === 'plotAll' && newSeries.data.length < 30) { newSeries.pointInterval = oneDay; setXAxisMinInterval(oneDay); } if ((j.plot === 'plotAll' || j.plot === 'days180') && store[i].all_equal_short) { if (i === 0) { newSeries.pointInterval = 3600000; //all_equal_short = true; } else { var s = new Date(newSeries.pointStart); var s2 = new Date(s.getYear() + 1900, s.getMonth(), s.getDate(), 8); newSeries.pointStart = s2.getTime(); newSeries.pointInterval = oneDay; var tmpData = []; for (var _i = 0; _i < newSeries.data.length; _i += 24) { tmpData.push(newSeries.data[_i]); } newSeries.data = tmpData; } } // 增大点的密度,使移动平滑 newSeries.addPointTimes = 1; while (newSeries.data && newSeries.data.length < 100) { if (j.plot === 'plotAll') { break; } var newData = []; for (var _k = 0; _k < newSeries.data.length; _k++) { newData.push(newSeries.data[_k]); if (_k + 1 === newSeries.data.length) break; newData.push(newSeries.data[_k]); } newSeries.data = newData; newSeries.pointInterval = newSeries.pointInterval / 2; newSeries.addPointTimes = newSeries.addPointTimes * 2; } newSeries.data = newSeries.data ? newSeries.data.map(resetData) : null; if (newSeries.data != null) { seriesList[j.plot].push(newSeries); } } } } if (seriesList['plotAll'].length === 1) { var series = seriesList['plotAll'][0]; series.data = series.data.map(function (i) { return i.y; }); while (series.data.length < 100) { var newData = []; for (var k = 0; k < series.data.length; k++) { newData.push(series.data[k]); if (k + 1 === series.data.length) break; newData.push(series.data[k]); } series.data = newData; series.pointInterval = series.pointInterval / 2; } series.data = series.data.map(function (i) { return { y: i, marker: { enabled: false } }; }); } // 和原始数据重合的点 去掉 sliceData(seriesList); if (!store[0].all_equal_short) { $('#plotAll').html('全部' + store[0].all_line.length + '天'); if (store[0].all_line.length > 180) { currentShowing = 'plotYear'; } } else { allDays++; $('#plotAll').html('全部(' + allDays + '天)'); } showingManager.clear(); // 默认显示原始价格和当前商品 if (originPrice && currentPage !== 'zhidemai') { showingManager.add('当前商城原始价格'); } showingManager.add(store[0].name); // data copy start var mergeSeries = function mergeSeries(a, b) { var bList = b.map(function (item) { return item.name; }); return a.map(function (item) { if (bList.indexOf(item.name) === -1) { return item; } else { var toMerge = b.filter(function (j) { return j.name === item.name; })[0]; var tmp = copy(item); tmp.data = toMerge.data; tmp.pointStart = toMerge.pointStart; tmp.pointInterval = toMerge.pointInterval; return tmp; } }); }; var fillSeries = function fillSeries(seriesList) { var pointIntervalList = seriesList.map(function (i) { return i.pointInterval; }); var minInterval = Math.min.apply(null, pointIntervalList); seriesList.forEach(function (series) { while (series.pointInterval > minInterval) { var newData = []; for (var i = 0; i < series.data.length; i++) { newData.push(series.data[i]); if (i + 1 === series.data.length) break; var newPoint = { marker: series.data[i].marker, y: (series.data[i + 1].y + series.data[i].y) / 2 }; newData.push(newPoint); } series.pointInterval = series.pointInterval / 2; series.data = newData; } }); }; ['plotMonth', 'plotYear'].forEach(function (i) { if (!$('#' + i).hasClass('bjd-hidden')) { var allSeries = seriesList['plotAll']; var thisSeries = seriesList[i]; var toAdd = mergeSeries(allSeries, thisSeries); seriesList[i] = toAdd; fillSeries(seriesList[i]); } }); fillSeries(seriesList['plotAll']); var days180_size = seriesList['days180'][0] && seriesList['days180'][0].data.length; if (days180_size && days180_size > 180) { for (var k = 0; k < seriesList['days180'].length; k++) { seriesList['days180'][k].data.splice(0, days180_size - 180); seriesList['days180'][k]['pointStart'] = seriesList['days180'][k]['pointStart'] + seriesList['days180'][k]['pointInterval'] * (days180_size - 180); } } for (var spattern in seriesList) { if (seriesList[spattern].length) { for (var di = 0; di < seriesList[spattern].length; di++) { addSeriesDataLabels(seriesList[spattern][di], data.nopuzzle_promo, spattern); nopuzzlePpromo = data.nopuzzle_promo; } } } // showSeries('plotAll', false, util.deepCopy(obj)); //chart.reflow(); })(); }; if (G.IE7 || G.IE8 || G.IE9 || G.IE10 || G.IE11) { $('#mini_price_history_detail_chart').css({ width: '460px' }); $('#mini_price_history_detail').css({ 'width': '569px' }); } if ((G.IE9 || G.IE10) && (G.site === 'vip' || G.site === 'vipshop')) { $('#mini_price_history_detail_chart').css({ width: '390px' }); } case 26: case 'end': return context$2$0.stop(); } }, null, _this); } }; return exports; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("ff50e367dd130fa205e3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"], __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "d2d3ab541b56105275c9": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _QrErrorVue = __webpack_require__("d57cd728628c618acba9"); var _QrErrorVue2 = _interopRequireDefault(_QrErrorVue); var _GiftMoneyMixin = __webpack_require__("7bb864157b1329e994ad"); var _GiftMoneyMixin2 = _interopRequireDefault(_GiftMoneyMixin); var _standardModuleComponentsCommonCouponBarMini = __webpack_require__("bf749102803a6e48eddc"); var _standardModuleComponentsCommonCouponBarMini2 = _interopRequireDefault(_standardModuleComponentsCommonCouponBarMini); exports['default'] = { data: function data() { return { takeBg: __webpack_require__("99ca541843e26ba97e4b") }; }, name: "Subsidy", props: ['value', 'url', 'qr', 'id', 'price', 'tag'], components: { QrError: _QrErrorVue2['default'], CommonCouponBarMini: _standardModuleComponentsCommonCouponBarMini2['default'] }, mixins: [_GiftMoneyMixin2['default']], mounted: function mounted() { this.over(); } }; module.exports = exports['default']; /***/ }), /***/ "d36a74aa21bb110ae407": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, $, Vue) {// 京东礼金 var _this2 = this; var request = __webpack_require__("91f250ebeb8d5987491c"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); module.exports.init = function callee$0$0() { var config; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { var _this = this; while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!(G.site !== '360buy')) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: if (!G.forbidGiftMoney) { context$1$0.next = 6; break; } globalCondition.setMet('noOtherGiftMoney'); __webpack_require__("9920f8981151f34ffc09").init('qr'); return context$1$0.abrupt('return'); case 6: context$1$0.next = 8; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { return $('#summary-tips').length > 0; })); case 8: if (!($('#summary-tips').text().indexOf('不可使用东券') > -1 || $('#summary-tips').text().indexOf('不可使用京券、东券') > -1)) { context$1$0.next = 12; break; } globalCondition.setMet('noOtherGiftMoney'); __webpack_require__("9920f8981151f34ffc09").init('qr'); return context$1$0.abrupt('return'); case 12: if (!($('#pingou-banner .activity-type strong').text().indexOf('预售') > -1)) { context$1$0.next = 16; break; } globalCondition.setMet('noOtherGiftMoney'); __webpack_require__("9920f8981151f34ffc09").init('qr'); return context$1$0.abrupt('return'); case 16: context$1$0.next = 18; return regeneratorRuntime.awrap(request.rawGet('https://cdn.gwdang.com/js/configs/gwdang.json')); case 18: config = context$1$0.sent; if (!config.allowJdGiftMoney) { context$1$0.next = 24; break; } context$1$0.next = 22; return regeneratorRuntime.awrap((function callee$1$0() { var payload, duomaiData, params, res; return regeneratorRuntime.async(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: payload = { rebate: 1, dp_id: G.dp.itemId }; if (!config.allowDuomai) { context$2$0.next = 13; break; } context$2$0.prev = 2; context$2$0.next = 5; return regeneratorRuntime.awrap(request.rawGet('https://u.gwdang.com/gyp/jd/item?id=' + G.dp.itemId.replace('-3', ''))); case 5: duomaiData = context$2$0.sent; payload.rate = (parseFloat(duomaiData.commission_rate) * 100).toFixed(2); payload.price = duomaiData.price * (location.href.indexOf('debugExt') > -1 ? 10000 : 1); context$2$0.next = 13; break; case 10: context$2$0.prev = 10; context$2$0.t0 = context$2$0['catch'](2); console.warn(context$2$0.t0); case 13: params = Object.keys(payload).map(function (k) { return k + '=' + encodeURIComponent(payload[k]); }).join('&'); context$2$0.next = 16; return regeneratorRuntime.awrap(request.get(G.server + '/extension/Coupon?' + params)); case 16: res = context$2$0.sent; if (res.rebate && res.rebate >= 1) { (function () { __webpack_require__("83271c7588396d2d5e59").log('jdGiftMoney:show'); if (res._jump === 'qrcode') { __webpack_require__("83271c7588396d2d5e59").log('jdGiftMoney:needScanQr'); __webpack_require__("83271c7588396d2d5e59").log('jdGiftMoney:-needScanQr'); } else if (res._jump === 'link') { __webpack_require__("83271c7588396d2d5e59").log('jdGiftMoney:needClickLink'); } var GiftMoney = __webpack_require__("404ef3bf6016b988808a")['default']; $('#gwd-coupon-placeholder').replaceWith('<div id="gwd-giftmoney"></div>'); new Vue({ el: '#gwd-giftmoney', render: function render(h) { return h(GiftMoney, { props: { value: res.rebate, qr: res._jump === 'qrcode', url: res.url, tag: res._tag } }); } }); $('#gwdang-banner-ad').remove(); var GiftMoneyTop = __webpack_require__("28ca786b072dc40c7e4b")['default']; $('.gwd-topbar-left').append('<div id="gwd-giftmoney-top"></div>'); new Vue({ el: '#gwd-giftmoney-top', render: function render(h) { return h(GiftMoneyTop, { props: { value: res.rebate, qr: res._jump === 'qrcode', url: res.url, tag: res._tag } }); } }); //require('standard/module/jdPriceProtect').init('redpack') })(); } else { globalCondition.setMet('noOtherGiftMoney'); __webpack_require__("9920f8981151f34ffc09").init('qr'); } case 18: case 'end': return context$2$0.stop(); } }, null, _this, [[2, 10]]); })()); case 22: context$1$0.next = 26; break; case 24: globalCondition.setMet('noOtherGiftMoney'); __webpack_require__("9920f8981151f34ffc09").init('qr'); case 26: case 'end': return context$1$0.stop(); } }, null, _this2); }; //if (navigator.userAgent.toLowerCase().indexOf('metasr') === -1) return // let prev = 'www.duomai.com' // if (!G.allowBackgroundRequest) { // prev = 'browser.bijiago.com/duomai' // } // let duomaiData = await request.rawGet(`https://${prev}/api/duomai_product.php?type=jd&good_id=${G.dp.itemId.replace('-3', '')}`) // //let duomaiData = await request.get(`https://www.duomai.com/api/duomai_product.php?type=jd&good_id=${G.dp.itemId.replace('-3', '')}`) // if (typeof duomaiData === 'string') { // duomaiData = JSON.parse(duomaiData) // } /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "d3d380331153e0305d39": /***/ (function(module, exports) { module.exports = "<div class=\"ht-com-detail\" id=\"global_detail\">\n <div class=\"global-content global-model\">\n <div class=\"gl-left\">\n <div class=\"gl-l-item ziying\">\n <em class=\"ht-bg\"></em>\n <span>自营</span>\n </div>\n <div class=\"gl-l-item zhiyou\">\n <em class=\"ht-bg\"></em>\n <span>直邮</span>\n </div>\n <div class=\"gl-l-item samestyle\">\n <em class=\"ht-bg\"></em>\n <span>同款</span>\n </div>\n <div class=\"gl-l-item vipfee\">\n <em class=\"ht-bg\"></em>\n <span>会员免运费</span>\n </div>\n </div>\n <div class=\"gl-right\">\n <a href=\"{{data.url}}\" target=\"_blank\">\n <div class=\"gl-img-box\">\n <img src=\"{{data.img}}\">\n </div>\n <p>{{data.tle}}</p>\n </a>\n </div>\n </div>\n <div class=\"global-foot\">\n <span>在亚马逊中国购买,由亚马逊美国从境外发货</span>\n <a href=\"{{data.url}}\" target=\"_blank\">链接直达</a>\n </div>\n <style type=\"text/css\">\n \n </style>\n</div>" /***/ }), /***/ "d41b35f7ee52d5e46ec1": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Normal_vue_vue_type_template_id_7cd833d3_scoped_true___ = __webpack_require__("44e0d29f633dd5c5cbf0"); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Normal_vue_vue_type_template_id_7cd833d3_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Normal_vue_vue_type_template_id_7cd833d3_scoped_true___["b"]; }); /***/ }), /***/ "d4471c1ebb687e8949a5": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_0_id_5efee9c0_scoped_true_lang_less___ = __webpack_require__("4e366ddd2c78a7851cca"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_0_id_5efee9c0_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_0_id_5efee9c0_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_0_id_5efee9c0_scoped_true_lang_less____default.a); /***/ }), /***/ "d54879e983a83d07f093": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); module.exports.retry = function (wait, cb, times, time) { //@param function wait 等待的条件 //@param function cb 条件满足后做的操作 //@param number times 尝试的次数 //@param number time 每次等待的时间 var _times = 0; function _try() { if (_times >= times) return; if (wait()) cb();else { _times++; setTimeout(_try, time); } } _try(); }; module.exports.settings = function (op, key, value) { var request = __webpack_require__("91f250ebeb8d5987491c"); request.get(G.server + '/brwext/permanent_id?' + ('version=2&op=' + op + '&' + key + '=' + value)).done(function (msg) { G[key] = value; }); }; module.exports.setLocal = function (key, value) { communicate.trigger({ 'type': 'setStorage', 'key': key, 'value': value }); }; module.exports.openTab = function () { communicate.trigger({ 'type': 'opentab' }); }; // module.exports.addFavorCheck = () => { // communicate.trigger({ // 'type': 'addFavorCheck' // }) // } module.exports.getTimeNumber = function (time, type) { // 1: xxxx-xx-xx 2.xx-xx 3.xx.xx 4. xxxx.xx.xx var dateObj = new Date(time); var y = dateObj.getFullYear(); var m = dateObj.getMonth() + 1; var d = dateObj.getDate(); if (m < 10) m = '0' + m; if (d < 10) d = '0' + d; var str = ''; switch (type) { case "1": str = y + '-' + m + '-' + d; break; case "2": str = m + '-' + d; break; case "3": str = m + '.' + d; break; case "4": str = y + '.' + m + '.' + d; break; case "5": str = y + '/' + m + '/' + d; break; default: str = '(' + y + '.' + m + '.' + d + ')'; } return str; }; /** * 数组去重 * @param array */ module.exports.arrayUnique = function (array) { var newArray = []; array.forEach(function (item) { if (newArray.indexOf(item) === -1) { newArray.push(item); } }); return newArray; }; module.exports.setSimplePagePos = function (dom, detail, detailW) { var mainW = $(window).width(); var left = dom.offset().left; var domw = dom.outerWidth(); var dleft = left + domw - detailW - 2; if (dleft < 0) dleft = 0; if (dleft + detailW > mainW) dleft = mainW - detailW - 2; detail.css('left', dleft + 'px'); }; module.exports.deepCopy = function (obj) { return $.extend(true, {}, obj); }; module.exports.waitForConditionFn = function (conditionFn) { var checkInterval = arguments.length <= 1 || arguments[1] === undefined ? 300 : arguments[1]; return new Promise(function (resolve) { var t = setInterval(function () { if (conditionFn()) { resolve(true); clearInterval(t); } }, checkInterval); }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "d57cd728628c618acba9": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__QrError_vue_vue_type_template_id_29b33b2e_scoped_true___ = __webpack_require__("823821d84de8e4f8adfd"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QrError_vue_vue_type_script_lang_js___ = __webpack_require__("5bf35efcba140cc610bb"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__QrError_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__QrError_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__QrError_vue_vue_type_style_index_0_id_29b33b2e_scoped_true_lang_less___ = __webpack_require__("48ec1ca75857b9f279ea"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__QrError_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__QrError_vue_vue_type_template_id_29b33b2e_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__QrError_vue_vue_type_template_id_29b33b2e_scoped_true___["b" /* staticRenderFns */], false, null, "29b33b2e", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('29b33b2e')) { api.createRecord('29b33b2e', component.options) } else { api.reload('29b33b2e', component.options) } module.hot.accept("./QrError.vue?vue&type=template&id=29b33b2e&scoped=true&", function () { api.rerender('29b33b2e', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/QrError.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "d71d6565d3ec2f523a79": /***/ (function(module, exports) { module.exports = "<div id=\"nbt_setting\"> \n <a class=\"setting-item main-setting\" {{if settingUrl}} href=\"{{settingUrl}}\" target=\"_blank\"{{/if}} >\n <em class=\"gwd_bg\"></em>\n <span class=\"blkcolor4\">功能设置</span>\n </a>\n <a class=\"setting-item nbt-feedback\" href=\"{{feedback}}\" target=\"_blank\">\n <em class=\"gwd_bg\"></em>\n <span class=\"blkcolor4\">意见反馈</span>\n </a>\n <a class=\"setting-item nbt-help\" href=\"{{help}}\" target=\"_blank\">\n <em class=\"gwd_bg\"></em>\n <span class=\"blkcolor4\">使用帮助</span>\n </a>\n <a class=\"setting-item nbt-webpage\" href=\"{{webpage}}\" target=\"_blank\">\n <em class=\"gwd_bg\"></em>\n <span class=\"blkcolor4\">购物党首页</span>\n </a>\n</div>" /***/ }), /***/ "d7b8bdfd8cae885025eb": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_script_lang_js___ = __webpack_require__("379c1f0148813ff54069"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "d7eaa71b9b34f70e568b": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_script_lang_js___ = __webpack_require__("33f1e3efa95059924094"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "d8288de0519bc4245cd3": /***/ (function(module, exports) { module.exports = "<div class=\"trend-error-info\">\n <p class=\"error-p\">我们检测到访问异常,请您验证后继续使用</p>\n <a class=\"error-sp\" href=\"{{url}}\">点击验证</a>\n <style type=\"text/css\">\n #gwdang-trend span {\n float: left;\n width: 110px;\n text-align: center;\n line-height: 60px;\n color: #666;\n font-size: 14px;\n }\n #gwdang-trend .trend-error-info {\n float: left;\n width: 100%;\n background: #fff;\n z-index: 99999999;\n height: 268px;\n display: none;\n }\n #gwdang-trend .error-p {\n width: 100%;\n float: left;\n text-align: center;\n margin-top: 45px;\n font-size: 14px;\n color: #666;\n }\n #gwdang-trend .error-sp {\n width: 95px;\n margin: 110px auto;\n height: 20px;\n line-height: 20px;\n text-align: center;\n color: #000!important;\n border: 1px solid #333;\n border-radius: 5px;\n display: block;\n text-decoration: none!important;\n }\n #gwdang-trend:hover .trend-error-info {\n display: block;\n }\n </style>\n <style type=\"text/css\">\n .bjgext-trend span {\n float: left;\n width: 110px;\n text-align: center;\n line-height: 60px;\n color: #666;\n font-size: 14px;\n }\n .bjgext-trend .trend-error-info {\n float: left;\n width: 100%;\n background: #fff;\n z-index: 99999999;\n height: 268px;\n display: none;\n }\n .bjgext-trend .error-p {\n width: 100%;\n float: left;\n text-align: center;\n margin-top: 45px;\n font-size: 14px;\n color: #666;\n }\n .bjgext-trend .error-sp {\n width: 95px;\n margin: 110px auto;\n height: 20px;\n line-height: 20px;\n text-align: center;\n color: #000!important;\n border: 1px solid #333;\n border-radius: 5px;\n display: block;\n text-decoration: none!important;\n }\n .bjgext-trend:hover #bjgext_maintrend_detail {\n display: block!important;\n }\n .bjgext-trend:hover .trend-error-info {\n display: block;\n }\n </style>\n</div>" /***/ }), /***/ "d82c9248d08dbd7e46d4": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var browsertype = __webpack_require__("1b62f754a85a57168a27"); var minibrowser = browsertype.getBrowser(); var globalObj = {}; var haslog = undefined; var renderInfo = function renderInfo(info) { if (!info) return; if (!G.site) return; if (haslog) return; if (info.type === 'user_extension_id') { haslog = true; __webpack_require__("03dd60018ce5ed1344a1")('browser_user:' + G.logsite + ':extType:' + getExtType()); } }; var getExtType = function getExtType() { var type = ''; if (G.from_device === 'default') type = minibrowser.utype;else type = G.from_device; return type; }; module.exports.init = function () { if (G.userid) { renderInfo({ type: 'user_extension_id' }); return; } communicate.trigger({ type: 'user_extension_id' }); communicate.on(function (info) { try { if (info && info.type === 'browser_setinfo') { if (info.value && info.value instanceof Object) { for (var p in info.value) { globalObj[p] = info.value[p]; } } } else if (info.type) { globalObj[info.type] = info.value; renderInfo(info); } } catch (e) {} }); }; module.exports.getInfo = function (type) { return globalObj[type]; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "d8451f9e6477c0bd7752": /***/ (function(module, exports) { module.exports = "<div id=\"gwdang-b2c-dp-detail\" class=\"panel gwd_compare top-compare-detail top-bar-detail\">\n <div class=\"panel-wrap\">\n <div class=\"b2c-pages blkcolor4\">\n 第 \n <span class=\"current-page\" id=\"b2c-current-page\">1</span>\n 页,共\n <span class=\"page-num blkcolor4\" id=\"b2c-page-num\">{{pages}}</span>\n 页\n </div>\n <ul class=\"buy-list\">\n <li><b class=\"blkcolor1\">正品商城在卖:</b></li>\n {{each data.store2}}\n <li>\n <img class=\"store\" src=\"{{$value.icon_url}}\">\n <a href=\"{{$value.url}}\" title=\"{{$value.site_name}}\" target=\"_blank\">\n <span class=\"gwd_title blkcolor2\">{{$value.site_name}}</span>\n {{if $value.more>1}}\n <span class=\"more\">({{$value.more}})款</span>\n {{/if}}\n <span class=\"price prifontf\">¥{{$value.price2}}</span>\n </a>\n </li>\n {{/each}}\n <li class=\"see-all-list\">\n <a href=\"http://www.gwdang.com/dp{{now_dp_id}}/where_buy/?from=browser&crc64=1&m=b2c#tabs\"target=\"_blank\">\n <span class=\"show-all blkcolor4\">查看全部商家({{storeLen}})</span>\n </a>\n </li>\n </ul>\n <div class=\"left-page turn-page\">\n <a id=\"b2c-prev-page\" target=\"_self\" title=\"上一页\" href=\"javascript:\" class=\"gwd_bg\"></a>\n </div>\n <div class=\"all-products\" style=\"width:{{productW}}px\">\n <ul id=\"b2c-item-list\">\n {{each data.product}}\n <li id=\"b2c-prod-item-{{$index}}\" >\n <a id=\"img-{{$value.dp_id}}\" title=\"{{$value.title}}\" target=\"_blank\" class=\"small-img\" href=\"{{$value.url}}\">\n <img src=\"{{imgLoad}}\" data-original=\"{{$value.img_url}}\" id=\"dp-image-small-{{$value.dp_id}}\" class=\"gwdang-lazy\">\n </a>\n <a target=\"_blank\" class=\"b2c-other-info\" href=\"{{$value.url}}\">\n <div class=\"priceinfo-box\">\n <div class=\"center-box\">\n <span class=\"gwd-price prifontf\">¥{{$value.price_rmb ? $value.price_rmb : $value.price}}</span>\n {{if $value.promo2}}\n <span class=\"dp-promotion gwd_bg\">\n <div class=\"dp-promotion-detail\">\n {{each $value.promo2}}\n <span class=\"dp-pro-item\">{{$value}}</span>\n {{/each}}\n </div>\n </span>\n {{/if}}\n {{if $value.coupon2}}\n <span class=\"dp-coupon gwd_bg\">\n <div class=\"dp-coupon-detail\">\n {{each $value.coupon2}}\n <span class=\"dp-coupon-item\">{{$value}}</span>\n {{/each}}\n </div>\n </span>\n {{/if}}\n {{if $value.yushou2}}\n <span class=\"dp-yushou gwd_bg\">\n <div class=\"dp-yushou-detail\">\n {{each $value.yushou2}}\n <span class=\"dp-pro-item\">{{$value}}</span>\n {{/each}}\n </div>\n </span>\n {{/if}}\n </div>\n </div>\n \n <span class=\"b2c-store blkcolor1\">{{$value.site_name}}</span>\n <span id=\"{{$value.dp_id}}_promotion\">{{#$value.promodom}}</span>\n <span class=\"b2c-fees blkcolor4\">{{$value.comment_num ? (\"评论数:\" + $value.comment_num) : $value.fee }}</span>\n <span class=\"b2c-tle blkcolor1\">{{$value.title}}</span>\n </a>\n </li>\n {{/each}}\n </ul>\n </div>\n <div class=\"right-page turn-page\">\n <a id=\"b2c-next-page\" title=\"下一页\" target=\"_self\" href=\"javascript:\" class=\"gwd_bg\"></a>\n </div>\n </div>\n <style type=\"text/css\">\n #gwdang-b2c-dp-detail .turn-page {\n width: {{width}}px;\n }\n </style>\n</div>" /***/ }), /***/ "d8d0a82c2d012f5f4a3d": /***/ (function(module, exports) { module.exports = "<div id=\"steam_tremd_btn\" class=\"{{ ext_class }}\">\n <span>{{status_tle}}</span>\n <em class=\"{{status_str}}\"></em>\n <style type=\"text/css\">\n #steam_tremd_btn{\n background-image: linear-gradient(-180deg, #2488B9 0%, #12425A 100%);\n border: 2px solid #000000;\n width: 104px;\n float: left;\n position: relative;\n cursor: default;\n color: #BCE6FF;\n margin-left: {{btnleft}}px;\n height: 32px;\n }\n #steam_tremd_btn.bjgou {\n background-image: linear-gradient(180deg, #C2A27D 0%, #755A33 100%);\n color: #f1d6aa;\n }\n #steam_tremd_btn._mshover {\n background-image: linear-gradient(-180deg, #66C0F4 0%, #2F89BC 100%);\n }\n #steam_tremd_btn.bjgou._mshover {\n background-image: linear-gradient(180deg, #E0B27D 0%, #AE813F 100%);\n }\n #steam_tremd_btn._mshover span {\n color: #fff;\n }\n #steam_tremd_btn >* {\n float: left;\n }\n #steam_tremd_btn span {\n font-size: 15px;\n margin-left: 12px;\n line-height: 32px;\n color: #BCE6FF\n font-family: \"microsoft yahei\";\n }\n #steam_tremd_btn em {\n width: 18px;\n height: 20px;\n margin-top: 7px;\n margin-left: 4px;\n }\n #steam_tremd_btn em.pri-t1 {\n background: url('{{imgurl}}/rise.png') 0px 0px no-repeat;\n }\n #steam_tremd_btn em.pri-t0 {\n background: url('{{imgurl}}/stable.png') 0px 0px no-repeat;\n margin-top: 10px;\n }\n #steam_tremd_btn em.pri-t-1 {\n background: url('{{imgurl}}/fall.png') 0px 0px no-repeat;\n }\n #steam_tremd_btn em.pri-t-2{\n background: url('{{imgurl}}/minimum.png') 0px 0px no-repeat;\n }\n </style>\n</div>" /***/ }), /***/ "d98e58cfc5180294bd6a": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("89d1adbe1b58d82e839d"); if(typeof content === 'string') content = [[module.i, content, '']]; // add the styles to the DOM var update = __webpack_require__("ed1f825ff922d4e45a2e")(content, {}); if(content.locals) module.exports = content.locals; // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QRLink.vue?vue&type=style&index=0&lang=css&", function() { var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QRLink.vue?vue&type=style&index=0&lang=css&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "db518a3e544b1a3c4e0f": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_style_index_0_id_6179ab9e_scoped_true_lang_less___ = __webpack_require__("dcb5c5605d4bae233d99"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_style_index_0_id_6179ab9e_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_style_index_0_id_6179ab9e_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_style_index_0_id_6179ab9e_scoped_true_lang_less____default.a); /***/ }), /***/ "db8760334d002b3c438f": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-common-login.gwd-popup[data-v-5efee9c0] {\n box-sizing: border-box !important;\n align-items: center;\n}\n.gwd-common-login.gwd-popup .gwd-main-login[data-v-5efee9c0] {\n /*padding-left: 18px;*/\n box-sizing: border-box;\n width: 280px;\n}\n", ""]); // exports /***/ }), /***/ "db913f6554d3c1ab33dc": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['qr'] }; module.exports = exports['default']; /***/ }), /***/ "dba9674cb89e2f226ce4": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var getTransInfo = function getTransInfo(name, data, str) { for (var i = 0; i < data.length; i++) { if (data[i].num_iid) { data[i].oldUrl = data[i].url; // let type = data[i].type ? ('&type=' + data[i].type) : ''; data[i].url = G.u_server + '/redirect/tao?id=' + data[i].num_iid + '&source=' + data[i].source + '&from_device=' + G.from_device; } } }; module.exports.init = function (name, data, str) { if (!data || !(data instanceof Array) || G.aliSite) return; str = str || ''; getTransInfo(name, data, str); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "dbf2d1cc1e8bc1797734": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjg-coupon-white[data-v-c1c2cbdc] {\n color: #ffffff;\n}\n.bjgou-subsidy-bar[data-v-c1c2cbdc] {\n cursor: pointer;\n margin-top: 5px;\n width: 442px;\n height: 67px;\n position: relative;\n display: inline-flex;\n align-items: center;\n background: url(https://cdn.bijiago.com/images/extensions/bijiago/[email protected]);\n box-sizing: border-box !important;\n background-size: contain;\n}\n.bjgou-subsidy-bar .qrcode[data-v-c1c2cbdc] {\n display: none;\n position: absolute;\n top: 70px;\n right: -15px;\n width: 148px;\n height: 156px;\n background: #FFF6F4;\n border: 1px solid #FF6132;\n z-index: 9;\n}\n.bjgou-subsidy-bar .bjg-bold[data-v-c1c2cbdc] {\n font-size: 13px;\n font-weight: bold;\n color: #ff2d53;\n}\n.bjgou-subsidy-bar .bjg-take[data-v-c1c2cbdc] {\n min-width: 87px;\n height: 22px;\n border-radius: 11px;\n border: 1px solid #FF2D53;\n position: relative;\n display: flex;\n cursor: pointer;\n}\n.bjgou-subsidy-bar .bjg-take span[data-v-c1c2cbdc] {\n font-size: 12px;\n text-align: center;\n line-height: 22px;\n}\n.bjgou-subsidy-bar .bjg-take .taker[data-v-c1c2cbdc] {\n color: white;\n width: 36px;\n height: 24px;\n line-height: 24px;\n background: linear-gradient(90deg, #FF3A62 0%, #FF665B 100%);\n border-radius: 11px;\n display: inline-block;\n}\n.bjgou-subsidy-bar:hover .qrcode[data-v-c1c2cbdc] {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n", ""]); // exports /***/ }), /***/ "dc8abfd81085af16105f": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, "__esModule", { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var _commonComponentsMemberCouponMixin = __webpack_require__("1fffec0778a8d8b2e8e2"); var _commonComponentsMemberCouponMixin2 = _interopRequireDefault(_commonComponentsMemberCouponMixin); exports["default"] = { mixins: [_commonComponentsMemberCouponMixin2["default"]] }; module.exports = exports["default"]; /***/ }), /***/ "dc95a667ec8da7724e60": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__LongCoupon_vue_vue_type_template_id_5ccff421_scoped_true___ = __webpack_require__("2e185af694cfa8c5397c"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__LongCoupon_vue_vue_type_script_lang_js___ = __webpack_require__("d7eaa71b9b34f70e568b"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__LongCoupon_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__LongCoupon_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__LongCoupon_vue_vue_type_style_index_0_id_5ccff421_scoped_true_lang_less___ = __webpack_require__("cf06668231ef5128ea91"); /* 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__LongCoupon_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__LongCoupon_vue_vue_type_template_id_5ccff421_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__LongCoupon_vue_vue_type_template_id_5ccff421_scoped_true___["b" /* staticRenderFns */], false, null, "5ccff421", 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('5ccff421')) { api.createRecord('5ccff421', component.options) } else { api.reload('5ccff421', component.options) } module.hot.accept("./LongCoupon.vue?vue&type=template&id=5ccff421&scoped=true&", function () { api.rerender('5ccff421', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/LongCoupon.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "dcb5c5605d4bae233d99": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("3be7d467c6bac9354a1b"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("33486d2a", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QRLinkTaobaoLogin.vue?vue&type=style&index=0&id=6179ab9e&scoped=true&lang=less&", function() { var newContent = require("!!../../../../node_modules/.0.20.2@css-loader/index.js!../../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./QRLinkTaobaoLogin.vue?vue&type=style&index=0&id=6179ab9e&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "dccc180c0627890be6a3": /***/ (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", { class: "gwd-common-login " + _vm.position, style: "flex-direction: column" }, [ _c("div", { staticClass: "gwd-main-login" }, [ _c("img", { directives: [ { name: "show", rawName: "v-show", value: _vm.position === "gwd-favor", expression: "position === 'gwd-favor'" } ], staticStyle: { "margin-top": "49px", "margin-bottom": "50px", width: "42px", height: "42px" }, attrs: { src: __webpack_require__("6ab7f2ae819a321eaf9d"), alt: "" } }), _vm._v(" "), _c( "button", { on: { click: function($event) { return _vm.goLogin() } } }, [_vm._v("购物党账号登录(不可用)")] ), _vm._v(" "), _c( "a", { attrs: { href: "https://www.gwdang.com/user/register", target: _vm.position === "gwd-popup" ? "_blank" : "" } }, [_vm._v("免费注册(不可用)")] ) ]), _vm._v(" "), _c("div", { staticClass: "gwd-alter-login" }, [ _vm._m(0), _vm._v(" "), _c("div", { staticClass: "third-login" }, [ _c("span", { staticClass: "weixinlogin gwd_bg loginBox", attrs: { target: _vm.position === "gwd-popup" ? "_blank" : "" }, on: { click: function($event) { return _vm.goLink("wechat") } } }), _vm._v(" "), _c("span", { staticClass: "qqlogin gwd_bg loginBox", attrs: { target: _vm.position === "gwd-popup" ? "_blank" : "" }, on: { click: function($event) { return _vm.goLink("qq") } } }), _vm._v(" "), _c("span", { staticClass: "sinalogin gwd_bg loginBox", attrs: { target: _vm.position === "gwd-popup" ? "_blank" : "" }, on: { click: function($event) { return _vm.goLink("weibo") } } }) ]) ]) ] ) } var staticRenderFns = [ function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "gwd-vline" }, [ _c("div", { staticClass: "gwd-line-a" }), _vm._v(" "), _c("span", [_vm._v("其他登录(不可用)方式")]), _vm._v(" "), _c("div", { staticClass: "gwd-line-b" }) ]) } ] render._withStripped = true /***/ }), /***/ "dceb596ed0648574118e": /***/ (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_GiftMoney_vue_vue_type_style_index_0_id_5b302872_scoped_true_lang_less___ = __webpack_require__("a4b9fe4efa073a5334ec"); /* 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_GiftMoney_vue_vue_type_style_index_0_id_5b302872_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_GiftMoney_vue_vue_type_style_index_0_id_5b302872_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_GiftMoney_vue_vue_type_style_index_0_id_5b302872_scoped_true_lang_less____default.a); /***/ }), /***/ "dd7bf03a25fb46a8e88e": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("735bc3c8e2dc98526bc5"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("255401b3", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./MemberCouponBottomBjg.vue?vue&type=style&index=0&id=44c0e93e&scoped=true&lang=less&", function() { var newContent = require("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./MemberCouponBottomBjg.vue?vue&type=style&index=0&id=44c0e93e&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "ddd340b1a0d4eaae0c6e": /***/ (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_Special_vue_vue_type_script_lang_js___ = __webpack_require__("c5f3c1ad5d1a9e118fb7"); /* 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_Special_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_Special_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_Special_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Special_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_Special_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "e1295245ec2ddb5b21e1": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-qrlink-left[data-v-b671e2be] {\n width: 109px;\n height: 44px;\n border-radius: 2px;\n border: 1px solid #EAEAEA;\n position: absolute;\n bottom: 205px;\n left: -110px;\n cursor: pointer;\n box-sizing: border-box;\n}\n.gwd-qrlink-left .gwd-qr-content[data-v-b671e2be] {\n position: absolute;\n width: 109px;\n height: 108px;\n border: 1px solid #eaeaea;\n padding-top: 5px;\n display: none;\n top: 42px;\n left: -1px;\n box-sizing: border-box;\n z-index: 9999;\n background: white;\n}\n.gwd-qrlink-left:hover .gwd-qr-content[data-v-b671e2be] {\n display: flex;\n}\n", ""]); // exports /***/ }), /***/ "e1f1ecf2911e180e2d4a": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // 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'], mixins: [_commonComponentsMemberCouponMixin2['default']], data: function data() { return { hasBuyButton: true }; }, 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__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "e29ce4c2a4af273fcade": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) {/** * Created by cosimo on 2017/2/9. */ var nowPrice = undefined; function priceExtracor(selectors, radixPoint, split) { radixPoint = radixPoint || '.'; split = split || ','; function extractPrice() { for (var i = 0; i < selectors.length; i++) { var selector = selectors[i]; var price = document.querySelector(selector); if (price) { return formatPrice(price.textContent, radixPoint, split); } } return -1; } return extractPrice; } function formatPrice(price, radixPoint, split) { radixPoint = radixPoint || '.'; split = split || ','; if (price === -1) { return -1; } if (price) { price = price.toString().replace(split, ''); if (radixPoint && radixPoint !== '.') { price = price.replace(radixPoint, '.'); } price = price.match(/[0-9.]+/); if (price) { try { return parseFloat(price[0]); } catch (e) { return -1; } } } return -1; } var getPLUSPrice = function getPLUSPrice() { var PLUSDom = $('.plus-price .price'); if (PLUSDom.length === 0) { PLUSDom = $('.p-price-plus .price'); } if (PLUSDom) { return Number(PLUSDom.text().replace(/[¥¥\s]+/g, '')); } else { return 0; } }; function parserFactory(extractPrice) { function parser(callback) { function callbackWrapper(price) { if (price <= 0) { price = ''; } G.dp.price = price; G.dp.oldPrice = price; var tle = ''; if (G.dp.name && (G.dp.site == "360buy" || G.dp.site == "suning")) { tle = G.dp.name.trim(); } var priItem = [{ 'url': document.location.href, 'price': price, 'tle': tle, 'crc32': '' }]; if (G.dp.site == "360buy") { var PLUS = getPLUSPrice(); if (PLUS) { priItem[0].plus = PLUS; } } __webpack_require__("ee3f371a85b894c823bf").sendPriCheck(priItem); } var price = extractPrice(); if (price === -1 || price == 0 || document.readyState !== 'complete') { (function () { var tryTimes = 0; var interval = setInterval(function () { tryTimes++; var price = extractPrice(); if (document.readyState !== 'complete') { return; } if (price > 0 || tryTimes > 4) { clearInterval(interval); callbackWrapper(price); } }, 2500); })(); } else { nowPrice = price; callbackWrapper(price); } callback(price); } return parser; } function template(selectors) { //console.log('selector:', selectors) return parserFactory(priceExtracor(selectors)); } var priceParsers = {}; priceParsers[1] = ['#priceblock_dealprice', '#priceblock_saleprice', '#priceblock_ourprice', '#tmmSwatches .a-button-inner .a-button-text .a-color-price', '#tmmSwatches .a-button-inner .a-color-secondary span', '#soldByThirdParty .offer-price', '#olp_feature_div .a-color-price', '.a-color-price']; priceParsers[2] = ['#dd-price', '#d_price']; priceParsers[3] = ['#jd-price', '.p-price:not(.dj-price) .price', '#price', '.price']; priceParsers[4] = ['.price-type']; priceParsers[10] = ['#dl_sell_price']; priceParsers[12] = ['div.promotion-container > p:nth-child(2)']; priceParsers[13] = ['.dity-price-c']; priceParsers[14] = ['.price1.salePrice_big']; priceParsers[17] = ['.leftPrice']; priceParsers[18] = ['.message_price', '.message_title_name_b']; priceParsers[19] = ['.tehuiMoney']; priceParsers[21] = ['#prodPriceAj']; priceParsers[22] = ['#product_price']; priceParsers[24] = ['.d-real-price']; priceParsers[25] = ['.mainprice', '.small-price']; priceParsers[28] = ['#prdPrice', '#salePrice']; priceParsers[31] = ['#pricenow', '#current_price', '#detail_prom_price', '']; priceParsers[32] = ['#buyPrice']; priceParsers[33] = ['#leyoujia', '.item_l .font_num']; priceParsers[34] = ['.selPrice']; priceParsers[35] = ['#prd_price_div']; priceParsers[39] = ['.price .value']; priceParsers[40] = ['.Gd_shop_Price b']; priceParsers[41] = ['.js.jsj b']; priceParsers[43] = ['.price']; priceParsers[45] = ['.price .action-price']; priceParsers[50] = ['pro_promotion_price', '#pro_mall_price']; priceParsers[51] = ['#SGoodsPrice']; priceParsers[54] = ['#mprice']; priceParsers[60] = ['#xxjg .pro_buy_sen', '#xxjg .pro_buy_dis option:last-child']; priceParsers[61] = ['.tehuijia i:last-child .thisprice', '.priceList:last-child span']; priceParsers[62] = ['.info-main .price-n b']; priceParsers[66] = ['.YTPrice']; priceParsers[72] = ['.price_now', '']; priceParsers[73] = ['#productShowPrice']; priceParsers[75] = ['.fsk_goods_price', '.gd_price']; priceParsers[83] = ['#J_PromoBox .tb-wrTuan-num', '.tm-promo-price .tm-price', '.tm-price']; priceParsers[84] = ['.buy_pri', '.dynamic-price']; priceParsers[86] = ['.price_num', '.deal_accout_two', '.jumei_price', '.price_now']; priceParsers[93] = ['#yitianPrice']; priceParsers[94] = ['.good_price']; priceParsers[97] = ['#price_big em', '.FFA em']; priceParsers[98] = ['.p-price']; priceParsers[99] = ['#shopprice']; priceParsers[100] = ['#salePriceText']; priceParsers[101] = ['.myPrice em']; priceParsers[102] = ['#jiage .numb']; priceParsers[103] = ['#nowPrice strong']; priceParsers[108] = ['#spPrice']; priceParsers[109] = ['.sku-price']; priceParsers[110] = ['#bk-d-price']; priceParsers[115] = ['.mprice', '.p_mp']; priceParsers[123] = ['#J_PromoPriceNum', '#J_StrPrice']; priceParsers[125] = ['.dPrice']; priceParsers[126] = ['#price-sf .price']; priceParsers[127] = ['#intro_price .price']; priceParsers[128] = ['#price']; priceParsers[129] = ['#J-sale-price', '.J-price']; priceParsers[134] = ['#pro-price']; priceParsers[135] = ['.de_info_price']; priceParsers[138] = ['#ECS_SHOPPRICE']; priceParsers[140] = ['.groupdetail_nowprice', '.dsingle_nowprice']; priceParsers[141] = ['#jianyiPrice']; priceParsers[142] = ['.spare02']; priceParsers[145] = ['#pdpPrice .discount', '#pdpPrice', '.discou']; priceParsers[146] = ['.action-price']; priceParsers[147] = ['#postPrice']; priceParsers[152] = ['.detail-item-gold']; priceParsers[153] = ['#g5_price']; priceParsers[154] = ['.promote_price']; priceParsers[155] = ['.cur-price']; priceParsers[156] = ['#secooPriceJs']; priceParsers[157] = ['#prod_price']; priceParsers[158] = ['.price24']; priceParsers[164] = ['.jg_cuhong', '#myjgcuhong']; priceParsers[167] = ['.J_mi_goodsPrice', '.money', '.J_currentPrice', 'J_proPrice', '.price']; priceParsers[168] = ['.letv_price', '#js_price']; priceParsers[174] = ['.pro-price']; priceParsers[180] = ['#J_product_value', '.info-price']; priceParsers[182] = ['.detail_price', '.coupon_price']; priceParsers[184] = ['.promotion-price .price', '.price']; priceParsers[188] = ['#goodsPrice']; priceParsers[194] = ['.action-price']; priceParsers[195] = ['#item_price']; priceParsers[196] = ['.price strong']; priceParsers[197] = ['.ms_price strong']; priceParsers[202] = ['#J_NowPrice']; priceParsers[203] = ['#J_NowPrice']; priceParsers[210] = ['#g_price']; priceParsers[213] = ['#offerPrice']; priceParsers[221] = ['.price']; priceParsers[222] = ['#rprice']; priceParsers[223] = ['.currentPrice']; priceParsers[226] = ['.mainPrice']; priceParsers[227] = ['.sale-price']; priceParsers[228] = priceParsers[1]; priceParsers[229] = priceParsers[1]; priceParsers[230] = ['#prcIsum']; priceParsers[231] = ['.p-current-price .p-price']; priceParsers[232] = ['.action-price']; priceParsers[233] = ['.js-pdpLocalPrice']; priceParsers[234] = ['#saleprice_value']; priceParsers[235] = ['.detail_tzh span']; priceParsers[236] = ['.pro_price span']; priceParsers[237] = ['.view-SkuPriceInfo .price', '.view-SkuPriceInfo i']; priceParsers[238] = ['#priceSlot .price', '._37Y6D ._3r_Ou']; priceParsers[239] = ['.product-price']; priceParsers[241] = ['.priceBlock .salePrice', '.priceBlock']; priceParsers[242] = ['.ng-binding.wag-bold']; priceParsers[243] = ['#displayPrice']; priceParsers[244] = ['.price-main-product .price-current', '.price-current']; priceParsers[245] = ['#final-price']; priceParsers[246] = function () { parserFactory(priceExtracor(['#priceblock_dealprice', '#priceblock_ourprice', '#tmmSwatches .a-button-inner .a-color-secondary span', '#soldByThirdParty .offer-price', '#olp_feature_div .a-color-price'], ',', '.')); }; priceParsers[247] = ['#pricing td.highlight']; priceParsers[248] = ['.product-price .price']; priceParsers[249] = ['#js-product-information-price .product-current-price', '.main-product-details .compare-price__display']; priceParsers[251] = ['.product-price-container .price-sales ']; priceParsers[252] = ['.detail-price', 's_discountpricenew', '.cutpriceposition']; priceParsers[256] = ['#price']; priceParsers[259] = ['#Price .productPrice']; priceParsers[260] = ['#productPrice .nowPrice', '#productPrice']; priceParsers[261] = ['#pdpMainPrice .pOurPriceM', '#pdpSubPrice .pRetailPrice:nth-child(2)', '.pRetailPrice', '#pdpMainPrice']; priceParsers[263] = ['.priceSale']; priceParsers[264] = ['.price-set']; priceParsers[266] = priceParsers[1]; priceParsers[267] = ['.goods-data .goods-price span']; priceParsers[268] = ['.goods-price-r1 strong']; priceParsers[269] = ['#productRMB']; priceParsers[270] = ['.j_PriceNum', '.price']; priceParsers[271] = ['.price', '.product_price_cont']; priceParsers[272] = ['.action-price']; priceParsers[273] = ['.product_top_r span.fs20']; priceParsers[274] = ['#jScarePrice', '.jFirstPrice']; priceParsers[275] = ['.rmb-price']; priceParsers[276] = ['.Price']; priceParsers[277] = ['#currPrice']; priceParsers[279] = ['.product_price', 'price_rmb']; priceParsers[280] = ['#goodsCurrentPrice', '.prdsale strong']; priceParsers[281] = ['#bqPrice', '.price span']; priceParsers[285] = ['.price .current']; priceParsers[286] = ['.j-item-now-price']; priceParsers[287] = ['.xprice_val[itemprop="lowPrice"]']; priceParsers[288] = ['.action-price']; priceParsers[289] = ['.current_price']; priceParsers[290] = ['.price']; priceParsers[291] = ['#priceDiv .nowPrice']; priceParsers[292] = ['.item-actPrice']; priceParsers[294] = ['#salePriceSpan']; priceParsers[295] = ['.price-sell .price-num']; priceParsers[299] = ['.pro_price .price']; priceParsers[300] = ['#priceDomId']; priceParsers[305] = ['.autoShipPrice', '.singlePrice']; priceParsers[306] = ['.product-price div']; priceParsers[311] = ['.product-full__price', '.spp-product__mini-bag-price-size']; priceParsers[313] = ['#details-price']; priceParsers[328] = ['.goodsprice']; priceParsers[330] = ['#you_pay.price', '.price']; priceParsers[337] = ['.price']; priceParsers[338] = ['.js-price']; priceParsers[340] = ['.singlePrice']; priceParsers[341] = ['.product-price .price']; priceParsers[343] = ['.bose-price__price']; priceParsers[344] = ['.item-price']; priceParsers[345] = ['.ypYouPay']; priceParsers[347] = ['#FlashPrice']; priceParsers[348] = ['.goods-price .price1']; priceParsers[349] = ['.j-retail-price']; priceParsers[351] = ['.tm_jg #ECS_SHOPPRICE', '#ECS_SHOPPRICE']; priceParsers[352] = ['.price-b .new']; priceParsers[354] = ['.detail-last-price']; priceParsers[355] = ['.price-item.current .value']; priceParsers[356] = ['.m-price']; priceParsers[357] = ['.product-price .price']; priceParsers[362] = ['.DetailPriceContain .PriceNow']; priceParsers[363] = ['.current-price']; priceParsers[364] = ['.price']; priceParsers[365] = priceParsers[246]; priceParsers[366] = priceParsers[1]; priceParsers[367] = ['.itemInfo .price']; priceParsers[368] = ['#salePriceId']; priceParsers[369] = ['#jd-price']; priceParsers[370] = ['.g-group-price', '#kaluliPrice']; priceParsers[371] = ['#show_goods_price [name="goods_real_price"]']; priceParsers[372] = ['.price']; priceParsers[373] = ['#bb_price']; priceParsers[374] = ['#opr']; priceParsers[376] = ['#JgoodsPrice']; priceParsers[377] = ['.action-pro_price', 'action-price', '.price']; priceParsers[378] = ['.jFirstPrice']; priceParsers[379] = ['.action-price']; priceParsers[380] = ['.now-price']; priceParsers[381] = ['.priceAndService .price']; priceParsers[382] = ['.sale-price']; priceParsers[385] = ['#salePrice']; priceParsers[386] = ['.price-box .price-product']; priceParsers[387] = ['.spare02_price']; priceParsers[388] = ['.current-price']; priceParsers[389] = ['.price-info .current-price']; priceParsers[390] = ['.shop-nature1 [price]']; priceParsers[391] = ['.m-price']; priceParsers[392] = ['.now-price']; priceParsers[393] = ['.current-price']; priceParsers[394] = ['.current-price .price-number']; priceParsers[395] = ['.rmb-price']; priceParsers[396] = ['.now .price']; priceParsers[397] = ['.DetailPrice .PriceNow']; priceParsers[398] = ['.last_prices .price']; priceParsers[399] = ['.price-number']; priceParsers[400] = ['.product-property .current-price']; priceParsers[401] = ['.product-shop .PriceNow']; priceParsers[402] = ['.price-number']; priceParsers[403] = function () { parserFactory(priceExtracor(['.price-productdesc'], ',', '.')); }; priceParsers[404] = ['.price-current']; priceParsers[405] = ['.price-info .price']; priceParsers[406] = ['.d-price']; priceParsers[407] = ['.goods-price']; priceParsers[408] = ['#product-summary .price']; priceParsers[409] = ['.price_sale']; priceParsers[410] = ['.salePrice', '.nowPrice']; priceParsers[411] = ['#skuPrice']; priceParsers[412] = ['#item-price .font-bold', '#item-price']; priceParsers[413] = ['#productPriceInfo .m_price']; priceParsers[414] = ['.wb-price span']; priceParsers[415] = ['.product-price .price']; priceParsers[416] = ['#price']; priceParsers[417] = ['.special-price .price', '.price']; priceParsers[418] = ['.final', '.here_price strong']; priceParsers[419] = ['.market-price']; priceParsers[420] = ['#salePrice']; priceParsers[423] = ['.price']; priceParsers[424] = ['.price-current', '.regular-price']; priceParsers[427] = ['.redSalePrice', '.product-price-big .price-wrapper']; priceParsers[428] = ['.monetary-price-value']; priceParsers[429] = priceParsers[427]; priceParsers[430] = ['.num_span']; priceParsers[431] = ['#mall_price']; priceParsers[432] = ['#price_current']; priceParsers[433] = ['.action-price']; priceParsers[434] = ['.price']; priceParsers[435] = ['.goodsprice']; // 没有匹配到id的时候 priceParsers[9999] = function () { return function (callback) { callback(); }; }; module.exports.init = function (siteId, callback) { if (location.host === 'www.amazon.de') { callback(G.dp.oldPrice); return; } if (nowPrice) { callback(nowPrice); return; } var s = priceParsers[siteId]; if (s instanceof Array) { template(s)(callback); } else if (s instanceof Object && s.prototype) { s()(callback); } else { callback(); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "e336c6dc5eff4f6bee7a": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-row[data-v-42d39176] {\n display: flex;\n flex-direction: row;\n}\n.gwd-inline-row[data-v-42d39176] {\n display: inline-flex;\n flex-direction: row;\n}\n.gwd-column[data-v-42d39176] {\n display: flex;\n flex-direction: column;\n}\n.gwd-inline-column[data-v-42d39176] {\n display: inline-flex;\n flex-direction: column;\n}\n.gwd-align[data-v-42d39176] {\n align-content: center;\n align-items: center;\n}\n.gwd-jcc[data-v-42d39176] {\n justify-content: center;\n}\n.gwd-jic[data-v-42d39176] {\n justify-items: center;\n}\n.gwd-button[data-v-42d39176] {\n outline: none;\n border: none;\n}\n.bjg-bar-button[data-v-42d39176] {\n font-size: 0;\n}\n.bjg-bar-button[data-v-42d39176]:hover {\n background: #fffbef;\n cursor: pointer;\n}\n.bjg-bar-button:hover .bjg-window[data-v-42d39176] {\n display: block;\n}\n.mainbar-fold .bjg-bar-button[data-v-42d39176],\n.mainbar-fold #top_coupon_btn[data-v-42d39176],\n.mainbar-fold .rinfo-btn[data-v-42d39176],\n.mainbar-fold .gwd-bottom-tmall[data-v-42d39176] {\n display: none!important;\n}\n.gwd-font12[data-v-42d39176] {\n font-size: 12px;\n}\n.gwd-font14[data-v-42d39176] {\n font-size: 14px;\n}\n.gwd-red[data-v-42d39176] {\n color: #ff3532;\n}\n.gwd-red-bg[data-v-42d39176] {\n background: #ff3532;\n}\n.gwd-hui333[data-v-42d39176] {\n color: #333333;\n}\n.gwd-hui999[data-v-42d39176] {\n color: #999999;\n}\n.gwd-font10[data-v-42d39176] {\n font-size: 12px;\n transform: scale(0.8333);\n transform-origin: bottom center;\n}\n.gwd-font11[data-v-42d39176] {\n font-size: 12px;\n transform: scale(0.91666);\n transform-origin: bottom center;\n}\n.gwd-font9[data-v-42d39176] {\n font-size: 12px;\n transform: scale(0.75);\n transform-origin: bottom center;\n}\n.gwd-hoverable[data-v-42d39176]:hover {\n background: #edf1f2;\n}\n.right-info > *[data-v-42d39176] {\n border-left: 1px solid #edf1f2;\n}\n.gwd-red-after-visit[data-v-42d39176]:hover {\n color: #e03024 !important;\n}\n.gwd-member-coupon-mini[data-v-42d39176] {\n width: 460px;\n background: white;\n border-left: 1px solid #e6e9eb;\n border-right: 1px solid #e6e9eb;\n border-bottom: 1px solid #e6e9eb;\n height: 37px;\n}\n.gwd-coupon-take[data-v-42d39176] {\n width: 50px;\n height: 26px;\n background: #ff3d5d;\n border-radius: 2px;\n color: white;\n font-size: 13px;\n text-align: center;\n line-height: 26px;\n cursor: pointer;\n position: relative;\n margin-left: 20px;\n margin-right: 15px;\n display: inline-block;\n}\n.gwd-coupon-take .gwd-qr-container[data-v-42d39176] {\n position: absolute;\n display: none;\n right: -15px;\n top: 30px;\n z-index: 9;\n}\n.gwd-member-coupon-mini:hover .gwd-qr-container[data-v-42d39176] {\n display: block;\n}\n", ""]); // exports /***/ }), /***/ "e3646735df96d3e01927": /***/ (function(module, exports) { module.exports = "<div id=\"promo_history\" class=\"promo-history-detail\">\n <p>历史促销优惠信息</p>\n <div class=\"history-content {{if showFold}} show_fold {{/if}}\">\n <ul>\n {{each data}}\n <li class=\" {{$value.mark}}]\">\n <a class=\"pro-pri-item\">\n <span class=\"ppi-sp1 prifontf\">{{$value.time2}}</span>\n <span class=\"ppi-sp2\">{{if $value.isDSJ}} 到手价 {{else}} 凑单价 {{/if}}</span>\n <span class=\"ppi-sp2 ppi-fh\">:</span>\n <span class=\"ppi-sp3 prifontf\">¥{{$value.price}}</span>\n </a>\n <span class=\"pro-coupon-item\">\n <span class=\"pci-tlesp\">页面价</span>\n <span class=\"ppi-fh\">:</span>\n <span class=\"prifontf\">¥{{$value.ori_price}}</span>\n \n </span>\n {{if $value.coupon}}\n <span class=\"pro-coupon-item\">\n {{$value.coupon}}\n </span>\n {{/if}}\n {{if $value.promotion}}\n <span class=\"pro-pro-item\">\n {{$value.promotion}}\n </span>\n {{/if}}\n </li>\n {{/each}}\n </ul>\n </div>\n <div class=\"gwd-mini-mask\">\n <div class=\"gwd-miniBlurLayer\"></div>\n <div class=\"gwd-miniQr\">\n <img id=\"qrcode-compare\" src=\"{{ img }}\" alt=\"\" style=\"width: 100%; height: 100%\">\n </div>\n <div class=\"gwd-miniSlogan\">\n <span>打开</span><a class=\"appName\" href=\"https://www.gwdang.com/app/mobile\" target=\"_blank\">购物党APP</a><span>扫码查看</span>\n </div>\n </div>\n</div>\n\n<style type=\"text/css\">\n .gwd-miniSlogan {\n position: absolute;\n bottom: 33px;\n text-align: center;\n left: 0;\n right: 0;\n font-size: 12px;\n color: #333333;\n line-height: 19px;\n height: 19px;\n }\n\n .gwd-miniSlogan .appName {\n font-weight: bold;\n margin-left: 5px;\n margin-right: 5px;\n }\n\n .gwd-miniSlogan .appName:hover {\n color: #46c9ba;\n }\n\n .gwd-miniQr {\n width: 116px;\n height: 116px;\n position: absolute;\n bottom: 58px;\n left: 50%;\n margin-left: -58px;\n padding: 5px;\n box-sizing: border-box;\n }\n .gwd-mini-mask {\n background:linear-gradient(360deg,rgba(255,255,255,1) 0%,rgba(255,255,255,0.78) 85%,rgba(255,255,255,0.25) 100%);;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n top: 83px;\n z-index: 1;\n }\n .gwd-miniBlurLayer {\n /*width:100%;*/\n background:rgba(255,255,255,1);\n position: absolute;\n top: 38px;\n left: 32px;\n right: 32px;\n bottom: 24px;\n filter: blur(10px);\n }\n div#mini_price_history_detail {\n width: 667px;\n overflow: hidden;\n }\n #mini_price_history_detail .discount-price-re {\n left: 364px;\n right: inherit;\n }\n .fold-bar {\n background-color: #F4F4F4;\n border-radius: 2px;\n width: 158px;\n height: 26px;\n line-height: 26px;\n text-align: center;\n color: #999;\n font-size: 12px;\n position: absolute;\n left: 23px;\n cursor: pointer;\n display: none;\n }\n .fold-bar:hover {\n background-color: #f0f0f0;\n }\n .show_fold .fold-bar {\n display: inline-block;\n }\n #promo_history span.ppi-sp1 {\n margin-right: 20px;\n line-height: 18px;\n }\n #promo_history .ppi-remind-tle {\n float: left;\n width: 32px;\n height: 16px;\n border-radius: 2px;\n line-height: 15px;\n text-align: center;\n background: #5ACFFA;\n margin-left: 4px;\n color: #fff;\n display: none;\n }\n #promo_history .now_list .ppi-remind-tle {\n background-color: #35BC68;\n }\n #promo_history .now_list2 .ppi-remind-tle {\n background-color: #FF9F22;\n }\n .now_list .ppi-remind-tle,.now_list2 .ppi-remind-tle, .promo-history-detail ul li:first-child .ppi-remind-tle {\n display: inline-block;\n }\n #promo_history .ppi-sp2 {\n line-height: 17px;\n }\n .ppi-fh {\n height: 17px;\n width: 4px!important;\n }\n .pro-coupon-item .ppi-fh+span {\n line-height: 18px;\n }\n #promo_history .ppi-sp1 ,#promo_history .ppi-sp2{\n color: #999;\n }\n #promo_history span.ppi-sp3 {\n font-size: 12px;\n color: #e4393c;\n line-height: 18px;\n margin-left: 3px;\n }\n #promo_history {\n float: left;\n width: 206px;\n height: 308px;\n position: relative;\n overflow: hidden;\n border-left: 1px solid #e4e4e4;\n }\n ._dsj_show #promo_history {\n height: 338px;\n }\n #promo_history>p {\n height: 40px;\n margin-top: 12px;\n width: 100%;\n font-size: 12px;\n color: #333333;\n background-color: white;\n line-height: 40px;\n padding-left: 19px;\n box-sizing: border-box;\n text-align: left;\n font-weight: bold;\n }\n .history-content {\n height: 265px;\n width: 100%;\n overflow-x: hidden;\n overflow-y: hidden;\n position: relative;\n padding-left: 19px;\n box-sizing: border-box;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n .gwd-gaussMask {\n mask: url('#mask-linear');\n filter: url('#filtre2');\n -webkit-mask: -webkit-linear-gradient(transparent, black 30%, black);\n -webkit-mask: linear-gradient(transparent, black 30%, black);\n -webkit-filter: blur(3px);\n background: white;\n height: 270px;\n }\n ._dsj_show .history-content {\n height: 295px;\n }\n .history-line {\n border-left: 1px dashed #e0e0e0;\n height: 200px;\n width: 0px;\n position: absolute;\n left: 9px;\n top: 24px;\n }\n .promo-history-detail ul li {\n list-style: none;\n float: left;\n width: 200px;\n height: auto;\n margin-top: 14px;\n }\n .promo-history-detail .show_fold ul li.lowest_before {\n display: none;\n }\n .promo-history-detail ul li:first-child.lowest_before {\n display: inline-block;\n }\n .promo-history-detail .show_fold ul li.lowest_now {\n margin-top: 54px;\n }\n .promo-history-detail ul li:first-child {\n margin-top: 0px;\n }\n .promo-history-detail .history-content> ul li:last-child {\n margin-bottom: 12px;\n }\n .promo-history-detail ul li a {\n line-height: 17px;\n height: 17px;\n width: 100%;\n float: left;\n }\n .promo-history-detail ul li.now_list a em {\n background-color: #35BD68;\n border: 1px solid #35BD68;\n }\n .promo-history-detail ul li a em {\n float: left;\n height: 5px;\n width: 5px;\n background: #fff;\n border: 1px solid #babec0;\n border-radius: 8px;\n position: relative;\n margin-right: 7px;\n top: 5px;\n margin-left: 6px;\n }\n .promo-history-detail ul li a span {\n float: left;\n }\n .promo-history-detail ul li>span {\n margin-top: 6px;\n float: left;\n line-height: 16px;\n height: auto;\n color: #999;\n text-align: left;\n /*margin-left: 20px;*/\n font-size: 12px;\n width: 141px;\n }\n .pro-coupon-item>span {\n float: left;\n height: 17px;\n width: auto;\n color: #999;\n }\n .pro-coupon-item .ppi-fh, .pro-pro-item .ppi-fh {\n margin-right: 2px;\n float: left;\n }\n .pro-coupon-item .pci-tlesp, .pro-pro-item .pci-tlesp{\n color: #999;\n float: left;\n }\n .promo-history-detail ul li .pro-coupon-item+.pro-pro-item {\n margin-top: 4px;\n width: 164px;\n }\n\n\n\n\n\n\n #promo_history ::-webkit-scrollbar {width:6px;}\n #promo_history ::-webkit-scrollbar-track {background:#f0f0f0;}\n #promo_history ::-webkit-scrollbar-thumb {\n background: #A7A7A7;\n border-radius: 12px;\n }\n #promo_history ::-webkit-scrollbar-thumb:hover {\n background: #999;\n }\n</style>\n\n<svg height=\"0\">\n <defs>\n <mask id=\"mask-radial\">\n <rect width=\"400\" height=\"300\" fill=\"url(#g1)\"></rect>\n <radialGradient id=\"g1\" cx=\"50%\" cy=\"50%\" r=\"50%\">\n <stop stop-color=\"black\" offset=\"50%\"/>\n <stop stop-color=\"white\" offset=\"110%\"/>\n </radialGradient>\n </mask>\n <mask id=\"mask-linear\">\n <rect width=\"400\" height=\"265\" fill=\"url(#l1)\"></rect>\n <linearGradient id=\"l1\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop stop-color=\"white\" offset=\"0%\"/>\n <stop stop-color=\"black\" offset=\"30%\"/>\n <stop stop-color=\"white\" offset=\"100%\"/>\n </linearGradient>\n </mask>\n <filter id=\"filtre1\">\n <feGaussianBlur in=\"SourceGraphic\" stdDeviation=\"5\"/>\n </filter>\n <filter id=\"filtre2\">\n <feGaussianBlur in=\"SourceGraphic\" stdDeviation=\"3\"/>\n </filter>\n </defs>\n</svg>" /***/ }), /***/ "e3916f328c1834810f25": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, regeneratorRuntime) { var _this = this; var request = __webpack_require__("91f250ebeb8d5987491c"); var sendData = function sendData(data) { var toSend = __webpack_require__("61191ae0f0390d21295c").gZip(data); toSend = String.fromCharCode.apply(null, toSend); request.post(G.server + '/extension?ac=sendSkuInfo', btoa(toSend)); }; var getMdskip = function getMdskip() { return new Promise(function (resolve) { window.TShop.onProduct(function (e) { return resolve(e.get('mdskip')); }); }); }; var getValItemInfo = function getValItemInfo() { return new Promise(function (resolve) { setTimeout(function () { window.TShop.onProduct(function (e) { return resolve(e.get('config').valItemInfo); }); }, 2000); }); }; function extract_tmall_sku_map() { var attrs_list = []; var props = document.querySelectorAll(".tb-sku > .tm-sale-prop"); var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = props[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var i = _step.value; var levelName = i.querySelector("dt").textContent; var level = { "name": levelName, "attrs": [] }; var attrs = i.querySelectorAll("ul > li"); var _iteratorNormalCompletion2 = true; var _didIteratorError2 = false; var _iteratorError2 = undefined; try { for (var _iterator2 = attrs[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { var attr = _step2.value; var value = attr.getAttribute("data-value"); var _name = attr.querySelector("a > span").textContent; level.attrs.push({ name: _name, value: value }); } } catch (err) { _didIteratorError2 = true; _iteratorError2 = err; } finally { try { if (!_iteratorNormalCompletion2 && _iterator2['return']) { _iterator2['return'](); } } finally { if (_didIteratorError2) { throw _iteratorError2; } } } attrs_list.push(level); } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator['return']) { _iterator['return'](); } } finally { if (_didIteratorError) { throw _iteratorError; } } } return attrs_list; } function extract_taobao_sku_map() { var attrs_list = []; var props = document.querySelectorAll(".tb-skin > .J_Prop"); var _iteratorNormalCompletion3 = true; var _didIteratorError3 = false; var _iteratorError3 = undefined; try { for (var _iterator3 = props[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) { var i = _step3.value; var levelName = i.querySelector("dt").textContent; var level = { "name": levelName, "attrs": [] }; var attrs = i.querySelectorAll("ul > li"); var _iteratorNormalCompletion4 = true; var _didIteratorError4 = false; var _iteratorError4 = undefined; try { for (var _iterator4 = attrs[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) { var attr = _step4.value; var value = attr.getAttribute("data-value"); var _name2 = attr.querySelector("a > span").textContent; level.attrs.push({ name: _name2, value: value }); } } catch (err) { _didIteratorError4 = true; _iteratorError4 = err; } finally { try { if (!_iteratorNormalCompletion4 && _iterator4['return']) { _iterator4['return'](); } } finally { if (_didIteratorError4) { throw _iteratorError4; } } } attrs_list.push(level); } } catch (err) { _didIteratorError3 = true; _iteratorError3 = err; } finally { try { if (!_iteratorNormalCompletion3 && _iterator3['return']) { _iterator3['return'](); } } finally { if (_didIteratorError3) { throw _iteratorError3; } } } return attrs_list; } var init = function init() { var res, data; return regeneratorRuntime.async(function init$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(request.get(G.s_server + '/js/configs/common.json')); case 2: res = context$1$0.sent; if (res.sku) { context$1$0.next = 5; break; } return context$1$0.abrupt('return'); case 5: if (G.site === 'taobao') { data = { url: location.href, fp: localStorage.getItem('gwdang-fp'), dfp: localStorage.getItem('gwdang-dfp'), data: { dynStock: window.g_config.dynStock, originalPrice: window.g_config.originalPrice, promoData: window.g_config.promotion.promoData, price: window.g_config.price, //promotion: window.g_config.promotion, soldQuantity: window.g_config.soldQuantity, couponActivity: window.g_config.couponActivity, sku: window.Hub.config.get('sku'), attrs_list: extract_taobao_sku_map() } }; sendData(data); } if (!(G.site === 'tmall')) { context$1$0.next = 20; break; } context$1$0.t0 = location.href; context$1$0.t1 = localStorage.getItem('gwdang-fp'); context$1$0.t2 = localStorage.getItem('gwdang-dfp'); context$1$0.next = 12; return regeneratorRuntime.awrap(getMdskip()); case 12: context$1$0.t3 = context$1$0.sent; context$1$0.next = 15; return regeneratorRuntime.awrap(getValItemInfo()); case 15: context$1$0.t4 = context$1$0.sent; context$1$0.t5 = extract_tmall_sku_map(); context$1$0.t6 = { mdskip: context$1$0.t3, valItemInfo: context$1$0.t4, attrs_list: context$1$0.t5 }; data = { url: context$1$0.t0, fp: context$1$0.t1, dfp: context$1$0.t2, data: context$1$0.t6 }; sendData(data); case 20: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports = { init: init, getValItemInfo: getValItemInfo }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "e3aad1ff685fc198354a": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G, regeneratorRuntime) { var _this = this; var template = __webpack_require__("274e32dfd54a6b0d18a9"); var promoQuanDetail = __webpack_require__("aca67d8a24b79ee1f7e2"); var gwdAd = __webpack_require__("4aae9ae08bf571fe3b41"); var request = __webpack_require__("91f250ebeb8d5987491c"); var detect = __webpack_require__("60624e018be49fb2d959"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var style = undefined; var addEm = function addEm(data) { for (var i = 0; i < data.length; i++) { data[i].puretle = data[i].title; data[i].title = data[i].title.replace(/\b([0-9.]+)\b/g, '<em>$1</em>'); } return data; }; var addEvent = function addEvent() { var timer = undefined; var btn = $('#promo_quan_btn'), addC = "", detail = $('#promo_quan_detail'); if (style == 'bottom') { btn = $('#' + G.extBrand + '-hui'); addC = G.extBrand + '-compare-item-hover'; } btn.on('mouseenter', function () { detail.show(); btn.addClass('msHover'); btn.find('a').addClass(addC); var left = btn.offset().left - 1; if (detail.width() + left > $(window).width()) { detail.css('right', '0px'); } else { detail.css('left', parseInt(left) + 'px'); } }); btn.on('mouseleave', function () { timer = setTimeout(function () { detail.hide(); btn.removeClass('msHover'); btn.find('a').removeClass(addC); }, 100); }); detail.on('mouseenter', function () { clearTimeout(timer); }); detail.on('mouseleave', function () { detail.hide(); btn.removeClass('msHover'); btn.find('a').removeClass(addC); }); }; var renderDetailTop = function renderDetailTop(dom, data, now) { if (!now) now = { site_name: data.site_name }; var promo_site = now.site_name || data.site_name; var quan_site = now.site_name || data.site_name; var promo_url = data.promotion.url; var quan_url = data.quan && data.quan.url; if (!data.promotion.site_has_promo) { promo_site = "全网最新"; } if (data.promotion.promos.length == 1) { promo_url = data.promotion.promos[0].url; } if (data.quan && !data.quan.site_has_quan) { quan_site = "全网最受关注"; } $(dom).append(template.compile(promoQuanDetail)({ promo_site: promo_site, quan_site: quan_site, promos: addEm(data.promotion.promos.slice(0, 4)), promo_url: promo_url, quans: addEm(data.quan && data.quan.quans.slice(0, 4) || []), quan_url: quan_url, s_server: G.s_server, new_extension: G.new_extension, style: style })); addEvent(); }; var renderDetail = function renderDetail(now, data) { if (style == 'top') renderDetailTop('.gwd-topbar-left', data, now);else if (style == 'bottom') renderDetailTop(G.dval, data, now); }; var renderAd = function renderAd(data) { if (!data) return; if (data.promo.length === 0) return; var size = 1; if (data.promo.length === 1) size = 0; var promo = data.promo[size]; var html = __webpack_require__("84a72adcc1d619950ad4"); $('.detail_right').append(template.compile(html)({ item: promo })); $('.detail_right').show(); }; var renderBtnTop = function renderBtnTop() { var dom = '<div id="promo_quan_btn" class="gwdang-tab">\n <span class="btn-tab-sp">\n <em class="gwd-bg"></em>\n <span class="tab-sp1 blkcolor1">促销优惠券</span>\n </span>\n </div>'; if ($('.gwd-topbar-left').length > 0) { $('.gwd-topbar-left').append($(dom)); } else { $('#' + G.extName + '-main-contents').append($(dom)); } $('#promo_quan_btn').show(); __webpack_require__("1c640a99db9f6f8a16c2").autoFixWidth(); }; var renderBtnBottom = function renderBtnBottom() {}; var renderBtn = function renderBtn() { if (style == 'top') renderBtnTop();else if (style == 'bottom') renderBtnBottom(); }; var getPromoInfo = function getPromoInfo(obj, callback) { var url = G.server + '/extension?ac=promotion&site_id=' + obj.site_id + '&class_id=' + obj.class_id + '&style=' + style; request.get(url).done(function (data) { if (data) { callback(data); } }); }; // const renderZol = (obj, data) => { // gwdAd.init({ // class_id: obj.class_id, // keyword: obj.keyword // }, (msg) => { // if (msg.promo.length > 0) { // msg.promo[0].puretle = msg.promo[0].title; // data.promotion.promos = msg.promo.concat(data.promotion.promos); // } // let html = require('raw-loader!../views/zolpromo.html') // $('.wrapper .breadcrumb').eq(0).after(template.compile(html)({ // data: data.promotion.promos.slice(0, 3) // })) // }) // } module.exports.renderSearch = function () { if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1 || G.site == '1688') { $('#' + G.extBrand + '-hui').hide(); return; } var siteId = detect.getSiteId(G.site); if (!siteId) return; var obj = {}; obj.site_id = siteId; getPromoInfo(obj, function (msg) { renderDetail(null, msg); }); }; module.exports.init = function callee$0$0(data) { var d, code_info, cate, keyword, siteId, obj; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('dp_query_latest_complete')); case 2: d = context$1$0.sent; if (!d.ingre) { context$1$0.next = 8; break; } context$1$0.next = 6; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('no_reviews')); case 6: context$1$0.next = 8; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('ingreComplete')); case 8: if (!(G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1 || G.site == '1688')) { context$1$0.next = 11; break; } $('#' + G.extBrand + '-hui').hide(); return context$1$0.abrupt('return'); case 11: style = userData.get('permanent').style; renderBtn(); code_info = data['code-server']; cate = code_info && code_info.class_id; keyword = data.now.coreword; siteId = data.now.site_id; if (siteId === '0') siteId = detect.getSiteId(G.site); obj = {}; obj.keyword = keyword; obj.site_id = siteId; obj.class_id = data.now.class_id; obj.brand_id = data.exact_arr.brand_id; getPromoInfo(obj, function (msg) { renderDetail(data.now, msg); // if (G.site === 'zol') { // renderZol(obj, msg) // } gwdAd.init({ class_id: cate, keyword: keyword }, renderAd); }); case 24: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "e5d4b0822df9259af4c6": /***/ (function(module, exports) { module.exports = "<div id=\"review_detail\" class=\"review-box\">\n <div class=\"review-left\">\n <div class=\"review-tab review-good selected\" data-d=\"{{data.goodbox}}\">\n <em class=\"gwd_bg\"></em>\n <span class=\"blkcolor1\">好评</span>\n </div>\n <div class=\"review-tab review-bad\" data-d=\"{{data.badbox}}\">\n <em class=\"gwd_bg\"></em>\n <span class=\"blkcolor1\">差评</span>\n </div>\n </div>\n <div class=\"review-right\">\n <div class=\"review-r-good\">\n {{each data.good}}\n <a href=\"{{$value.url}}\" class=\"blkcolor3\" target=\"_blank\">{{$value.label}}({{$value.num}})</a>\n {{/each}}\n </div>\n <div class=\"review-r-bad\">\n {{each data.bad}}\n <a href=\"{{$value.url}}\" class=\"blkcolor3\" target=\"_blank\">{{$value.label}}({{$value.num}})</a>\n {{/each}}\n </div>\n <div class=\"review-r-noinfo\">\n <em class=\"review-bg\"></em>\n <span>暂无评论</span>\n </div>\n </div> \n <style type=\"text/css\">\n .review-bg {\n background: url('{{s_server}}/images/extensions/xbt/review-bg.png') no-repeat;\n }\n #review_btn {\n width: 59px;\n }\n #review_btn .review_icon{\n float: left;\n height: 22px;\n width: 22px;\n background-position: -171px -19px;\n margin-left: 0px;\n margin-top: 6px;\n margin-right: 6px;\n }\n #review_btn.msenter {\n background-color: #edf1f2;\n z-index: 9999999999999999;\n height: 36px;\n position: relative;\n }\n #review_btn .review_text {\n font-weight: normal;\n color: #494d50;\n line-height: 35px;\n font-weight: bold;\n }\n #review_detail {\n position: fixed;\n top: 37px;\n width: 570px;\n height: 85px;\n z-index: 99999999;\n background-color: #fff;\n border: 1px solid #edf1f2;\n display: none;\n box-shadow: 0 5px 10px 0 rgba(22,24,26,0.15);\n box-sizing: content-box;\n }\n .review-left {\n float: left!important;\n height: 100%;\n width: 80px;\n }\n .review-right {\n float: left!important; \n width: 490px;\n height: 85px;\n }\n .review-tab {\n height: 42px;\n width: 100%;\n background-color: #fff;\n line-height: 42px;\n font-size: 14px;\n color: #333;\n cursor: pointer;\n border-right: 1px solid #edf1f2;\n }\n .review-tab em {\n float: left;\n height: 18px;\n width: 18px;\n margin: 11px 8px 0 12px;\n }\n .review-tab.selected span {\n font-weight: bold;\n }\n .review-good em {\n background-position: -122px -85px;\n }\n .review-bad em {\n background-position: -146px -85px;\n }\n .review-tab.selected {\n background-color: #fff;\n border-right: none;\n }\n .review-good {\n border-bottom: 1px solid #e6e6e6;\n }\n .review-r-bad {\n display: none;\n }\n .review-right .review-r-bad, .review-right .review-r-good {\n padding: 0px 2px 0 12px;\n overflow: hidden;\n height: 80px;\n }\n .review-r-bad a, .review-r-good a {\n font-size: 12px;\n color: #333;\n background-color: #f4f4f4;\n text-align: center;\n margin-right: 6px;\n margin-top: 12px;\n margin-bottom: 2px;\n float: left;\n height: 24px;\n line-height: 24px;\n letter-spacing: 1px;\n width: auto;\n padding: 0 6px;\n border-radius: 10px;\n text-decoration: none!important;\n }\n .review-r-good a:hover {\n color: #fff!important;\n background-color: #ff9f22;\n }\n .review-r-bad a:hover {\n color: #fff!important;\n background-color: #bcb9b2;\n }\n .review-r-noinfo {\n height: 100%;\n width: 130px;\n float: left!important;\n display: none;\n margin-left: 169px;\n }\n .review-r-noinfo em {\n float: left;\n width: 39px;\n height: 43px;\n background-position: -53px -117px;\n margin-top: 23px;\n margin-left: 20px;\n }\n .review-r-noinfo span {\n font-size: 14px;\n color: #b2b2b2;\n background-color: #fff;\n margin-top: 35px;\n margin-left: 3px;\n float: left;\n }\n </style>\n</div>" /***/ }), /***/ "e5e42eae3f3a4433706b": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_template_id_44c0e93e_scoped_true___ = __webpack_require__("10bcddd0827eacb5d2f5"); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_template_id_44c0e93e_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponBottomBjg_vue_vue_type_template_id_44c0e93e_scoped_true___["b"]; }); /***/ }), /***/ "e6521b4ea881581e5851": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var request = __webpack_require__("91f250ebeb8d5987491c"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var priceCheck = __webpack_require__("8b533351445f44b98685"); var monitor = __webpack_require__("ae80362cd6a2d17c50a8"); var inventoryCheck = __webpack_require__("a53850c80a1cfefa4efa"); var tbCompare2 = __webpack_require__("a8d04aabebd76e8bb3f7"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var loadCss = __webpack_require__("ada67488a8c93132fc1d"); var utils = __webpack_require__("d54879e983a83d07f093"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); __webpack_require__("fcdd97987c010877a5a5"); var perInfo = undefined, percallback = undefined, hasReq = undefined; var getPermanInfo = function getPermanInfo(callback) { if (perInfo) { callback(perInfo); return; } if (hasReq) { percallback = callback; return; } hasReq = true; var url = G.server + '/brwext/permanent_id?version=2&default_style=bottom&referrer=' + encodeURIComponent(document.referrer); request.get(url).then(function (data) { if (data) { perInfo = data; if (data.email && data.email.indexOf('%') > -1) { data.email = decodeURIComponent(data.email); } G.email = data.email; G.show_app = data.show_app; G.force = data.force; callback(data); if (percallback) percallback(data); } }); }; var editData = function editData(style, data) { if (G.aliSite) return data; if (data.b2c && data.b2c.length !== 0) { if (style === 'top') { var storeLen = data.b2c.store.length; for (var i = storeLen - 1; i >= 0; i--) { if (data.b2c.store[i].is_third && data.b2c.store[i].shop_name) { data.b2c.store[i].site_name2 = data.b2c.store[i].site_name; data.b2c.store[i].site_name = data.b2c.store[i].site_name.replace("第三方", "") + '-' + data.b2c.store[i].shop_name; } data.b2c.store[i].price = (Number(data.b2c.store[i].price) / 100).toFixed(2); data.b2c.store[i].price2 = data.b2c.store[i].price; if (!data.b2c.store[i].title || !data.b2c.store[i].img_url) { data.b2c.store.splice(i, 1); } } data.b2c.store2 = data.b2c.store.slice(0, 6); var productLen = data.b2c.product.length; for (var i = productLen - 1; i >= 0; i--) { if (data.b2c.product[i].is_third && data.b2c.product[i].shop_name) { data.b2c.product[i].site_name2 = data.b2c.product[i].site_name; data.b2c.product[i].site_name = data.b2c.product[i].site_name.replace("第三方", "") + '-' + data.b2c.product[i].shop_name; } var pitem = data.b2c.product[i]; if (pitem.promotions && pitem.fee && pitem.fee.indexOf('缺货') === -1) { pitem.promo2 = []; pitem.coupon2 = []; pitem.yushou2 = []; for (var k = 0; k < pitem.promotions.length; k++) { if (pitem.promotions[k].type === "promo") { if (pitem.promotions[k].tag === '预售') { pitem.yushou2.push(pitem.promotions[k].text); } else { pitem.promo2.push(pitem.promotions[k].text); } } else { pitem.coupon2.push(pitem.promotions[k].text); } } if (pitem.promo2.length === 0) pitem.promo2 = null; if (pitem.coupon2.length === 0) pitem.coupon2 = null; if (pitem.yushou2.length === 0) pitem.yushou2 = null; } data.b2c.product[i].price = (Number(data.b2c.product[i].price) / 100).toFixed(2); if (!data.b2c.product[i].title || !data.b2c.product[i].img_url) { data.b2c.product.splice(i, 1); } } data.b2c.min_price = (Number(data.b2c.min_price) / 100).toFixed(2); } else { var storeLen = data.b2c.store.length; for (var i = storeLen - 1; i >= 0; i--) { if (!data.b2c.store[i].product) continue; var productiLen = data.b2c.store[i].product.length; for (var j = productiLen - 1; j >= 0; j--) { if (data.b2c.store[i].product[j].is_third && data.b2c.store[i].product[j].shop_name) { data.b2c.store[i].product[j].site_name2 = data.b2c.store[i].product[j].site_name; data.b2c.store[i].product[j].site_name = data.b2c.store[i].product[j].site_name.replace("第三方", "") + '-' + data.b2c.store[i].product[j].shop_name; } data.b2c.store[i].product[j].price = (Number(data.b2c.store[i].product[j].price) / 100).toFixed(2); data.b2c.store[i].product[j].l_price = (Number(data.b2c.store[i].product[j].l_price) / 100).toFixed(2); var pitem = data.b2c.store[i].product[j]; if (pitem.promotions && pitem.fee && pitem.fee.indexOf('缺货') === -1) { pitem.promo2 = []; pitem.coupon2 = []; pitem.yushou2 = []; for (var k = 0; k < pitem.promotions.length; k++) { if (pitem.promotions[k].type === "promo") { if (pitem.promotions[k].tag === '预售') { pitem.yushou2.push(pitem.promotions[k].text); } else { pitem.promo2.push(pitem.promotions[k].text); } } else { pitem.coupon2.push(pitem.promotions[k].text); } } if (pitem.promo2.length === 0) pitem.promo2 = null; if (pitem.coupon2.length === 0) pitem.coupon2 = null; if (pitem.yushou2.length === 0) pitem.yushou2 = null; } if (!data.b2c.store[i].product[j].title || !data.b2c.store[i].product[j].img_url) { data.b2c.store[i].product.splice(j, 1); } } } } } else if (data.b2c_fuzzy && data.b2c_fuzzy.length !== 0) { var productLen = data.b2c_fuzzy.product.length; for (var i = productLen - 1; i >= 0; i--) { if (data.b2c_fuzzy.product[i].is_third && data.b2c_fuzzy.product[i].shop_name) { data.b2c_fuzzy.product[i].site_name2 = data.b2c_fuzzy.product[i].site_name; data.b2c_fuzzy.product[i].site_name = data.b2c_fuzzy.product[i].site_name.replace("第三方", "") + '-' + data.b2c_fuzzy.product[i].shop_name; } var pitem = data.b2c_fuzzy.product[i]; if (pitem.promotions && pitem.fee && pitem.fee.indexOf('缺货') === -1) { pitem.promo2 = []; pitem.coupon2 = []; pitem.yushou2 = []; for (var k = 0; k < pitem.promotions.length; k++) { if (pitem.promotions[k].type === "promo") { if (pitem.promotions[k].tag === '预售') { pitem.yushou2.push(pitem.promotions[k].text); } else { pitem.promo2.push(pitem.promotions[k].text); } } else { pitem.coupon2.push(pitem.promotions[k].text); } } if (pitem.promo2.length === 0) pitem.promo2 = null; if (pitem.coupon2.length === 0) pitem.coupon2 = null; if (pitem.yushou2.length === 0) pitem.yushou2 = null; } data.b2c_fuzzy.product[i].price = (Number(data.b2c_fuzzy.product[i].price) / 100).toFixed(2); data.b2c_fuzzy.product[i].img_url2 = data.b2c_fuzzy.product[i].img_url && data.b2c_fuzzy.product[i].img_url.replace('s100x100', 's140x140'); if (!data.b2c_fuzzy.product[i].title || !data.b2c_fuzzy.product[i].img_url) { data.b2c_fuzzy.product.splice(i, 1); } } data.b2c_fuzzy.min_price = (Number(data.b2c_fuzzy.min_price) / 100).toFixed(2); } return data; }; var times = 0; var renderMiniFavor = function renderMiniFavor() { times++; if (times > 1) { console.log('getPermanInfo B'); getPermanInfo(function () { // require('miniFavor').init() // require('topFavor').init() }); } }; var getProductInfo = function getProductInfo(style, callback) { console.log('getproductinfo start'); G.province_id = priceCheck.getSubStationId(G.dp.site); var debugData = G.debug ? '&debug=1' : ''; if (G.noRealPrice) { G.dp.price = 0; } G.dp.inventory = inventoryCheck.init(G.site); var url = encodeURIComponent(G.dp.url); var name = encodeURIComponent(G.dp.name); var keyword = encodeURIComponent(G.dp.keyword); var skeyword = encodeURIComponent(G.dp.skeyword); var cat_id = typeof G.dp.cat_id != 'undefined' ? G.dp.cat_id : ''; var pic = typeof G.dp.pic != 'undefined' ? encodeURIComponent(G.dp.pic) : ''; var cat_name = encodeURIComponent(G.dp.cat_name); var brand_string = encodeURIComponent(G.dp.brand_string); var dp_interfavce_url = G.server + '/brwext/dp_query_latest?permanent_id=' + G.p_id + '&union=' + G.union + '&url=' + url + '&site=' + G.dp.site + '&isbn=' + G.dp.isbn + '&name=' + name + '&keyword=' + keyword + '&skeyword=' + skeyword + '&id=' + G.dp.id + '&price=' + G.dp.price + '&stock=' + G.dp.inventory + '&province_id=' + G.province_id + '&subsite_id=' + G.subsite_id + '&cat_id=' + cat_id + '&pic=' + pic + '&userid=' + G.dp.userid + '&shop_name=' + G.dp.shop_name + '&shop_addres=' + G.dp.shop_addres + '&cat_name=' + cat_name + '&brand_string=' + brand_string + debugData + '&style=' + style + '&ingre=1'; var other_info_url = G.server + '/brwext/prepare?permanent_id=' + G.p_id + '&union=' + G.union + '&url=' + url + '&site=' + G.dp.site + '&isbn=' + G.dp.isbn + '&name=' + name + '&keyword=' + keyword + '&skeyword=' + skeyword + '&id=' + G.dp.id + '&price=' + G.dp.price + '&stock=' + G.dp.inventory + '&province_id=' + G.province_id + '&subsite_id=' + G.subsite_id + '&cat_id=' + cat_id + '&pic=' + pic + '&userid=' + G.dp.userid + '&shop_name=' + G.dp.shop_name + '&shop_addres=' + G.dp.shop_addres + '&cat_name=' + cat_name + '&brand_string=' + brand_string + debugData; request.get(dp_interfavce_url).then(function (data) { __webpack_require__("9c38beef5ff283e15bd2").setMet('dp_query_latest_complete', data); __webpack_require__("94dcbcd87711142a8b0b").init(data.ingre); G.dp.dpId = data.dp.dp_id; data = editData(style, data); userData.set('dp_query', data); console.log('dp_query set'); __webpack_require__("9c38beef5ff283e15bd2").setMet('dp_query_set'); renderMiniFavor(); callback(data); })['catch'](function () { callback(null); }); request.get(other_info_url).done(function (data) { G.dp.dpId = data.now.dp_id; if (G.dp && G.dp.dpId) { console.log('start checking'); __webpack_require__("69afa85b8d7929dd88c5").checked(G.dp.dpId).then(function (res) { if (res.data && res.data.qr_api) { G.qrApi = res.data.qr_api; } console.log('checked data', res); if (res.code === 0 || res.error_code === 1000) { /** 用户是否登录(不可用) */ G.userLogin = false; utils.setLocal('userLogin', null); } else if (res.code !== undefined) { /** 商品收藏状态 */ G.productChecked = res.data; console.log('setting product checked'); G.userLogin = true; G.email = 1; utils.setLocal('userLogin', true); __webpack_require__("51aadd1e1b65f329a862").renderAgain(); $(document).trigger('checkfavor'); } globalCondition.setMet('userLoginChecked'); __webpack_require__("9c38beef5ff283e15bd2").setMet('checked_data_got'); // 加载中间部分收藏降价提醒 __webpack_require__("39c432bd7bb3fe587696").init(); __webpack_require__("472c3193857af11233c9").init(); // 加载顶部 __webpack_require__("6b8303d96ee13d08f335").init(); $(document).trigger('checkfavor'); }); } userData.set('other_info', data); tbCompare2.init(); __webpack_require__("e3aad1ff685fc198354a").init(data); __webpack_require__("999cc56b04566e456c6b").init(data); __webpack_require__("0f10f0b54cd641a49a27").init(); renderMiniFavor(); __webpack_require__("85f9e563e35dd4a4e51e").init(); __webpack_require__("bb230b042f0d058f8c66").init(); __webpack_require__("b222cbd907f0b4aea97f").init(data.now.dp_id); __webpack_require__("c72145693e59d4fc8fe3").show(data.exact_arr.isbn, style); __webpack_require__("abb2c55465e8bd1d8753").init(data.now.dp_id); $(document).trigger('minicom'); __webpack_require__("9c38beef5ff283e15bd2").setMet('GwdDpIdGot', data.now.dp_id); log('category:' + G.logsite + ':' + data.now.dp_id + '/' + data['code-server'].class_id + '/'); /*eslint-disable */ if (G.debug && window.console) { console.log(data); } /*eslint-enable */ }).fail(function () { __webpack_require__("85f9e563e35dd4a4e51e").init(); }); }; var renderCss = function renderCss(style) { $('html').addClass('gwd_' + G.site); $('html').addClass('gwd_' + style); $('html').addClass('' + G.from_device); G.instanceId = parseInt(Math.random() * 10000); $('html').attr('data-gwd-id', G.instanceId); if (style === 'top') { loadCss.init('gwdang-notifier-new6.css'); } else if (style === 'bottom') { loadCss.init('gwdang-notifier-bottom-new6.css'); } }; var renderMainBar = function renderMainBar(style) { if (G.site === "steampowered") return; if (style === 'top') { __webpack_require__("3690f6d076b37bda66b7").init(); } else if (style === 'bottom') { __webpack_require__("2da79097fdc184b40ede").init2(); } }; var getLocalPermanInfo = function getLocalPermanInfo(callback) { var runcallback = undefined; communicate.on(function (data) { if (typeof data === 'string') { data = JSON.parse(data); } if (data.type === 'browser_setinfo') { data = data.value; G.allowBackgroundRequest = !!data.allowBackgroundRequest; G.canUseLocalLoginCheck = !!data.canUseLocalLoginCheck; if (G.allowBackgroundRequest) { setTimeout(function () { __webpack_require__("e3916f328c1834810f25").init(); }, 3000); } data.style = data.setStyle || 'top'; // data.top_fold = data.top_fold || '1'; // data.bottom_fold = data.bottom_fold || '0'; if (!runcallback) { if (runcallback) return; runcallback = true; userData.set('permanent', data); callback(data); // console.log('getPermanentInfo A') // getPermanInfo(function(info) { // data.top_fold = data.top_fold || info.p_fold || '0'; // data.setWishlist = data.setWishlist || info.show_wishlist || '0'; // data.setShowPromo = data.setShowPromo || info.show_promo || '0'; // data.bottom_fold = data.bottom_fold || info.p_fold || '0'; // if (data.localHost) // G.localHost = data.localHost; // if (data.user_extension_id) // G.userid = data.user_extension_id; // if (data.version) // G.ext_v = data.version; // userData.set('permanent', data) // callback(data) // // }) } } else if (data.type === 'user_extension_id') { G.userid = data.value; } else if (data.type === 'get_local_host') { G.localHost = data.value; } else if (data.type === 'get_local_img') { G.localImg = data.value; if (G.from_device === 'firefox') { G.noImg = data.value + 'default_load_image.png'; G.imgLoad = data.value + '120.gif'; } } }); setTimeout(function () { if (!runcallback) { (function () { var data = { 'style': 'bottom' }; console.log('getPermanent C'); getPermanInfo(function (info) { if (runcallback) return; data.top_fold = data.top_fold || info.p_fold || '0'; data.bottom_fold = data.bottom_fold || info.p_fold || '0'; data.setWishlist = data.setWishlist || info.show_wishlist || '0'; data.setShowPromo = data.setShowPromo || info.show_promo || '0'; data.style = info.style || 'top'; data.setTip = info.show_tip || '1'; data.sethaitao = info.show_haitao || '1'; userData.set('permanent', data); callback(data); runcallback = true; }); // userData.set('permanent', data) // callback(data) // runcallback = true })(); } }, 180); communicate.trigger({ 'type': 'user_extension_id' }); communicate.trigger({ 'type': 'browser_setinfo' }); communicate.trigger({ 'type': 'get_local_host' }); communicate.trigger({ 'type': 'get_local_img' }); }; var renderModule = function renderModule(style) { console.log('renderModule start'); __webpack_require__("5864b02248792e9a51fc").init(); getProductInfo(style, function (data) { __webpack_require__("c912948d535762b7172f").init(style, data); __webpack_require__("4b0daa953481b86e6349").init('b2c', data); if (data && data.dp) { __webpack_require__("97fdbca8ef7c5ce49bce").init(data.dp.dp_id); } // if (userData.get('other_info')) { // require('./miniBar').renderMiniCom(data) // } else { // $(document).on('minicom', function() { // require('./miniBar').renderMiniCom(data) // }) // } if (location.host.indexOf('.jd.com') > -1 || location.host.indexOf('suning') > -1) __webpack_require__("2f77f5f9070b5907552e").init2();else if (location.host.indexOf('taobao') > -1 || location.host.indexOf('tmall') > -1) __webpack_require__("2f77f5f9070b5907552e").init(); setTimeout(function () { __webpack_require__("d0be176400e0cbc97f82").init(); }, 2500); __webpack_require__("238322f76284ba9e93e3").init(); __webpack_require__("7026a4b5462dc6da5555").init(); monitor.init(); }); }; var backgroundReqReady = function backgroundReqReady() { if (G.site === 'tmall' || G.site === 'taobao-95095' || G.site === 'ai-taobao' || G.site === 'taobao') { __webpack_require__("1f677ede70b4f8bcb282").init2(); __webpack_require__("75d41ad7d5a1bceb52d2").init(); } if (location.host.indexOf('amazon') > -1 && location.host !== 'www.amazon.cn') { __webpack_require__("697c3c62b588ebd6f1b3").ready(); } __webpack_require__("ff881c8b15091819a13e").ready(); if (G.site === "aliexpress") __webpack_require__("fa297f213d29eb497c63").init(); }; var urltimes = 0; var listenUrlChange = function listenUrlChange() { if (urltimes > 99999) return; urltimes++; var url = location.href; var k = setInterval(function () { if (url !== location.href) { //location.reload(); window.gwd_G = false; $('.gwd-minibar-bg').remove(); $('#gwdang_main').remove(); $('#bjd_bottom_detail').remove(); $(G.dval).remove(); url = location.href; var fromDevice = G.from_device; G = __webpack_require__("5d4f0e584bd9a3a675b3"); __webpack_require__("2471c34a1449a65b6e88").clear(); if (window.gwdActivity) { window.gwdActivity = false; } if (fromDevice === '360server') { __webpack_require__("6a6d60b5e4dc52d8b1ea"); } else { __webpack_require__("b1cae3a1887fb97c6c83"); } __webpack_require__("5e05e6f5fe79ccf5d009").init(); if (location.host === 'm.fine3q.com') __webpack_require__("bf822aacfeba494ced92").init(); __webpack_require__("cb0906562effcf1b0e6c").getRate(function () { __webpack_require__("edb006a6bdc87dceab2d").common(function (data) { if (data && data.result.address.indexOf('北京') > -1) { G.forbidGiftMoney = true; } __webpack_require__("4733a3dd803685ec596a").get(function () { var cnzz = __webpack_require__("83271c7588396d2d5e59"); if (cnzz) cnzz.init(G.gwd_cnzz); __webpack_require__("e6521b4ea881581e5851").init(); }); }); }); clearInterval(k); } }, 200); }; module.exports.init = function () { __webpack_require__("86382bef702254f6385c").init(); __webpack_require__("f2b706dcdb3731e0de2c").init(); __webpack_require__("48c7bf720f8190dd7cc2"); console.log('start from monkey'); if (G.site === '6pm' || G.site === 'amazon' || G.site === 'lining' || G.site === 'tmall') { setTimeout(listenUrlChange, 2000); } getLocalPermanInfo(function (data) { if (window.gwd_G) return; window.gwd_G = G; request.get("https://cdn.gwdang.com/js/configs/specialContent.json").then(function (res) { if (res.html) { setTimeout(function () { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var html = template.compile(res.html, { escape: false })(); $('body').append(html); }, 0); } }); log("page_view:" + G.logsite); renderCss(data.style); var pInfo = G.pageInfo; if (pInfo.type === 1) { __webpack_require__("6eb6300b1093d4b652fb").init(); __webpack_require__("c815d6a749e99fa1daa5").init(); if (location.host.indexOf('taobao') > -1 || location.host.indexOf('tmall') > -1) { __webpack_require__("98e93ed4a85e80c55160").init(); } if (location.host.indexOf('search.jd.com') > -1) { __webpack_require__("ccd952a0cd9003e1d392").init(); } __webpack_require__("ee3f371a85b894c823bf").init(); __webpack_require__("a4447e95a8966a5c4979").init(); getPermanInfo(function () { __webpack_require__("ea576a0e729bc2bff522")(); }); } else if (pInfo.type === 2) { renderMainBar(data.style); renderModule(data.style); __webpack_require__("6b5f3f4c7b5f37c1088e").init(); __webpack_require__("1c640a99db9f6f8a16c2").listenBar(data.style); backgroundReqReady(); if (location.host === 'www.amazon.com' || location.host === 'www.amazon.co.jp' || G.site === '6pm') __webpack_require__("386e47e61222ba76fe18").init(); log('product_page_visit:' + G.logsite); __webpack_require__("99967238159b55ea4e52").init(); } __webpack_require__("c4adb5832af3824ff1c6").init(); __webpack_require__("636389e3a752a8309f94").init(pInfo.type); }); window.disable_gwd_privacy = function () { communicate.trigger({ type: 'disable_gwd_privacy' }); }; window.enable_gwd_privacy = function () { communicate.trigger({ type: 'enable_gwd_privacy' }); }; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "e6554ddc4b944c4a3224": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-common-login.gwd-remind[data-v-5efee9c0] {\n box-sizing: border-box !important;\n align-items: center;\n}\n.gwd-common-login.gwd-remind .gwd-main-login[data-v-5efee9c0] {\n /*padding-left: 18px;*/\n box-sizing: border-box;\n width: 200px;\n}\n", ""]); // exports /***/ }), /***/ "e756d69fbda7cdc8ade7": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "gwd-contact-link", on: { mouseover: _vm.over } }, [ _vm._v("\n 扫码联系客服\n "), _vm.qr ? _c( "div", { staticClass: "gwd-app-qr-content gwd-column gwd-align" }, [ _c( "div", { staticClass: "gwd-qr-img", style: "margin-top: 7px; margin-left: 7px; margin-right: 7px; height: 111.04px; position: relative; width: 111.04px;" }, [ _c("img", { staticClass: "gwd-qr-logo", attrs: { src: __webpack_require__("c9085187c37fc1ab0e5e"), alt: "" } }), _vm._v(" "), _c("img", { staticStyle: { width: "100%" }, attrs: { src: _vm.qr, alt: "" } }) ] ), _vm._v(" "), _c( "div", { staticClass: "gwd-row gwd-align gwd-qr-bottom-line", style: "margin-top: 6px;" }, [ _c( "span", { staticClass: "bold", style: "font-size: 20px;" }, [_vm._v("淘宝APP")] ), _vm._v(" "), _c( "span", { staticClass: "normal", style: "font-size: 18px" }, [_vm._v("扫码")] ), _vm._v(" "), _c( "span", { staticClass: "normal", staticStyle: { "margin-left": "10px" } }, [_vm._v("联系客服")] ) ] ) ] ) : _vm._e() ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "e97d380adaf6122c0aa9": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {var __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var exports = {}; var globalData, hasCallback, callbacks; var request = __webpack_require__("91f250ebeb8d5987491c"); var yixunImg = __webpack_require__("a51eacdde690fe7bfb28"); exports.get = function (callback) { request.get(G.server + '/brwext/history?op=get').done(function (data) { data = yixunImg(data.result); data = filtPrice(data); globalData = data; if (callback) callback(data); if (callbacks && !hasCallback) { callbacks(data); hasCallback = true; } }); }; var filtPrice = function filtPrice(data) { var newdata = []; for (var i = 0; i < data.length; i++) { var price = Number(data[i].price); if (!data[i].url || !data[i].title) continue; if (price && price > 0) { newdata.push(data[i]); } } return newdata; }; exports.add = function (dp_id, callback) { request.get(G.server + '/brwext/history?op=add&dp_id=' + dp_id).done(function (data) { if (callback) callback(data); }); }; exports.delAll = function (callback) { request.get(G.server + '/brwext/history?op=delAll').done(function (data) { callback(); }); }; exports.del = function (dp_id, callback) { request.get(G.server + '/brwext/history?op=del&dp_id=' + dp_id).done(function (data) { if (callback) callback(); }); }; exports.getSize = function (callback) { if (globalData) { callback(globalData); hasCallback = true; } else callbacks = callback; setTimeout(function () { if (!hasCallback) { callbacks(null); hasCallback = true; } }, 14000); }; return exports; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "ea01780c75dd0a1f378a": /***/ (function(module, exports) { module.exports = "<div class=\"search-tle\">\n <span class=\"blkcolor1\">{{site_k}}</span>\n <em class=\"gwd_bg\"></em>\n</div>\n<input class=\"search-input blkcolor3\" value=\"{{keyword}}\" style=\"position: initial\">\n<a href=\"\" class=\"search-submit\" target=\"_blank\">\n <em class=\"search-submit-em gwd_bg\"></em>\n</a>\n<div class=\"bjd-search-list\">\n <span>{{site_k2}}</span>\n <span>京东</span>\n <span>苏宁</span>\n <span>亚马逊</span>\n <span>当当</span>\n <span>一号店</span>\n <span>国美</span>\n <span>购物党</span>\n <style type=\"text/css\">\n .search-tle {\n background: #F0F5F7;\n border: 1px solid #edf1f2;\n width: 61px;\n height: 26px;\n border-right: none;\n cursor: pointer;\n border-bottom-left-radius: 18px;\n border-top-left-radius: 18px;\n line-height: 26px;\n }\n .search-tle.search-select {\n border-top-left-radius: 0px;\n }\n .search-tle span {\n float: left;\n width: 36px;\n height: 26px;\n margin-left: 10px;\n text-align: center;\n text-align: justify;\n -webkit-text-align-last:justify;\n font-size: 12px;\n }\n .search-tle em {\n float: left;\n height: 6px;\n width: 10px;\n margin-top: 11px;\n margin-left: 5px;\n background-position: -170px -24px;\n }\n .search-tle em.emup {\n background-position: -170px -34px;\n }\n .bjd-search-list {\n position: absolute;\n height: 160px;\n width: 70px;\n display: none;\n bottom: 41px;\n background-color: #F0F5F7;\n border: 1px solid #edf1f2;\n border-bottom: none;\n }\n .gwd_vipshop .bjd-search-list {\n left: 138px;\n }\n .bjd-search-list span {\n width: 36px;\n margin-left: 10px;\n float: left;\n height: 20px;\n cursor: pointer;\n text-align: justify;\n -webkit-text-align-last:justify;\n font-size: 12px;\n color: #303233;\n }\n .bjd-search-list span:hover {\n color: #5ebeff;\n }\n @media screen and (-webkit-min-device-pixel-ratio:0){\n .bjd-search-list span:after, .search-tle span:after{\n content:\".\";\n display: inline-block;\n width:100%;\n overflow:hidden;\n height:0;\n }\n }\n .search-input {\n width: 125px;\n margin: 0;\n height: 26px;\n padding: 0 0 0 12px;\n line-height: 24px;\n border: 1px solid #edf1f2;\n border-left: none;\n border-right: none;\n outline: 0;\n font-size: 12px;\n font-family: 'Microsoft YaHei',tahoma,arial,SimSun;\n background-color: #F0F5F7;\n margin-top: 16px!important;\n }\n .search-submit {\n width: 30px;\n height: 28px;\n cursor: pointer;\n float: left;\n background-color: #F0F5F7;\n border-bottom-right-radius: 18px;\n border-top-right-radius: 18px;\n }\n .search-submit-em {\n width: 27px;\n height: 28px;\n float: left;\n \n background-position:-180px -19px;\n \n }\n </style>\n</div>" /***/ }), /***/ "ea576a0e729bc2bff522": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var union_url = G.u_server + "/union/go"; var util = __webpack_require__("d54879e983a83d07f093"); if (!G.isMobile) union_url = G.specialUnion; var firstClick = true; var forbidDict; var dict = { 'dangdang': 2, 'prescriptives': 5, 'perryellis': 6, 'newegg': 7, 'originalpenguin': 9, 'm18': 10, 'naturalizer': 11, 'sephoracps': 12, 'lefeng': 13, 's': 14, '51buy': 15, 'moonbasa': 17, 'keede': 18, 'kede': 18, 'vancl': 19, 'luisaviaroma': 20, 'letao': 22, 'giorgioarmanibeauty-usa': 23, 'taoxie': 24, 'suning': 25, 'coo8': 26, 'caudalie': 26, 'gome': 28, 'gome-rushbuy': 28, 'gomehigo': 28, 'murad': 29, 'betseyjohnson': 30, 'yihaodian': 31, 'yihaodian-tuan': 31, 'womai': 32, 'leyou': 33, 'shopin': 34, 'xiu': 35, 'mbaobao': 36, 'thebodyshop': 37, 'hampdenclothing': 38, 'youpin-mi': 39, 'chunshuitang': 40, 'x': 41, 'no5': 43, 'anthropologie': 44, 'sasa': 45, 'armani': 47, 'ecco-us': 48, '360kxr': 50, 'm6go': 51, 'bananarepublic-gap': 53, 'morefood': 54, 'loft': 55, '99read': 59, 'china-pub': 60, 'bookschina': 61, 'winxuan': 62, 'efeihu': 63, 'shuuemura-usa': 65, 'yintai': 66, 'strawberrynet': 69, 'happigo': 72, 'gap': 73, 'therealreal': 74, 'c21stores': 76, 'ctshirts': 78, 'superjeweler': 79, 'jimmychoo': 82, 'tmall': 83, 'tiantian': 84, 'fwrd': 85, 'jumei': 86, "aveda": 87, "na-kd": 88, "nancymeyer": 92, 'yougou': 93, '111': 94, 'jianke': 97, 'muyingzhijia': 98, 'lingshi': 99, 'banggo': 100, 'yesmywine': 101, 'jiumei': 102, 'winenice': 102, 'jiuxian': 103, "baublebar": 105, "elevenparis": 106, 'goujiuwang': 108, 'okhqb': 109, 'bookuu': 110, "lindtusa": 111, "narscosmetics": 112, 'd1': 115, "jackrabbit": 116, "macmall": 117, "champssports": 120, "dji": 121, "bodenusa": 122, 'paixie': 122, 's8': 123, "crazy8": 124, 'homevv': 124, 'jxdyf': 125, 'jinxiang': 125, 'sfbest': 126, 'benlai': 127, 'tootoo': 128, 'vipshop': 129, 'fclub': 130, "moltonbrown": 130, "needsupply": 131, 'ihush': 131, "solesociety": 132, 'vmall': 134, 'lenovo': 135, 'apple': 136, 'zm7': 138, 'miqi': 139, "childrensplace": 139, 'zhiwo': 140, 'j1': 141, 'wangjiu': 142, 'liebo': 144, 'esprit': 145, 'lamiu': 146, 'aimer': 147, 'kadang': 148, "sigmabeauty": 148, 'lizi': 149, 'metromall': 150, "adidas": 150, 'pba': 151, 'shangpin': 152, 'wbiao': 153, 'handuyishe': 154, 'ehaier': 155, 'secoo': 156, 'camel': 157, 'masamaso': 158, "veronicabeard": 158, "cross": 159, 'nop': 159, 'naruku': 160, "monsterproducts": 161, 'gaojie': 161, 'zhenpin': 162, 'sportica': 163, 'xifuquan': 164, "theoutnet": 165, 'milier': 165, // 'xiaomi': 167, 'lemall': 168, "clarisonic": 170, 'dianping': 171, 'ctrip': 173, 'yiguo': 174, 'yummy77': 175, "dermadoctor": 175, 'fruitday': 178, 'jumeiglobal': 179, 'feiniu': 180, "solsticesunglasses": 181, 'feifei': 181, 'zuipin': 182, "pixiemarket": 183, 'yohobuy': 184, 'lvmama': 185, 'ikjtao': 188, 'speedo': 189, "yunifang": 190, "globalwinner": 191, "biotherm-usa": 193, 'mf910': 194, 'markmall': 194, 'miyabaobei': 195, 'ule': 196, 'mingshengec': 197, "jomalone": 198, 'wangfujing': 198, 'nuomi': 199, 'qunar': 200, 'meilishuo': 202, 'mogujie': 203, '55tuan': 204, 'jinjianginns': 205, 'elong': 206, '500': 209, 'supuy': 210, 'lv': 211, 'caipiao': 212, 'lining': 213, 'koolearn': 214, 'springtour': 215, '228': 216, 'rrs': 217, 'coocaa': 218, 'lifevc': 220, 'niubia': 221, 'kzj365': 222, 'kaola': 223, 'ymatou': 224, 'metao': 225, "yvesrocherusa": 225, 'kjt': 226, 'logitech': 227, 'ebay': 230, 'aliexpress': 231, 'xiji': 232, 'nike': 233, '360kad': 234, 'lbxcn': 235, 'meici': 236, 'beibei': 237, '6pm': 238, "mountainhardwear": 240, 'shopbop': 241, 'sierratradingpost': 243, 'ashford': 243, 'newegg-us': 244, 'lookfantastic-com': 248, 'iherb': 250, 'vsigo': 252, '100yue': 256, 'haitaocheng': 258, 'joesnewbalanceoutlet': 259, 'daling': 267, 'sfht': 268, 'fengqu': 268, 'mei': 269, 'showjoy': 270, 'ocj': 271, 'sundan': 272, 'easeeyes': 273, 'yunhou': 274, 'haituncun': 275, 'walmart': 276, 'vmei': 277, 'jgb': 278, "boscovs": 278, "putmeinthestory": 279, '51din': 279, 'aidai': 280, 'boqii': 281, 'toursforfun': 282, 'lulutrip': 283, 'spider': 284, 'microsoftstore': 285, 'jiae': 286, 'zazhipu': 287, 'xgdq': 288, 'xtep': 289, 'midea': 290, 'staples': 291, 'efotile': 292, 'bestcake': 293, 'lovo': 294, 'hua': 295, 'zhe800': 296, 'bftv': 297, 'tujia': 298, 'tuhu': 299, 'htc': 300, 'roseonly': 301, 'rong360': 302, 'niwodai': 303, 'cosme': 304, 'diapers': 305, 'windeln': 306, 'babyneo': 307, 'escentual': 308, 'thewatchery': 309, 'saksfifthavenue': 310, 'esteelauder': 311, 'biccamera': 312, "petit-bateau": 313, 'taqu': 313, 'qyer': 314, 'axmall ': 315, 'muji': 316, 'gmarket': 317, '11st': 318, 'smartbargains': 319, 'yahooshop': 320, 'bloomingdales': 321, 'mikihouse': 322, 'toysrus': 323, 'comfortfirst': 324, 'gymboree': 325, 'albeebaby': 326, 'babymarkt': 327, 'uggaustralia': 328, 'neimanmarcus': 329, 'shoebuy-elevtd': 330, 'szul': 331, 'timex': 332, 'kay': 333, 'ewatches': 334, 'swarovski': 335, 'worldofwatches': 336, 'danielwellington': 337, 'beautybay': 338, 'beauty': 339, "striderite": 339, "bcbg": 340, 'beautybar': 340, 'skinstore': 341, 'laneige': 342, 'bose': 343, 'bestbuy': 344, 'bhphotovideo': 345, 'sony': 346, 'bl': 347, 'bestinfoods': 348, "marissacollections": 348, 'you163': 349, 'jinjiang': 350, 'guojimami': 351, 'baiyangwang': 352, 'royyoungchemist': 354, 'medihealshop': 355, '1001pharmacies': 356, 'lookfantastic-cn': 357, 'oneplus': 358, 'kaixinbao': 359, 'juanpi': 360, 'booking': 361, 'pharmacyonline': 362, 'bodyguardapotheke': 363, 'purcotton': 364, 'wstx': 367, 'hisense': 368, 'zhongjiu': 369, 'kaluli': 370, 'yangkeduo': 370, 'to8to': 371, 'opposhop': 372, 'baobeigezi': 373, 'yao123': 374, 'baicheng': 375, 'gionee': 376, 'suanjuzi': 377, 'aomygod': 378, 'luolai': 379, 'vivo': 380, 'dixintong': 381, 'coolpad': 382, 'skg': 383, 'iqiyi': 384, 'aolaigo': 385, 'missfresh': 386, 'pushenkuajing': 387, 'feelunique': 388, 'chemistdirect': 389, 'netpharmacy': 390, "chineselaundry": 390, 'pharmacy4less': 391, 'pharmacydirect': 392, 'amcal': 393, 'laredoute': 394, 'unserekleineapotheke': 395, 'erwinmueller': 396, 'kiwidiscovery': 397, "ylang23": 397, "thewalkingcompany": 398, 'springlane': 398, 'jako-o': 399, 'easytoys': 400, 'tlcpharmacy': 401, 'bienmanger': 402, 'dewaren': 403, 'discount-apotheke': 404, 'holland-at-home': 405, 'youyu': 406, 'kiwistarcare': 407, 'lenovomobile': 408, 'motorola': 408, 'kiehls': 409, 'zappos': 410, 'coach': 411, 'yoox': 412, '11street': 413, '51taouk': 414, 'hqhair': 415, 'katespade': 416, 'vitafy': 417, 'lotte': 418, 'carrefour': 419, 'tea7': 420, 'puzeyf': 421, 'kohls': 422, 'bodybuilding': 423, 'nordstrom': 424, 'costco': 425, 'target': 426, 'kmart': 427, 'overstock': 428, 'sears': 429, 'shoprobam': 430, 'goumin': 431, 'flyco': 432, 'opplestore': 433, 'syshop': 434, 'yfdyf': 435, 'hotels': 436, 'aihuishou': 437, 'thebeastshop': 438, 'jomooshop': 439, 'septwolves': 440, 'lianjia': 441, '5i5j': 442, 'home6': 443, '800pharm': 444, 'ujipin': 445, 'mmb': 446, 'ihaveu': 447, 'ikang': 448, 'wyn88': 449, 'mcake': 450, 'xmeise': 451, 'lecake': 452, 'jd100': 453, 'jinghua': 454, 'taohwu': 455, 'zbird': 456, 'km1818': 457, 'zocai': 458, 'taoshu': 459, 'aizhigu': 460, 'tieyou': 461, 'fieldschina': 462, 'wdmcake': 463, 'lqxshop': 464, 'usashopcn': 467, 'wine9': 468, 'qipaimall': 469, 'yododo': 470, '1688': 471, 'yoger': 472, 'dapu': 473, 'winona': 474, 'wl': 475, 'shanmai': 476, 'zgshoes': 477, 'maichawang': 478, 'uemall': 489, "perfumania": 479, '51you': 480, 'beifabook': 481, 'jpeen': 482, 'huatuoyf': 483, 'fengbuy': 484, 'uiyi': 485, 'hecha': 486, 't10': 487, 'qw': 488, 'miutour': 489, 'ehaoyao': 490, 'idx': 491, 'uya100': 492, 'ssnewyork': 493, 'clinique': 494, 'hxepawn': 495, 'brooksbrothers': 496, 'omtao': 497, 'ep365': 498, 'columbiasports': 499, 'bstapp': 500, 'newbalance': 501, 'wjike': 502, 'bally': 503, '1hai': 504, 'jialich': 505, 'takeya': 506, 'forever21': 507, 'modernavenue': 508, 'muniao': 509, 'zuihuiyou': 510, 'centanet': 511, 'bobbibrowncosmetics': 512, 'super-in': 513, 'hangowa': 514, 'levi': 515, 'fila': 516, 'converse': 517, 'nextdirect': 518, 'itrip': 519, 'lashou': 520, 'liufeng': 521, 'trt': 522, 'wodinghua': 523, 'wuliwuli': 524, 'forestfood': 525, 'bonjourhk': 526, 'vitagou': 527, 'kinhom': 528, '360lj': 529, 'changba': 530, 'oakley': 531, 'jpyoo': 532, 'clarksusa': 533, 'starwoodhotels': 534, 'marriott': 535, 'yesstyle': 536, 'evisu': 537, 'lifeseasy': 538, 'ccxpet': 539, 'x0061': 540, 'kkguan': 541, 'style-oclock': 542, 'peikua': 543, 'airfrance': 544, 'accorhotels': 545, 'spacenk': 546, 'haichufang': 547, 'wconcept': 548, 'gant': 549, 'catfootwear': 550, 'saucony': 551, 'zaozuo': 552, 'littleswan': 553, 'can': 554, 'ssrj': 555, "underarmour": 555, 'guess': 556, 'etihad': 557, 'fiil': 558, 'mianshui365': 559, 'tegoushe': 560, 'wiggle': 561, 'mdreams': 562, 'ecovacs': 563, 'calvinklein': 564, 'memebox': 565, 'hilton': 566, 'revolve': 567, 'shiseido': 568, 'clarinsusa': 569, 'starbucks': 570, 'ray-ban': 571, 'puma': 572, 'nautica': 573, 'cremedelamer': 574, 'kipling-usa': 575, 'jurlique': 576, 'hushpuppies': 577, 'origins': 578, 'follifollie': 779, 'loccitane': 580, 'hpstore': 582, '01home': 584, 'healthpost': 588, 'imengxiang': 590, 'hysj': 591, 'saohuo7': 592, 'repai': 593, 'mayi': 594, 'yinpiao': 595, 'ihome-ins': 596, 'incake': 597, 'kuwo': 598, 'ywart': 599, 'cct': 600, 'ansgo': 601, 'pilibaba': 602, 'xiaoniu88': 603, 'ahava': 604, '5-fifth': 605, 'thewatchhut': 606, 'babyhaven': 607, 'cosme-de': 608, 'getthelabel': 609, 'matsuya': 610, 'timberland': 611, 'topman': 612, 'homeaway': 613, 'beautyexpert': 614, 'haimi': 615, 'mankind': 616, 'thehut': 617, 'topshop': 618, 'mamaladen': 619, 'traveler-store': 620, 'travelzoo': 621, 'umishoes': 622, 'ferrari': 624, 'willerexpress': 625, 'unineed': 626, 'acnestudios': 627, 'aeropostale': 628, 'agoda': 629, 'albamoda': 630, 'allbeauty': 631, 'allsaints': 632, "bestgymequipment": 632, 'allsole': 633, 'urbanoutfitters': 634, 'vitabiotics': 635, 'bellemaison': 636, 'benefitcosmetics': 637, 'bhcosmetics': 638, 'bjmylikes': 639, "thesportsedit": 639, 'vitaminbay': 640, 'waitrose': 641, 'wolfordshop': 642, 'boohoo': 643, 'boots': 644, 'britishcornershop': 645, 'yirendai': 646, 'ys7': 647, 'coggles': 648, 'corsetdeal': 649, 'cottonon': 650, 'crocs': 651, 'cruisefashion': 652, 'dell': 653, 'dermstore': 654, 'disneystore': 655, 'dorothyperkins': 656, 'doudoukang': 657, 'dujiake': 658, 'dunelondon': 659, 'eastbay': 660, 'eastdane': 661, 'zaful': 662, 'zavvi': 663, 'feinkeit': 664, 'eibmarkt': 665, 'belluna': 666, "emirates": 667, 'ems': 668, 'eterna': 669, 'eurail': 670, 'exantediet': 671, 'expedia': 672, 'falke': 673, 'famousfootwear': 674, 'foreo': 676, 'wangxinlicai': 677, 'foreverunique': 678, 'forzieri': 679, 'freecountry': 680, "treds": 681, 'frenchconnection': 682, 'gift-land': 683, 'growgorgeous': 687, 'hotel': 690, 'houseoffraser': 691, 'huizuche': 692, 'iwantoneofthose': 695, 'jjglobal': 696, 'juicycouture': 699, 'kenko': 700, 'kikocosmetics': 702, 'lancerskincare': 703, 'lego': 704, 'lordandtaylor': 706, 'maizhi': 711, 'matchesfashion': 712, 'matsukiyo': 713, 'microsoft': 715, 'mioskincare': 716, 'missselfridge': 717, 'mountaingear': 718, 'mybag': 720, 'myprotein': 721, 'myvitamins': 723, 'net-a-porter': 724, 'newbalance-uk': 725, 'ddky': 726, 'newlook': 727, 'chinaacc': 728, 'bmai': 729, 'nike-hk': 730, 'nike-br': 731, 'inke': 732, "toryburch-uk": 732, 'nyandcompany': 733, 'oasis-stores': 734, 'orbitz': 735, 'orchira': 736, 'origins-uk': 737, 'petsmart': 738, 'junrongdai': 739, 'napai': 740, 'gree': 741, 'probikekit': 742, 'qatarairways': 743, 'radley': 744, 'allianz': 745, 'ralphlauren': 746, 'rebeccaminkoff': 747, 'youmi': 748, '21cake': 749, 'rentalcars': 750, 'ricaud': 751, 'rockport': 752, 'ruelala': 753, '56ren': 754, 'saksoff5th': 755, 'anantara': 756, 'sc24': 757, 'chesudi': 758, 'shoes': 759, 'shopspring': 760, 'simplysupplements': 761, 'ehmall': 762, 'farfetch': 763, 'ssense': 764, 'stevemadden': 765, 'freepeople': 766, 'gaosouyi': 767, 'imomoko': 768, 'taodo': 769, 'michaelkors': 770, 'ttcj': 771, 'uf-club': 772, 'zhaidou': 773, '163yun': 774, 'apo': 775, 'jimu': 776, 'hao24': 777, 'seagoor': 778, 'wannar': 779, 'caihang': 780, 'csmall': 781, 'kuajing': 782, 'millenniumhotels': 783, 'reebonz': 784, 'wemakeprice': 785, 'wzhouhui': 786, 'huijiayou': 787, 'melimelo': 788, '91xcm': 789, 'ashford-zh': 790, 'cjonmart': 791, 'cnyto': 792, 'granddfs': 793, 'officedepot': 794, 'tianhong': 795, 'yilingshop': 796, 'klook': 797, 'charm-color': 798, 'felissimo': 799, 'surfstitch': 800, 'lornajane': 801, 'reiss': 802, 'gzl': 803, '9drug': 804, 'yungoubs': 805, 'yencity': 806, 'hujiang': 807, 'meituan-iphx': 808, 'svgouwu': 809, 'hqwx': 811, 'tcl': 812, 'maimaicn': 813, 'tyfo': 814, 'tthigo': 816, 'mayn': 817, 'harrods': 819, 'theundone': 820, 'perfumesclub': 821, 'godaddy': 822, 'mytheresa': 823, 'backcountry': 824, 'marriott-cn': 825, 'swarovski-en': 826, 'mrporter': 827, 'priceline': 828, 'ctrip-en': 829, 'monnierfreres': 830, 'myprotein-com': 831, 'toryburch-com': 826, 'italist': 832, 'askderm': 833, 'tatcha': 834, 'hollandandbarrett': 835, 'ninewest': 836, 'bergdorfgoodman': 837, 'ihg': 838, 'footlocker': 839, 'rodial': 840, 'feelunique-cn': 841, 'jackwills': 842, 'kidsroom': 843, 'dod': 844, 'karenmillen': 845, 'illicopharma': 846, 'tedbaker': 847, 'b-glowing': 848, 'adiexpress': 849, 'fragrancex': 850, 'peterthomasroth': 851, 'gap-com': 852, 'cecile': 853, 'barneys': 854, 'debuycn': 855, 'smashbox': 856, 'lastcall': 857, 'superdrug': 858, 'libertylondon': 859, 'chemistdirect-uk': 860, 'skincarerx': 861, 'haba': 862, 'panasonic': 863, 'beautifiedyou': 864, 'nba': 865, 'elfcosmetics': 866, 'uniqlo': 867, 'colehaan': 868, 'carters': 869, 'sportsdirect': 870, 'adorama': 871, 'ae': 872, 'amorepacific': 873, 'anntaylor': 874, 'asics': 875, 'asos': 876, 'aveneusa': 877, 'barneyswarehouse': 878, 'bensherman': 879, 'blissworld': 880, 'blueandcream': 881, 'bonds': 882, 'cookieskids': 883, 'cosmeland': 884, 'crabtree-evelyn': 885, 'crocs-ca': 886, 'darphin': 887, 'davidscookies': 888, 'dickiesstore': 889, 'dockers': 890, 'easyspirit': 891, 'ebags': 892, 'echemist': 893, 'eddiebauer': 894, 'elemis': 895, 'elizabetharden': 896, 'ena': 897, 'evitamins': 898, 'fashionesta': 899, 'figleaves': 900, 'folica': 901, 'fragrancenet': 902, 'glamglow-uk': 903, 'godivachocolates': 904, 'goldsmiths': 905, 'growgorgeous-uk': 906, 'happysocks': 907, 'harveynichols': 908, 'hatley': 909, 'herbspro': 910, 'houseofholland': 911, 'jayjays': 912, 'jetairways': 913, 'journeys': 914, 'karmaloop': 915, 'keds': 916, 'labseries': 917, 'leejeans': 918, 'livingsocial': 919, 'wkzuche': 920, 'uzise': 921, 'laiyifen': 922, 'avast': 923, 'kaspersky': 924, 'steepandcheap': 925, 'glamglow-com': 926, 'cledepeaubeaute': 927, 'kicksusa': 928, 'lacoste': 929, 'perriconemd': 930, 'gemvara': 931, 'bluenile': 932, 'modaoperandi': 933, 'parrot': 934, 'fashionbunker': 935, 'final-score': 936, 'dkny': 937, 'mango': 938, 'charlottetilbury': 939, 'vmware': 940, 'avira': 941, 'jewelry': 942, 'eset': 943, 'norton': 944, 'jimmyjazz': 945, 'roxy': 946, 'nastygal': 947, 'marcjacobs': 948, 'beastsmode': 949, 'theapollobox': 950, 'yamibuy': 951, 'hbx': 952, 'horchow': 953, 'bluefly': 954, 'swansonvitamins': 955, 'jcrew': 956, 'bebe': 957, 'mucfc': 958, 'only': 959, 'veromoda': 960, 'jackjones': 961, 'selected': 962, 'hanes': 963, 'algenist': 964, 'jcrew-factory': 965, 'lolewomen': 966, 'underarmour-com': 967, 'theory': 968, 'intimina': 969, 'nydj': 970, 'jny': 971, 'bonobos': 972, 'alphaindustries': 973, 'venuekings': 974, 'goop': 975, 'silkyscents': 976, 'shopsky': 977, 'vitaminworld': 978, 'bumbleandbumble': 979, 'mattandnat': 980, 'ladyfootlocker': 981, 'aliceandolivia': 982, 'lancome-usa': 983, 'sk-ii': 984, 'beautifulhalo': 985, 'footaction': 986, 'vitaminshoppe': 987, 'reebok': 988, 'jet': 989, 'burtsbeesbaby': 990, 'yoins': 991, 'skechers': 992, 'toofaced': 993, 'shoebuy': 994, 'katvondbeauty': 995, 'mountainsteals': 996, 'tours4fun': 997, 'jewelryaffairs': 998, 'perfume': 999, 'tgw': 1000 }; function makeUrl(pre, url) { if (url.indexOf("http") != 0) { if (url.indexOf("javascript") == 0) { pre = ""; url = ""; } else if (url.indexOf("//") == 0) { pre = "http:"; } else if (url.indexOf("/") == 0) { pre = pre.replace(/(http:\/\/[^\/]+).*/ig, '$1'); if (G.site === 'youpin-mi') { return pre + url.replace('/', ''); } } else { var head = pre.substr(0, pre.indexOf("//") + 2); pre = pre.substr(pre.indexOf("//") + 2); var pre_arr = pre.split("/"); var pre_len = pre_arr.length - 1; if (url.indexOf("./") == 0) { url = url.substr(2); } else if (url.indexOf("../") == 0) { while (url.indexOf("../") == 0) { url = url.substr(3); pre_len--; } } pre = head; for (var i = 0; i < pre_len; i++) { pre += pre_arr[i] + "/"; } } url = pre + url; } return url; } function makeSite() { var site = G.site; if (G.site == 'yhd') site = 'yihaodian'; if (G.site == 'vip') site = 'vipshop'; return site; } function addSpecialDicts() { if (G.from_device == 'baidu' || G.from_device == 'mi_new' || G.from_device == 'njck' || G.from_device == 'bjlt' || G.new_extension) { dict['360buy'] = 3; } } // function specialEdit() { // /*pc端所有版本去掉唯品会的dicts*/ // if (G.site == 'vipshop' && location.host != 'm.vip.com') // delete dict['vipshop']; // } // 返回false表示数组为空或者没有匹配到元素 var matchDict = function matchDict(site, forceArr) { var d1 = dict[site]; if (forceArr.length === 0 || !(forceArr instanceof Array)) return false; for (var i = 0; i < forceArr.length; i++) { var item = forceArr[i]; item = Number(item); if (item === d1) return true; } return false; }; var specialReplaceUrl = function specialReplaceUrl(site, url) { if (dict[site] === 173) { url = 'https://click.linktech.cn/?m=xiecheng&a=A100098459&l=99999&l_cd1=0&l_cd2=1&tu=https%3A%2F%2Fhotels.ctrip.com/international%2FSingapore73#ctm_ref=ssc_hp_htl_sni_pro_1'; } else if (dict[site] === 214) { url = 'http://un.koolearn.com/alliance/clickword?userid=28267eeb6a904424a152dfec2324dcfa&kid=86919c8addb545bbb384e6c2a4cafac4'; } else if (dict[site] === 728) { url = 'http://union.chinaacc.com/union/interface/spread.shtm?agentID=3163&siteID=1'; } else if (dict[site] === 384) { if (G.cooperation || G.from_device === 'bijiago') { url = 'https://c.duomai.com/track.php?k=mLwlmdGJTJGJTJBNTJzBHd0hWP0ZSPklWdlZCMyczM9QWahZCNxEzM50DZp9VZ0l2cmYiJs1Gdo5yYwNnetdnRyUibvlGdv12byBVau5WQoRnbp5WZyBnRyUSbvNmLplXaxl'; } } return url; }; var init = function init(site) { addSpecialDicts(); var pageUrl = location.href; if (pageUrl.indexOf('order') > -1 || pageUrl.indexOf('cart') > -1) return; if (!G.set_force) return; // || $.inArray(Number( dict[site]), G.force) >= 0 try { if (dict[site] && matchDict(site, G.force)) { return; } $('body').delegate('a', 'mouseenter mouseleave mouseover', function (event) { var ct = $(this).attr('ct'); if (event.type != "mouseover" && ct) { $(this).attr('href', ct).removeAttr('ct').attr('cted', '1'); } }); var listeningElement = 'a'; if (site === 'youpin-mi') { listeningElement = '.m-goods-item-container'; } $('body').delegate(listeningElement, 'click', function (event) { if ($.inArray("" + dict[site] + "", G.force) >= 0) { return; } if (forbidDict) return; if ($(this).attr('cted') === '1' && !G.isMobile) { return; } if (firstClick && !G.isMobile && (G.from_device == 'jsdx' && G.secondShow || G.from_device == 'tlxs' && G.secondShow || G.from_device == 'hndx' || G.from_device == 'xdjf' && G.secondShow || G.from_device == 'hagw' && G.secondShow || G.from_device == 'mi_new')) { firstClick = false; return; } if (dict[site]) { var url = $(this).attr('href'); if (site === 'youpin-mi') { url = $(this).attr('data-src'); } if (!url || url.indexOf('order') > -1 || url.indexOf('cart') > -1) return; var classList = $(this).attr('class') || ''; url = makeUrl(G.href, url); if (url.indexOf('http') == 0 && url.indexOf('' + G.extName) < 0 && classList.indexOf(G.extName + '_link') == -1) { //if (G.site === '1688') { // if (G.force_1688_time && parseInt(G.force_1688_time) + 3600000*24 > (new Date).getTime()) { // return // } // util.settings('force_1688_time', 'force_1688_time', (new Date).getTime()) // return // if (localStorage.getItem('gwd-link') && parseInt(localStorage.getItem('gwd-link')) + 3600000*24 > (new Date).getTime()) { // return // } // localStorage.setItem('gwd-link', (new Date).getTime()) //} url = union_url + "?site_id=" + dict[site] + "&target_url=" + encodeURIComponent(url) + "&from=ct&column=dicts&union=" + G.union.replace('union_', ''); url = specialReplaceUrl(site, url); $(this).attr('ct', $(this).attr('href')); $(this).attr('href', url); if (site === 'youpin-mi') { $(this).attr('data-src', url); } forbidDict = true; $.ajax({ 'url': G.server + '/brwext/permanent_id/', 'dataType': 'jsonp', 'jsonp': 'callback', 'async': true, 'data': 'version=2&op=set_force&type=' + dict[site] + '&union=' + G.union, 'success': function success(msg) { G.force = msg.force; }, 'error': function error(a, b, c) { return; } }); } } }); } catch (e) { if (G.debug) { throw e; } } }; module.exports = function () { var site = makeSite(); if (site === 'kaola') { setTimeout(function () { init(site); }, 2000); } else { init(site); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "eaa0b9c74f60eb2bb295": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("dbf2d1cc1e8bc1797734"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("bfdce50a", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./MemberCouponMiniBjg.vue?vue&type=style&index=0&id=c1c2cbdc&scoped=true&lang=less&", function() { var newContent = require("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.15.9.3@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!../../../node_modules/.15.9.3@vue-loader/lib/index.js??vue-loader-options!./MemberCouponMiniBjg.vue?vue&type=style&index=0&id=c1c2cbdc&scoped=true&lang=less&"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "eb9a43b0b9642a1cba50": /***/ (function(module, exports) { module.exports = "<div id=\"bjd_minifavor_content\" {{if choosed }}class=\"bjd_choosed\" {{/if}}>\n <div style=\"margin-top: 40px; padding-left: 60px; padding-right: 60px; {{if email}} display: none; {{/if}}\">\n <div class=\"bjd-login-box\" id=\"gwd-login-mini\"></div>\n </div>\n <div class=\"bjd-jiangjia-re\">\n <div class=\"jiangjia-left\" style=\"position: relative\">\n <div class=\"jj-remind\" data-notify=\"{{notify_site}}\">\n <p class=\"blkcolor1\">降价提醒</p>\n <button class=\"gwd-del-collection gwd-hui333 gwd-font12\">取消提醒</button>\n <div class=\"remind-item remind-item-fst {{if notify_site == '0'}}current-selected{{/if}}\" style=\"margin-top: 65px;\">\n <span class=\"select-item mini-bg {{if notify_site == '0'}}selected {{/if}}\" data-type=\"0\"></span>\n <span class=\"blkcolor3\">全网商家低于</span>\n <input type=\"text\" value=\"{{allprice}}\">\n <span class=\"blkcolor3\">{{ currency }}时提醒</span>\n </div>\n <div class=\"remind-item remind-item-snd {{if notify_site == '1'}}current-selected{{/if}}\" style=\"margin-top: 26px;\">\n <span class=\"select-item mini-bg {{if notify_site == '1'}}selected {{/if}}\" data-type=\"1\"></span>\n <span class=\"blkcolor3\">当前商家低于</span>\n <input type=\"text\" value=\"{{nowprice}}\">\n <span class=\"blkcolor3\">{{ currency }}时提醒</span>\n </div>\n {{if lowestUrl}}\n<!-- <a class=\"jj-remind-logo mini-bg\" target=\"_blank\" href=\"{{lowestUrl}}\"></a>-->\n {{/if}}\n </div>\n <span id=\"error_remind_tle\" style=\"top: 230px\">请输入正确的邮箱地址</span>\n <span id=\"subbtn\" class=\"subbtn\" style=\"clear: both\">提交</span>\n <br>\n <div style=\"clear: both;\">\n <span class=\"remindHint\">提交成功</span>\n </div>\n<!-- <span id=\"edit_re_style\" class=\"blkcolor4\">更改价格提醒方式</span>-->\n </div>\n <div class=\"jiangjia-right\">\n <span class=\"mgtop blkcolor1\">微信查询</span>\n <div class=\"qrcode-jj\">\n <img src=\"http://cdn.{{extName}}.com/images/extensions/newbar/wx-qrcode3.png\">\n </div>\n <p class=\"first-p\">扫码关注微信号</p>\n <p>商品降价实时提醒</p>\n </div>\n </div>\n <style type=\"text/css\">\n .gwd-del-collection {\n width: 60px;\n height: 20px;\n background: #F3F3F3;\n border-radius: 4px;\n border: 1px solid #DCDCDC;\n position: absolute;\n right: 10px;\n top: -5px;\n text-align: center;\n display: none;\n }\n\n .bjd-jiangjia-re {\n height: 100%;\n {{if !email}}\n display:none; \n {{/if}}\n }\n .bjd-login-box {\n {{if email}}\n display: none;\n {{/if}}\n }\n\n #bjd_minifavor_content .select-item {\n padding: 0!important;\n }\n\n #gwdang-trend .select-item {\n padding: 0!important;\n }\n\n .remindHint {\n font-size: 12px;\n color: #48b3fe;\n /*display: none;*/\n /*visibility: hidden;*/\n }\n\n </style>\n</div>" /***/ }), /***/ "ec0a6bfa62375c0fd07a": /***/ (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__("3aa80349427b4df53881"); 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("5f98b43f", 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!./MiniPromoHistory.vue?vue&type=style&index=0&id=54b7e36a&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!./MiniPromoHistory.vue?vue&type=style&index=0&id=54b7e36a&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(); }); } /***/ }), /***/ "ed91e916f05d2986bcd1": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['data', 'top', 'additionalClass'], data: function data() { return { mt: 0 }; }, mounted: function mounted() { if (this.top) { this.mt = this.top; } }, computed: { addition: function addition() { return this.data.length ? this.data.filter(function (item, idx) { return idx > 0; }) : []; } } }; module.exports = exports['default']; /***/ }), /***/ "edb006a6bdc87dceab2d": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { module.exports = function (callback) { var cc = "?from_device=" + G.from_device + "&callback=?"; if (G.from_device === 'sogou' || G.from_device === "chrome") cc = '?from_device=' + G.from_device; $.getJSON(G.server + '/ip.php' + cc).done(function (data) { if (data && data.result instanceof Array) { G.forbidWishlit = true; G.forbidYFQ = true; } if (data && data.result && data.result.address && data.result.address.indexOf('北京') > -1) { G.forbidWishlit = true; // 屏蔽 yifenqian G.forbidYFQ = true; } callback(); }).fail(function () { callback(); }); }; module.exports.common = function (callback) { // let cc = "?from_device=" + G.from_device + "&callback=?" // if (G.from_device === 'sogou' || (G.from_device === 'bijiago' && G.chrome_extension)) // cc = '?from_device=' + G.from_device; // if (G.from_device === 'xdjf') // cc = "?callback=?&district=1" callback(null); // $.getJSON(G.server + '/ip.php' + cc).then((data) => { // debugger // if (data && data.result && data.result.address) { // callback(data); // } else { // callback(null) // } // // }).catch(() => { // callback(null) // }) }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "edd40abc3cca37fc4610": /***/ (function(module, exports, __webpack_require__) { "use strict"; if (!Function.prototype.bind) { Function.prototype.bind = function (oThis) { if (typeof this !== 'function') { // closest thing possible to the ECMAScript 5 // internal IsCallable function throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable'); } var aArgs = Array.prototype.slice.call(arguments, 1), fToBind = this, fNOP = function fNOP() {}, fBound = function fBound() { return fToBind.apply(this instanceof fNOP ? this : oThis, aArgs.concat(Array.prototype.slice.call(arguments))); }; fNOP.prototype = this.prototype; fBound.prototype = new fNOP(); return fBound; }; } if (!Array.prototype.indexOf) { Array.prototype.indexOf = function (searchElement, fromIndex) { var k; if (this == null) { throw new TypeError('"this" is null or not defined'); } var O = Object(this); var len = O.length >>> 0; if (len === 0) { return -1; } var n = +fromIndex || 0; if (Math.abs(n) === Infinity) { n = 0; } if (n >= len) { return -1; } k = Math.max(n >= 0 ? n : len - Math.abs(n), 0); while (k < len) { if (k in O && O[k] === searchElement) { return k; } k++; } return -1; }; } // 邮乐网重写了filter if (!Array.prototype.filter || location.host.indexOf('ule.com') > -1) { Array.prototype.filter = function (fun /*, thisArg*/) { if (this === void 0 || this === null) { throw new TypeError(); } var t = Object(this); var len = t.length >>> 0; if (typeof fun !== 'function') { throw new TypeError(); } var res = []; var thisArg = arguments.length >= 2 ? arguments[1] : void 0; for (var i = 0; i < len; i++) { if (i in t) { var val = t[i]; if (fun.call(thisArg, val, i, t)) { res.push(val); } } } return res; }; } if (location.host.indexOf('lianjia.com') > -1 || location.host.indexOf('.ke.') > -1) { Number.prototype.toFixed = function (s) { var changenum = (parseInt(this * Math.pow(10, s) + 0.5) / Math.pow(10, s)).toString(); var index = changenum.indexOf("."); if (index < 0 && s > 0) { changenum = changenum + "."; for (var i = 0; i < s; i++) { changenum = changenum + "0"; } } else { index = changenum.length - index; for (var i = 0; i < s - index + 1; i++) { changenum = changenum + "0"; } } return changenum; }; } if (location.host === 'item.jd.com' || location.host === 're.jd.com' || location.host === 'item.yhd.com') { Array.prototype.forEach = function (callback /*, thisArg*/) { var T, k; if (this == null) { throw new TypeError('this is null or not defined'); } // 1. Let O be the result of calling toObject() passing the // |this| value as the argument. var O = Object(this); // 2. Let lenValue be the result of calling the Get() internal // method of O with the argument "length". // 3. Let len be toUint32(lenValue). var len = O.length >>> 0; // 4. If isCallable(callback) is false, throw a TypeError exception. // See: http://es5.github.com/#x9.11 if (typeof callback !== 'function') { throw new TypeError(callback + ' is not a function'); } // 5. If thisArg was supplied, let T be thisArg; else let // T be undefined. if (arguments.length > 1) { T = arguments[1]; } // 6. Let k be 0. k = 0; // 7. Repeat while k < len. while (k < len) { var kValue; // a. Let Pk be ToString(k). // This is implicit for LHS operands of the in operator. // b. Let kPresent be the result of calling the HasProperty // internal method of O with argument Pk. // This step can be combined with c. // c. If kPresent is true, then if (k in O) { // i. Let kValue be the result of calling the Get internal // method of O with argument Pk. kValue = O[k]; // ii. Call the Call internal method of callback with T as // the this value and argument list containing kValue, k, and O. callback.call(T, kValue, k, O); } // d. Increase k by 1. k++; } // 8. return undefined. }; } /***/ }), /***/ "ede8645cc887bf4d66ec": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_template_id_3fdd510a_scoped_true___ = __webpack_require__("943197de5d5f506919a6"); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_template_id_3fdd510a_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonCouponBarMini_vue_vue_type_template_id_3fdd510a_scoped_true___["b"]; }); /***/ }), /***/ "ee2e2e5772c8039497ac": /***/ (function(module, exports) { module.exports = "<a href=\"{{data.url}}\" target=\"_blank\" id=\"amazon_global\" >\n <span>中亚海外购:</span>\n <span class=\"ht_getprice_num prifontf\">\n {{data.price}}\n </span>\n</a>" /***/ }), /***/ "ee3f371a85b894c823bf": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var dpList = __webpack_require__("beec10bfe871446903ae"); var priceCheck = __webpack_require__("8b533351445f44b98685"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var Timer, nowSiteId; var maxTimes = 0; var globalObj = { 'crcarr': [] }; // 第一个是url 第二个是价格 var siteDicts = { 'yihaodian': [['.proImg a.img', '.proPrice>em.num']], 'tmall': [['.product-title a', '.ui-price strong'], ['.productTitle a', '.productPrice em']] }; var siteIdDicts = { "yihaodian": 31, "tmall": 83 }; var listenerDicts = { "yihaodian": ".clearfix>#plist" // "suning": ".search-main" }; var getItemInfo = function getItemInfo(a, b, c) { var info = []; var len = $(a).length; for (var i = 0; i < len; i++) { var urldom = $(a).eq(i).find(b).eq(0); var pricedom = $(a).eq(i).find(c).eq(0); if (urldom && pricedom) { var url = urldom.attr('href') || ''; var price = pricedom.text().replace('¥', '').replace('约', ''); var crc32 = getCrc(urldom); if (urlFilter(url)) continue; url = process(url); if (url && price && crc32) { if (globalObj.crcarr.indexOf && globalObj.crcarr.indexOf(crc32) === -1 && crc32 !== 'x') globalObj.crcarr.push(crc32);else if (crc32 === 'x') crc32 = '';else continue; info.push({ 'url': url, 'price': price, 'crc32': crc32 }); } } } return info; }; var urlFilter = function urlFilter(url) { // 一号店做一些广告商品过滤 if (url.indexOf('' + G.extName) > -1) return true; if (G.site == 'yihaodian') { if (url.indexOf('tracker.yhd.com') > -1 || url.indexOf('item.yhd.com') == -1) return true; } if (G.site == "360buy") { if (url.indexOf('item.jd.com') == -1) return true; } return false; }; var process = function process(url) { if (!url) return; var hash = url.indexOf('#') > -1; if (hash) url = url.slice(0, hash); if (url.indexOf('//') === 0) return 'http:' + url; if (url.indexOf('/') === 0) return '' + location.host + url; return url; }; var getCrc = function getCrc(a) { var crc = ''; switch (G.site) { case "yihaodian": var crc32 = $(a).attr('id').match(/pdlink1_(\d+)/); if (crc32) crc = crc32[1]; break; case "suning": crc = $(a).parents('.wrap').find('input.hidenInfo').attr('datapro').split('||')[1]; break; default: crc = "x"; break; } return crc; }; var getInfo = function getInfo(selectors) { var siteP = siteDicts[G.site]; var len = selectors.length; for (var i = 0; i < len; i++) { var selector = selectors[i]; for (var j = 0; j < siteP.length; j++) { var itemP = siteP[j]; var res1 = $(selector + ' ' + itemP[0]); var res2 = $(selector + ' ' + itemP[1]); if (res1.length && res2.length) { return getItemInfo(selector, itemP[0], itemP[1]); } } } }; var sended = []; var sendInfo = function sendInfo(info) { //console.log('info:', info) if (sended.indexOf(JSON.stringify(info)) > -1) { return; } sended.push(JSON.stringify(info)); if (!info || info.length === 0) return; var province_id = priceCheck.getSubStationId(G.site); var data = { 'province_id': province_id, 'info': info }; if (!log) { log = console.log; } if (typeof log === 'function') { log('getListInfo_is_send' + G.union + '_site' + G.logsite); } cnzz.log('getListInfo_is_into'); // 发送的数据需要加密处理 data = __webpack_require__("61191ae0f0390d21295c").gZip(data); var siteid = siteIdDicts[G.site] || siteIdDicts['nowSite'] || nowSiteId; if (window.XMLHttpRequest) { try { communicate.trigger({ type: 'sendListInfo', data: btoa(data), url: G.server + '/extension?ac=sendListInfo&site_id=' + siteid + '&u=' + G.union }); // let xml = new XMLHttpRequest() // xml.open('POST', `${G.server}/extension?ac=sendListInfo&site_id=${siteid}&u=${G.union}`) // xml.send(data); cnzz.log("实时抓取发送请求"); } catch (e) {} } }; var addDomListener = function addDomListener() { var scrollTop = 0; var time2 = undefined; if (G.site === 'suning') { $(window).on('scroll', function (e) { var sctop = $(window).scrollTop(); if (sctop - scrollTop > 500) { scrollTop = sctop; clearTimeout(time2); if (maxTimes > 8) return; time2 = setTimeout(function () { maxTimes++; __webpack_require__("60624e018be49fb2d959").init(editInfo); }, 1500); } }); } else { var dom = $('' + listenerDicts[G.site])[0]; if (!dom) return; // 监听节点变化 发现新内容加载再继续获取价格等信息 if (dom.addEventListener) { dom.addEventListener('DOMSubtreeModified', function () { clearTimeout(Timer); if (maxTimes > 15) return; Timer = setTimeout(function () { maxTimes++; var info = getInfo(globalObj.selectors); if (!info || info.length === 0) return; //console.log('send info a') sendInfo(info); }, 1000); }, false); } } }; var editInfo = function editInfo(id, info) { siteIdDicts['nowSite'] = id; sendInfo(info); }; module.exports.init = function () { var ua = navigator.userAgent; if (G.from_device === 'firefox' || ua.match(/Firefox/i)) { return; } if (location.host.match(/^m\./)) return; if (G.site === 'yangkeduo') { try { var listInfo = window.__NEXT_DATA__ && window.__NEXT_DATA__.props.pageProps.data.initList; if (listInfo && listInfo.length > 0) { var newList = listInfo.map(function (v) { return { 'url': location.protocol + '//' + location.host + '/' + v.linkURL, 'price': Number(v.price), 'tle': v.goodsName || '', 'crc32': '' }; }); if (newList && newList.length > 0 && newList[0].price) { sendInfo(newList); } } } catch (e) {} } else if (!siteDicts[G.site]) { try { __webpack_require__("60624e018be49fb2d959").init(editInfo); } catch (e) { log('listInfoError:' + JSON.stringify(e)); } if (location.host.indexOf('suning') > -1) { addDomListener(); } } else { var _ret = (function () { var selectors = dpList.check(); globalObj.selectors = selectors; if (!selectors || selectors && !selectors.length) return { v: undefined }; setTimeout(function () { var info = getInfo(selectors); if (!info || info.length === 0) return; sendInfo(info); addDomListener(); }, 1000); })(); if (typeof _ret === 'object') return _ret.v; } }; module.exports.sendPriCheck = function (info) { nowSiteId = __webpack_require__("60624e018be49fb2d959").getSiteId(G.site); sendInfo(info); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "f04b664539e36696cb81": /***/ (function(module, exports) { module.exports = "<div class=\"gwd-qr-warn\" style=\"background: white; width: 118px!important; height: 118px!important;\">\n <img src=\"https://cdn.gwdang.com/images/extensions/[email protected]\" alt=\"\" style=\"margin-right: 0!important; width: 34px!important; height: 34px!important; margin-top: 21px!important; margin-left: 0!important\">\n <span class=\"warn-text\">当前网络异常</span>\n <span class=\"warn-text\">点此<span class=\"gwd-qr-reload\">刷新</span></span>\n</div>\n<style>\n .gwd-qr-warn {\n position: absolute;\n top: 8px;\n left: 50%;\n margin-left: -59px;\n display: flex;\n flex-direction: column;\n align-items: center;\n white-space: nowrap;\n }\n\n .gwd-qr-warn img {\n margin: 0;\n }\n\n .gwd-qr-warn span.warn-text {\n color: #999999!important;\n font-size: 12px!important;\n transform: scale(0.8333);\n transform-origin: top center;\n line-height: 19px;\n white-space: nowrap;\n width: 100%;\n text-align: center;\n display: inline-block;\n vertical-align: middle;\n font-weight: normal!important;\n }\n\n .gwd-qr-warn span.warn-text .gwd-qr-reload {\n color: #fe4866!important;\n font-size: 12px!important;\n cursor: pointer;\n text-decoration: underline;\n float: none!important;\n }\n</style>" /***/ }), /***/ "f07a854b46071e85aa67": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_template_id_24d41b24_scoped_true___ = __webpack_require__("3832d7e2010c4bcbbba2"); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_template_id_24d41b24_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_template_id_24d41b24_scoped_true___["b"]; }); /***/ }), /***/ "f2b706dcdb3731e0de2c": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, $, G, Vue) { var _this = this; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _componentsQRLinkTaobaoLogin = __webpack_require__("9c9b99688069c7c98a03"); var _componentsQRLinkTaobaoLogin2 = _interopRequireDefault(_componentsQRLinkTaobaoLogin); var request = __webpack_require__("91f250ebeb8d5987491c"); module.exports.init = function callee$0$0() { var redirectUrl, res, div, tag; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: redirectUrl = __webpack_require__("3e983ecbff4e1a29654c").getParameterByName('redirectURL'); if (!(location.hostname !== 'login.m.taobao.com' || !redirectUrl)) { context$1$0.next = 3; break; } return context$1$0.abrupt('return'); case 3: if (!redirectUrl.includes('taolijin')) { context$1$0.next = 5; break; } return context$1$0.abrupt('return'); case 5: context$1$0.next = 7; return regeneratorRuntime.awrap(request.rawGet('https://www.gwdang.com/api/uland_to_dpid?u=' + encodeURIComponent(redirectUrl))); case 7: res = context$1$0.sent; $('.fm-agreement input').click(); div = document.createElement('DIV'); document.body.appendChild(div); tag = 5; if (G.from_device === 'bijiago') { tag = 7; } new Vue({ el: div, render: function render(h) { return h(_componentsQRLinkTaobaoLogin2['default'], { props: { tag: tag, dpId: res.dp_id } }); } }); case 14: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "f3072a0cf83cf2b5938a": /***/ (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__("41e83fde2201068b50ba"); 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("1cd14f4a", 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!./GwdPriceProtectMiddle.vue?vue&type=style&index=0&id=09436700&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!./GwdPriceProtectMiddle.vue?vue&type=style&index=0&id=09436700&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(); }); } /***/ }), /***/ "f310ed98be534b8c4bd0": /***/ (function(module, exports) { module.exports = "<p class=\"prifontf\">{{data.time}}</p>\n{{if data.pagePrice && domclass == \"\"}}\n<div class=\"tip-item tip-pagepri tip-pagepri2\">\n <em></em>\n {{if !aliSite}}\n <span class=\"tip-item-sp1\">到手价 / 页面价</span>\n <span class=\"tip-item-sp2\">:</span>\n {{/if}}\n <span class=\"tip-item-sp3 prifontf\">{{data.pagePrice}}</span>\n</div>\n\n{{else if data.pagePrice}}\n<div class=\"tip-item tip-pagepri\">\n <em></em>\n <span class=\"tip-item-sp1\">页面价</span>\n <span class=\"tip-item-sp2\">:</span>\n <span class=\"tip-item-sp3 prifontf\">{{data.pagePrice}}</span>\n</div>\n{{/if}}\n{{if data.directpro}}\n<div class=\"tip-item tip-directpro\">\n <em></em>\n <span class=\"tip-item-sp1\">到手价</span>\n <span class=\"tip-item-sp2\">:</span>\n <span class=\"tip-item-sp3 prifontf\">¥{{data.directpro}}</span>\n <span class=\"tip-item-sp4\"> {{#data.promo2}}</span>\n</div>\n{{/if}}\n{{if data.addpro}}\n<div class=\"tip-item tip-addpro\">\n <em></em>\n <span class=\"tip-item-sp1\">凑单价</span>\n <span class=\"tip-item-sp2\">:</span>\n <span class=\"tip-item-sp3 prifontf\">¥{{data.addpro}}</span>\n <span class=\"tip-item-sp4\">{{#data.promo1}}</span>\n</div>\n{{/if}}\n<style>\n .big_tooltip_box .tip-item {\n display: flex;\n }\n\n .big_tooltip_box .tip-item-sp4 {\n flex: 1;\n }\n</style>" /***/ }), /***/ "f333ae8f44dcbbc0596f": /***/ (function(module, exports) { module.exports = "<div class=\"gwd_shipping_remind\">\n <p>该商品支持直邮中国</p>\n <p>直邮,请填写国内收货地址;</p>\n <p>转运,请填写转运公司地址。</p>\n</div>\n<style type=\"text/css\">\n .gwd_shipping_remind {\n width: 172px;\n height: 125px;\n background-color: #1791de;\n color: #fff;\n position: absolute;\n right: -195px;\n top: 0px;\n text-align: center;\n line-height: 35px;\n border-radius: 3px;\n font-size: 14px;\n font-weight: bold;\n font-family: 'Microsoft Yahei';\n }\n .gwd_shipping_remind:after{\n border: 8px solid transparent;\n border-right-color: #1791de;\n content: \"\";\n position: absolute;\n left: -16px;\n width: 0px;\n height: 0px;\n top: 10px;\n }\n #identity-add-new-address #enterAddressFullNameContainer{\n position: relative;\n }\n</style>" /***/ }), /***/ "f37a41a323a3e8d8897a": /***/ (function(module, exports) { module.exports = "<div style=\"display: inline-flex; position: relative; vertical-align: middle; margin-left: 5px;\" class=\"gwd-top-tmall\">\n <img src=\"{{ img }}\" alt=\"\" style=\"height: 28px\">\n <div class=\"gwd-qr-act\">\n <img src=\"{{ qr }}\" loading=\"lazy\" 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-top-tmall {\n height: 100%;\n align-items: center;\n }\n\n .gwd-qr-act {\n display: none;\n flex-direction: column;\n position: absolute;\n width: 144px;\n height: 167px;\n box-sizing: border-box;\n border: 1px solid #ff471a;\n background: #fff9f6;\n top: 37px;\n left: 50%;\n align-items: center;\n margin-left: -72px;\n }\n\n .gwd-top-tmall:hover .gwd-qr-act {\n display: flex;\n }\n</style>" /***/ }), /***/ "f3d02ced7d319b2030c9": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _MemberCouponMixin = __webpack_require__("1fffec0778a8d8b2e8e2"); var _MemberCouponMixin2 = _interopRequireDefault(_MemberCouponMixin); exports['default'] = { mixins: [_MemberCouponMixin2['default']], props: ['data'], data: function data() { return { G: G }; }, computed: {}, methods: { link: function link(u, src) { if (src.indexOf('//') === 0) { return u.replace('$URL', encodeURIComponent('https:' + src)).replace('ext_promo_plan', 'promo_calc_plan'); } return u.replace('$URL', encodeURIComponent(src)).replace('ext_promo_plan', 'promo_calc_all'); } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "f423f4cf37e1e709bc4d": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MemberCouponTop_vue_vue_type_template_id_28e28ad7_scoped_true___ = __webpack_require__("55327c6868cccffbbddd"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__MemberCouponTop_vue_vue_type_script_lang_js___ = __webpack_require__("cf29f8542c435ae4b9b6"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__MemberCouponTop_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__MemberCouponTop_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__MemberCouponTop_vue_vue_type_style_index_0_id_28e28ad7_scoped_true_lang_less___ = __webpack_require__("f6e82e1340e2b40a2323"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__MemberCouponTop_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__MemberCouponTop_vue_vue_type_template_id_28e28ad7_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__MemberCouponTop_vue_vue_type_template_id_28e28ad7_scoped_true___["b" /* staticRenderFns */], false, null, "28e28ad7", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('28e28ad7')) { api.createRecord('28e28ad7', component.options) } else { api.reload('28e28ad7', component.options) } module.hot.accept("./MemberCouponTop.vue?vue&type=template&id=28e28ad7&scoped=true&", function () { api.rerender('28e28ad7', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/MemberCouponTop.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "f48ba811c1b2ba7ef0c9": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__QRLinkContactTmall_vue_vue_type_template_id_4148f062_scoped_true___ = __webpack_require__("4b9a1dffc80dda59b7be"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QRLinkContactTmall_vue_vue_type_script_lang_js___ = __webpack_require__("c62f444e95d32876714d"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__QRLinkContactTmall_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__QRLinkContactTmall_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__QRLinkContactTmall_vue_vue_type_style_index_0_id_4148f062_scoped_true_lang_less___ = __webpack_require__("2c7fa747888a567cd254"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__QRLinkContactTmall_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__QRLinkContactTmall_vue_vue_type_template_id_4148f062_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__QRLinkContactTmall_vue_vue_type_template_id_4148f062_scoped_true___["b" /* staticRenderFns */], false, null, "4148f062", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('4148f062')) { api.createRecord('4148f062', component.options) } else { api.reload('4148f062', component.options) } module.hot.accept("./QRLinkContactTmall.vue?vue&type=template&id=4148f062&scoped=true&", function () { api.rerender('4148f062', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/QRLinkContactTmall.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "f5273d7ea7d204de1d23": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( _vm.qr ? "div" : "a", { tag: "component", staticClass: "gwd-subsidy-top gwd-component", attrs: { title: _vm.qr ? "" : "点击领取" }, on: { mouseover: _vm.over, click: _vm.goLink } }, [ _c("span", { staticClass: "value" }, [_vm._v(_vm._s(_vm.value) + "元")]), _vm._v(" "), _vm.qr ? _c( "div", { staticClass: "qrcode gwd-align" }, [ _c("img", { staticStyle: { "margin-top": "7px", width: "130px", height: "130px" }, style: _vm.qrcode ? "" : "visibility: hidden", attrs: { src: _vm.qrcode, alt: "" } }), _vm._v(" "), _vm.error ? _c("QrError", { on: { refresh: _vm.over } }) : _vm._e(), _vm._v(" "), _c( "div", { staticStyle: { "margin-top": "4px", "text-align": "center" } }, [ _c( "span", { staticStyle: { "font-weight": "bold", color: "#f40f0f", "font-size": "14px" } }, [_vm._v("微信扫码")] ), _vm._v(" "), _c( "span", { staticStyle: { "margin-left": "4px", color: "#070707", "font-size": "12px" } }, [_vm._v("领红包")] ) ] ) ], 1 ) : _vm._e() ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "f5b88856d10b03d040ca": /***/ (function(module, exports, __webpack_require__) { "use strict"; //https://github.com/javascript-obfuscator/javascript-obfuscator Object.defineProperty(exports, '__esModule', { value: true }); var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })(); var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); exports.parseMovementText = parseMovementText; exports.collectMovement = collectMovement; exports.packStaticFeatureValue = packStaticFeatureValue; exports.unpackStaticFeatureValue = unpackStaticFeatureValue; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } var DynamicDetails = (function () { function DynamicDetails() { _classCallCheck(this, DynamicDetails); this.touchPosition = { x: 0, y: 0 }; this.touchEventTrusted = false; this.mouseEventCount = 0; this.mousePosition = { x: 0, y: 0 }; this.mouseDownCount = 0; this.mouseClickPosition = { x: 0, y: 0 }; this.mouseEventTrusted = false; this.keyDownCount = 0; this.scrollCount = 0; this.windowBlur = false; this.windowFocus = false; this.consoleWindowOpened = false; this.ip = 0; //webrtc ipv4 address this.batteryLevel = 127; this.deviceOrientationExists = false; this.features = packStaticFeatureValue(); this.checkConsoleLoopHandle = 0; } _createClass(DynamicDetails, [{ key: 'touchStartFn', value: function touchStartFn(e) { this.touchEventTrusted = e.isTrusted; this.mouseEventCount++; var t = e.touches[0]; this.touchPosition.x = t.clientX | 0; this.touchPosition.y = t.clientY | 0; } }, { key: 'touchMoveFn', value: function touchMoveFn(e) { this.touchEventTrusted = e.isTrusted; this.mouseEventCount++; } }, { key: 'mouseMoveFn', value: function mouseMoveFn(e) { this.mouseEventTrusted = e.isTrusted; this.mouseEventCount++; } }, { key: 'mouseDownFn', value: function mouseDownFn(e) { //数值是不是0, 同时移动没有过界,window.outerHeight跟documentElement.clientHeight 或者document.body.clientHeight是否相等 this.mouseEventTrusted = e.isTrusted; this.mouseEventCount++; this.mousePosition.x = e.clientX; this.mousePosition.y = e.clientY; this.mouseDownCount++; } }, { key: 'mouseClickFn', value: function mouseClickFn(e) { this.mouseEventTrusted = e.isTrusted; this.mouseEventCount++; this.mouseClickPosition.x = e.clientX; this.mouseClickPosition.y = e.clientY; } }, { key: 'keyDownFn', value: function keyDownFn(e) { this.keyDownCount++; } }, { key: 'scrollFn', value: function scrollFn(e) { this.scrollCount++; } }, { key: 'focusFn', value: function focusFn(e) { this.windowFocus = true; this.windowBlur = false; } }, { key: 'blurFn', value: function blurFn(e) { this.windowBlur = true; } }, { key: 'devtoolsCb', value: function devtoolsCb() { var details = this; var element = new Image(); Object.defineProperty(element, 'id', { get: function get() { details.consoleWindowOpened = true; clearInterval(details.checkConsoleLoopHandle); } }); //console.log('%c', element); } }, { key: 'consoleCheckLoop', value: function consoleCheckLoop() { var func = this.devtoolsCb.bind(this); func(); this.checkConsoleLoopHandle = setInterval(function (e) { func(); }, 5e3); } }, { key: 'getBatteryStatus', value: function getBatteryStatus(details) { if (!navigator.getBattery) { return; } navigator.getBattery().then(function (battery) { if (battery) { details.batteryLevel = battery.level * 100 | 0; } }); } }, { key: 'getDeviceOrientation', value: function getDeviceOrientation(details) { function cb(event) { if (event.gamma) { details.deviceOrientationExists = true; } document.removeEventListener("deviceorientation", cb, false); } window.addEventListener('deviceorientation', cb, false); } }, { key: 'getWebRTCIP', value: function getWebRTCIP(details) { var t = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection; if (!t) details.ip = 0; var i = { optional: [{ "RtpDataChannels": !0 }] }; var r = { iceServers: [{ urls: "stun:stun.services.mozilla.com" }], sdpSemantics: "plan-b" }; try { var a = new t(r, i); setTimeout(function (n) { try { a.close(); } catch (t) {} }, 5e3); a.onicecandidate = function (t) { var i = t.candidate; if (!i) details.ip = 0; r = extractIPFromWebRTCCandidate(i.candidate); if (null != r) { details.ip = r; } a.onicecandidate = null; }; a.createDataChannel(""); a.createOffer().then(function (n) { a.setLocalDescription(n, function () {}, function () {}); })["catch"](function (t) { details.ip = 0; }); } catch (e) { details.ip = 0; } } }, { key: 'pack', value: function pack() { var group1 = this.touchPosition.x + ',' + this.touchPosition.y + ',' + (this.touchEventTrusted ? 1 : 0); var group2 = this.mouseEventCount + ',' + this.mousePosition.x + ',' + this.mousePosition.y + ',' + this.mouseClickPosition.x + ',' + this.mouseClickPosition.y + ',' + this.mouseDownCount + ',' + (this.mouseEventTrusted ? 1 : 0); var group3 = this.keyDownCount + ',' + this.scrollCount + ',' + (this.windowBlur ? 1 : 0) + ',' + (this.windowFocus ? 1 : 0); var group4 = (this.consoleWindowOpened ? 1 : 0) + ',' + numberToHex(this.ip) + ',' + this.batteryLevel + ',' + (this.deviceOrientationExists ? 1 : 0); var group5 = '' + numberToHex(this.features); var all = group1 + ';' + group2 + ';' + group3 + ';' + group4 + ';' + group5; return all; } }, { key: 'encode', value: function encode() { return Base64.encode(this.pack()); } }]); return DynamicDetails; })(); exports.DynamicDetails = DynamicDetails; ; function parseMovementText(text) { var _text$split = text.split(";"); var _text$split2 = _slicedToArray(_text$split, 5); var group1 = _text$split2[0]; var group2 = _text$split2[1]; var group3 = _text$split2[2]; var group4 = _text$split2[3]; var group5 = _text$split2[4]; var details = new DynamicDetails(); var _group1$split = group1.split(","); var _group1$split2 = _slicedToArray(_group1$split, 3); details.touchPosition.x = _group1$split2[0]; details.touchPosition.y = _group1$split2[1]; details.touchEventTrusted = _group1$split2[2]; details.touchEventTrusted = !!parseInt(details.touchEventTrusted); var _group2$split = group2.split(","); var _group2$split2 = _slicedToArray(_group2$split, 7); details.mouseEventCount = _group2$split2[0]; details.mousePosition.x = _group2$split2[1]; details.mousePosition.y = _group2$split2[2]; details.mouseClickPosition.x = _group2$split2[3]; details.mouseClickPosition.y = _group2$split2[4]; details.mouseDownCount = _group2$split2[5]; details.mouseEventTrusted = _group2$split2[6]; details.mouseEventTrusted = !!parseInt(details.mouseEventTrusted); var _group3$split = group3.split(","); var _group3$split2 = _slicedToArray(_group3$split, 4); details.keyDownCount = _group3$split2[0]; details.scrollCount = _group3$split2[1]; details.windowBlur = _group3$split2[2]; details.windowFocus = _group3$split2[3]; details.windowBlur = !!parseInt(details.windowBlur); details.windowFocus = !!parseInt(details.windowFocus); var _group4$split = group4.split(","); var _group4$split2 = _slicedToArray(_group4$split, 4); details.consoleWindowOpened = _group4$split2[0]; details.ip = _group4$split2[1]; details.batteryLevel = _group4$split2[2]; details.deviceOrientationExists = _group4$split2[3]; details.consoleWindowOpened = !!parseInt(details.consoleWindowOpened); details.deviceOrientationExists = !!parseInt(details.deviceOrientationExists); details.ip = int2ip(parseInt(details.ip, 16)); return [details, group5]; } function collectMovement(details) { var b = document.body; if ("ontouchmove" in document) { document.addEventListener("touchmove", details.touchMoveFn.bind(details), true); } b.addEventListener("touchstart", details.touchStartFn.bind(details), true); b.addEventListener("mousemove", details.mouseMoveFn.bind(details), true); b.addEventListener("mousedown", details.mouseDownFn.bind(details), true); b.addEventListener("click", details.mouseClickFn.bind(details), true); b.addEventListener("keydown", details.keyDownFn.bind(details), true); b.addEventListener("wheel", details.scrollFn.bind(details), true); window.addEventListener("focus", details.focusFn.bind(details), true); window.addEventListener("blur", details.blurFn.bind(details), true); details.getWebRTCIP(details); details.getDeviceOrientation(details); details.getBatteryStatus(details); details.consoleCheckLoop(); } function extractIPFromWebRTCCandidate(n) { var t = /(\d+)\.(\d+)\.(\d+)\.(\d+)\D/.exec(n); return t ? (+t[1] << 24 | +t[2] << 16 | +t[3] << 8 | +t[4]) >>> 0 : null; } function int2ip(ipInt) { return (ipInt >>> 24) + '.' + (ipInt >> 16 & 255) + '.' + (ipInt >> 8 & 255) + '.' + (ipInt & 255); } function numberToHex(number) { return parseInt(number).toString(16); } function isNativeObject(o) { return !!/native code/.test(o.toString.toString()) && !!/native code/.test(o.toString()); } function isPhantomjs() { var err = ""; try { null[0](); } catch (e) { err = e; } return err.stack.indexOf("phantomjs") > -1; } function IsSupportWebGL() { try { var canvasElement = document.createElement("canvas"); var webglContext = canvasElement.getContext("webgl"); if (webglContext) { var i = webglContext.getExtension("WEBGL_lose_context"); if (i) { i.loseContext(); } } return !!webglContext; } catch (e) { return false; } } function IsSupportLocalStorage() { try { localStorage.a = "b"; return localStorage.a === "b"; } catch (e) { return false; } } var headStyle = document.head.style; var isChrome = window.chrome !== undefined; var isIE = ("ActiveXObject" in window); var hasWeakMap = "WeakMap" in window.WeakMap && new window.WeakMap(); var ua = navigator.userAgent; //收集立刻能返回的标志, 通过bit set, 打包进一个interger var checkFunctions = { _1: function _1() { //chrome return isChrome; }, _2: function _2() { //firefox return "mozRTCIceCandidate" in window || "mozInnerScreenY" in window; }, _3: function _3() { //safari return "safari" in window; }, _4: function _4() { //IE return isIE; }, _5: function _5() { //IE doesn't support maxHeight return isIE && !("maxHeight" in headStyle); }, _6: function _6() { //IE 8 return isIE && !document.addEventListener; }, _7: function _7() { //IE 9 return isIE && !window.atob; }, _8: function _8() { //IE >= 10 return isIE && isNativeObject(window.Uint8Array); }, _9: function _9() { //IE >= 11 return isIE && hasWeakMap && isNativeObject(window.WeakMap); }, _10: function _10() { //chrome return "Google Inc." === navigator.vendor; }, _11: function _11() { //safari return "Apple Computer, Inc." === navigator.vendor; }, _12: function _12() { //chrome headless return window.innerWidth === 800 && window.innerHeight === 600 && window.outerWidth === 0 && window.outerHeight === 0 || navigator.languages == "" || /Headless/i.test(ua); }, _13: function _13() { //phantomjs return "callPhantom" in window || /PhantomJS/i.test(ua) || isPhantomjs(); }, _14: function _14() { //python return (/python/i.test(navigator.appVersion) ); }, _15: function _15() { return IsSupportLocalStorage(); }, _16: function _16() { return (/Maxthon/i.test(navigator.vendor) ); }, _17: function _17() { //opera return "opr" in window || "opera" in window; }, _18: function _18() { //chromium based browsers return isChrome && /BIDUBrowser/i.test(ua); }, _19: function _19() { return isChrome && /LBBROWSER/i.test(ua); }, _20: function _20() { return isChrome && /QQBrowser/.test(ua); }, _21: function _21() { return isChrome && /UBrowser/i.test(ua); }, _22: function _22() { return isChrome && /2345Explorer/.test(ua); }, _23: function _23() { return isChrome && /TheWorld/.test(ua); }, _24: function _24() { //Not Chrome, it's the Edge browser return isChrome && "MSGesture" in window; }, _25: function _25() { return isNativeObject(Object.getOwnPropertyDescriptor) && Object.getOwnPropertyDescriptor(navigator) != undefined; }, _26: function _26() { //webdriver return "$cdc_asdjflasutopfhvcZLmcfl_" in window || navigator.webdriver; }, _27: function _27() { //document is hidden return document.hidden; }, _28: function _28() { //chinese return (/zh-cn/i.test(navigator.language || navigator.systemLanguage) ); }, _29: function _29() { //beijing timezone return -480 === new Date().getTimezoneOffset(); }, _30: function _30() { return IsSupportWebGL(); }, _31: function _31() { //document size compare //IE8 不支持outerWidth, 同时如果成立表示, 没有显示滚动条 return window.outerWidth !== null && (window.outerWidth === document.documentElement.clientWidth || document.body.clientWidth); } }; exports.checkFunctions = checkFunctions; function packStaticFeatureValue() { var value = 0; for (var i in checkFunctions) { var shift = parseInt(i.split("_")[1]) - 1; var set = 0; try { set = checkFunctions[i]() ? 1 : 0; } catch (e) {} value |= set << shift; } return value; } function unpackStaticFeatureValue(value) { var number = parseInt(value, 16); var statuses = []; for (var i = 0; i < 31; i++) { var _status = (number & 1 << i) > 0; statuses.push(_status); } return statuses; } //用js实现, 打乱码表 var Base64 = { // private property _keyStr: "ZLHUPIO4tAok06E/caWCmSFfKusy3nrjJRzDTvBgY7wdMlXp82NViGq=+Qheb91x5", // public method for encoding encode: function encode(input) { var output = ""; var chr1, chr2, chr3, enc1, enc2, enc3, enc4; var i = 0; input = Base64._utf8_encode(input); while (i < input.length) { chr1 = input.charCodeAt(i++); chr2 = input.charCodeAt(i++); chr3 = input.charCodeAt(i++); enc1 = chr1 >> 2; enc2 = (chr1 & 3) << 4 | chr2 >> 4; enc3 = (chr2 & 15) << 2 | chr3 >> 6; enc4 = chr3 & 63; if (isNaN(chr2)) { enc3 = enc4 = 64; } else if (isNaN(chr3)) { enc4 = 64; } output = output + this._keyStr.charAt(enc1) + this._keyStr.charAt(enc2) + this._keyStr.charAt(enc3) + this._keyStr.charAt(enc4); } return output; }, // public method for decoding decode: function decode(input) { var output = ""; var chr1, chr2, chr3; var enc1, enc2, enc3, enc4; var i = 0; input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ""); while (i < input.length) { enc1 = this._keyStr.indexOf(input.charAt(i++)); enc2 = this._keyStr.indexOf(input.charAt(i++)); enc3 = this._keyStr.indexOf(input.charAt(i++)); enc4 = this._keyStr.indexOf(input.charAt(i++)); chr1 = enc1 << 2 | enc2 >> 4; chr2 = (enc2 & 15) << 4 | enc3 >> 2; chr3 = (enc3 & 3) << 6 | enc4; output = output + String.fromCharCode(chr1); if (enc3 != 64) { output = output + String.fromCharCode(chr2); } if (enc4 != 64) { output = output + String.fromCharCode(chr3); } } output = Base64._utf8_decode(output); return output; }, // private method for UTF-8 encoding _utf8_encode: function _utf8_encode(string) { string = string.replace(/\r\n/g, "\n"); var utftext = ""; for (var n = 0; n < string.length; n++) { var c = string.charCodeAt(n); if (c < 128) { utftext += String.fromCharCode(c); } else if (c > 127 && c < 2048) { utftext += String.fromCharCode(c >> 6 | 192); utftext += String.fromCharCode(c & 63 | 128); } else { utftext += String.fromCharCode(c >> 12 | 224); utftext += String.fromCharCode(c >> 6 & 63 | 128); utftext += String.fromCharCode(c & 63 | 128); } } return utftext; }, // private method for UTF-8 decoding _utf8_decode: function _utf8_decode(utftext) { var string = ""; var i = 0; var c = 0; var c2 = 0; var c3 = 0; while (i < utftext.length) { c = utftext.charCodeAt(i); if (c < 128) { string += String.fromCharCode(c); i++; } else if (c > 191 && c < 224) { c2 = utftext.charCodeAt(i + 1); string += String.fromCharCode((c & 31) << 6 | c2 & 63); i += 2; } else { c2 = utftext.charCodeAt(i + 1); c3 = utftext.charCodeAt(i + 2); string += String.fromCharCode((c & 15) << 12 | (c2 & 63) << 6 | c3 & 63); i += 3; } } return string; } }; exports.Base64 = Base64; /***/ }), /***/ "f6604761a98ac98bbcec": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { methods: { click: function click() { this.$emit('refresh'); } } }; module.exports = exports['default']; /***/ }), /***/ "f6ab27a2ba363b04ef1f": /***/ (function(module, exports) { module.exports = "<style>\n\t.panel-shadow {\n\t\ttop: 250px;\n\t}\n\n\t.floatButtons {\n\t\tposition: absolute;\n top: 25px;\n right: 30px;\n overflow: hidden;\n z-index: 99;\n height: 16px;\n\t}\n\n\t.highcharts-container {\n\t\twidth: 100%!important;\n\t\theight: 100%!important;\n\t}\n\n\t.highcharts-container > svg {\n\t\twidth: 100%!important;\n\t\theight: 100%!important;\t\t\n\t}\n\n\t.highcharts-tooltip span {\n\t\tz-index: 9999!important;\n\t}\n\n\t.highcharts-tooltip table {\n\t\twidth: auto!important;\n\t\tmargin-left: 8px!important;\n\t\tmargin-right: 8px!important;\n\t\tborder: none;\n\t\tborder-spacing: none;\n\t}\n\n\t.highcharts-tooltip td {\n\t\tfont-family: \"Microsoft Yahei\";\n\t\tfont-size: 12px;\n\t\tborder: none;\n\t}\n\n\t.highcharts-tooltip .promoTd{\n\t\ttext-align: left;\n\t\tpadding-left: 5px;\n\t\twidth: 100px;\n\t\tmax-width: 100px;\n\t\tcolor: #4a90e2;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis!important;\n\t}\n\n\t.floatButtons > a{\n\t\tcursor: pointer;\n\t\tbackground: none;\n\t\tborder: none;\n\t\tborder-right: 1px solid #666;\n\t\tpadding-left: 20px;\n\t\tpadding-right: 20px;\n\t\theight: 16px;\n\t\tline-height: 16px;\n\t\tcolor: #333;\n\t\ttext-decoration: none!important;\n\t\tfloat: left;\n\t\tfont-family: \"Microsoft YaHei\";\n\t\tfont-size: 12px!important;\n\t}\n\n\t#mini_price_history_detail_chart {\n\t\tposition: relative;\n\t\twidth: 460px;\n\t\theight: 182px;\n\t}\n\n\t#mini_price_history_detail {\n\t\tclear: both;\n\t\tbackground-color: white;\n\t\t/*display: block!important;*/\n\t}\n\n\t@media (max-width: 1250px) {\n\t\t#gwd-trend-chart {\n\t\t\tposition: fixed;\n\t\t\tleft: 50%;\n\t\t\tmargin-left: -400px;\n\t\t}\n\t}\n\n\t.floatButtons > a:first-child {\n\t\tborder-left: 1px solid black;\n\t}\n\n\t.floatButtons > a:focus {\n\t\toutline: none;\n\t}\n\n\t.activePlot {\n\t\tbackground: #edf1f2!important;\n\t}\n\n\t.bjd-newtrend-dev .bjd-hidden {\n\t\tdisplay: none!important;\n\t}\n\n\t#plotArea_{{from_device}} {\n\t\tposition: absolute;\n\t\tright: 0px;\n\t\tleft: 0px;\n\t\theight: 182px;\n\t\tmax-width: 2000px!important;\n\t\tfont-family: \"Microsoft YaHei\";\n\t}\n\n\t.gwd-blurLayer {\n\t\tfilter: blur(9px);\n\t}\n\n\t.gwd-topText {\n\t\tposition: absolute;\n\t\tright: 0px;\n\t\tleft: 0px;\n\t\ttop: 76px;\n\t\theight: 182px;\n\t\tmax-width: 2000px!important;\n\t\tfont-family: \"Microsoft YaHei\";\n\t\tcursor: pointer;\n\t}\n\n\t/*#gwdang-trend-detail {*/\n\t/*\tdisplay: block!important;*/\n\t/*}*/\n\n\t#gwdang-trend-detail \t#plotArea_{{from_device}} {\n\t\theight: 182px;\n\t\ttop: 62px;\n\t}\n\n\t.highcharts-tooltip {\n\t\tz-index: 99;\n\t\tbackground: white;\n\t}\n\n\n\t#bjd-qrcode-trend {\n\t\tposition: absolute;\n\t\twidth: 150px;\n\t\theight: 150px;\n\t\tright: 35px;\n\t\tbottom: 0px;\n\t\ttext-align: center;\n\t}\n\n\t#bjd-qrcode-trend span {\n\t\tposition: relative;\n\t\tfont-size: 12px;\n\t\tfont-family: \"Microsoft Yahei\";\n\t\tcolor: #535854;\n\t\ttop: 8px;\n\t}\n</style>\n\n<div class=\"floatButtons bjd-newtrend-dev\">\n\t<a class=\"bjd-hidden\" id=\"plotAll\">全部</a><a class=\"bjd-hidden\" id=\"plotYear\">180天</a><a class=\"bjd-hidden\" id=\"plotMonth\">30天</a><a class=\"bjd-hidden\" id=\"plot5Day\">5日线</a>\n</div>\n<div id=\"plotArea_{{from_device}}\">\n\t\n</div>\n<div class=\"gwd-topText\" id=\"gwd-topText\">\n\t<div class=\"gwd-promo-app-center\" style=\"position: absolute; width: 806px; height: 203px; top: 50%; left: 50%; margin-top: -101px; margin-left: -403px; background: white; filter: blur(10px)\"></div>\n\t<div class=\"gwd-promo-app-center\" style=\"position: absolute; width: 806px; height: 203px; top: 50%; left: 50%; margin-top: -101px; margin-left: -403px;\">\n\t\t<div style=\"margin-left: 52px; margin-right: 70px;\">\n\t\t\t<span style=\"display: inline-block; margin-top: 40px; margin-left: 2px\" class=\"bigText\">更多价格走势图</span>\n\t\t\t<br>\n\t\t\t<span class=\"smallText\">请先 登录(不可用) 购物党,或使用第三方账号登录(不可用)</span>\n\t\t</div>\n\t\t<div style=\"margin-left: 70px;\" id=\"gwd-trend-login\"></div>\n\t</div>\n</div>\n<style>\n\t.gwd-promo-app-center {\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t}\n\n\t.gwd-topText .pText {\n\t\tfont-size: 16px;\n\t\tcolor: #333333;\n\t\talign-items: center;\n\t}\n\n\t.gwd-topText .smallText {\n\t\tcolor: #5c6266;\n\t\tfont-size: 12px;\n\t\tmargin-top: 11px;\n\t\tdisplay: inline-block;\n\t}\n\n\t.gwd-topText .bigText {\n\t\tfont-weight: bold;\n\t\tfont-size: 16px;\n\t\tcolor: #333333;\n\t\t/*margin-left: 12px;*/\n\t\tmargin-right: 12px;\n\t\tposition: relative;\n\t\tz-index: 2;\n\t\talign-items: center;\n\t}\n\n\t.gwd-topText .bigText::after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tbottom: 0;\n\t\tleft: -2px;\n\t\tright: -2px;\n\t\theight: 6px;\n\t\tbackground: #46c9ba;\n\t\tz-index: -1;\n\t}\n\n\t/*.gwd-topText .bigText:hover {*/\n\t/*\tfont-size: 20px;*/\n\t/*}*/\n\n\t.gwd-topText .intro {\n\t\tcolor: #666666;\n\t\tfont-size: 12px;\n\t}\n\n\t.gwd-not-login .promo-pri-info, .gwd-not-login .promo-history-link {\n\t\tdisplay: none!important;\n\t}\n</style>\n<div id=\"dashedLine_{{from_device}}\"></div>\n<!-- <div id=\"bjd-qrcode-trend\">\n\t<img src=\"{{s_server}}/images/extensions/trend_qrcode.jpg\" alt=\"\" style=\"width: 94px;height:94px\" />\n\t<br>\n\t<span>微信上也能查历史价格</span>\n</div> -->" /***/ }), /***/ "f6e82e1340e2b40a2323": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponTop_vue_vue_type_style_index_0_id_28e28ad7_scoped_true_lang_less___ = __webpack_require__("77a9c55d500e3b83f42d"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponTop_vue_vue_type_style_index_0_id_28e28ad7_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponTop_vue_vue_type_style_index_0_id_28e28ad7_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MemberCouponTop_vue_vue_type_style_index_0_id_28e28ad7_scoped_true_lang_less____default.a); /***/ }), /***/ "f7871f42b02e673352d0": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, "a[data-v-5ccff421] {\n background: url(" + __webpack_require__("7085b088614fbdb590cb") + ");\n width: 256px;\n height: 30px;\n}\na span[data-v-5ccff421] {\n text-align: center;\n}\na .gwd-content[data-v-5ccff421] {\n color: white;\n font-size: 12px;\n}\na .gwd-take[data-v-5ccff421] {\n display: inline-block;\n font-size: 12px;\n color: white;\n width: 70px;\n}\na[data-v-5ccff421]:hover {\n text-decoration: none!important;\n}\n", ""]); // exports /***/ }), /***/ "f82463ef8bf582c65ac0": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("CommonCouponBarMini", { attrs: { icon: _vm.icon, type: "link", text: "当前商品可领会员券", mainColor: "#ff6132", secondColor: "#ff7d38", href: "https://tb.gwdang.com/extension/qrpage?dp_id=" + _vm.G.dp.dpId + "&tag=2" } }) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "f850f08dfe2248a6ab94": /***/ (function(module, exports) { module.exports = "<span class=\"btn-tab-sp\">\n <em class=\"gwd-bg\"></em>\n <span class=\"tab-sp1 blkcolor1 fw1\">{{store_tle}}</span>\n <span class=\"tab-sp2 prifontf\">¥{{min_price}}</span>\n</span>" /***/ }), /***/ "f86fbf95570d4916afe7": /***/ (function(module, exports, __webpack_require__) { "use strict"; var __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { return function (time) { var x = new Date(time); var p = new Date(x.getFullYear(), x.getMonth(), x.getDate()); var midDate = p.getTime() + 19 * 3600000; return midDate; }; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }), /***/ "fa297f213d29eb497c63": /***/ (function(module, exports, __webpack_require__) { "use strict"; var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var globalData = undefined, callbacks = undefined; var buildInfo = function buildInfo() { var obj = { type: 'json', browser: 'chrome', ver: '6.1', style_show_type: null, style_ADID: null, currency: null, language: 'english', r: 0.7196959139817531, url: location.href }; var str = 'type=' + obj.type + '&browser=' + obj.browser + '&ver=' + obj.ver + '&style_show_type=undefined&style_ADID=undefined¤cy=undefined&language=' + obj.language + '&r=' + obj.r + '&url=' + encodeURIComponent(location.href); return str; }; var getPriceStatusNew = function getPriceStatusNew(data) { var price_status = 0; var price_num = data.length; var lowest = Math.min.apply(undefined, data); var price_last = data[price_num - 1]; var islowest = false; var change_range = 180; var time_length = 0; for (var i = data.length - 1; i >= 0; i--) { var now_price = data[i]; if (i > 0) { time_length += 1; } if (now_price == 0) { continue; } if (price_last == now_price) { if (time_length > 180) { break; } continue; } else if (parseFloat(price_last) > parseFloat(now_price) && i >= price_num - change_range - 1) { price_status = 1; break; } else if (parseFloat(price_last) < parseFloat(now_price)) { price_status = -1; if (price_last === lowest) islowest = true; break; } } return { price_status: price_status, islowest: islowest, price_last: price_last }; }; var renderData = function renderData(data) { var getDataFromTime = function getDataFromTime(time) { for (var i = 0; i < data.length - 1; i++) { if (time >= Number(data[i]['time_update']) * 1000 && time < Number(data[i + 1]['time_update']) * 1000) { return data[i].price; } } return data[data.length - 1].price; }; var oneHour = 3600000; var oneDay = 24 * oneHour; var lowestPrice = Number(globalData.lowest_pice.price); var highestPrice = lowestPrice; var startTime = Number(data[0].time_update) * 1000; var startD = new Date(startTime).getDate(); var startM = new Date(startTime).getMonth(); var startY = new Date(startTime).getFullYear(); var allLine = []; var now_day = new Date(); var current_price = data[data.length - 1].price; for (var i = 0; i < data.length; i++) { if (Number(data[i].price) > highestPrice) highestPrice = Number(data[i].price); } var price_range = lowestPrice + '-' + highestPrice; var start = startTime; while (start <= now_day.getTime()) { var s = getDataFromTime(start); allLine.push(parseFloat(s)); start += oneDay; } var result = getPriceStatusNew(allLine); var price_status = result.price_status; var year_line = null; if (allLine.length >= 365) { year_line = allLine.slice(allLine.length - 365); } var month_line = null; if (allLine.length >= 31) { month_line = allLine.slice(allLine.length - 31); } var short_day_line = null; if (allLine.length >= 6) { var dayline = allLine.slice(allLine.length - 6); short_day_line = []; for (var i = 0; i < dayline.length - 1; i++) { var newArr = []; for (var n = 0; n < 24; n++) { newArr.push(dayline[i]); } short_day_line = short_day_line.concat(newArr); } short_day_line.push(dayline[dayline.length - 1]); } var price_trend = { "price_status": price_status, "startD": startD, "startM": startM, "startY": startY, "now_day": now_day.getTime(), "extra": 'start from another', "store": [{ "current_price": current_price, "all_line": allLine, "all_line_begin_time": startTime + 8 * oneHour, "year_line": year_line, "year_line_time": now_day.getTime() - 365 * oneDay, "month_line": month_line, "month_line_time": now_day.getTime() - 30 * oneDay, "short_day_line": short_day_line, "short_day_line_begin_time": now_day.getTime() + 8 * oneHour - 5 * oneDay, "min_stamp": "0", "islowest": 0, "name": 'aliexpress', "price_range": price_range, "promo": [], "all_equal_short": false }] }; return price_trend; }; module.exports.init = function () { var str = buildInfo(); communicate.on(function (data) { if (typeof data === 'string') { data = JSON.parse(data); } if (data.type === 'aliexpress') { globalData = JSON.parse(data.value); if (globalData.price_tracking) { globalData.price_tracking = renderData(globalData.price_tracking); if (callbacks) callbacks(globalData.price_tracking); } } }); communicate.trigger({ type: 'aliexpress', url: 'https://plugin.aliprice.com/plugin/chrome_v07.php?' + str }); }; module.exports.getTrendData = function (callback) { if (globalData) callback(globalData);else callbacks = callback; }; /***/ }), /***/ "fad7ead7228f616ec948": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("582217d4ad7be97f32c7"); 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("0a992881", 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!./Normal.vue?vue&type=style&index=0&id=7cd833d3&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!./Normal.vue?vue&type=style&index=0&id=7cd833d3&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(); }); } /***/ }), /***/ "fb2d125acf2943378dcc": /***/ (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__("326c042b7a879d19324e"); 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!./mini_ht.css", function() { var newContent = require("!!../../../node_modules/.0.20.2@css-loader/index.js!./mini_ht.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(); }); } /***/ }), /***/ "fc02c8246c40af764545": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_template_id_a48d90ba_scoped_true___ = __webpack_require__("817cf5489444460b05d0"); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_template_id_a48d90ba_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_template_id_a48d90ba_scoped_true___["b"]; }); /***/ }), /***/ "fc176595ad8aaf9fdb19": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MiniPromoHistory_vue_vue_type_template_id_54b7e36a_scoped_true___ = __webpack_require__("af5bd166496de2c5ac06"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__MiniPromoHistory_vue_vue_type_script_lang_js___ = __webpack_require__("923c5ed34e206e1c38e1"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__MiniPromoHistory_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__MiniPromoHistory_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__MiniPromoHistory_vue_vue_type_style_index_0_id_54b7e36a_scoped_true_lang_less___ = __webpack_require__("5e5d42ad8219d8ecf3ea"); /* 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__MiniPromoHistory_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__MiniPromoHistory_vue_vue_type_template_id_54b7e36a_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__MiniPromoHistory_vue_vue_type_template_id_54b7e36a_scoped_true___["b" /* staticRenderFns */], false, null, "54b7e36a", 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('54b7e36a')) { api.createRecord('54b7e36a', component.options) } else { api.reload('54b7e36a', component.options) } module.hot.accept("./MiniPromoHistory.vue?vue&type=template&id=54b7e36a&scoped=true&", function () { api.rerender('54b7e36a', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/MiniPromoHistory.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "fcdd97987c010877a5a5": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__("8fa197530a881ccf85b8"); if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__("4310ff0d1d73bb2c547a").default var update = add("10f14542", content, false, {}); // Hot Module Replacement if(false) { // When the styles change, update the <style> tags if(!content.locals) { module.hot.accept("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!./common.less", function() { var newContent = require("!!../../../node_modules/.0.20.2@css-loader/index.js!../../../node_modules/.4.1.0@less-loader/dist/cjs.js!./common.less"); if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; update(newContent); }); } // When the module is disposed, remove the <style> tags module.hot.dispose(function() { update(); }); } /***/ }), /***/ "fd74a65531354a645822": /***/ (function(module, exports) { module.exports = "<div id=\"cptklbox\" class=\"{{str}}\">\n <div class=\"cptkl-btn\">\n <em></em>\n <span>生成淘口令</span>\n </div>\n <span class=\"cptkl-tle\">一键分享到微信或QQ</span>\n <span class=\"cptkl-remind-err\">抱歉,当前商品暂时无法生成淘口令~</span>\n <style type=\"text/css\">\n #cptklbox {\n float: left;\n width: 254px;\n height: 52px;\n }\n #cptklbox.is_tm_site {\n margin-left: 40px;\n }\n #cptklbox.is_tb_site {\n margin-top: 15px;\n }\n #cptklbox * {\n float: left;\n font-family: \"Microsoft YaHei\";\n }\n .cptkl-btn {\n width: 122px;\n height: 26px;\n border-radius: 2px;\n border: 1px solid #ff9851;\n background-color: #FFF3ED;\n cursor: pointer;\n }\n .cptkl-remind-err {\n color: #B66A6A;\n font-size: 12px;\n display: none;\n line-height: 16px;\n margin-top: 8px;\n }\n .cptkl-btn em {\n width: 16px;\n height: 16px;\n background: url('{{s_server}}/images/extensions/commonpng/cptkl.png') 0px 0px no-repeat;\n margin: 5px 6px 5px 20px;\n }\n .cptkl-btn.cpsuccess em {\n margin-left: 27px;\n margin-top: 6px;\n background: url('{{s_server}}/images/extensions/commonpng/cptkl-success.png') 0px 0px no-repeat;\n }\n .cptkl-btn.cpready em {\n margin-left: 9px;\n }\n .cptkl-btn span {\n line-height: 26px;\n font-size: 12px;\n color: #EF6701;\n }\n .cptkl-tle {\n margin-left: 10px;\n font-size: 12px;\n line-height: 26px;\n color: #7d7e80;\n }\n .tb-gallery p.tm-action {\n padding-bottom: 15px;\n }\n\n #tttgbgbs {\n height: 1px;\n width: 1px;\n overflow: hidden;\n float: left;\n position: fixed;\n bottom: -9px;\n left: -9px;\n }\n #box_btn {\n height: 1px;\n width: 1px;\n overflow: hidden;\n float: left;\n position: fixed;\n bottom: 0px;\n }\n .gggbox-input {\n height: 1px;\n width: 1px;\n overflow: hidden;\n float: left;\n position: fixed;\n bottom: 0px;\n left:-999px;\n }\n </style>\n</div>\n<div id=\"tttgbgbs\">\n<a id=\"box_btn\" class=\"box-btn\" contenteditable=\"1\">456</a>\n<input type=\"\" name=\"\" value=\"456\" class=\"gggbox-input\">\n</div>" /***/ }), /***/ "fd9897c729ad65b271df": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { (function () { 'use strict'; //判断是否为重复加载,如果为重复加载,直接结束脚本 if (__webpack_require__("a277d2d1e7d7916957bf")) return; /*IE在淘宝天猫不出插件*/ var IE = __webpack_require__("1529c418281de0d4e4b2")(); if (IE && location.host.match(/(?:taobao|tmall|yao\.95095|1688\.com|aliexpress\.com|ieframe\.dll)/)) return; // 京东移动端触摸模拟 if (location.href.indexOf('plogin.m.jd.com') > -1) { __webpack_require__("165a6a29b755ef153829").init(); } __webpack_require__("b1cae3a1887fb97c6c83"); __webpack_require__("3fb8e5219d9e2232a6e9").init(); __webpack_require__("5e05e6f5fe79ccf5d009").init(); __webpack_require__("d82c9248d08dbd7e46d4").init(); var cnzz = __webpack_require__("83271c7588396d2d5e59"); if (cnzz) cnzz.init(G.gwd_cnzz); if (location.host === 'm.fine3q.com') __webpack_require__("bf822aacfeba494ced92").init(); if (G.pageInfo.type === 0) return; //hao123和百度域名全部不加载任何内容 __webpack_require__("d090c1e762d2e495b00c").init(); if (__webpack_require__("aa16a056510f1028879c")()) return; __webpack_require__("edd40abc3cca37fc4610"); __webpack_require__("1f2fc6d8a8045863aace"); G.logoName = __webpack_require__("2b6ed47fb40018872f18")(8); //检查当前网页是否在插件收录范围内 if (navigator.userAgent.indexOf('Maxthon') > -1) { // if (location.host.indexOf('tmall') > -1 || location.host.indexOf('95095') > -1) { // G.maxthon_tmall = true // } } __webpack_require__("3e283580401dd2fcdc15"); __webpack_require__("be85ec117a8e337ebbac")(); __webpack_require__("edb006a6bdc87dceab2d").common(function (data) { var dictsArr = ['booking', 'elong', 'wbiao', 'agoda', 'hotels', '228', 'roseonly', 'feelunique', "nike", 'kaola', 'vipshop', 'hujiang', '1688', 'opposhop', 'vsigo', 'keede', 'zazhipu', 'banggo', 'discount-apotheke', 'bl', '1hai', 'pharmacydirect', 'flyco', 'takeya', 'xgdq', 'guojimami', 'shoprobam', 'staples', 'boqii', 'mei', 'tuhu', 'hangowa', 'lookfantastic-cn', 'lookfantastic-com', 'iherb', 'shopbop', 'yoox', 'skinstore', 'ctrip', 'koolearn', 'chinaacc', 'youpin-mi', 'opposhop', 'oneplus']; var blockCityList = ['北京', '上海', '广州', '深圳', '杭州', '南京']; // let blockCityList = ['北京', '上海', '广州', '深圳', '杭州']; var blockCity = false; blockCityList.forEach(function (city) { if (data && data.result && !(data.result instanceof Array) && data.result.address.indexOf(city) > -1) { blockCity = true; } }); if (data && data.result && !(data.result instanceof Array) && !blockCity) { if (dictsArr.indexOf) { if (dictsArr.indexOf(G.site) > -1) { G.set_force = true; } } G.forbidAd = true; } else if (data && data.result.address.indexOf('南京') == -1) { G.forbidAd = true; } if (data && data.result.address.indexOf('北京') > -1) { G.forbidMinibar = true; G.forbidGiftMoney = true; } if (data && data.result && data.result instanceof Array) { G.forbidCoupon = true; } if (data && data.result && !(data.result instanceof Array) && (data.result.address.indexOf('北京') > -1 || data.result.address.indexOf('杭州') > -1)) { G.forbidCoupon = true; } G.isMonkey = true; __webpack_require__("cb0906562effcf1b0e6c").getRate(function () { __webpack_require__("4733a3dd803685ec596a").get(function () { console.log('monkey-1229'); __webpack_require__("e6521b4ea881581e5851").init(); }); }); }); })(); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "fe07faa726be683793d3": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_style_index_0_id_bc2362ee_scoped_true_lang_less___ = __webpack_require__("62487f75eaef2f9d0c30"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_style_index_0_id_bc2362ee_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_style_index_0_id_bc2362ee_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_style_index_0_id_bc2362ee_scoped_true_lang_less____default.a); /***/ }), /***/ "fe179e544c8fafeea4a2": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, $, G, Vue) { var _this = this; module.exports.init = function callee$0$0() { var cnzz, request, dpId, payload, params, res, GiftMoney, GiftMoneyTop; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: cnzz = __webpack_require__("83271c7588396d2d5e59"); if (!$('.bjgou-subsidy-bar').length) { context$1$0.next = 3; break; } return context$1$0.abrupt('return', false); case 3: console.log('tb giftmoney start'); request = __webpack_require__("91f250ebeb8d5987491c"); dpId = __webpack_require__("3e983ecbff4e1a29654c").getParameterByName('id'); if (location.hostname.indexOf('tmall') > -1) { dpId = dpId + '-83'; } else { dpId = dpId + '-123'; } payload = { rebate: 1, dp_id: dpId, rate: 0.1 }; if (G.dp.price) { payload.price = G.dp.price; } params = Object.keys(payload).map(function (k) { return k + '=' + encodeURIComponent(payload[k]); }).join('&'); context$1$0.next = 12; return regeneratorRuntime.awrap(request.get('https://browser.gwdang.com/extension/Coupon?' + params)); case 12: res = context$1$0.sent; console.log(res); if (res.rebate) { context$1$0.next = 16; break; } return context$1$0.abrupt('return', false); case 16: GiftMoney = __webpack_require__("52391b2828a974c3b885")['default']; $('#gwd-coupon-placeholder').replaceWith('<div id="gwd-giftmoney"></div>'); if (!$('.bjgou-subsidy-bar').length) { context$1$0.next = 20; break; } return context$1$0.abrupt('return', false); case 20: cnzz.logOnce('taobaoGiftMoney:show'); cnzz.logOnce('taobaoGiftMoney:-show'); new Vue({ el: '#gwd-giftmoney', render: function render(h) { return h(GiftMoney, { props: { value: res.rebate, qr: res._jump === 'qrcode', url: res.url, id: dpId, name: '购物党', price: res.price } }); } }); GiftMoneyTop = __webpack_require__("28ca786b072dc40c7e4b")['default']; $('.gwd-topbar-left').append('<div id="gwd-giftmoney-top"></div>'); new Vue({ el: '#gwd-giftmoney-top', render: function render(h) { return h(GiftMoneyTop, { props: { value: res.rebate, qr: res._jump === 'qrcode', url: res.url, id: dpId, price: res.price, name: '购物党' } }); } }); return context$1$0.abrupt('return', true); case 27: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "ff881c8b15091819a13e": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var buildTaobaoUrl = __webpack_require__("cc45d932d8dbdb86f2f3"); var dataShare = __webpack_require__("cde79cb5670e8bdeb4fb"); var globalData = undefined, callbacks = undefined; var hasrun = false; var timeOUT = 4000; var trueClassId = false; var sitearr = ['vipshop', 'mogujie', 'meilishuo', 'amazon', 'yougou', 'yohobuy', '6pm', 'yintai', 'banggo', 'xiu', 'vancl', 'shopbop', 'shopin', 's', 'masamaso', 'secoo', 'mei', 'gap', 'paixie', 'moonbasa', 'meici', 'macys', 'myhabit', 'zhen', 'gilt', 'mbaobao', 'wangfujing', 'letao', 'camel', 'handu', 'mf910', '5lux', 'd1', 'taoxie', 'm18', "thewatchery", "escentual", 'biccamera', 'zhe800', 'yangkeduo']; if (location.host.indexOf('amazon') > -1 && location.host.indexOf('cn') == -1) timeOUT = 10000; var editData = function editData(data) { var taobaoarr = [], tmallarr = [], guessarr = []; try { var info = JSON.parse(data); var array = info.mods.itemlist.data.collections; if (array.length == 0) return; if (array.length == 2 && array[0].title == '外观相似宝贝') { var similar = array[0].auctions; var len = similar.length > 20 ? 20 : similar.length; for (var i = 0; i < len; i++) { var item = {}; var feeDesc = similar[i].view_fee == '0.00' ? '包邮' : ''; item.nick = similar[i].nick; item.num_iid = similar[i].nid; item.title = similar[i].title; item.price = similar[i].view_price; item.item_location = similar[i].item_loc; item.store_name = similar[i].nick + feeDesc; item.pic_url = 'http:' + similar[i].pic_url; item.volume = similar[i].view_sales.replace('人付款', ''); item.type = 'img_search'; item.price2 = Number(item.price); if (G.dp.price && item.price2 * 2 < G.dp.price) continue; if (!item.pic_url.match(/jpg_[0-9]+x[0-9]/)) item.pic_url = item.pic_url.replace(/(\.png|\.jpg)/, '$1' + '_100x100.jpg'); var obj = { 'source': 'img_search', 'img_url': 'http:' + similar[i].pic_url, 'title': similar[i].title, 'price': similar[i].view_price, 'shop_name': similar[i].nick + feeDesc, 'sales': similar[i].view_sales.replace('人付款', ''), 'id': similar[i].nid, 'url': 'https:' + similar[i].detail_url, 'discuss': similar[i].comment_count, 'istaobao': similar[i].detail_url.indexOf('detail.tmall.com') > -1 ? '0' : '1', 'dp_id': similar[i].nid + '-' + (similar[i].detail_url.indexOf('detail.tmall.com') > -1) ? '83' : '123', 'site_id': similar[i].detail_url.indexOf('detail.tmall.com') > -1 ? '83' : '123' }; item.url = buildTaobaoUrl(obj); if (similar[i].detail_url.indexOf('detail.tmall.com') > -1) { tmallarr.push(item); } else { taobaoarr.push(item); } } } else if (array.length == 1 && array[0].title == '您可能会喜欢' || array.length == 2 && array[1].title == '您可能会喜欢') { var guess = array[array.length - 1].auctions; for (var i = 0; i < guess.length; i++) { var item = {}; item.url = 'https:' + guess[i].detail_url; item.pic_url = guess[i].pic_url; item.title = guess[i].title; item.num_iid = guess[i].nid; item.price = guess[i].view_price; item.volume = guess[i].view_sales; item.nick = guess[i].nick; item.price2 = Number(item.price); if (G.dp.price && item.price2 * 2 < G.dp.price) continue; guessarr.push(item); } } taobaoarr = sortData(taobaoarr); tmallarr = sortData(tmallarr); globalData = { 'taobao': taobaoarr, 'tmall': tmallarr, 'guessfavor': guessarr }; if (callbacks && !hasrun) { callbacks(globalData); hasrun = true; } } catch (e) {} }; var sortData = function sortData(data) { if (!data.sort) return; data = data.sort(function (value1, value2) { if (Number(value1.price) > Number(value2.price)) return 1;else if (Number(value1.price) == Number(value2.price)) return 0;else return -1; }); return data; }; var getImgSrc = function getImgSrc() { var imgsrc = { '360buy': '#preview .jqzoom img', 'gome': '.jqzoom img', 'suning': '#imgZoom #bigImage', 'yihaodian': '#J_prodImg', 'vancl': '#midimg', 'shopin': '#zoom1 img', 'secoo': '.jqzoom', 'mei': '#bigimg', 'meici': '.zoomPad img', 'macys': '#mainView_1', 'taoxie': '#t_PreviewImage img', 'd1': '.gs_right_spimg img', '5lux': '.cloudzoom', 'mf910': '#op_product_zoom img', 'handu': '#masterImage', 'camel': '#img_jqzoom', 'letao': '#simgouter img', 'wangfujing': '.zoomPad .lazy-pic', 'zhen': '#zoom1 .a_max_pic', 'shopbop': '#productImage', 'yohobuy': '#img-show', 'taobao': '#J_ImgBooth', 'thewatchery': '#detailimage', 'amazon': '#altImages ul li img', 'mogujie': '#J_BigImg', 'escentual': '#zoom1 img', 'biccamera': '#PROD-CURRENT-IMG', 'zhe800': '#detail .deteilpic ul li img', 'vipshop': '#J-mer-ImgReview .zoomPad>img', 'tmall': '#J_ImgBooth', '1688': '#mod-detail-bd .content .box-img img', 'vip': '#J-mer-ImgReview .zoomPad>img', 'meilishuo': '#picture .item-pic-origin>img', 'jumei': '#etalage li>img', '6pm': '#detailImage img', 'banggo': '.mainPicContent', 'vjia': '#FreshDiv_MainPhoto .sp-bigImg img', 'yougou': '#pD-bimg', 'yintai': '#J_Magnifier img', 'okbuy': '#zoom1 img', 'lovo': '#jqzoom .zoomPad img', 'moonbasa': '#largeimg', 'tonlion': '.good_left .jqzoom', 'xiu': '#imgPic', 'lamiu': '#op_product_zoom img', 'masamaso': '.goods_tp_box .zoomPad img', 's': '.goods-detail-pic a img', 'paixie': '#zoom1 img', 'mbaobao': '#goods-zoom img', 'm18': '#GoodsImage', 'gap': '#wrap.all-images-box a img', 'esprit': '#mainImages .m-pic img', 'yangkeduo': '#banner .islider-outer .islider-active img' }; if (imgsrc[G.site]) { var src = $(imgsrc[G.site]).eq(0).attr('src'); if (location.host == 'www.amazon.co.jp' && src && src.match(/SR[0-9]+,[0-9]+/)) { src = src.replace(/SR([0-9]+)\,([0-9]+)/, 'SR' + '$1' + '0' + ',' + '$2' + '0'); } else if (location.host.indexOf('amazon') > -1) { return false; } if (src && !src.match(/(?:http:|https:)/) && src.indexOf('//') > -1) src = 'http:' + src; if (G.site === 'zhe800') { src = src.replace('58x58.jpg', '220x220.jpg'); } if (!src || src.indexOf('base64') > -1) { return false; } return src; } return false; }; var readyImg = function readyImg(trueClassId) { var src = getImgSrc(); if (sitearr.indexOf(G.site) > -1 && location.host != 'www.amazon.cn' || location.host.indexOf('1688') > -1 || trueClassId) { trueClassId = true; //发了请求都可以等,为true init里面才不会return communicate.trigger({ type: 'getTaobaoImgInfo', src: src }); communicate.on(function (data) { if (typeof data === 'string') { data = JSON.parse(data); } if (data.type == 'getTaobaoImgInfo') { var text = $('#gwd_img_info').text(); if (text != '') editData(text); } }); } }; module.exports.ready = function () { if (G.site == 'taobao' || G.site == 'tmall' || G.site.indexOf('taobao') > -1) { return; } var dpdata = dataShare.get('dp_data'); var classId = dpdata && dpdata['now']['class_id']; var code = dpdata && dpdata['code-server']['code']; if (G.site === 'amazon' && code) return; if (classId) classId = classId.slice(0, 2); if (G.site === '360buy') { var cate_id = G.dp.cat_id; if (cate_id) cate_id = cate_id.split('-')[0]; var cateidArr = ["1620", "1315", "1318", "1672", "1319", "5025", "6144", "15248", "11729"]; if (cateidArr.indexOf && cateidArr.indexOf(cate_id) > -1) { trueClassId = true; } } else { if (classId == "13" || classId == "24" || classId == "1A" || classId == '21') trueClassId = true; } readyImg(trueClassId); }; module.exports.uniqPidGetImg = function (callback) { readyImg(true); callbacks = callback; }; module.exports.init = function (callback) { if (!trueClassId && sitearr.indexOf(G.site) == -1) { callback(null); return; } if (globalData) { callback(globalData); hasrun = true; } else callbacks = callback; setTimeout(function () { if (callbacks && hasrun === false) { callbacks(null); hasrun = true; } }, timeOUT); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }) },["fd9897c729ad65b271df"]);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址