text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-detail-detail"],{"0181":function(t,e,i){t.exports=i.p+"static/img/collect.4e5b3e9a.png"},"07f6":function(t,e,i){"use strict";var n=i("6586"),a=i.n(n);a.a},"0ee4":function(t,e,i){"use strict";var n=i("4ea4");i("99af"),i("caad"),i("c975"),i("acd8"),i("e25e"),i("ac1f"),i("2532"),i("466d"),i("5319"),i("841c"),i("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a,r=n(i("b85c")),o=uni.getSystemInfoSync(),s=o.windowWidth,c=(o.platform,i("989d")),l={name:"parser",data:function(){return{uid:this._uid,showAm:"",nodes:[]}},props:{html:String,autopause:{type:Boolean,default:!0},autoscroll:Boolean,autosetTitle:{type:Boolean,default:!0},domain:String,lazyLoad:Boolean,selectable:Boolean,tagStyle:Object,showWithAnimation:Boolean,useAnchor:Boolean},watch:{html:function(t){this.setContent(t)}},created:function(){this.imgList=[],this.imgList.each=function(t){for(var e=0,i=this.length;e<i;e++)this.setItem(e,t(this[e],e,this))},this.imgList.setItem=function(t,e){if(void 0!=t&&e){if(0==e.indexOf("http")&&this.includes(e)){for(var i,n=e.split("://")[0],a=n.length;i=e[a];a++){if("/"==i&&"/"!=e[a-1]&&"/"!=e[a+1])break;n+=Math.random()>.5?i.toUpperCase():i}return n+=e.substr(a),this[t]=n}if(this[t]=e,e.includes("data:image")){var r=e.match(/data:image\/(\S+?);(\S+?),(.+)/);if(!r)return}}}},mounted:function(){var t=this;this.document=document.getElementById("rtf"+this._uid),a&&(this.search=function(e){return a(t,e)}),this.html&&this.setContent(this.html)},beforeDestroy:function(){this._observer&&this._observer.disconnect(),this.imgList.each((function(t){})),clearInterval(this._timer)},methods:{setContent:function(t,e){var i=this;if(t){var n=document.createElement("div");e?this.rtf?this.rtf.appendChild(n):this.rtf=n:(this.rtf&&this.rtf.parentNode.removeChild(this.rtf),this.rtf=n),n.innerHTML=this._handleHtml(t,e);for(var a,o=this.rtf.getElementsByTagName("style"),l=0;a=o[l++];)a.innerHTML=a.innerHTML.replace(/body/g,"#rtf"+this._uid),a.setAttribute("scoped","true");!this._observer&&this.lazyLoad&&IntersectionObserver&&(this._observer=new IntersectionObserver((function(t){for(var e,n=0;e=t[n++];)e.isIntersecting&&(e.target.src=e.target.getAttribute("data-src"),e.target.removeAttribute("data-src"),i._observer.unobserve(e.target))}),{rootMargin:"500px 0px 500px 0px"}));var u=this,d=this.rtf.getElementsByTagName("title");d.length&&this.autosetTitle&&uni.setNavigationBarTitle({title:d[0].innerText});var f=function(t){var e=t.getAttribute("src");i.domain&&e&&("/"==e[0]?"/"==e[1]?t.src=(i.domain.includes("://")?i.domain.split("://")[0]:"")+":"+e:t.src=i.domain+e:e.includes("://")||0==e.indexOf("data:")||(t.src=i.domain+"/"+e))};this.imgList.length=0;for(var m,h=this.rtf.getElementsByTagName("img"),v=0,g=0;m=h[v];v++)parseInt(m.style.width||m.getAttribute("width"))>s&&(m.style.height="auto"),f(m),m.hasAttribute("ignore")||"A"==m.parentElement.nodeName||(m.i=g++,u.imgList.push(m.getAttribute("original-src")||m.src||m.getAttribute("data-src")),m.onclick=function(t){t.stopPropagation();var e=!0;this.ignore=function(){return e=!1},u.$emit("imgtap",this),e&&uni.previewImage({current:this.i,urls:u.imgList})}),m.onerror=function(){c.errorImg&&(u.imgList[this.i]=this.src=c.errorImg),u.$emit("error",{source:"img",target:this})},u.lazyLoad&&this._observer&&m.src&&0!=m.i&&(m.setAttribute("data-src",m.src),m.removeAttribute("src"),this._observer.observe(m));var p,b=this.rtf.getElementsByTagName("a"),y=(0,r.default)(b);try{for(y.s();!(p=y.n()).done;){var w=p.value;w.onclick=function(t){t.stopPropagation();var e=!0,i=this.getAttribute("href");if(u.$emit("linkpress",{href:i,ignore:function(){return e=!1}}),e&&i)if("#"==i[0])u.useAnchor&&u.navigateTo({id:i.substr(1)});else{if(0==i.indexOf("http")||0==i.indexOf("//"))return!0;uni.navigateTo({url:i})}return!1}}}catch(O){y.e(O)}finally{y.f()}var x=this.rtf.getElementsByTagName("video");u.videoContexts=x;for(var _,k=0;_=x[k++];)f(_),_.style.maxWidth="100%",_.onerror=function(){u.$emit("error",{source:"video",target:this})},_.onplay=function(){if(u.autopause)for(var t,e=0;t=u.videoContexts[e++];)t!=this&&t.pause()};var C,T,L=this.rtf.getElementsByTagName("audio"),A=(0,r.default)(L);try{for(A.s();!(C=A.n()).done;){var $=C.value;f($),$.onerror=function(){u.$emit("error",{source:"audio",target:this})}}}catch(O){A.e(O)}finally{A.f()}if(this.autoscroll){var S,I=this.rtf.getElementsByTagName("table"),E=(0,r.default)(I);try{for(E.s();!(S=E.n()).done;){var N=S.value,B=document.createElement("div");B.style.overflow="scroll",N.parentNode.replaceChild(B,N),B.appendChild(N)}}catch(O){E.e(O)}finally{E.f()}}e||this.document.appendChild(this.rtf),this.$nextTick((function(){i.nodes=[1],i.$emit("load")})),setTimeout((function(){return i.showAm=""}),500),clearInterval(this._timer),this._timer=setInterval((function(){i.rect=i.rtf.getBoundingClientRect(),i.rect.height==T&&(i.$emit("ready",i.rect),clearInterval(i._timer)),T=i.rect.height}),350),this.showWithAnimation&&!e&&(this.showAm="animation:_show .5s")}else this.rtf&&!e&&this.rtf.parentNode.removeChild(this.rtf)},getText:function(){arguments.length>0&&void 0!==arguments[0]||this.nodes;var t="";return t=this.rtf.innerText,t},in:function(t){t.page&&t.selector&&t.scrollTop&&(this._in=t)},navigateTo:function(t){var e=this;if(!this.useAnchor)return t.fail&&t.fail("Anchor is disabled");var i=" ",n=uni.createSelectorQuery().in(this._in?this._in.page:this).select((this._in?this._in.selector:"#_top")+(t.id?"".concat(i,"#").concat(t.id,",").concat(this._in?this._in.selector:"#_top").concat(i,".").concat(t.id):"")).boundingClientRect();this._in?n.select(this._in.selector).scrollOffset().select(this._in.selector).boundingClientRect():n.selectViewport().scrollOffset(),n.exec((function(i){if(!i[0])return t.fail&&t.fail("Label not found");var n=i[1].scrollTop+i[0].top-(i[2]?i[2].top:0)+(t.offset||0);e._in?e._in.page[e._in.scrollTop]=n:uni.pageScrollTo({scrollTop:n,duration:300}),t.success&&t.success()}))},getVideoContext:function(t){if(!t)return this.videoContexts;for(var e=this.videoContexts.length;e--;)if(this.videoContexts[e].id==t)return this.videoContexts[e]},_handleHtml:function(t,e){if(!e){var i="<style scoped>@keyframes _show{0%{opacity:0}100%{opacity:1}}img{max-width:100%}";for(var n in c.userAgentStyles)i+="".concat(n,"{").concat(c.userAgentStyles[n],"}");for(n in this.tagStyle)i+="".concat(n,"{").concat(this.tagStyle[n],"}");i+="</style>",t=i+t}return t.includes("rpx")&&(t=t.replace(/[0-9.]+\s*rpx/g,(function(t){return parseFloat(t)*s/750+"px"}))),t}}};e.default=l},3419:function(t,e,i){"use strict";var n=i("8225"),a=i.n(n);a.a},"34eb":function(t,e,i){"use strict";i.r(e);var n=i("f7a1"),a=i("ce67");for(var r in a)"default"!==r&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("07f6");var o,s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"3dbf51f2",null,!1,n["a"],o);e["default"]=c.exports},4131:function(t,e,i){"use strict";i.r(e);var n=i("a136"),a=i("8ece");for(var r in a)"default"!==r&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("3419");var o,s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"4b7f42ee",null,!1,n["a"],o);e["default"]=c.exports},"4fb1":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,"@-webkit-keyframes _show-data-v-01dfbd2e{0%{opacity:0}100%{opacity:1}}@keyframes _show-data-v-01dfbd2e{0%{opacity:0}100%{opacity:1}}\n\n\n\n",""]),t.exports=e},6586:function(t,e,i){var n=i("f8e5");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("ebd99094",n,!0,{sourceMap:!1,shadowMode:!1})},8225:function(t,e,i){var n=i("d480");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("7ccbea04",n,!0,{sourceMap:!1,shadowMode:!1})},"871f":function(t,e,i){"use strict";var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("ade3")),r={name:"comment",data:function(){return{commentList:[]}},created:function(){this.getComment()},methods:{toAllReply:function(){uni.navigateTo({url:"/pages/template/comment/reply"})},getLike:function(t){this.commentList[t].isLike=!this.commentList[t].isLike,1==this.commentList[t].isLike?this.commentList[t].likeNum++:this.commentList[t].likeNum--},getComment:function(){var t;this.commentList=[{id:1,name:"叶轻眉",date:"12-25 18:58",contentText:"我不信伊朗会没有后续反应，美国肯定会为今天的事情付出代价的",url:"https://cdn.uviewui.com/uview/template/SmilingDog.jpg",allReply:12,likeNum:33,isLike:!1,replyList:[{name:"uview",contentStr:"uview是基于uniapp的一个UI框架，代码优美简洁，宇宙超级无敌彩虹旋转好用，用它！"},{name:"粘粘",contentStr:"今天吃什么，明天吃什么，晚上吃什么，我只是一只小猫咪为什么要烦恼这么多"}]},{id:2,name:"叶轻眉1",date:"01-25 13:58",contentText:"我不信伊朗会没有后续反应，美国肯定会为今天的事情付出代价的",allReply:0,likeNum:11,isLike:!1,url:"https://cdn.uviewui.com/uview/template/niannian.jpg"},(t={id:3,name:"叶轻眉2",date:"03-25 13:58",contentText:"我不信伊朗会没有后续反应，美国肯定会为今天的事情付出代价的",allReply:0,likeNum:21,isLike:!1},(0,a.default)(t,"allReply",2),(0,a.default)(t,"url","../../../static/logo.png"),(0,a.default)(t,"replyList",[{name:"uview",contentStr:"uview是基于uniapp的一个UI框架，代码优美简洁，宇宙超级无敌彩虹旋转好用，用它！"},{name:"豆包",contentStr:"想吃冰糖葫芦粘豆包，但没钱5555........."}]),t),{id:4,name:"叶轻眉3",date:"06-20 13:58",contentText:"我不信伊朗会没有后续反应，美国肯定会为今天的事情付出代价的",url:"https://cdn.uviewui.com/uview/template/SmilingDog.jpg",allReply:0,likeNum:150,isLike:!1}]}}};e.default=r},"8b05":function(t,e,i){"use strict";i.r(e);var n=i("dfec"),a=i("cba7");for(var r in a)"default"!==r&&function(t){i.d(e,t,(function(){return a[t]}))}(r);i("d53c");var o,s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"01dfbd2e",null,!1,n["a"],o);e["default"]=c.exports},"8ece":function(t,e,i){"use strict";i.r(e);var n=i("871f"),a=i.n(n);for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},"989d":function(t,e,i){i("ac1f"),i("1276");var n={errorImg:null,filter:null,highlight:null,onText:null,entities:{quot:'"',apos:"'",semi:";",nbsp:" ",ensp:" ",emsp:" ",ndash:"–",mdash:"—",middot:"·",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",hellip:"…"},blankChar:a(" , ,\t,\r,\n,\f"),boolAttrs:a("allowfullscreen,autoplay,autostart,controls,ignore,loop,muted"),blockTags:a("address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section"),ignoreTags:a("area,base,canvas,frame,iframe,input,link,map,meta,param,script,source,style,svg,textarea,title,track,wbr"),richOnlyTags:a("a,colgroup,fieldset,legend"),selfClosingTags:a("area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr"),trustTags:a("a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video"),userAgentStyles:{address:"font-style:italic",big:"display:inline;font-size:1.2em",blockquote:"background-color:#f6f6f6;border-left:3px solid #dbdbdb;color:#6c6c6c;padding:5px 0 5px 10px",caption:"display:table-caption;text-align:center",center:"text-align:center",cite:"font-style:italic",dd:"margin-left:40px",mark:"background-color:yellow",pre:"font-family:monospace;white-space:pre;overflow:scroll",s:"text-decoration:line-through",small:"display:inline;font-size:0.8em",u:"text-decoration:underline"}};function a(t){for(var e=Object.create(null),i=t.split(","),n=i.length;n--;)e[i[n]]=!0;return e}t.exports=n},a136:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return n}));var n={uIcon:i("b3fc").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",t._l(t.commentList,(function(e,n){return i("v-uni-view",{key:e.id,staticClass:"comment"},[i("v-uni-view",{staticClass:"left"},[i("v-uni-image",{attrs:{src:e.url,mode:"aspectFill"}})],1),i("v-uni-view",{staticClass:"right"},[i("v-uni-view",{staticClass:"top"},[i("v-uni-view",{staticClass:"name"},[t._v(t._s(e.name))]),i("v-uni-view",{staticClass:"like",class:{highlight:e.isLike}},[i("v-uni-view",{staticClass:"num"},[t._v(t._s(e.likeNum))]),e.isLike?t._e():i("u-icon",{attrs:{name:"thumb-up",size:30,color:"#9a9a9a"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getLike(n)}}}),e.isLike?i("u-icon",{attrs:{name:"thumb-up-fill",size:30},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.getLike(n)}}}):t._e()],1)],1),i("v-uni-view",{staticClass:"content"},[t._v(t._s(e.contentText))]),i("v-uni-view",{staticClass:"reply-box"},[t._l(e.replyList,(function(e,n){return i("v-uni-view",{key:e.index,staticClass:"item"},[i("v-uni-view",{staticClass:"username"},[t._v(t._s(e.name))]),i("v-uni-view",{staticClass:"text"},[t._v(t._s(e.contentStr))])],1)})),void 0!=e.replyList?i("v-uni-view",{staticClass:"all-reply",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toAllReply.apply(void 0,arguments)}}},[t._v("共"+t._s(e.allReply)+"条回复"),i("u-icon",{staticClass:"more",attrs:{name:"arrow-right",size:26}})],1):t._e()],2),i("v-uni-view",{staticClass:"bottom"},[t._v(t._s(e.date)),i("v-uni-view",{staticClass:"reply"},[t._v("回复")])],1)],1)],1)})),1)},r=[]},b85c:function(t,e,i){"use strict";i("a4d3"),i("e01a"),i("d28b"),i("d3b7"),i("3ca3"),i("ddb0"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=a(i("06c5"));function a(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var i;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(i=(0,n.default)(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var a=0,r=function(){};return{s:r,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return s=t.done,t},e:function(t){c=!0,o=t},f:function(){try{s||null==i["return"]||i["return"]()}finally{if(c)throw o}}}}},c587:function(t,e,i){t.exports=i.p+"static/img/collect(1).79e1b9cc.png"},cba7:function(t,e,i){"use strict";i.r(e);var n=i("0ee4"),a=i.n(n);for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},ce67:function(t,e,i){"use strict";i.r(e);var n=i("ff62"),a=i.n(n);for(var r in n)"default"!==r&&function(t){i.d(e,t,(function(){return n[t]}))}(r);e["default"]=a.a},d480:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 下方引入的为uView UI的集成样式文件，为scss预处理器，其中包含了一些"u-"开头的自定义变量\r\n * uView自定义的css类名和scss变量，均以"u-"开头，不会造成冲突，请放心使用 \r\n */.comment[data-v-4b7f42ee]{display:flex;padding:%?30?%}.comment .left uni-image[data-v-4b7f42ee]{width:%?64?%;height:%?64?%;border-radius:50%;background-color:#f2f2f2}.comment .right[data-v-4b7f42ee]{flex:1;padding-left:%?20?%;font-size:%?30?%}.comment .right .top[data-v-4b7f42ee]{display:flex;justify-content:space-between;align-items:center;margin-bottom:%?10?%}.comment .right .top .name[data-v-4b7f42ee]{color:#5677fc}.comment .right .top .like[data-v-4b7f42ee]{display:flex;align-items:center;color:#9a9a9a;font-size:%?26?%}.comment .right .top .like .num[data-v-4b7f42ee]{margin-right:%?4?%;color:#9a9a9a}.comment .right .top .highlight[data-v-4b7f42ee]{color:#5677fc}.comment .right .top .highlight .num[data-v-4b7f42ee]{color:#5677fc}.comment .right .content[data-v-4b7f42ee]{margin-bottom:%?10?%}.comment .right .reply-box[data-v-4b7f42ee]{background-color:#f2f2f2;border-radius:%?12?%}.comment .right .reply-box .item[data-v-4b7f42ee]{padding:%?20?%;border-bottom:solid %?2?% #e4e7ed}.comment .right .reply-box .item .username[data-v-4b7f42ee]{font-size:%?24?%;color:#999}.comment .right .reply-box .all-reply[data-v-4b7f42ee]{padding:%?20?%;display:flex;color:#5677fc;align-items:center}.comment .right .reply-box .all-reply .more[data-v-4b7f42ee]{margin-left:%?6?%}.comment .right .bottom[data-v-4b7f42ee]{margin-top:%?20?%;display:flex;font-size:%?24?%;color:#9a9a9a}.comment .right .bottom .reply[data-v-4b7f42ee]{color:#5677fc;margin-left:%?10?%}',""]),t.exports=e},d53c:function(t,e,i){"use strict";var n=i("f5d3"),a=i.n(n);a.a},dfec:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[t.nodes.length?t._e():t._t("default"),i("v-uni-view",{style:t.showAm+(t.selectable?";user-select:text;-webkit-user-select:text":""),attrs:{id:"_top"}},[i("div",{attrs:{id:"rtf"+t.uid}})])],2)},r=[]},f5d3:function(t,e,i){var n=i("4fb1");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("44c04714",n,!0,{sourceMap:!1,shadowMode:!1})},f7a1:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return n}));var n={uRow:i("73cd").default,uCol:i("6dbb").default,uImage:i("8252").default,uTabs:i("ff53").default,uBadge:i("7daf").default,uParse:i("8b05").default,comment:i("4131").default,goods:i("31d9").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("u-row",{attrs:{gutter:"16"}},[n("u-col",{attrs:{span:"12"}},[n("u-image",{attrs:{height:"400rpx",width:"400rpx",src:t.goodsitem.cover_url}}),n("v-uni-view",{staticClass:"title u-skeleton-fillet"},[t._v(t._s(t.goodsitem.title))]),n("v-uni-view",{staticClass:"u-flex u-row-between"},[n("v-uni-view",{staticClass:"price u-skeleton-fillet"},[t._v("￥"+t._s(t.goodsitem.price))]),n("v-uni-view",{staticClass:"sale u-skeleton-fillet"},[t._v("销量:"+t._s(t.goodsitem.sales))])],1)],1)],1),n("u-tabs",{staticClass:"tabs u-m-t-40",attrs:{"bar-width":"140",list:t.list,"is-scroll":!1,current:t.current},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.change.apply(void 0,arguments)}}}),n("v-uni-view",{staticClass:"bottom"},[n("v-uni-view",{staticClass:"collect",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.collect.apply(void 0,arguments)}}},[n("img",{directives:[{name:"show",rawName:"v-show",value:!1===t.iscollect,expression:"iscollect===false"}],attrs:{src:i("0181"),alt:""}}),n("img",{directives:[{name:"show",rawName:"v-show",value:!0===t.iscollect,expression:"iscollect===true"}],attrs:{src:i("c587"),alt:""}}),n("v-uni-view",{class:{active:t.iscollect}},[t._v("收藏")])],1),n("v-uni-view",{on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navtiao.apply(void 0,arguments)}}},[n("u-badge",{staticStyle:{right:"480rpx",top:"4rpx"},attrs:{type:"error",count:t.cartlist}}),n("img",{attrs:{src:i("faf6"),alt:""}}),n("v-uni-view",[t._v("购物车")])],1),n("v-uni-view",{staticClass:"circlefirst",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.entercart.apply(void 0,arguments)}}},[t._v("加入购物车")]),n("v-uni-view",{staticClass:"circletwo"},[t._v("立即购买")])],1),0===t.current?n("u-parse",{staticClass:"parse",attrs:{html:t.content}}):t._e(),1===t.current?n("comment"):t._e(),2===t.current?n("u-row",{staticClass:"u-skeleton",attrs:{gutter:"16"}},t._l(t.likegoods,(function(t){return n("u-col",{attrs:{span:"6"}},[n("goods",{attrs:{goodsitem:t}})],1)})),1):t._e()],1)},r=[]},f8e5:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,".u-row[data-v-3dbf51f2]{height:%?570?%;padding:%?40?%}.u-col[data-v-3dbf51f2]{height:%?570?%;margin-top:%?10?%}.price[data-v-3dbf51f2]{color:red;margin-top:%?10?%;font-size:%?34?%;font-weight:1000;\n}.title[data-v-3dbf51f2]{margin-top:%?40?%;font-weight:1000;font-size:%?34?%;\n}.sale[data-v-3dbf51f2]{color:#888;font-size:%?26?%;\n}\n.u-image[data-v-3dbf51f2]{margin:0 auto;margin-top:%?10?%}.bottom[data-v-3dbf51f2]{display:flex;justify-content:space-around;height:%?100?%;background-color:#f4f4f5;align-items:center;position:fixed;bottom:0;width:100%;font-size:%?12?%;z-index:10}.collect[data-v-3dbf51f2]{margin-left:%?40?%}img[data-v-3dbf51f2]{height:%?45?%;margin-bottom:%?-6?%}.circlefirst[data-v-3dbf51f2]{background-color:red;height:%?60?%;line-height:%?60?%;color:#fff;border-radius:%?30?%;width:%?180?%;text-align:center;margin-left:%?20?%;margin-right:%?-40?%}.circletwo[data-v-3dbf51f2]{background-color:orange;height:%?60?%;line-height:%?60?%;color:#fff;border-radius:%?30?%;width:%?150?%;text-align:center}\n.parse[data-v-3dbf51f2]{\npadding-bottom:%?80?%\n}.active[data-v-3dbf51f2]{color:#d81e06}",""]),t.exports=e},faf6:function(t,e,i){t.exports=i.p+"static/img/shopping(1).ebae2c8c.png"},ff62:function(t,e,i){"use strict";var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("96cf");var a=n(i("1da1")),r={data:function(){return{goodsitem:{},list:[{name:"商品详情"},{name:"商品评论"},{name:"推荐商品"}],current:0,goodsitemid:null,content:null,likegoods:[],iscollect:!1,cartlist:0}},methods:{change:function(t){this.current=t},collect:function(){var t=this;return(0,a.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.iscollect){e.next=7;break}return e.next=3,t.$u.api.collect(t.goodsitemid);case 3:t.iscollect=!t.iscollect,t.$u.toast("收藏成功"),e.next=11;break;case 7:return e.next=9,t.$u.api.collect(t.goodsitemid);case 9:t.iscollect=!t.iscollect,t.$u.toast("已取消收藏");case 11:case"end":return e.stop()}}),e)})))()},entercart:function(){var t=this;return(0,a.default)(regeneratorRuntime.mark((function e(){var i,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i={goods_id:t.goodsitemid},e.next=3,t.$u.api.entercart(i);case 3:return e.next=5,t.$u.api.getcart();case 5:n=e.sent,t.$u.toast("加入购物车成功"),t.cartlist=n.data.length,t.$bus.$emit("entercart");case 9:case"end":return e.stop()}}),e)})))()},navtiao:function(){this.$u.route({type:"switchTab",url:"pages/cart/cart"})}},onLoad:function(t){var e=this;return(0,a.default)(regeneratorRuntime.mark((function i(){var n,a;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return e.goodsitemid=t.id,i.next=3,e.$u.api.goodsdetail(e.goodsitemid);case 3:return n=i.sent,e.goodsitem=n.goods,e.content=e.goodsitem.details,e.likegoods=n.like_goods,i.next=9,e.$u.api.getcart();case 9:a=i.sent,e.cartlist=a.data.length;case 11:case"end":return i.stop()}}),i)})))()}};e.default=r}}]);