(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-goods-detail"],{"00ca":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,"uni-page-body[data-v-25f5b6ae]{background:#fafafa}body.?%PAGE?%[data-v-25f5b6ae]{background:#fafafa}",""]),t.exports=e},"092c":function(t,e,i){"use strict";i.r(e);var n=i("478a"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"1bdd":function(t,e,i){var n=i("5165");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("5cdd75ca",n,!0,{sourceMap:!1,shadowMode:!1})},"1ea2":function(t,e,i){"use strict";i.r(e);var n=i("f116"),a=i("092c");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("a587");var s=i("f0c5"),r=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"e3b430c2",null,!1,n["a"],void 0);e["default"]=r.exports},"2b92":function(t,e,i){"use strict";var n=i("f2d4"),a=i.n(n);a.a},"32a8":function(t,e,i){"use strict";i.r(e);var n=i("8e96"),a=i("5831");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("a9bd");var s=i("f0c5"),r=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"418023e0",null,!1,n["a"],void 0);e["default"]=r.exports},"32cd":function(t,e,i){"use strict";i.r(e);var n=i("3e54"),a=i("b20e");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("2b92");var s=i("f0c5"),r=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"671bcb72",null,!1,n["a"],void 0);e["default"]=r.exports},"33a6":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("goods-sku-popup",{attrs:{value:t.value,"border-radius":"20",localdata:t.goodsInfo,mode:t.skuMode,maskCloseAble:!0,buyNowText:"立即购买"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.onChangeValue.apply(void 0,arguments)},open:function(e){arguments[0]=e=t.$handleEvent(e),t.openSkuPopup.apply(void 0,arguments)},close:function(e){arguments[0]=e=t.$handleEvent(e),t.closeSkuPopup.apply(void 0,arguments)},"add-cart":function(e){arguments[0]=e=t.$handleEvent(e),t.addCart.apply(void 0,arguments)},"buy-now":function(e){arguments[0]=e=t.$handleEvent(e),t.buyNow.apply(void 0,arguments)}}})},a=[]},"39f0":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.total=e.listRows=e.list=void 0;var a=n(i("5530")),o=n(i("d1c4")),s={list:"comment/list",listRows:"comment/listRows",total:"comment/total"};e.list=function(t,e,i){return o.default.get(s.list,(0,a.default)((0,a.default)({},e),{},{goodsId:t}),i)};e.listRows=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return o.default.get(s.listRows,{goodsId:t,limit:e})};e.total=function(t){return o.default.get(s.total,{goodsId:t})}},"3a84":function(t,e,i){var n=i("24fb");e=n(!1),e.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/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */\n/* 引入uView全局scss变量文件 */.avatar-image .image[data-v-306ccf1a]{display:block;width:%?60?%;height:%?60?%;border-radius:50%;border-style:solid}',""]),t.exports=e},"3d0c":function(t,e,i){"use strict";i.r(e);var n=i("cea1"),a=i("debdd");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("fd5e");var s=i("f0c5"),r=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"306ccf1a",null,!1,n["a"],void 0);e["default"]=r.exports},"3dd4":function(t,e,i){"use strict";i.r(e);var n=i("33a6"),a=i("64d9");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);var s=i("f0c5"),r=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"602107f8",null,!1,n["a"],void 0);e["default"]=r.exports},"3e54":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={uIcon:i("5f55").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"u-rate",attrs:{id:t.elId},on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.touchMove.apply(void 0,arguments)}}},t._l(t.count,(function(e,n){return i("v-uni-view",{key:n,staticClass:"u-star-wrap",class:[t.elClass]},[i("u-icon",{attrs:{name:t.activeIndex>n?t.elActiveIcon:t.inactiveIcon,color:t.activeIndex>n?t.elActiveColor:t.inactiveColor,"custom-style":{fontSize:t.size+"rpx",padding:"0 "+t.gutter/2+"rpx"},"custom-prefix":t.customPrefix,"show-decimal-icon":t.showDecimalIcon(n),percent:t.decimal,"inactive-color":t.inactiveColor},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.click(n+1,e)}}})],1)})),1)},o=[]},"44d5":function(t,e,i){var n=i("6a31");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("6a776ce8",n,!0,{sourceMap:!1,shadowMode:!1})},4649:function(t,e,i){"use strict";i.r(e);var n=i("9d08"),a=i("4e07");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("b7b5");var s=i("f0c5"),r=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"265ae891",null,!1,n["a"],void 0);e["default"]=r.exports},"478a":function(t,e,i){"use strict";i("7a82");var n=i("dbce").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a9e3"),i("d3b7");var a=n(i("e661")),o={props:{goodsId:{type:Number,default:null}},data:function(){return{isLoading:!0,showPopup:!1,list:[]}},created:function(){this.getServiceList()},methods:{getServiceList:function(){var t=this;t.isLoading=!0,a.list(t.goodsId).then((function(e){return t.list=e.data.list})).finally((function(){return t.isLoading=!1}))},handlePopup:function(){this.showPopup=!this.showPopup}}};e.default=o},4834:function(t,e,i){"use strict";var n=i("a70f1"),a=i.n(n);a.a},"4e07":function(t,e,i){"use strict";i.r(e);var n=i("8739"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},5165:function(t,e,i){var n=i("24fb");e=n(!1),e.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/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */\n/* 引入uView全局scss变量文件 */.goods-comment[data-v-265ae891]{padding:%?20?% %?30?%;background-color:#fff}.item-title[data-v-265ae891]{font-size:%?28?%;margin-bottom:%?25?%}.item-title .total[data-v-265ae891]{margin:0 %?4?%}.item-title .show-more[data-v-265ae891]{margin-right:%?8?%;font-size:%?24?%}.comment-item[data-v-265ae891]{padding:%?15?% %?5?%;margin-bottom:%?10?%;border-bottom:%?1?% solid #f5f5f5}.comment-item[data-v-265ae891]:last-child{margin-bottom:0;border-bottom:none}.comment-item .comment-item_row[data-v-265ae891]{margin-bottom:%?10?%}.user-info[data-v-265ae891]{margin-right:%?15?%}.user-info .user-avatar[data-v-265ae891]{width:%?50?%;height:%?50?%;border-radius:50%;margin-right:%?10?%}.user-info .user-name[data-v-265ae891]{font-size:%?24?%}.item-content[data-v-265ae891]{color:#333;margin:%?16?% 0;max-height:%?76?%;line-height:%?38?%}.comment-time[data-v-265ae891]{font-size:%?24?%;color:#999;margin-top:%?10?%}',""]),t.exports=e},"55ed":function(t,e,i){"use strict";i.r(e);var n=i("7ffc"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},5831:function(t,e,i){"use strict";i.r(e);var n=i("98b3"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"5b44":function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a9e3");var n={props:{url:{type:String,default:""},width:{type:Number,default:90},borderWidth:{type:Number,default:0},borderColor:{type:String,default:"#000000"}},data:function(){return{}},methods:{}};e.default=n},"64d9":function(t,e,i){"use strict";i.r(e);var n=i("93b7"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"6a31":function(t,e,i){var n=i("24fb");e=n(!1),e.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/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */\n/* 引入uView全局scss变量文件 */.service-wrapper[data-v-e3b430c2]{min-height:%?24?%;margin-bottom:%?-24?%}.service-simple[data-v-e3b430c2]{padding:%?24?% %?30?%;display:flex;align-items:center}.service-simple .s-list[data-v-e3b430c2]{flex:1;margin-left:%?-15?%}.service-simple .s-item[data-v-e3b430c2]{float:left;font-size:%?26?%;margin:%?8?% %?15?%}.service-simple .s-item .item-icon[data-v-e3b430c2]{color:#fa2209}.service-simple .s-item .item-val[data-v-e3b430c2]{margin-left:%?12?%}.service-content[data-v-e3b430c2]{padding:%?24?%}.service-content .title[data-v-e3b430c2]{font-size:%?30?%;margin-bottom:%?50?%;font-weight:700;text-align:center}.service-content .content-scroll[data-v-e3b430c2]{min-height:%?400?%;max-height:%?760?%}.service-content .s-list[data-v-e3b430c2]{padding:0 %?30?% 0 %?80?%}.service-content .s-item[data-v-e3b430c2]{position:relative;margin-bottom:%?60?%}.service-content .s-item .item-icon[data-v-e3b430c2]{position:absolute;top:%?6?%;left:%?-50?%;color:#fa2209}.service-content .s-item .item-val[data-v-e3b430c2]{font-size:%?28?%}.service-content .s-item .item-summary[data-v-e3b430c2]{font-size:%?26?%;margin-top:%?20?%;color:#6d6d6d}',""]),t.exports=e},"7f12":function(t,e,i){var n=i("24fb");e=n(!1),e.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/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */\n/* 引入uView全局scss变量文件 */.images-swiper[data-v-418023e0]{position:relative}.swiper-box[data-v-418023e0]{width:100%;height:100vw;max-width:480px;max-height:480px;margin:0 auto}.swiper-box .slide-video[data-v-418023e0]{width:100%;height:100%}.swiper-box .slide-video .video[data-v-418023e0]{display:block;width:100%;height:100%}.swiper-box .slide-image[data-v-418023e0]{position:relative;width:100%;height:100%}.swiper-box .slide-image .image[data-v-418023e0]{display:block;width:100%;height:100%}.swiper-count[data-v-418023e0]{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=e},"7ffc":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default,a=i("dbce").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("e25e"),i("d3b7"),i("3ca3"),i("ddb0");var o=a(i("5cd5")),s=a(i("5fe6")),r=n(i("32a8")),c=n(i("3dd4")),d=n(i("4649")),u=n(i("1ea2")),l={components:{SlideImage:r.default,SkuPopup:c.default,Comment:d.default,Service:u.default},data:function(){return{isLoading:!0,goodsId:null,goods:{},cartTotal:0,showSkuPopup:!1,skuMode:1}},onLoad:function(t){this.goodsId=parseInt(t.goodsId),this.onRefreshPage()},methods:{onRefreshPage:function(){var t=this;t.isLoading=!0,Promise.all([t.getGoodsDetail(),t.getCartTotal()]).finally((function(){return t.isLoading=!1}))},getGoodsDetail:function(){var t=this;return new Promise((function(e,i){o.detail(t.goodsId).then((function(i){t.goods=i.data.detail,e(i)})).catch(i)}))},getCartTotal:function(){var t=this;return new Promise((function(e,i){s.total().then((function(i){t.cartTotal=i.data.cartTotal,e(i)})).catch(i)}))},onAddCart:function(t){this.cartTotal=t},onShowSkuPopup:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.skuMode=t,this.showSkuPopup=!this.showSkuPopup},onTargetHome:function(t){this.$navTo("pages/index/index")},onTargetCart:function(){this.$navTo("pages/cart/index")}},onShareAppMessage:function(){var t=this.$getShareUrlParams({goodsId:this.goodsId});return{title:this.goods.goods_name,path:"/pages/goods/detail?".concat(t)}},onShareTimeline:function(){var t=this.$getShareUrlParams({goodsId:this.goodsId});return{title:this.goods.goods_name,path:"/pages/goods/detail?".concat(t)}}};e.default=l},8058:function(t,e,i){var n=i("00ca");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("e3824b3a",n,!0,{sourceMap:!1,shadowMode:!1})},8739:function(t,e,i){"use strict";i("7a82");var n=i("dbce").default,a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a9e3"),i("d3b7");var o=a(i("3d0c")),s=n(i("39f0")),r={components:{AvatarImage:o.default},props:{goodsId:{type:Number,default:null},limit:{type:Number,default:2}},data:function(){return{isLoading:!0,rates:{10:5,20:3,30:1},list:[],total:0}},created:function(){this.getCommentList()},methods:{getCommentList:function(){var t=this;t.isLoading=!0,s.listRows(t.goodsId,t.limit).then((function(e){t.list=e.data.list,t.total=e.data.total})).catch((function(t){return t})).finally((function(){return t.isLoading=!1}))},onTargetToComment:function(){this.$navTo("pages/comment/index",{goodsId:this.goodsId})}}};e.default=r},"8e96":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"images-swiper"},[i("v-uni-swiper",{staticClass:"swiper-box",attrs:{autoplay:t.autoplay,duration:t.duration,"indicator-dots":t.indicatorDots,interval:t.interval,circular:!0},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.setCurrent.apply(void 0,arguments)}}},[t.video?i("v-uni-swiper-item",[i("v-uni-view",{staticClass:"slide-video"},[i("v-uni-video",{staticClass:"video",attrs:{id:"myVideo",poster:t.videoCover.preview_url,src:t.video.external_url,controls:!0,"x5-playsinline":!0,playsinline:!0,"webkit-playsinline":!0,"webkit-playsinline":!0,"x5-video-player-type":"h5","x5-video-player-fullscreen":!0,"x5-video-orientation":"portrait","enable-progress-gesture":!1},on:{play:function(e){arguments[0]=e=t.$handleEvent(e),t.onVideoPlay.apply(void 0,arguments)}}})],1)],1):t._e(),t._l(t.images,(function(e,n){return i("v-uni-swiper-item",{key:n,on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onPreviewImages(n)}}},[i("v-uni-view",{staticClass:"slide-image"},[i("v-uni-image",{staticClass:"image",attrs:{draggable:!1,src:e.preview_url}})],1)],1)}))],2),i("v-uni-view",{staticClass:"swiper-count"},[i("v-uni-text",[t._v(t._s(t.currentIndex))]),i("v-uni-text",[t._v("/")]),i("v-uni-text",[t._v(t._s(t.images.length+(t.video?1:0)))])],1)],1)},a=[]},"93b7":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default,a=i("dbce").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a9e3"),i("d3b7"),i("159b"),i("14d9"),i("7db0");var o=i("e655"),s=a(i("5fe6")),r=n(i("0ee7")),c={components:{GoodsSkuPopup:r.default},model:{prop:"value",event:"input"},props:{value:{Type:Boolean,default:!1},skuMode:{type:Number,default:1},goods:{type:Object,default:{}}},data:function(){return{goodsInfo:{}}},created:function(){var t=this.goods;this.goodsInfo={_id:t.goods_id,name:t.goods_name,goods_thumb:t.goods_image,sku_list:this.getSkuList(),spec_list:this.getSpecList()}},methods:{onChangeValue:function(t){this.$emit("input",t)},getSkuList:function(){var t=this,e=t.goods,i=e.goods_name,n=e.goods_image,a=e.skuList,o=[];return a.forEach((function(e){o.push({_id:e.id,goods_sku_id:e.goods_sku_id,goods_id:e.goods_id,goods_name:i,image:e.image_url?e.image_url:n,price:100*e.goods_price,stock:e.stock_num,spec_value_ids:e.spec_value_ids,sku_name_arr:t.getSkuNameArr(e.spec_value_ids)})})),o},getSkuNameArr:function(t){var e=this,i=[];return t&&t.forEach((function(t,n){var a=e.getSpecValueName(t,n);i.push(a)})),i.length?i:["默认"]},getSpecValueName:function(t,e){var i=this.goods.specList,n=i[e].valueList.find((function(e){return e.spec_value_id==t}));return n.spec_value},getSpecList:function(){var t=this.goods.specList,e=[];return t.forEach((function(t){var i=[];t.valueList.forEach((function(t){i.push({name:t.spec_value})})),e.push({name:t.spec_name,list:i})})),e.length?e:[{name:"默认",list:[{name:"默认"}]}]},openSkuPopup:function(){},closeSkuPopup:function(){},addCart:function(t){var e=this,i=t.goods_id,n=t.goods_sku_id,a=t.buy_num;s.add(i,n,a).then((function(t){e.$toast(t.message),e.onChangeValue(!1);var i=t.data.cartTotal;(0,o.setCartTotalNum)(i),e.$emit("addCart",i)}))},buyNow:function(t){this.$navTo("pages/checkout/index",{mode:"buyNow",goodsId:t.goods_id,goodsSkuId:t.goods_sku_id,goodsNum:t.buy_num}),this.onChangeValue(!1)}}};e.default=c},"98b3":function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("d3b7"),i("159b"),i("14d9");var n={props:{video:{type:Object,default:function(){return null}},videoCover:{type:Object,default:function(){return null}},images:{type:Array,default:[]}},data:function(){return{indicatorDots:!0,autoplay:!0,interval:4e3,duration:800,currentIndex:1}},methods:{onVideoPlay:function(t){this.autoplay=!1},setCurrent:function(t){var e=t.detail;this.currentIndex=e.current+1},onPreviewImages:function(t){var e=[];this.images.forEach((function(t){e.push(t.preview_url)})),uni.previewImage({current:e[t],urls:e})}}};e.default=n},"99f5":function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a9e3"),i("e25e");var n={name:"u-rate",props:{value:{type:[Number,String],default:-1},count:{type:[Number,String],default:5},current:{type:[Number,String],default:0},disabled:{type:Boolean,default:!1},size:{type:[Number,String],default:32},inactiveColor:{type:String,default:"#b2b2b2"},activeColor:{type:String,default:"#FA3534"},gutter:{type:[Number,String],default:10},minCount:{type:[Number,String],default:0},allowHalf:{type:Boolean,default:!1},activeIcon:{type:String,default:"star-fill"},inactiveIcon:{type:String,default:"star"},customPrefix:{type:String,default:"uicon"},colors:{type:Array,default:function(){return[]}},icons:{type:Array,default:function(){return[]}}},data:function(){return{elId:this.$u.guid(),elClass:this.$u.guid(),starBoxLeft:0,activeIndex:-1!=this.value?this.value:this.current,starWidth:0,starWidthArr:[]}},watch:{current:function(t){this.activeIndex=t},value:function(t){this.activeIndex=t}},computed:{decimal:function(){return this.disabled?100*this.activeIndex%100:this.allowHalf?50:void 0},elActiveIcon:function(){var t=this.icons.length;if(t&&t<=this.count){var e=Math.round(this.activeIndex/Math.round(this.count/t));return e<1?this.icons[0]:e>t?this.icons[t-1]:this.icons[e-1]}return this.activeIcon},elActiveColor:function(){var t=this.colors.length;if(t&&t<=this.count){var e=Math.round(this.activeIndex/Math.round(this.count/t));return e<1?this.colors[0]:e>t?this.colors[t-1]:this.colors[e-1]}return this.activeColor}},methods:{getElRectById:function(){var t=this;this.$u.getRect("#"+this.elId).then((function(e){t.starBoxLeft=e.left}))},getElRectByClass:function(){var t=this;this.$u.getRect("."+this.elClass).then((function(e){t.starWidth=e.width;for(var i=0;ithis.count?this.count:n,this.activeIndex0?i("v-uni-text",{staticClass:"original-price"},[t._v("¥"+t._s(t.goods.line_price_min))]):t._e()],1),i("v-uni-view",{staticClass:"block-right dis-flex"},[i("v-uni-view",{staticClass:"goods-sales"},[i("v-uni-text",[t._v("已售"+t._s(t.goods.goods_sales)+"件")])],1)],1)],1),i("v-uni-view",{staticClass:"info-item info-item__name dis-flex flex-y-center"},[i("v-uni-view",{staticClass:"goods-name flex-box"},[i("v-uni-text",{staticClass:"twoline-hide"},[t._v(t._s(t.goods.goods_name))])],1)],1),t.goods.selling_point?i("v-uni-view",{staticClass:"info-item info-item_selling-point"},[i("v-uni-text",[t._v(t._s(t.goods.selling_point))])],1):t._e()],1),20==t.goods.spec_type?i("v-uni-view",{staticClass:"goods-choice m-top20 b-f",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onShowSkuPopup(1)}}},[i("v-uni-view",{staticClass:"spec-list"},[i("v-uni-view",{staticClass:"flex-box"},[i("v-uni-text",{staticClass:"col-8"},[t._v("选择:")]),t._l(t.goods.specList,(function(e,n){return i("v-uni-text",{key:n,staticClass:"spec-name"},[t._v(t._s(e.spec_name))])}))],2),i("v-uni-view",{staticClass:"f-26 col-9 t-r"},[i("v-uni-text",{staticClass:"iconfont icon-arrow-right"})],1)],1)],1):t._e(),t.isLoading?t._e():i("Service",{attrs:{"goods-id":t.goodsId}}),t.isLoading?t._e():i("SkuPopup",{attrs:{skuMode:t.skuMode,goods:t.goods},on:{addCart:function(e){arguments[0]=e=t.$handleEvent(e),t.onAddCart.apply(void 0,arguments)}},model:{value:t.showSkuPopup,callback:function(e){t.showSkuPopup=e},expression:"showSkuPopup"}}),t.isLoading?t._e():i("Comment",{attrs:{"goods-id":t.goodsId,limit:2}}),t.isLoading?t._e():i("v-uni-view",{staticClass:"goods-content m-top20"},[i("v-uni-view",{staticClass:"item-title b-f"},[i("v-uni-text",[t._v("商品描述")])],1),""!=t.goods.content?[i("v-uni-view",{staticClass:"goods-content__detail b-f"},[i("mp-html",{attrs:{content:t.goods.content}})],1)]:i("empty",{attrs:{tips:"亲,暂无商品描述"}})],2),i("v-uni-view",{staticClass:"footer-fixed"},[i("v-uni-view",{staticClass:"footer-container"},[i("v-uni-view",{staticClass:"foo-item-fast"},[i("v-uni-view",{staticClass:"fast-item fast-item--home",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onTargetHome.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"fast-icon"},[i("v-uni-text",{staticClass:"iconfont icon-shouye"})],1),i("v-uni-view",{staticClass:"fast-text"},[i("v-uni-text",[t._v("首页")])],1)],1),i("v-uni-view",{staticClass:"fast-item fast-item--cart",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onTargetCart.apply(void 0,arguments)}}},[t.cartTotal>0?i("v-uni-view",{staticClass:"fast-badge fast-badge--fixed"},[t._v(t._s(t.cartTotal>99?"99+":t.cartTotal))]):t._e(),i("v-uni-view",{staticClass:"fast-icon"},[i("v-uni-text",{staticClass:"iconfont icon-gouwuche"})],1),i("v-uni-view",{staticClass:"fast-text"},[i("v-uni-text",[t._v("购物车")])],1)],1)],1),i("v-uni-view",{staticClass:"foo-item-btn"},[i("v-uni-view",{staticClass:"btn-wrapper"},[i("v-uni-view",{staticClass:"btn-item btn-item-deputy",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onShowSkuPopup(2)}}},[i("v-uni-text",[t._v("加入购物车")])],1),i("v-uni-view",{staticClass:"btn-item btn-item-main",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onShowSkuPopup(3)}}},[i("v-uni-text",[t._v("立即购买")])],1)],1)],1)],1)],1)],1)},o=[]},cea1:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"avatar-image"},[e("v-uni-image",{staticClass:"image",style:{width:this.width+"rpx",height:this.width+"rpx",borderWidth:this.borderWidth+"rpx",borderColor:this.borderColor},attrs:{src:this.url?this.url:"/static/default-avatar.png"}})],1)},a=[]},debdd:function(t,e,i){"use strict";i.r(e);var n=i("5b44"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},e661:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.list=function(t){return a.default.get(o.list,{goodsId:t})};var a=n(i("d1c4")),o={list:"goods.service/list"}},ea16:function(t,e,i){"use strict";i.r(e);var n=i("ce98"),a=i("55ed");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("a70f"),i("4834");var s=i("f0c5"),r=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"25f5b6ae",null,!1,n["a"],void 0);e["default"]=r.exports},f116:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={uPopup:i("e83d").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.list.length?i("v-uni-view",{staticClass:"service-wrapper"},[i("v-uni-view",{staticClass:"service-simple",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handlePopup.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"s-list"},t._l(t.list,(function(e,n){return i("v-uni-view",{key:n,staticClass:"s-item"},[i("v-uni-text",{staticClass:"item-icon iconfont icon-fuwu"}),i("v-uni-text",{staticClass:"item-val"},[t._v(t._s(e.name))])],1)})),1),i("v-uni-view",{staticClass:"s-arrow f-26 col-9 t-r"},[i("v-uni-text",{staticClass:"iconfont icon-arrow-right"})],1)],1),i("u-popup",{attrs:{mode:"bottom",closeable:!0,"border-radius":26},model:{value:t.showPopup,callback:function(e){t.showPopup=e},expression:"showPopup"}},[i("v-uni-view",{staticClass:"service-content"},[i("v-uni-view",{staticClass:"title"},[t._v("服务")]),i("v-uni-scroll-view",{staticClass:"content-scroll",attrs:{"scroll-y":!0}},[i("v-uni-view",{staticClass:"s-list clearfix"},t._l(t.list,(function(e,n){return i("v-uni-view",{key:n,staticClass:"s-item"},[i("v-uni-text",{staticClass:"item-icon iconfont icon-fuwu"}),i("v-uni-view",{staticClass:"item-val"},[t._v(t._s(e.name))]),i("v-uni-view",{staticClass:"item-summary"},[t._v(t._s(e.summary))])],1)})),1)],1)],1)],1)],1):t._e()},o=[]},f2d4:function(t,e,i){var n=i("fb36");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("2f5b5e9f",n,!0,{sourceMap:!1,shadowMode:!1})},f69b:function(t,e,i){var n=i("7f12");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("1dae6c86",n,!0,{sourceMap:!1,shadowMode:!1})},fb36:function(t,e,i){var n=i("24fb");e=n(!1),e.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/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */\n/* 引入uView全局scss变量文件 */.u-rate[data-v-671bcb72]{display:-webkit-inline-flex;display:inline-flex;align-items:center;margin:0;padding:0}.u-icon[data-v-671bcb72]{box-sizing:border-box}',""]),t.exports=e},fd5e:function(t,e,i){"use strict";var n=i("ce2b"),a=i.n(n);a.a}}]);