|
|
|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-goods-detail-index"],{"0906":function(t,n,e){"use strict";e.r(n);var i=e("ae86"),a=e("758f");for(var s in a)"default"!==s&&function(t){e.d(n,t,(function(){return a[t]}))}(s);e("27e2");var o,r=e("f0c5"),c=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"7c89c77c",null,!1,i["a"],o);n["default"]=c.exports},"0af1":function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i={props:{images:{type:Array,default:[]}},data:function(){return{indicatorDots:!0,autoplay:!0,interval:4e3,duration:800,currentIndex:1}},methods:{setCurrent:function(t){var n=t.detail;this.currentIndex=n.current+1},onPreviewImages:function(t){uni.previewImage({current:t,urls:this.images})}}};n.default=i},"0ca5":function(t,n,e){var i=e("7169");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=e("4f06").default;a("4e1b9e12",i,!0,{sourceMap:!1,shadowMode:!1})},"10a9":function(t,n,e){var i=e("d31c");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=e("4f06").default;a("26b12d04",i,!0,{sourceMap:!1,shadowMode:!1})},"13ce":function(t,n,e){var i=e("1bd6");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=e("4f06").default;a("9e995cd6",i,!0,{sourceMap:!1,shadowMode:!1})},"1aeb":function(t,n,e){var i=e("24fb");n=i(!1),n.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */.images-swiper[data-v-8af4c830]{position:relative}.swiper-box[data-v-8af4c830]{width:100%;height:100vw;max-width:480px;max-height:480px;margin:0 auto}.swiper-box .slide-video[data-v-8af4c830]{width:100%;height:100%}.swiper-box .slide-video .video[data-v-8af4c830]{display:block;width:100%;height:100%}.swiper-box .slide-image[data-v-8af4c830]{position:relative;width:100%;height:100%}.swiper-box .slide-image .image[data-v-8af4c830]{display:block;width:100%;height:100%}.swiper-count[data-v-8af4c830]{position:absolute;right:%?36?%;bottom:%?72?%;padding:%?2?% %?18?%;background:rgba(0,0,0,.363);border-radius:%?50?%;color:#fff;font-size:%?26?%}',""]),t.exports=n},"1b7c":function(t,n,e){"use strict";var i=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=i(e("5530"));e("96cf");var s=i(e("1da1")),o=e("145b"),r=i(e("d22b")),c=i(e("5d05")),l=i(e("0906")),u=i(e("f4bf")),d=i(e("359f")),f={components:{SlideImage:r.default,mpHtml:u.default,Service:c.default,SkuPopup:l.default,UiButton:d.default},data:function(){return{goods:{pictureList:[]},skuInfoData:[],curSku:{},showSkuPopup:!1,skuMode:1,selectedSkuInfo:{sku:"",num:1}}},onLoad:function(){this.getGoodsDetail(),this.getGoodsSkus()},methods:{getGoodsDetail:function(){var t=this;return(0,s.default)(regeneratorRuntime.mark((function n(){var e,i,s,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e=t.$Route.query,n.next=3,(0,o.ApiGetGoodsDetail)({id:e.id});case 3:if(i=n.sent,s=i.error,r=i.result,!s){n.next=9;break}return uni.$u.toast(s.message),n.abrupt("return",!1);case 9:t.goods=(0,a.default)((0,a.default)({},r),{},{images:r.pictureList||[]});case 10:case"end":return n.stop()}})
|