1 line
29 KiB
JavaScript
1 line
29 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-40aeec8d"],{4149:function(e,t,o){"use strict";o("f5df6")},"6ab1":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATcAAAINCAMAAABs9chWAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpFOTJGNDhBMzM2ODAxMUU5QjA4RkIyMUNCRjhBQzdDQyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpFOTJGNDhBNDM2ODAxMUU5QjA4RkIyMUNCRjhBQzdDQyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdF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w12dqa+AbgXUQrph2Jlebw8B3a62pSe3PYTM27A7pRpeO6AbDjaY9/j6yoHdVCuiG+jWbuCq/J5GutGNcA7ccPXYL9VDULdNPWoeYrr1gXu80l0x3bTVorphkzfVDurWw+nKPUZ12+xNs4K64fHRMVzN9x2jW3uBq/r+gHRrDo5uHt38wtV+n+KbR90V1Q03uhXWDbqBuwnrduMycfXdQLeG4Cy4eYQz4Qa6tQJnxA1PmnUT161P3JNW9yuu2yYWap0/cWbcdO/Up6ewbqBbA3CW3DzBmXJzBGfLzQ+cMTfg/ElvPQV2w5OmXGA3H3AG3TRv1b7juuFcq542h7huGHao8bE5xHXTS9x5psQZdVOWC+xmPHJ23WzDGXYzfa+aduvhlmp9Htitl1tuw6FwXM6Ss+62gVsOCdkdcj3eHAK74d+ec6++A7sBSxW2oc8Du20yt9ll7o+t3jKyWx85FbmlWM6J2zZy+dV2cpHdhszlrVe7ZWQ3BbilGM6TmyU5X26qcqHdrMj5c9OUi+1mQc6nWz/3Umctg7tpZW6snF+3Xk4lcOPkPLvpyUV306L7XM69m5ZcfLeccvsd322zj81ec3yMhIviNvyXLqfapptwyyP3ekwfRi6U2/Z+nSOW9u2GB4247egktUzHiXsXLqDbDLqT1ZBbZrqW3LLSteWWk64xt3x27bllomvRLY9dm24Z6Fp1m23XsNtMupbdZtk17ia3o5vQjm5CO7oJ8egmtKOb0I5uMjy6SfHoI8MjjQyPKhI9fn0T4QH/CzAAXxRSe6e2fmoAAAAASUVORK5CYII="},"8b21":function(e,t,o){"use strict";o.r(t);var i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"package_goods"}},[o("c-title",{attrs:{hide:!1,text:e.packageTitle}}),o("div",{attrs:{id:"content"}},[o("div",{staticClass:"content_a"},[o("div",{staticClass:"banner"},[o("van-swipe",{attrs:{autoplay:3e3,"indicator-color":"white",width:3==e.fun.getPhoneEnv()?375:e.clientWidths}},e._l(e.carousels,(function(e,t){return o("van-swipe-item",{key:t},[e.carousel_link?o("a",{attrs:{href:e.carousel_link}},[o("img",{attrs:{src:e.carousel_thumb,alt:""}})]):o("a",[o("img",{attrs:{src:e.carousel_thumb,alt:""}})])])})),1)],1),e.limit_time_status?o("div",{staticClass:"rob-time"},[e._m(0),e._m(1),o("div",{staticClass:"time"},[o("span",{staticClass:"text"},[e._v("截至倒计时:")]),o("van-count-down",{staticClass:"bottom_time",attrs:{time:e.fun.getTimeDifference(e.fun.getTimestamp(e.endTimeStr)),format:"DD天HH时mm分ss秒"},on:{finish:e.salePriceTime},scopedSlots:e._u([{key:"default",fn:function(t){return[o("em",{staticStyle:{padding:"0.125rem","border-radius":"0.125rem"}},[e._v(e._s(t.days<10?"0"+t.days:t.days))]),e._v("天 "),o("em",{staticStyle:{padding:"0.125rem","border-radius":"0.125rem"}},[e._v(e._s(t.hours<10?"0"+t.hours:t.hours)+" ")]),o("b",[e._v(":")]),o("em",{staticStyle:{padding:"0.125rem","border-radius":"0.125rem"}},[e._v(e._s(t.minutes<10?"0"+t.minutes:t.minutes)+" ")]),o("b",[e._v(":")]),o("em",{staticStyle:{padding:"0.125rem","border-radius":"0.125rem"}},[e._v(e._s(t.seconds<10?"0"+t.seconds:t.seconds)+" ")])]}}],null,!1,1151356703)})],1)]):e._e(),o("h1",[e._v(e._s(e.packageTitle))])]),o("div",{staticClass:"content_b"},[o("div",{staticClass:"user"},[o("div",{staticClass:"header"},[o("img",{attrs:{src:e.description_thumb}})]),o("h2",[e._v(e._s(e.description_title))])]),o("p",{staticClass:"detail"},[e._v(" "+e._s(e.description_desc)+" ")])]),o("div",{staticClass:"content_nav",staticStyle:{height:"44px"}},[o("van-tabs",{class:{show:e.vanShow},style:{width:3==this.fun.getPhoneEnv()?"375px":""},attrs:{id:"categoryhei"},on:{click:e.categoriesbtn},model:{value:e.category_idex,callback:function(t){e.category_idex=t},expression:"category_idex"}},e._l(e.categories,(function(e,t){return o("van-tab",{key:t,attrs:{title:e.category_names}})})),1)],1),e._l(e.categories,(function(t,i){return[o("div",{key:i,staticClass:"content_c",attrs:{id:"cate_"+i}},[o("h3",[o("div",{staticClass:"line-left"}),e._v(" "+e._s(t.category_names)+" "),o("div",{staticClass:"line_right"})]),o("div",{staticClass:"c_box"},e._l(t.goods_list,(function(t,s){return o("div",{key:s,staticClass:"goods_box"},[o("div",{staticClass:"select"},[o("van-checkbox",{on:{change:e.categydbtn},model:{value:t.checked,callback:function(o){e.$set(t,"checked",o)},expression:"goodsitem.checked"}},[e._v(" ")])],1),o("div",{staticClass:"goods_info"},[o("div",{staticClass:"info_a"},[o("div",{staticClass:"img",on:{click:function(o){return e.gogoodsDetailBtn(t.id)}}},[o("img",{attrs:{src:t.popThumb?t.popThumb:t.thumb}})]),o("ul",{staticClass:"info"},[o("li",{staticClass:"name",staticStyle:{"-webkit-box-orient":"vertical"}},[e._v(" "+e._s(t.title)+" ")]),o("li",{staticClass:"price"},[o("span",{staticClass:"left"},[o("font",[e._v(e._s(e.$i18n.t("money")))]),e._v(e._s(t.popPrice))],1),o("span",{directives:[{name:"show",rawName:"v-show",value:parseInt(t.market_price),expression:"parseInt(goodsitem.market_price)"}],staticClass:"right"},[e._v(e._s(e.$i18n.t("money"))+e._s(t.market_price))])]),o("li",{staticClass:"member"},[o("span",[e._v("数量")]),o("van-stepper",{attrs:{max:t.popStock},on:{change:e.addnum,blur:e.addnum},model:{value:t.goodsnum,callback:function(o){e.$set(t,"goodsnum",o)},expression:"goodsitem.goodsnum"}})],1)])]),e._l(t.has_many_specs,(function(a,n){return[1==t.has_option?[o("div",{key:n,staticClass:"spe_a"},[o("h4",[e._v(e._s(a.title))]),o("div",{staticClass:"spe_box"},e._l(a.specitem,(function(t,c){return o("span",{key:c,class:{cur:t.id==a.speshow,disspec:t.dispec},attrs:{"data-specid":t.id,"data-cateidex":i,"data-goodsidex":s,"data-specsidex":n},on:{click:function(o){return e.secbtn(o,t)}}},[e._v(e._s(t.title))])})),0)])]:e._e()]}))],2)])})),0)])]})),e.other_packages.length>0?o("div",{staticClass:"content_d"},[o("h5",[e._v("其他推荐")]),o("div",{staticClass:"d_box"},[e._l(e.other_packages,(function(t,i){return[o("div",{key:i,staticClass:"goods_box",on:{click:function(o){return e.gopackgoods(t.id)}}},[o("div",{staticClass:"img"},[o("img",{attrs:{src:t.thumb}})]),o("ul",{staticClass:"info"},[o("li",{staticClass:"info_a"},[e._v(e._s(t.title))]),o("li",{staticClass:"info_b"},[e._v(" 推荐价:"),o("span",[e._v(e._s(e.$i18n.t("money")))]),e._v(e._s(t.price_sum)+" ")])])])]}))],2)]):e._e(),o("div",{staticClass:"fixed"},[e.sale_priceshow&&e.on_sale_price?o("span",{staticClass:"favourable"},[e._v("已优惠:"),o("span",{staticStyle:{color:"#f15353"}},[e._v(e._s(e.$i18n.t("money"))+e._s(e.on_sale_price))])]):e._e(),o("p",{staticClass:"price"},[e._v(" 合计:"),o("span",[o("span",[e._v(e._s(e.$i18n.t("money")))]),e._v(e._s(e.zongjiage))])]),o("button",{staticClass:"buyBtn",attrs:{type:"button"},on:{click:e.submitGoods}},[e._v("立即购买")])])],2)],1)},s=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"img"},[i("img",{attrs:{src:o("6ab1"),width:"16%;"}})])},function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("ul",{staticClass:"price"},[o("li",{staticClass:"text"},[o("span",[e._v("限时"),o("br"),e._v("购买")])])])}],a=(o("e7e5"),o("d399")),n=(o("ac1f"),o("1276"),o("a434"),o("4e82"),o("b680"),o("a15b"),o("b0c0"),o("6968")),c={data:function(){return{package_id:"",carousels:[],packageTitle:"",description_title:"",description_thumb:"",description_desc:"",category_idex:0,categories:[],vanShow:!1,zongjiage:0,other_packages:[],categoriesArrTop:[],categoriesheight:[],mainInfo:{name:"",thumb:"",introduce:""},limit_time_status:!1,endTime:0,endTimeStr:"",on_sale_price:0,sale_priceshow:!1,clientWidths:""}},activated:function(){this.package_id=this.$route.params.id,this.getpackage(),window.addEventListener("scroll",this.slider),this.clientWidths=document.body.clientWidth},methods:{getpackage:function(){var e=this;$http.get("plugin.goods-package.frontend.package.package.index",{package_id:this.package_id},"添加中...").then((function(t){if(1==t.result){e.getShareData(t.data),e.carousels=t.data.carousels,e.packageTitle=t.data.title,e.description_thumb=t.data.description_thumb,e.description_title=t.data.description_title,e.description_desc=t.data.description_desc,e.categories=t.data.categories,e.other_packages=t.data.other_packages,e.on_sale_price=parseFloat(t.data.on_sale_price),e.limit_time_status=1==t.data.limit_time_status,e.endTime=new Date(1e3*parseInt(t.data.end_time)),e.endTimeStr=String(e.endTime);for(var o=0;o<e.categories.length;o++)for(var i=0;i<e.categories[o].goods_list.length;i++){e.$set(e.categories[o].goods_list[i],"popPrice",e.categories[o].goods_list[i].price),e.$set(e.categories[o].goods_list[i],"popThumb",""),e.$set(e.categories[o].goods_list[i],"goodsnum",1),e.$set(e.categories[o].goods_list[i],"optionsId",""),e.$set(e.categories[o].goods_list[i],"specsManage",[]),e.$set(e.categories[o].goods_list[i],"popStock",e.categories[o].goods_list[i].stock),e.$set(e.categories[o].goods_list[i],"checked",!1);for(var s=0;s<e.categories[o].goods_list[i].has_many_specs.length;s++){e.$set(e.categories[o].goods_list[i].has_many_specs[s],"speshow","");for(var n=0;n<e.categories[o].goods_list[i].has_many_specs[s].specitem.length;n++)e.$set(e.categories[o].goods_list[i].has_many_specs[s].specitem[n],"dispec",!1)}}}else Object(a["a"])(t.msg),e.$router.push(e.fun.getUrl("home",{}))})).catch((function(e){}))},categoriesbtn:function(e){var t=e,o=this.$el.querySelector("#cate_"+t),i=this.$el.querySelector("#categoryhei").offsetHeight;this.$nextTick((function(){document.body.scrollTop=o.offsetTop-i,document.documentElement.scrollTop=o.offsetTop-i}))},slider:function(e){this.categoriesArrTop=[],this.categoriesheight=[];var t=this.$el.querySelector(".content_a").offsetHeight,o=this.$el.querySelector(".content_b").offsetHeight,i=document.documentElement.scrollTop||document.body.scrollTop;this.vanShow=!(i<o+t);for(var s=0;s<this.categories.length;s++){var a=this.$el.querySelector("#cate_"+s),n=this.$el.querySelector("#categoryhei").offsetHeight;this.categoriesArrTop.push(a.offsetTop-n),this.categoriesheight.push(a.offsetHeight)}for(var c=0;c<this.categoriesArrTop.length;c++)i>=this.categoriesArrTop[c]&&this.categoriesArrTop[c]+this.categoriesheight[c]>=i&&(this.category_idex=c)},secbtn:function(e,t){var o=t,i=e.target.dataset.specid,s=e.target.dataset.cateidex,a=e.target.dataset.goodsidex,n=e.target.dataset.specsidex;if(o.dispec)return!1;this.$set(this.categories[s].goods_list[a].has_many_specs[n],"speshow",i),this.manageSpecs(this.categories[s].goods_list[a].specsManage,o,this.categories[s].goods_list[a].has_many_specs);for(var c=0;c<this.categories[s].goods_list[a].has_many_specs.length;c++)o.specid!=this.categories[s].goods_list[a].has_many_specs[c].id&&this.setGoodsSpecsStatus(s,a,this.categories[s].goods_list[a].has_many_specs[c].specitem,i,this.categories[s].goods_list[a].has_many_specs[c].speshow);this.setGoodsSpecsChangeInfo(s,a,this.categories[s].goods_list[a].specsManage),this.calculateGooss()},setGoodsSpecsStatus:function(e,t,o,i,s){for(var a=this.categories[e].goods_list[t].has_many_options,n=this.categories[e].goods_list[t].specsManage,c=[],d=0;d<a.length;d++){var r=a[d].specs.split("_");-1!=r.indexOf(i)&&c.push(a[d])}for(var g=0;g<c.length;g++)for(var l=c[g].specs.split("_"),p=0;p<l.length;p++)if(l[p]!=i&&0==c[g].stock){for(var b=0;b<o.length;b++)if(l[p]==o[b].id&&(o[b].dispec=!0,o[b].id==s)){s="";for(var _=0;_<n.length;_++)n[_].id==o[b].id&&n.splice(_,1)}}else if(l[p]!=i&&c[g].stock>0)for(var h=0;h<o.length;h++)l[p]==o[h].id&&(o[h].dispec=!1)},manageSpecs:function(e,t,o){var i={id:t.id,specid:t.specid,title:t.title};if(e.length>0){for(var s=0;s<e.length;s++)e[s].specid==i.specid&&e.splice(s,1);e.push(i)}else e.push(i);if(e.length==o.length){for(var a=[],n=0;n<o.length;n++)for(var c=0;c<e.length;c++)if(o[n].id==e[c].specid){a.push(e[c]);break}e=a}},setGoodsSpecsChangeInfo:function(e,t,o){if(o.sort((function(e,t){return e.id-t.id})),o.length==this.categories[e].goods_list[t].has_many_specs.length){for(var i="",s=0;s<o.length;s++)i+=o[s].id+"_";i=i.substring(0,i.length-1);for(var a=0;a<this.categories[e].goods_list[t].has_many_options.length;a++)if(i==this.setGoodsSpecsBySort(this.categories[e].goods_list[t].has_many_options[a].specs)){this.categories[e].goods_list[t].popPrice=this.categories[e].goods_list[t].has_many_options[a].product_price,this.categories[e].goods_list[t].popThumb=this.fun.isTextEmpty(this.categories[e].goods_list[t].has_many_options[a].thumb)?this.categories[e].goods_list[t].thumb:this.categories[e].goods_list[t].has_many_options[a].thumb,this.categories[e].goods_list[t].popStock=this.categories[e].goods_list[t].has_many_options[a].stock,this.categories[e].goods_list[t].optionsId=this.categories[e].goods_list[t].has_many_options[a].id;break}}},setGoodsSpecsBySort:function(e){var t=e.split("_");t.sort((function(e,t){return e-t}));for(var o="",i=0;i<t.length;i++)o+=t[i]+"_";return o=o.substring(0,o.length-1),o},calculateGooss:function(){for(var e=0,t=0;t<this.categories.length;t++)for(var o=0;o<this.categories[t].goods_list.length;o++)if(this.categories[t].goods_list[o].checked){var i=this.categories[t].goods_list[o].goodsnum,s=this.categories[t].goods_list[o].popPrice;e+=i*s}e&&this.on_sale_price&&this.sale_priceshow&&(e-=this.on_sale_price),this.zongjiage=e>0?e.toFixed(2):0},addnum:function(){this.calculateGooss()},categydbtn:function(){if(this.limit_time_status){for(var e=[],t=0;t<this.categories.length;t++)for(var o=0;o<this.categories[t].goods_list.length;o++)if(this.categories[t].goods_list[o].checked){e.push(t);break}this.categories.length==e.length?this.sale_priceshow=!0:this.sale_priceshow=!1}this.calculateGooss()},submitGoods:function(){var e=!0,t={},o=[];t.package_id=this.package_id,t.goods_list=[];for(var i=0;i<this.categories.length;i++)for(var s=0;s<this.categories[i].goods_list.length;s++){var n=this.categories[i].goods_list,c={};if(1==n[s].has_option&&n[s].checked&&!n[s].optionsId&&n[s].has_many_specs.length>0)return Object(a["a"])("请选择商品规格"),!1;n[s].checked&&(e=!1,o.push(n[s].id),c.goods_id=n[s].id,c.option_id=n[s].optionsId,c.total=n[s].goodsnum,t.goods_list.push(c))}if(e)return Object(a["a"])("请选择结算商品"),!1;this.$router.push(this.fun.getUrl("goodsorder",{packagJson:t},{tag:"packagBuy",cart_ids:o.join(",")}))},gogoodsDetailBtn:function(e){this.$router.push(this.fun.getUrl("goods",{id:e}))},gopackgoods:function(e){this.$router.push(this.fun.getUrl("packageGoods",{id:e}))},getShareData:function(e){this.mainInfo={name:e.share_title,thumb:e.share_thumb,introduce:e.share_desc},this.fun.wxShare("",{},{title:this.mainInfo.name,imgUrl:this.mainInfo.thumb,description:this.mainInfo.introduce},(function(e){}))},initShare:function(){var e=this,t={url:"android"===this.fun.isIosOrAndroid()?window.location.href:window.initUrl,mid:this.fun.getKeyByMid()};$http.post("member.member.wxJsSdkConfig",t).then((function(t){1===t.result&&t.data.config&&e.share(t.data)})).catch((function(e){}))},share:function(e){var t=this;wx.config(e.config),wx.ready((function(){var o=t.fun.isTextEmpty(t.mainInfo.name)?e.share.title:t.mainInfo.name,i=document.location.href+"&share_tag=2";i=t.fun.isMid(i,e.info.uid);var s=t.fun.isTextEmpty(t.mainInfo.thumb)?e.share.icon:t.mainInfo.thumb,n=t.fun.isTextEmpty(t.mainInfo.introduce)?e.share.desc:t.mainInfo.introduce;wx.showOptionMenu(),wx.onMenuShareTimeline({title:o,link:i,imgUrl:s,success:function(){Object(a["a"])("分享成功")},cancel:function(){Object(a["a"])("取消分享")}}),wx.onMenuShareAppMessage({title:o,desc:n,link:i,imgUrl:s,type:"link",dataUrl:"",success:function(){Object(a["a"])("分享成功")},cancel:function(){Object(a["a"])("取消分享")}})}))},salePriceTime:function(){this.limit_time_status=!1,this.sale_priceshow=!1,this.calculateGooss()}},components:{cTitle:n["a"]}},d=c,r=d,g=(o("4149"),o("2877")),l=Object(g["a"])(r,i,s,!1,null,"4ee59e4e",null);t["default"]=l.exports},b02c:function(e,t,o){var i=o("24fb");t=i(!1),t.push([e.i,".van-count-down[data-v-4ee59e4e]{color:#fff}#package_goods[data-v-4ee59e4e]{padding-bottom:60px}#package_goods #content .content_a[data-v-4ee59e4e]{background:#fff}#package_goods #content .content_a .banner[data-v-4ee59e4e]{width:100%;overflow:hidden;background:#f5f5f5}#package_goods #content .content_a .banner img[data-v-4ee59e4e]{width:100%}#package_goods #content .content_a .rob-time[data-v-4ee59e4e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:3.0625rem;background-color:#f15353}#package_goods #content .content_a .rob-time .img[data-v-4ee59e4e]{width:10%}#package_goods #content .content_a .rob-time .img img[data-v-4ee59e4e]{width:60%}#package_goods #content .content_a .rob-time .price[data-v-4ee59e4e]{text-align:left;width:10%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:#fff}#package_goods #content .content_a .rob-time .price .text[data-v-4ee59e4e]{font-size:14px;margin-top:.4375rem;margin-left:-.125rem}#package_goods #content .content_a .rob-time .price .none-line[data-v-4ee59e4e]{line-height:3.0625rem;font-size:18px;margin-left:.625rem}#package_goods #content .content_a .rob-time .price .middle-line[data-v-4ee59e4e]{line-height:3.0625rem;font-size:14px;text-decoration:line-through;color:#dbdbdb;margin-left:.625rem}#package_goods #content .content_a .rob-time .time[data-v-4ee59e4e]{-webkit-box-flex:80%;-webkit-flex:80%;-ms-flex:80%;flex:80%;text-align:left;line-height:3.0625rem;padding-left:1.25rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#package_goods #content .content_a .rob-time .time .text[data-v-4ee59e4e]{font-size:14px;line-height:1.5rem}#package_goods #content .content_a .rob-time .time span[data-v-4ee59e4e]{color:#fff;font-size:14px}#package_goods #content .content_a .rob-time .time em[data-v-4ee59e4e]{background-color:#fff;color:#333}#package_goods #content .content_a .rob-time .time .bottom[data-v-4ee59e4e]{margin-top:.125rem}#package_goods #content .content_a h1[data-v-4ee59e4e]{height:2.5rem;line-height:2.5rem;text-align:left;padding:0 .875rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px}#package_goods #content .content_b[data-v-4ee59e4e]{background:#fff;margin-top:.625rem;padding:1rem .625rem;margin-bottom:.625rem}#package_goods #content .content_b .user[data-v-4ee59e4e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;position:relative}#package_goods #content .content_b .user .header[data-v-4ee59e4e]{width:2.625rem;height:2.625rem;border-radius:1.875rem;overflow:hidden;margin-right:.625rem;background:#f5f5f5}#package_goods #content .content_b .user .header img[data-v-4ee59e4e]{width:100%}#package_goods #content .content_b .user h2[data-v-4ee59e4e]{font-size:15px}#package_goods #content .content_b .user .describe[data-v-4ee59e4e]{position:absolute;right:.25rem;color:#8c8c8c}#package_goods #content .content_b .user .describe i[data-v-4ee59e4e]{font-size:1.125rem;margin-left:.375rem}#package_goods #content .content_b .detail[data-v-4ee59e4e]{margin-top:.625rem;font-size:14px;color:#333;text-align:left;word-break:break-all}#package_goods #content .content_nav[data-v-4ee59e4e]{background:#fff;border-bottom:.0625rem solid #ebebeb}#package_goods #content .content_nav .nav[data-v-4ee59e4e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:2.625rem;line-height:2.625rem}#package_goods #content .content_nav .nav li[data-v-4ee59e4e]{font-size:16px;margin:0 .75rem;font-weight:700}#package_goods #content .content_nav .nav .cur[data-v-4ee59e4e]{color:#f15353;border-bottom:.125rem solid #f15353}#package_goods #content .content_c[data-v-4ee59e4e]{background:#fff;margin-bottom:.625rem}#package_goods #content .content_c h3[data-v-4ee59e4e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:2.5rem;line-height:2.5rem;font-size:18px;text-align:center}#package_goods #content .content_c h3 .line-left[data-v-4ee59e4e]{margin-right:.875rem;width:3.75rem;border:.0625rem dashed #ebebeb}#package_goods #content .content_c h3 .line_right[data-v-4ee59e4e]{margin-left:.875rem;width:3.75rem;border:.0625rem dashed #ebebeb}#package_goods #content .content_c .c_box .goods_box[data-v-4ee59e4e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.875rem .625rem;border-bottom:.0625rem solid #ebebeb}#package_goods #content .content_c .c_box .goods_box .select[data-v-4ee59e4e]{width:2.125rem}#package_goods #content .content_c .c_box .goods_box .goods_info .info_a[data-v-4ee59e4e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#package_goods #content .content_c .c_box .goods_box .goods_info .info_a .img[data-v-4ee59e4e]{width:6rem;height:6rem;overflow:hidden;background:#f5f5f5;margin-right:.625rem}#package_goods #content .content_c .c_box .goods_box .goods_info .info_a .img img[data-v-4ee59e4e]{width:100%}#package_goods #content .content_c .c_box .goods_box .goods_info .info_a .info[data-v-4ee59e4e]{width:13.4375rem;text-align:left}#package_goods #content .content_c .c_box .goods_box .goods_info .info_a .info .name[data-v-4ee59e4e]{font-size:16px;max-height:2.5rem;line-height:1.25rem;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}#package_goods #content .content_c .c_box .goods_box .goods_info .info_a .info .price[data-v-4ee59e4e]{line-height:1.875rem}#package_goods #content .content_c .c_box .goods_box .goods_info .info_a .info .price .left[data-v-4ee59e4e]{color:#f15353;font-size:18px;margin-right:.625rem}#package_goods #content .content_c .c_box .goods_box .goods_info .info_a .info .price .left font[data-v-4ee59e4e]{font-size:12px}#package_goods #content .content_c .c_box .goods_box .goods_info .info_a .info .price .right[data-v-4ee59e4e]{color:#8c8c8c;font-size:12px;text-decoration:line-through}#package_goods #content .content_c .c_box .goods_box .goods_info .info_a .info .member[data-v-4ee59e4e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#package_goods #content .content_c .c_box .goods_box .goods_info .spe_a[data-v-4ee59e4e]{margin-top:.625rem}#package_goods #content .content_c .c_box .goods_box .goods_info .spe_a h4[data-v-4ee59e4e]{font-size:14px;line-height:1.875rem;text-align:left}#package_goods #content .content_c .c_box .goods_box .goods_info .spe_a .spe_box[data-v-4ee59e4e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}#package_goods #content .content_c .c_box .goods_box .goods_info .spe_a .spe_box span[data-v-4ee59e4e]{padding:.25rem 1rem;border-radius:1.875rem;font-size:12px;border:.0625rem solid #f15353;margin:0 .625rem .5rem 0;color:#666}#package_goods #content .content_c .c_box .goods_box .goods_info .spe_a .spe_box .cur[data-v-4ee59e4e]{background:#f15353;color:#fff}#package_goods #content .content_c .c_box .goods_box .goods_info .spe_a .spe_box .disspec[data-v-4ee59e4e]{opacity:.5;border:.0625rem solid #666}#package_goods #content .content_d[data-v-4ee59e4e]{margin-top:.625rem;background:#fff}#package_goods #content .content_d h5[data-v-4ee59e4e]{line-height:2.5rem;height:2.5rem;text-align:left;font-size:16px;padding:0 .875rem}#package_goods #content .content_d .d_box .goods_box[data-v-4ee59e4e]{border-bottom:.0625rem solid #ebebeb;padding:.875rem .625rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#package_goods #content .content_d .d_box .goods_box .img[data-v-4ee59e4e]{width:6rem;height:6rem;overflow:hidden;background:#f5f5f5;margin-right:.625rem}#package_goods #content .content_d .d_box .goods_box .img img[data-v-4ee59e4e]{width:100%}#package_goods #content .content_d .d_box .goods_box .info[data-v-4ee59e4e]{width:15rem;text-align:left}#package_goods #content .content_d .d_box .goods_box .info .info_a[data-v-4ee59e4e]{font-size:16px;max-height:2.5rem;line-height:1.25rem;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}#package_goods #content .content_d .d_box .goods_box .info .info_b[data-v-4ee59e4e]{font-size:16px;color:#f15353;margin-top:.625rem}#package_goods #content .fixed[data-v-4ee59e4e]{position:fixed;bottom:0;width:23.4375rem;height:3.0625rem;line-height:3.0625rem;background:#fff;-webkit-box-shadow:0 -.0625rem .25rem rgba(0,0,0,.1);box-shadow:0 -.0625rem .25rem rgba(0,0,0,.1);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}#package_goods #content .fixed .favourable[data-v-4ee59e4e]{position:absolute;left:.625rem}#package_goods #content .fixed .buyBtn[data-v-4ee59e4e]{padding:3px 9px;line-height:20px;background:#f15353;height:26px;border-radius:15px;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border:.5px solid #ff2c29;color:#fff;margin-right:5px}#package_goods #content .fixed .buyBtn[data-v-4ee59e4e],#package_goods #content .fixed .price[data-v-4ee59e4e]{font-size:14px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#package_goods #content .fixed .price[data-v-4ee59e4e]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding-right:.625rem}#package_goods #content .fixed .price span[data-v-4ee59e4e]{font-size:18px;color:#f15353}#package_goods #content .fixed .price span font[data-v-4ee59e4e]{font-size:14px}#package_goods #content .van-tabs--line.show[data-v-4ee59e4e]{position:fixed;top:0;z-index:99;width:100%}",""]),e.exports=t},f5df6:function(e,t,o){var i=o("b02c");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var s=o("499e").default;s("0bc7cc12",i,!0,{sourceMap:!1,shadowMode:!1})}}]); |