1 |
- !function(){function e(e,r,o,t,i,a,n){try{var l=e[a](n),s=l.value}catch(c){return void o(c)}l.done?r(s):Promise.resolve(s).then(t,i)}var r=document.createElement("style");r.innerHTML='._swipeItemImg_egloy_1,._swipe_egloy_1{width:100%;height:10rem;vertical-align:middle}._custom-indicator_egloy_7{position:absolute;right:.13333rem;bottom:.13333rem;padding:.10667rem .21333rem;font-size:.37333rem;color:#fff;background:rgba(0,0,0,.5);border-radius:.32rem}._goodsHead_egloy_17{padding:.21333rem 0}._goodsHead_egloy_17 .van-cell{padding:.13333rem .42667rem}._goodsHead_egloy_17 ._sectionTips_egloy_23{margin:.16rem .42667rem;display:flex;align-items:center;font-size:.37333rem;color:#ff4e19;padding:.13333rem .16rem;background:#ffebdd;border-radius:.16rem}._goodsHead_egloy_17 ._iconGives_egloy_33{width:.85333rem;height:.48rem;margin-right:.21333rem}._priceGroup_egloy_38{display:flex;align-items:center}._priceGroup_egloy_38 ._price_egloy_38{color:#ff4e19;font-size:.64rem;font-weight:700}._priceGroup_egloy_38 ._price_egloy_38 i{font-size:.42667rem;font-style:normal}._priceGroup_egloy_38 ._delPrice_egloy_51{font-size:.37333rem;color:#999;margin-left:.32rem;line-height:.53333rem}._priceGroup_egloy_38 ._stock_egloy_57{font-size:.37333rem;color:#999}._goodsName_egloy_61{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._row_egloy_67{background-color:#fff;padding:var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding)}._row_egloy_67 ._col_egloy_71{font-size:.42667rem;color:#333}._radio-group_egloy_75{display:flex;flex-wrap:wrap}._radio_egloy_75{margin-right:.21333rem;margin-bottom:.21333rem;min-width:1.6rem}._radio_egloy_75 .van-radio__label--disabled{opacity:.5}._radio_egloy_75 .van-radio__icon{display:none}._radio_egloy_75 .van-tag--large{height:.72rem;font-size:.34667rem;text-align:center;display:flex;align-items:center;justify-content:center}._radio_egloy_75 .van-tag{box-sizing:border-box}._radio_egloy_75 .van-tag--default{color:#999}._radio_egloy_75 .van-tag--primary{background-color:#f7f8f9}._radio_egloy_75 .van-radio__label{margin-left:0}._badge_egloy_110 .van-badge{border-radius:.16rem 0;font-size:.32rem}._section_egloy_23{background:#fff;padding:.32rem 0 0}._detail_egloy_118{display:flex;align-items:center;justify-content:center;font-size:.37333rem;color:#999;line-height:.53333rem;margin-bottom:.32rem}._detail_egloy_118 span{padding:0 .26667rem}._detail_egloy_118:before,._detail_egloy_118:after{display:inline-block;content:" ";width:1.06667rem;height:.08rem}._detail_egloy_118:before{background:linear-gradient(90deg,rgba(238,238,238,0) 0%,#d8d8d8 100%)}._detail_egloy_118:after{background:linear-gradient(270deg,rgba(238,238,238,0) 0%,#d8d8d8 100%)}._photoDetail_egloy_143{padding-bottom:.53333rem}._photoDetail_egloy_143 img{width:100%;vertical-align:middle}._goodsDetail_egloy_150{min-height:100vh;background-color:#f7f8f9}._actionBar_egloy_154{padding-left:.13333rem;padding-right:.13333rem;justify-content:space-between;box-shadow:0 -.26667rem .26667rem var(--box-shadow-color);box-sizing:border-box}._actionBar_egloy_154 .van-submit-bar__bar{justify-content:space-between;padding:0}._actionBar_egloy_154 .van-action-bar-icon{align-items:center}._actionBar_egloy_154 .van-action-bar-icon__icon{margin-bottom:0;line-height:0}._actionBar_egloy_154 .van-badge{background:#ff4e19}._addCertBtn_egloy_175{background:#fff;color:var(--van-primary)}._buyGroup_egloy_179{flex-basis:60%;display:flex;justify-content:center;border:var(--van-button-border-width) solid var(--van-button-primary-border-color)!important;border-radius:.53333rem;background-color:var(--van-primary);overflow:hidden;box-sizing:border-box}._selectWrap_egloy_189{padding-top:.04rem;font-size:.37333rem;color:#666;padding-bottom:.32rem}._shareBtn_egloy_195{display:flex;align-items:center;font-size:.37333rem;color:#666}._shareWrap_egloy_201{display:flex;border-radius:.26667rem;border:.02667rem solid var(--van-primary);overflow:hidden;padding:.37333rem;align-items:center;background-color:#fff;margin-top:.42667rem}._shareWrap_egloy_201 ._sharePic_egloy_211{width:2.66667rem;height:2.66667rem;border-radius:.21333rem}._shareWrap_egloy_201 ._shareLeft_egloy_216{margin-right:.26667rem}._shareWrap_egloy_201 ._shareRight_egloy_219{flex:1;overflow:hidden}._shareWrap_egloy_201 ._shareShopTitle_egloy_223{font-size:.42667rem;font-weight:400;color:#333;display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}._shareWrap_egloy_201 ._shareShopDes_egloy_233{font-size:.37333rem;font-weight:400;color:#999;margin:.26667rem 0 .53333rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._shareWrap_egloy_201 ._shareShopValue_egloy_242{font-size:.42667rem;color:#ff4e19}._shareWrap_egloy_201 ._shareShopOldPrice_egloy_246{color:#e5e5e5;margin-left:.13333rem}._shareWrap_egloy_201 .van-card{background:transparent}._imagesOverlayWrap_egloy_253 .van-badge__wrapper,._imagesOverlayWrap_egloy_253 .van-image-preview__index{top:1.06667rem}\n',document.head.appendChild(r),System.register(["./index-legacy.47bc1690.js","./index-legacy.0ebc214d.js","./function-call-legacy.bd764227.js","./index-legacy.18044794.js","./index-legacy.bab9fe30.js","./index-legacy.92a01198.js"],(function(r){"use strict";var o,t,i,a,n,l,s,c,d,g,_;return{setters:[function(e){o=e.d,t=e.c,i=e.m,a=e.q,n=e.b6},function(e){l=e.I},function(e){s=e.s},function(e){c=e.S,d=e.a},function(e){g=e.C},function(e){_=e.C}],execute:function(){r("M",o({name:"member-bao",setup:function(){return function(){return t("div",{style:{lineHeight:"0"}},[t(l,{src:"./assets/member_bao-1.5356e9c8.png"},null),t(l,{src:"./assets/member_bao-3.5c34f85e.png"},null)])}}}));var u="_swipeItemImg_egloy_1",m="_swipe_egloy_1",p="_custom-indicator_egloy_7",f="_goodsHead_egloy_17",h="_sectionTips_egloy_23",y="_iconGives_egloy_33",b="_priceGroup_egloy_38",v="_price_egloy_38",A="_delPrice_egloy_51",k="_goodsName_egloy_61",w="_section_egloy_23",x="_detail_egloy_118",C="_photoDetail_egloy_143",O="_goodsDetail_egloy_150",P="_imagesOverlayWrap_egloy_253";r("G",o({name:"goods-detail",props:{groupPrice:{type:Number,default:0},goodsInfo:{type:Object,default:function(){return{}}},id:{type:String,defualt:""}},data:function(){return{albumPics:[],product:{},radio:0,skuStockListTemp:[],detailMobileHtml:"",loading:!1,addGoodsShow:!1,selectGoodsItem:{},cartCount:0,showType:"cart",shareShow:!1}},computed:{skuStockList:function(){var e=this.product,r=this.skuStockListTemp.length>0?this.skuStockListTemp:[{id:-1,price:e.price,pic:e.pic,stock:e.stock,spData:null}];return r.forEach((function(e){if(e.spData){var r=JSON.parse(e.spData);e.spDataJson=r.reduce((function(e,r){return e+=r.value}),""),e.sku=r.reduce((function(e,r){return e.push("".concat(r.key,": ").concat(r.value)),e}),[]).join(",")}else e.spDataJson="默认"})),r},getPrice:function(){var e=this,r=this.skuStockList.filter((function(r){return r.id==e.radio}));return r&&Array.isArray(r)&&r.length?r[0].price:0}},mounted:function(){var r,o=this;return(r=regeneratorRuntime.mark((function e(){var r,t,a,n,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,o.loading=!0,e.next=4,i.get("/api-student/open/mall/product/detail/".concat(o.id));case 4:if(r=e.sent,o.loading=!1,t=r.data||{},o.albumPics=[t.product.pic].concat(t.product.albumPics.split(",")).filter((function(e){return e})),o.product=t.product,o.skuStockListTemp=t.skuStockList||[],!o.skuStockListTemp.length){e.next=21;break}a=o.skuStockListTemp.length,n=0;case 13:if(!(n<a)){e.next=21;break}if(!((l=o.skuStockListTemp[n]).stock>=0)){e.next=18;break}return o.radio=l.id,e.abrupt("break",21);case 18:n++,e.next=13;break;case 21:o.detailMobileHtml=t.product.detailMobileHtml||t.product.detailHtml,e.next=26;break;case 24:e.prev=24,e.t0=e.catch(0);case 26:case"end":return e.stop()}}),e,null,[[0,24]])})),function(){var o=this,t=arguments;return new Promise((function(i,a){var n=r.apply(o,t);function l(r){e(n,i,a,l,s,"next",r)}function s(r){e(n,i,a,l,s,"throw",r)}l(void 0)}))})()},methods:{onPreview:function(e){s({images:this.albumPics,startPosition:e,closeable:!0,className:P})},onShowImg:function(e){if("img"===e.srcElement.localName){var r=0,o=document.querySelectorAll(".msgWrap img"),t=Array.from(o).map((function(o,t){return e.srcElement==o&&(r=t),o.src}));s({images:t,startPosition:r,closeable:!0,className:P})}},onShowCart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cart";this.selectGoodsItem={price:this.product.pic,stock:this.product.stock,skuStockList:this.skuStockListTemp.length?this.skuStockListTemp:void 0,brandName:this.product.brandName,productCategoryId:this.product.productCategoryId,name:this.product.name,productSn:this.product.productSn,productSubTitle:this.product.subTitle,id:this.product.id},this.showType=e,this.addGoodsShow=!0}},render:function(){var e=this,r=this.product;return this.skuStockList.find((function(r){return r.id===e.radio})),t("div",{class:O},[t(c,{class:m,lazyRender:!0},{default:function(){return[e.albumPics.map((function(r,o){return t(d,null,{default:function(){return[t(l,{class:u,src:r,onClick:function(){return e.onPreview(o)},fit:"cover"},null)]}})}))]},indicator:function(e){return e.total>1&&t("div",{class:p},[(e.active||0)+1,a(" / "),e.total])}}),t(g,{border:!1,class:[f,"mb12"]},{default:function(){return[t(_,{center:!0,border:!1},{title:function(){return t("div",{class:b},[t("span",{class:v},[t("i",null,[a("¥ ")]),n(e.groupPrice)]),t("del",{class:A},[a("¥ "),n(r.originalPrice)])])}}),t(_,{center:!0,border:!1,title:r.name,titleClass:[k,"van-ellipsis"]},null),e.goodsInfo.showFree&&t("div",{class:h},[t(l,{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAAkCAYAAAA5DDySAAAAAXNSR0IArs4c6QAACZdJREFUaEPdmgdwlMcVgL8VMr2GagOimSqDqAMZcMYZDKhQ7BCCTTNFGAkkwMgG0RxmsBOahACJkghEERkih5hiCE0xDjYgOpgeWgwCDDa9F21mtXs63X93+u+UwTPOzjD6b/ft2/e+fVv+9yOwFDmtTTA5AZEg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YSJO5yAoxtAR+mQyOz4Smdm1LhixQ9nqOf+htYDLoOh9BIJ6xTWTDT7CdWS/L8kgg5qJ79HuBQ8NrrMCbNVd26ZFiTpAHM3esZpKfa5HwAVLuCEzNfS57/Fqa+DWNXQp2msG8TbFioj9uCSrW6EBEFrUO1jhl9be0RcmBd6XZR8JQLrNkIxq6AMr+AZ0/hxhWoEqRnY1xHHZLJ5rLz9AlssYBSprQJhSomYzQv2hkBagr6TILO5hhVOg9ug1vXteNq6flTVB5BgTthIsraN1/ACzmgjn0+IC4N1Oyrt0BVNi+BU/tgpJmx9fNh02JIMXd3tQfE/crd5Og50NRsWHOjYL9ZAmq3+mQDKMhu4Srh7k2dRlPLwJ/ycTfncvHST8h+te3zAcvOOp0/qdbWIJ3zm7MLKlQFdaZPDHMC8MXIOVGwb7OWrFoLZm33pZd/MkOawJOHzj4eIlvIvrXyRYCRdbyGOjosP6t33G3pkDEDHpkLTPRsaG/u29P6QbzlNlaQuUnDnAAihsG747X0pVOQOkEvl1ad9DJzRJ5/7sPgxua0cAurvAoh+9S+g5Q6KeptrXSNgqwNcC1fJlfJ1moM9cy5rZaEzPHdxBtXde5OFbUsKpt3gCvn4IS5T6i1qm59at9Rx53KJ/hTlK6CvmkIcVfId4KOgpe0uF3a32GMv+l/X5148eMfE7J30Gyk9COZ56v1PwM5IZKE7BkUTECOeoso4v0zuHHGW8bFhytnrga7GfUWSdZ6Oz3e2Ofvp74U5wSE6I+jPWuYj6PeXqMcGu1es6xrwtrPVw/t9NitPW+EXMZPFqsvxWoAvShKTvWN5KA/j3srhf1EaNVnx+HFj59JYHa4+Az9eTwPwvNXEshBpVv/P/+DBPI5AWIBRS7HKeeV325zKrtVC0YI9a7ZCUEQ0nw39GdPs8vO+qOrMLL5xxfcBb5DshUpU8X6qy4Z1P8C4Udk+FZgFQQAAAAASUVORK5CYII=",class:y},null),a("赠价值"),e.goodsInfo.originalPrice,a("元乐器维保服务一年")])]}}),this.detailMobileHtml&&t("div",{class:[w]},[t("div",{class:x},[t("span",null,[a("图文详情")])]),t("div",{class:[C,"msgWrap"],onClick:this.onShowImg,innerHTML:this.detailMobileHtml},null)])])}}))}}}))}();
|