1 |
- !function(){var e=document.createElement("style");e.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(e),System.register(["./index-legacy.eb062188.js","./index-legacy.fecc738b.js","./function-call-legacy.0bd16987.js","./index-legacy.fab451f1.js","./index-legacy.148f784c.js","./index-legacy.918b8c74.js"],(function(e){"use strict";var o,r,t,i,a,l,s,n,d,g,c;return{setters:[function(e){o=e.d,r=e.c,t=e.m,i=e.q,a=e.ba},function(e){l=e.I},function(e){s=e.s},function(e){n=e.S,d=e.a},function(e){g=e.C},function(e){c=e.C}],execute:function(){e("M",o({name:"member-bao",setup:()=>()=>r("div",{style:{lineHeight:"0"}},[r(l,{src:"./assets/member_bao-1.5356e9c8.png"},null),r(l,{src:"./assets/member_bao-3.5c34f85e.png"},null)])}));var _="_swipeItemImg_egloy_1",m="_swipe_egloy_1",p="_custom-indicator_egloy_7",h="_goodsHead_egloy_17",u="_sectionTips_egloy_23",f="_iconGives_egloy_33",y="_priceGroup_egloy_38",b="_price_egloy_38",A="_delPrice_egloy_51",k="_goodsName_egloy_61",v="_section_egloy_23",w="_detail_egloy_118",C="_photoDetail_egloy_143",O="_goodsDetail_egloy_150",P="_imagesOverlayWrap_egloy_253";e("G",o({name:"goods-detail",props:{groupPrice:{type:Number,default:0},goodsInfo:{type:Object,default:()=>({})},id:{type:String,defualt:""}},data:()=>({albumPics:[],product:{},radio:0,skuStockListTemp:[],detailMobileHtml:"",loading:!1,addGoodsShow:!1,selectGoodsItem:{},cartCount:0,showType:"cart",shareShow:!1}),computed:{skuStockList(){const e=this.product,o=this.skuStockListTemp.length>0?this.skuStockListTemp:[{id:-1,price:e.price,pic:e.pic,stock:e.stock,spData:null}];return o.forEach((e=>{if(e.spData){const o=JSON.parse(e.spData);e.spDataJson=o.reduce(((e,o)=>e+=o.value),""),e.sku=o.reduce(((e,o)=>(e.push(`${o.key}: ${o.value}`),e)),[]).join(",")}else e.spDataJson="默认"})),o},getPrice(){const e=this.skuStockList.filter((e=>e.id==this.radio));return e&&Array.isArray(e)&&e.length?e[0].price:0}},async mounted(){try{this.loading=!0;const e=await t.get(`/api-student/open/mall/product/detail/${this.id}`);this.loading=!1;const o=e.data||{};if(this.albumPics=[o.product.pic].concat(o.product.albumPics.split(",")).filter((e=>e)),this.product=o.product,this.skuStockListTemp=o.skuStockList||[],this.skuStockListTemp.length){const e=this.skuStockListTemp.length;for(let o=0;o<e;o++){const e=this.skuStockListTemp[o];if(e.stock>=0){this.radio=e.id;break}}}this.detailMobileHtml=o.product.detailMobileHtml||o.product.detailHtml}catch{}},methods:{onPreview(e){s({images:this.albumPics,startPosition:e,closeable:!0,className:P})},onShowImg(e){const{localName:o}=e.srcElement;if("img"!==o)return;let r=0;const t=document.querySelectorAll(".msgWrap img"),i=Array.from(t).map(((o,t)=>(e.srcElement==o&&(r=t),o.src)));s({images:i,startPosition:r,closeable:!0,className:P})},onShowCart(e="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(){const e=this.product;return this.skuStockList.find((e=>e.id===this.radio)),r("div",{class:O},[r(n,{class:m,lazyRender:!0},{default:()=>[this.albumPics.map(((e,o)=>r(d,null,{default:()=>[r(l,{class:_,src:e,onClick:()=>this.onPreview(o),fit:"cover"},null)]})))],indicator:e=>e.total>1&&r("div",{class:p},[(e.active||0)+1,i(" / "),e.total])}),r(g,{border:!1,class:[h,"mb12"]},{default:()=>[r(c,{center:!0,border:!1},{title:()=>r("div",{class:y},[r("span",{class:b},[r("i",null,[i("¥ ")]),a(this.groupPrice)]),r("del",{class:A},[i("¥ "),a(e.originalPrice)])])}),r(c,{center:!0,border:!1,title:e.name,titleClass:[k,"van-ellipsis"]},null),this.goodsInfo.showFree&&r("div",{class:u},[r(l,{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAAkCAYAAAA5DDySAAAAAXNSR0IArs4c6QAACZdJREFUaEPdmgdwlMcVgL8VMr2GagOimSqDqAMZcMYZDKhQ7BCCTTNFGAkkwMgG0RxmsBOahACJkghEERkih5hiCE0xDjYgOpgeWgwCDDa9F21mtXs63X93+u+UwTPOzjD6b/ft2/e+fVv+9yOwFDmtTTA5AZEgOyEJAsogjZCwCntrsMg7xBzdrXqsRrgZ9T+NfxfJdwSIrTzLSRUf7z2WX32eKXJKk6IElk4AGY2kiJ1NP8t2wXMQC3h2L05MOf5E+ZALINf5gFIbkbJjrmMOLF5n3sZ9t0ixiQiruhc9PiKTnPvhCoIB0HoeyJg8O2wi+4XP/k8yvkgWU/bFCjk5JBgReBike9gLMxXSuogLi8A6tXaR9CLHF8+Rz0KEnNxyNjBam+LNUW+7lt3u5u9U/uTjJwk5qcVRJMGFnVOXfsVKQsVauurpI7h+3tlcshyUf0X/fnQPblx0tuXvpybh8klXc2q3gEpKr4DsY3DltGt7tfpQQ7kg4MeLcH6fb+4Ijgk5ofmd3KMufwBYJzxsDDTo4NwcHeodE3bjEqwYCcVKw/it8FJxePYEpnWBh7e0dPcJ0LaXft6SDF8tdhpZqgLEb4UAswrn9IRr55ztIeHwu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vIvrXyRYCRdbyGOjosP6t33G3pkDEDHpkLTPRsaG/u29P6QbzlNlaQuUnDnAAihsG747X0pVOQOkEvl1ad9DJzRJ5/7sPgxua0cAurvAoh+9S+g5Q6KeptrXSNgqwNcC1fJlfJ1moM9cy5rZaEzPHdxBtXde5OFbUsKpt3gCvn4IS5T6i1qm59at9Rx53KJ/hTlK6CvmkIcVfId4KOgpe0uF3a32GMv+l/X5148eMfE7J30Gyk9COZ56v1PwM5IZKE7BkUTECOeoso4v0zuHHGW8bFhytnrga7GfUWSdZ6Oz3e2Ofvp74U5wSE6I+jPWuYj6PeXqMcGu1es6xrwtrPVw/t9NitPW+EXMZPFqsvxWoAvShKTvWN5KA/j3srhf1EaNVnx+HFj59JYHa4+Az9eTwPwvNXEshBpVv/P/+DBPI5AWIBRS7HKeeV325zKrtVC0YI9a7ZCUEQ0nw39GdPs8vO+qOrMLL5xxfcBb5DshUpU8X6qy4Z1P8C4Udk+FZgFQQAAAAASUVORK5CYII=",class:f},null),i("赠价值"),this.goodsInfo.originalPrice,i("元乐器维保服务一年")])]}),this.detailMobileHtml&&r("div",{class:[v]},[r("div",{class:w},[r("span",null,[i("图文详情")])]),r("div",{class:[C,"msgWrap"],onClick:this.onShowImg,innerHTML:this.detailMobileHtml},null)])])}}))}}}))}();
|