1 line
34 KiB
JavaScript
1 line
34 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4df9d982"],{"0a35":function(e,t,o){var a=o("24fb");t=a(!1),t.push([e.i,".content_nav[data-v-4822e03a] .van-tabs__nav{background-color:transparent}.content_nav[data-v-4822e03a] .van-tabs__line{bottom:20px}.select[data-v-4822e03a] .van-checkbox__label{margin-left:0}.banner[data-v-4822e03a] .van-swipe__indicator{background-color:#fff;opacity:1}",""]),e.exports=t},2857:function(e,t,o){var a=o("a4de");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=o("499e").default;i("8f424dd2",a,!0,{sourceMap:!1,shadowMode:!1})},"2cac":function(e,t,o){"use strict";o("2857")},"63b5":function(e,t,o){var a=o("0a35");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=o("499e").default;i("722819d8",a,!0,{sourceMap:!1,shadowMode:!1})},"6ab1":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATcAAAINCAMAAABs9chWAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPS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SOW9u2GB4247egktUzHiXsXLqDbDLqT1ZBbZrqW3LLSteWWk64xt3x27bllomvRLY9dm24Z6Fp1m23XsNtMupbdZtk17ia3o5vQjm5CO7oJ8egmtKOb0I5uMjy6SfHoI8MjjQyPKhI9fn0T4QH/CzAAXxRSe6e2fmoAAAAASUVORK5CYII="},"8b21":function(e,t,o){"use strict";o.r(t);var a=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",{ref:"banner",staticClass:"banner"},[o("van-swipe",{staticClass:"my-swipe",attrs:{autoplay:3e3,"indicator-color":"#F15353",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.page_template?e._e():[o("div",{staticClass:"content_a"},[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("div",{ref:"headerMain",staticClass:"header-main"},[o("h3",{staticClass:"ell"},[e._v(e._s(e.packageTitle))]),o("div",{staticClass:"header-desc "},[o("div",{staticClass:"flex-a-c flex-j-sb"},[o("div",{staticClass:"header-user flex-a-c"},[o("img",{attrs:{src:e.description_thumb}}),o("h3",{staticClass:"ell"},[e._v(e._s(e.description_title))])]),e._m(2)]),o("div",{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()?"21.875rem":""},attrs:{id:"categoryhei","title-active-color":"#00001C","title-inactive-color":"#6E6E79","line-width":"20px"},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)],o("div",{class:e.page_template?"categories-page":""},[e._l(e.categories,(function(t,a){return[o("div",{key:a,staticClass:"content_c",class:[e.page_template?"content-page":""],style:{"margin-bottom":e.page_template?"0":"0.625rem"},attrs:{id:"cate_"+a}},[e.page_template?e._e():o("h3",[e._v(e._s(t.category_names))]),o("div",{staticClass:"c_box"},e._l(t.goods_list,(function(t,a){return o("div",{key:a,staticClass:"goods_box",on:{click:function(o){return o.stopPropagation(),e.showGoodPup(t.id)}}},[o("div",{staticClass:"flex"},[e.page_template?e._e():o("div",{staticClass:"select flex-a-c flex-j-c"},[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",class:e.page_template?"info-page":""},[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",class:e.page_template?"info-pm":""},[o("li",{staticClass:"name",staticStyle:{"-webkit-box-orient":"vertical"}},[e._v(" "+e._s(t.title)+" ")]),o("div",{staticClass:"flex-j-sb price-box"},[e.page_template?e._e():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",style:{"margin-top":e.page_template?"10px":""}},[e.page_template?o("span",[e._v("×")]):e._e(),e.page_template?[e._v("1")]: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"}})],2)])])])])]),1!=t.has_option||e.page_template?e._e():o("div",{staticClass:"goods-specs flex-a-c flex-j-sb",on:{click:function(o){return e.goodsSpescOn(t)}}},[o("h4",[e._v("规格")]),o("div",{staticClass:"specs-title"},[o("span",[e._v(e._s(t.optionName||"请选择"))]),o("span",{staticClass:"iconfont icon-icon_more1"})])]),e.page_template?o("div",{staticClass:"goods-line"}):e._e(),1==t.has_option||e.page_template?e._e():o("div",{staticClass:"specs-40"})])})),0)])]}))],2),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,a){return[o("div",{key:a,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",class:e.page_template?"fixed-exchange":""},[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(),e.page_template?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",class:e.page_template?"exchange":"",attrs:{type:"button"},on:{click:e.submitGoods}},[e._v(e._s(e.page_template?"立即兑换":"立即购买"))])])],2),[o("yz-specs",{attrs:{goodsInfo:e.goodData},on:{closeSpecsPopup:e.close_yz_specs_popup},model:{value:e.popupSpecs,callback:function(t){e.popupSpecs=t},expression:"popupSpecs"}})],o("yzGoodsPopup",{attrs:{goodsInfo:e.goodinfo,addCartBtn:!1,roundShow:!0,showPrice:!e.page_template},model:{value:e.showgp,callback:function(t){e.showgp=t},expression:"showgp"}})],2)},i=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"img"},[a("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("购买")])])])},function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"symbol flex-a-c"},[o("span",{staticClass:"iconfont icon-yinhao"})])}],s=o("c7eb"),n=o("1da1"),c=(o("e7e5"),o("d399")),d=(o("14d9"),o("a9e3"),o("d3b7"),o("159b"),o("b680"),o("e9c4"),o("b0c0"),o("ac1f"),o("5319"),o("6968")),r=o("ebc5"),l=o("f6cc"),g={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:"",salePrice:0,page_template:0,goodsIdsArr:[],showgp:!1,popupSpecs:!1,goodData:{},optionId:""}},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.page_template=t.data.page_template||0,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 a=0;a<e.categories[o].goods_list.length;a++){e.$set(e.categories[o].goods_list[a],"popPrice",e.categories[o].goods_list[a].price),e.$set(e.categories[o].goods_list[a],"popThumb",""),e.$set(e.categories[o].goods_list[a],"goodsnum",1),e.$set(e.categories[o].goods_list[a],"optionsId",""),e.$set(e.categories[o].goods_list[a],"specsManage",[]),e.$set(e.categories[o].goods_list[a],"popStock",e.categories[o].goods_list[a].stock),e.$set(e.categories[o].goods_list[a],"checked",!1),e.page_template&&(e.categories[o].goods_list[a].checked=!0,e.categories[o].goods_list[a].has_option&&(e.categories[o].goods_list[a].optionsId=e.categories[o].goods_list[a].has_many_options[0].id));for(var i=0;i<e.categories[o].goods_list[a].has_many_specs.length;i++){e.$set(e.categories[o].goods_list[a].has_many_specs[i],"speshow","");for(var s=0;s<e.categories[o].goods_list[a].has_many_specs[i].specitem.length;s++)e.$set(e.categories[o].goods_list[a].has_many_specs[i].specitem[s],"dispec",!1),e.page_template&&(e.categories[o].goods_list[a].has_many_specs[i].specitem[s].dispec=!1)}}e.page_template&&(e.calculateGooss(),"undefined"!=typeof t.data.recharge_code&&(e.recharge_code=t.data.recharge_code))}else Object(c["a"])(t.msg),e.$router.push(e.fun.getUrl("home",{}))})).catch((function(e){}))},goodsSpescOn:function(e){this.popupSpecs=!0,this.goodData=e,this.optionId=e.has_many_options[0].id},getSalePrice:function(){var e=this;return Object(n["a"])(Object(s["a"])().mark((function t(){var o,a;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,$http.post("plugin.goods-package.frontend.package.package.get-sale-price",{package_id:Number(e.package_id),goods_ids:e.goodsIdsArr},"添加中...");case 2:o=t.sent,1==o.result?(a=o.data,e.salePrice=parseFloat(a.on_sale_price)):(Object(c["a"])(o.msg),e.$router.push(e.fun.getUrl("home",{})));case 4:case"end":return t.stop()}}),t)})))()},categoriesbtn:function(e){var t=e,o=this.$el.querySelector("#cate_"+t),a=this.$el.querySelector("#categoryhei").offsetHeight;this.$nextTick((function(){document.body.scrollTop=o.offsetTop-a,document.documentElement.scrollTop=o.offsetTop-a})),this.category_idex=t},slider:function(e){var t,o,a;if(!this.page_template){this.categoriesArrTop=[],this.categoriesheight=[];var i=null===(t=this.$el.querySelector(".content_a"))||void 0===t?void 0:t.offsetHeight,s=null===(o=this.$refs.banner)||void 0===o?void 0:o.offsetHeight,n=null===(a=this.$refs.headerMain)||void 0===a?void 0:a.offsetHeight,c=document.documentElement.scrollTop||document.body.scrollTop;this.vanShow=!(c<n+i+s);for(var d=0;d<this.categories.length;d++){var r=this.$el.querySelector("#cate_"+d),l=this.$el.querySelector("#categoryhei").offsetHeight;this.categoriesArrTop.push(r.offsetTop-l),this.categoriesheight.push(r.offsetHeight)}for(var g=0;g<this.categoriesArrTop.length;g++)c>=this.categoriesArrTop[g]&&this.categoriesArrTop[g]+this.categoriesheight[g]>=c&&(this.category_idex=g)}},close_yz_specs_popup:function(e,t,o){var a=this;this.popupSpecs=!1,1===o&&this.categories.forEach((function(o,i){o.goods_list.forEach((function(o,i){o.has_many_options.forEach((function(i,s){i.id===e&&(o.popStock=i.stock,o.goodsnum=t,o.optionsId=e,o.popPrice=i.product_price,a.$set(o,"optionName",i.title))}))}))}))},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 a=this.categories[t].goods_list[o].goodsnum,i=this.categories[t].goods_list[o].popPrice;e+=a*i}e&&this.on_sale_price&&this.sale_priceshow?e-=this.on_sale_price:e&&this.salePrice&&(e-=this.salePrice),this.zongjiage=e>0?e.toFixed(2):0},addnum:function(){this.calculateGooss()},categydbtn:function(){var e=Object(n["a"])(Object(s["a"])().mark((function e(){var t,o,a,i,n,c;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=[],!this.limit_time_status){e.next=20;break}o=[],a=0;case 4:if(!(a<this.categories.length)){e.next=17;break}i=0;case 6:if(!(i<this.categories[a].goods_list.length)){e.next=14;break}if(!this.categories[a].goods_list[i].checked){e.next=11;break}return o.push(a),t.push(this.categories[a].goods_list[i].id),e.abrupt("break",14);case 11:i++,e.next=6;break;case 14:a++,e.next=4;break;case 17:this.categories.length==o.length?this.sale_priceshow=!0:this.sale_priceshow=!1,e.next=21;break;case 20:for(n=0;n<this.categories.length;n++)for(c=0;c<this.categories[n].goods_list.length;c++)this.categories[n].goods_list[c].checked&&t.push(this.categories[n].goods_list[c].id);case 21:return this.goodsIdsArr=t,e.next=24,this.getSalePrice();case 24:this.calculateGooss();case 25:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),submitGoods:function(){var e=!0,t={},o=[];t.package_id=this.package_id,t.goods_list=[];for(var a=0;a<this.categories.length;a++)for(var i=0;i<this.categories[a].goods_list.length;i++){var s=this.categories[a].goods_list,n={};if(1==s[i].has_option&&s[i].checked&&!s[i].optionsId&&s[i].has_many_specs.length>0)return Object(c["a"])("请选择商品规格"),!1;s[i].checked&&(e=!1,o.push(s[i].id),n.goods_id=s[i].id,n.option_id=s[i].optionsId,n.total=s[i].goodsnum,t.goods_list.push(n))}if(e)return Object(c["a"])("请选择结算商品"),!1;this.$router.push(this.fun.getUrl("goodsorder",{packagJson:t},{tag:"packagBuy",goods_ids:JSON.stringify(o)}))},gogoodsDetailBtn:function(e){this.page_template||this.$router.push(this.fun.getUrl("goods",{id:e},{buybtn:"not"}))},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,a=document.location.href+"&share_tag=2";a=t.fun.isMid(a,e.info.uid);var i=t.fun.isTextEmpty(t.mainInfo.thumb)?e.share.icon:t.mainInfo.thumb,s=t.fun.isTextEmpty(t.mainInfo.introduce)?e.share.desc:t.mainInfo.introduce;wx.showOptionMenu(),wx.onMenuShareTimeline({title:o,link:a,imgUrl:i,success:function(){Object(c["a"])("分享成功")},cancel:function(){Object(c["a"])("取消分享")}}),wx.onMenuShareAppMessage({title:o,desc:s,link:a,imgUrl:i,type:"link",dataUrl:"",success:function(){Object(c["a"])("分享成功")},cancel:function(){Object(c["a"])("取消分享")}})}))},salePriceTime:function(){this.limit_time_status=!1,this.sale_priceshow=!1,this.calculateGooss()},showGoodPup:function(e){var t=this;this.page_template&&(this.activity_gid!=e?(this.activity_gid=e,$http.get("goods.goods.get-goods-page",{id:Number(e),is_records_history:0},".").then((function(e){if(1==e.result){if(t.goodinfo=e.data.get_goods,e.data.get_goods.content){var o=t.goodinfo.content.replace(/src=\"http:/gi,'src="https:');t.goodinfo.content=o}else t.goodinfo.content="暂无该商品详情";t.$nextTick((function(){t.showgp=!0}))}else Object(c["a"])(e,msg)})).catch((function(e){}))):this.showgp=!0)}},components:{cTitle:d["a"],yzGoodsPopup:r["a"],yzSpecs:l["a"]}},p=g,m=p,b=(o("929e"),o("2cac"),o("2877")),f=Object(b["a"])(m,a,i,!1,null,"4822e03a",null);t["default"]=f.exports},"929e":function(e,t,o){"use strict";o("63b5")},a4de:function(e,t,o){var a=o("24fb");t=a(!1),t.push([e.i,'.van-count-down[data-v-4822e03a]{color:#fff}.ell[data-v-4822e03a]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.specs-40[data-v-4822e03a]{height:.625rem;clear:both}#package_goods[data-v-4822e03a]{padding-bottom:3.75rem}#package_goods #content .banner[data-v-4822e03a]{width:100%;overflow:hidden;background:#f5f5f5;position:relative}#package_goods #content .banner img[data-v-4822e03a]{width:100%;display:block}#package_goods #content .content_a[data-v-4822e03a]{background:#fff}#package_goods #content .content_a .rob-time[data-v-4822e03a]{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-4822e03a]{width:10%}#package_goods #content .content_a .rob-time .img img[data-v-4822e03a]{width:60%}#package_goods #content .content_a .rob-time .price[data-v-4822e03a]{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-4822e03a]{font-size:.875rem;margin-top:.4375rem;margin-left:-.125rem}#package_goods #content .content_a .rob-time .price .none-line[data-v-4822e03a]{line-height:3.0625rem;font-size:1.125rem;margin-left:.625rem}#package_goods #content .content_a .rob-time .price .middle-line[data-v-4822e03a]{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-4822e03a]{-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-4822e03a]{font-size:.875rem;line-height:1.5rem}#package_goods #content .content_a .rob-time .time span[data-v-4822e03a]{color:#fff;font-size:.875rem}#package_goods #content .content_a .rob-time .time em[data-v-4822e03a]{background-color:#fff;color:#333}#package_goods #content .content_a .rob-time .time .bottom[data-v-4822e03a]{margin-top:.125rem}#package_goods #content .content_a h1[data-v-4822e03a]{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_nav[data-v-4822e03a]{margin:0 0 .625rem 0}#package_goods #content .content_nav .nav[data-v-4822e03a]{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-4822e03a]{font-size:1rem;margin:0 .75rem;font-weight:700}#package_goods #content .content_nav .nav .cur[data-v-4822e03a]{color:#f15353;border-bottom:.125rem solid #f15353}#package_goods #content .content_c[data-v-4822e03a]{background:#fff;margin:0 .75rem;border-radius:.5rem .5rem .5rem .5rem}#package_goods #content .content_c h3[data-v-4822e03a]{display:inline-block;padding:.625rem .0625rem 0 .25rem;font-size:1.125rem;font-weight:700;color:#00001c;position:relative;z-index:10}#package_goods #content .content_c h3[data-v-4822e03a]:after{content:"";position:absolute;width:100%;height:.3125rem;border-radius:.3125rem .3125rem .3125rem .3125rem;left:0;bottom:0;background:-webkit-gradient(linear,left top,right top,from(#f15353),to(#fff));background:-webkit-linear-gradient(left,#f15353,#fff);background:linear-gradient(90deg,#f15353,#fff);z-index:-1}#package_goods #content .content_c .c_box .goods_box[data-v-4822e03a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}#package_goods #content .content_c .c_box .goods_box .select[data-v-4822e03a]{padding:0 6px 0 12px}#package_goods #content .content_c .c_box .goods_box .goods_info .info_a[data-v-4822e03a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:1.25rem 0 0 0}#package_goods #content .content_c .c_box .goods_box .goods_info .info_a .img[data-v-4822e03a]{width:6rem;height:6rem;overflow:hidden;background:#f5f5f5;margin-right:.625rem;border-radius:.5rem .5rem .5rem .5rem}#package_goods #content .content_c .c_box .goods_box .goods_info .info_a .img img[data-v-4822e03a]{width:100%}#package_goods #content .content_c .c_box .goods_box .goods_info .info_a .info[data-v-4822e03a]{width:12.625rem;text-align:left;padding:0 .75rem 0 0;-webkit-box-sizing:border-box;box-sizing:border-box}#package_goods #content .content_c .c_box .goods_box .goods_info .info_a .info .name[data-v-4822e03a]{max-height:2.5rem;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:14px;line-height:18px;font-weight:500;color:#00001c}#package_goods #content .content_c .c_box .goods_box .goods_info .info_a .info .price-box[data-v-4822e03a]{padding:.75rem 0 0 0}#package_goods #content .content_c .c_box .goods_box .goods_info .info_a .info .price[data-v-4822e03a]{font-size:1rem;color:#f15353;line-height:18px}#package_goods #content .content_c .c_box .goods_box .goods_info .info_a .info .price span[data-v-4822e03a]{display:block}#package_goods #content .content_c .c_box .goods_box .goods_info .info_a .info .price .left[data-v-4822e03a]{color:#f15353;font-size:1rem;font-weight:700;margin-right:.625rem}#package_goods #content .content_c .c_box .goods_box .goods_info .info_a .info .price .left font[data-v-4822e03a]{font-size:12px}#package_goods #content .content_c .c_box .goods_box .goods_info .info_a .info .price .right[data-v-4822e03a]{color:#8c8c8c;font-size:.75rem;text-decoration:line-through}#package_goods #content .content_c .c_box .goods_box .goods_info .info_a .info .member[data-v-4822e03a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end;-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 .info_a .info .member span[data-v-4822e03a]{font-size:1rem;line-height:1rem}#package_goods #content .content_c .c_box .goods_box .goods_info .info_a .info-pm[data-v-4822e03a]{padding:0}#package_goods #content .content_c .c_box .goods_box .goods_info .info-page[data-v-4822e03a]{padding:.9375rem 0 0 .75rem}#package_goods #content .content_c .c_box .goods_box .goods-specs[data-v-4822e03a]{padding:1.125rem 0 1.25rem 0;margin:0 .9375rem 0 2.125rem;border-bottom:.0625rem solid #f0f0f1;cursor:pointer}#package_goods #content .content_c .c_box .goods_box .goods-specs h4[data-v-4822e03a]{font-weight:500;color:#00001c;font-size:.875rem}#package_goods #content .content_c .c_box .goods_box .goods-specs .specs-title[data-v-4822e03a]{font-size:.8125rem;font-weight:400;color:#6e6e79}#package_goods #content .content_c .c_box .goods_box .goods-specs .specs-title[data-v-4822e03a]:last-child{font-size:.8125rem;color:#6e6e79}#package_goods #content .content_c .c_box .goods_box .goods-specs .specs-title .icon-icon_more1[data-v-4822e03a]{color:#aaaab3;font-size:.8125rem}#package_goods #content .content_c .c_box .goods_box .goods-line[data-v-4822e03a]{border-bottom:.0625rem solid #f0f0f1;margin:0 .75rem 0 .75rem;padding:.9375rem 0 0 0}#package_goods #content .content_c .c_box:last-child .goods_box:last-child .specs-40[data-v-4822e03a]{height:.9375rem;clear:both}#package_goods #content .categories-page[data-v-4822e03a]{padding:10px 0 0 0}#package_goods #content .content-page[data-v-4822e03a]{padding:0;border-radius:0}#package_goods #content .content-page[data-v-4822e03a]:last-child{border-radius:0 0 8px 8px}#package_goods #content .content-page:last-child .goods_box:last-child .goods-line[data-v-4822e03a]{border-bottom:none}#package_goods #content .content-page[data-v-4822e03a]:first-child{border-radius:8px 8px 0 0}#package_goods #content .content_d[data-v-4822e03a]{margin:10px 12px 0 12px;background:#fff;border-radius:8px 8px 8px 8px}#package_goods #content .content_d h5[data-v-4822e03a]{padding:13px 0 0 0;text-align:center;font-size:18px;line-height:18px;font-weight:700;color:#00001c}#package_goods #content .content_d .d_box .goods_box[data-v-4822e03a]{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-4822e03a]{width:6rem;height:6rem;overflow:hidden;background:#f5f5f5;margin-right:.625rem;border-radius:8px 8px 8px 8px}#package_goods #content .content_d .d_box .goods_box .img img[data-v-4822e03a]{width:100%}#package_goods #content .content_d .d_box .goods_box .info[data-v-4822e03a]{width:15rem;padding:0 .9375rem 0 0;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:left}#package_goods #content .content_d .d_box .goods_box .info .info_a[data-v-4822e03a]{font-size:.875rem;font-weight:500;color:#00001c;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-4822e03a]{font-size:1rem;color:#f15353;margin-top:.625rem;font-weight:700}#package_goods #content .fixed[data-v-4822e03a]{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;z-index:12}#package_goods #content .fixed .favourable[data-v-4822e03a]{position:absolute;left:.625rem}#package_goods #content .fixed .buyBtn[data-v-4822e03a]{padding:.8125rem 1.75rem;line-height:.9375rem;border-radius:1.3125rem 1.3125rem 1.3125rem 1.3125rem;background:#f15353;font-size:.9375rem;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-align-self:center;-ms-flex-item-align:center;align-self:center;border:.0313rem solid #ff2c29;color:#fff;margin-right:.625rem;cursor:pointer}#package_goods #content .fixed .price[data-v-4822e03a]{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;padding-right:.625rem;font-size:.875rem}#package_goods #content .fixed .price span[data-v-4822e03a]{font-size:18px;color:#f15353}#package_goods #content .fixed .price span font[data-v-4822e03a]{font-size:.875rem}#package_goods #content .fixed-exchange[data-v-4822e03a]{-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start}#package_goods #content .van-tabs--line.show[data-v-4822e03a]{position:fixed;top:0;z-index:99;width:100%;background-color:#fff}.header-main[data-v-4822e03a]{border-radius:.5rem .5rem .5rem .5rem;background:#fff;padding:.75rem;margin:.625rem .75rem 0 .75rem}.header-main h3[data-v-4822e03a]{font-size:1rem;font-weight:700;color:#00001c;line-height:1.25rem;text-align:left;white-space:normal;word-break:break-all}.header-main .header-desc[data-v-4822e03a]{border-radius:.5rem .5rem .5rem .5rem;padding:.625rem .875rem .875rem .875rem;border:.0625rem solid #f0f0f1;margin:1rem 0 0 0}.header-main .header-desc .header-user[data-v-4822e03a]{width:80%}.header-main .header-desc .header-user img[data-v-4822e03a]{width:2rem;height:2rem;border-radius:50%;margin:0}.header-main .header-desc .header-user h3[data-v-4822e03a]{font-size:1rem;line-height:1.125rem;padding:0 0 0 .3125rem;text-align:left;font-weight:500;color:#00001c}.header-main .header-desc .symbol[data-v-4822e03a]{padding:0 .625rem 0 0}.header-main .header-desc .symbol .icon-yinhao[data-v-4822e03a]{font-size:1.375rem}.header-main .header-desc .symbol span[data-v-4822e03a]{color:#f0f0f1}.header-main .detail[data-v-4822e03a]{padding:.4375rem 0 0 0;font-size:.8125rem;color:#6e6e79;line-height:1.25rem;text-align:left}.exchange[data-v-4822e03a]{width:21.875rem;margin:0 .75rem}',""]),e.exports=t}}]); |