pages-goods-detail.d4484f6a.js 38 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-goods-detail"],{"059a":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={mpHtml:i("b3c7").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:!t.isLoading,expression:"!isLoading"}],staticClass:"container"},[t.isLoading?t._e():i("SlideImage",{attrs:{video:t.goods.video,videoCover:t.goods.videoCover,images:t.goods.goods_images}}),t.isLoading?t._e():i("v-uni-view",{staticClass:"goods-info m-top20"},[i("v-uni-view",{staticClass:"info-item info-item__top dis-flex flex-x-between flex-y-end"},[i("v-uni-view",{staticClass:"block-left dis-flex flex-y-center"},[i("v-uni-text",{staticClass:"floor-price__samll"},[t._v("¥")]),i("v-uni-text",{staticClass:"floor-price"},[t._v(t._s(t.goods.goods_price_min))]),t.goods.is_user_grade?i("v-uni-view",{staticClass:"user-grade"},[i("v-uni-text",[t._v("会员价")])],1):t._e(),t.goods.line_price_min>0?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=[]},"0a2d":function(t,e,i){"use strict";i("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;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},"0dc5":function(t,e,i){"use strict";i("a9e3"),i("e25e"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;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;i<t.count;i++)t.starWidthArr[i]=(i+1)*t.starWidth}))},touchMove:function(t){if(!this.disabled&&t.changedTouches[0]){var e=t.changedTouches[0].pageX,i=e-this.starBoxLeft;i<=0&&(this.activeIndex=0);var n=Math.ceil(i/this.starWidth);this.activeIndex=n>this.count?this.count:n,this.activeIndex<this.minCount&&(this.activeIndex=this.minCount),this.emitEvent()}},click:function(t,e){this.disabled||(this.allowHalf,1==t?1==this.activeIndex?this.activeIndex=0:this.activeIndex=1:this.activeIndex=t,this.activeIndex<this.minCount&&(this.activeIndex=this.minCount),this.emitEvent())},emitEvent:function(){this.$emit("change",this.activeIndex),-1!=this.value&&this.$emit("input",this.activeIndex)},showDecimalIcon:function(t){return this.disabled&&parseInt(this.activeIndex)===t}},mounted:function(){this.getElRectById(),this.getElRectByClass()}};e.default=n},1181:function(t,e,i){"use strict";var n=i("5f2e"),a=i.n(n);a.a},"16f5":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("43de").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=[]},2280:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */\r\n/* 引入uView全局scss变量文件 */.images-swiper[data-v-67e22068]{position:relative}.swiper-box[data-v-67e22068]{width:100%;height:100vw;max-width:480px;max-height:480px;margin:0 auto}.swiper-box .slide-video[data-v-67e22068]{width:100%;height:100%}.swiper-box .slide-video .video[data-v-67e22068]{display:block;width:100%;height:100%}.swiper-box .slide-image[data-v-67e22068]{position:relative;width:100%;height:100%}.swiper-box .slide-image .image[data-v-67e22068]{display:block;width:100%;height:100%}.swiper-count[data-v-67e22068]{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},"32ac":function(t,e,i){"use strict";var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.total=e.listRows=e.list=void 0;var a=n(i("5530")),o=n(i("c05a")),s={list:"comment/list",listRows:"comment/listRows",total:"comment/total"},r=function(t,e,i){return o.default.get(s.list,(0,a.default)((0,a.default)({},e),{},{goodsId:t}),i)};e.list=r;var c=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.listRows=c;var d=function(t){return o.default.get(s.total,{goodsId:t})};e.total=d},"34d3":function(t,e,i){var n=i("6543");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("6cec9ea6",n,!0,{sourceMap:!1,shadowMode:!1})},3987:function(t,e,i){"use strict";var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.list=s;var a=n(i("c05a")),o={list:"goods.service/list"};function s(t){return a.default.get(o.list,{goodsId:t})}},"3af9":function(t,e,i){"use strict";i.r(e);var n=i("5eed"),a=i("a9d6");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);var s,r=i("f0c5"),c=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"602107f8",null,!1,n["a"],s);e["default"]=c.exports},"3cf9":function(t,e,i){"use strict";i.r(e);var n=i("77b4"),a=i("bfdc");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("7843");var s,r=i("f0c5"),c=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"0930afb5",null,!1,n["a"],s);e["default"]=c.exports},4094:function(t,e,i){"use strict";i.r(e);var n=i("41d0"),a=i("fcb6");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("a3b1");var s,r=i("f0c5"),c=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"33483a45",null,!1,n["a"],s);e["default"]=c.exports},"41d0":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),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",{staticClass:"avatar-image"},[i("v-uni-image",{staticClass:"image",style:{width:t.width+"rpx",height:t.width+"rpx",borderWidth:t.borderWidth+"rpx",borderColor:t.borderColor},attrs:{src:t.url?t.url:"/static/default-avatar.png"}})],1)},o=[]},"4c10":function(t,e,i){var n=i("52a0");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("6b082238",n,!0,{sourceMap:!1,shadowMode:!1})},"52a0":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */\r\n/* 引入uView全局scss变量文件 */.u-rate[data-v-0bf62930]{display:-webkit-inline-flex;display:inline-flex;align-items:center;margin:0;padding:0}.u-icon[data-v-0bf62930]{box-sizing:border-box}',""]),t.exports=e},"52f0":function(t,e,i){"use strict";var n=i("d2c5"),a=i.n(n);a.a},5482:function(t,e,i){"use strict";var n=i("4ea4"),a=i("dbce");i("7db0"),i("4160"),i("a9e3"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i("c824"),s=a(i("92bb")),r=n(i("e1bf")),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,e=t.goods;t.goodsInfo={_id:e.goods_id,name:e.goods_name,goods_thumb:e.goods_image,sku_list:t.getSkuList(),spec_list:t.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=["默认"],n=[];return t&&t.forEach((function(t,i){var a=e.getSpecValueName(t,i);n.push(a)})),n.length?n:i},getSpecValueName:function(t,e){var i=this,n=i.goods.specList,a=n[e].valueList.find((function(e){return e.spec_value_id==t}));return a.spec_value},getSpecList:function(){var t=this.goods.specList,e=[{name:"默认",list:[{name:"默认"}]}],i=[];return t.forEach((function(t){var e=[];t.valueList.forEach((function(t){e.push({name:t.spec_value})})),i.push({name:t.spec_name,list:e})})),i.length?i:e},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},5851:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,"uni-page-body[data-v-9f6def34]{background:#fafafa}body.?%PAGE?%[data-v-9f6def34]{background:#fafafa}",""]),t.exports=e},"5b21":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */\r\n/* 引入uView全局scss变量文件 */.container[data-v-9f6def34]{padding-bottom:calc(constant(safe-area-inset-bottom) + %?106?% + %?6?%);padding-bottom:calc(env(safe-area-inset-bottom) + %?106?% + %?6?%)}.goods-info[data-v-9f6def34]{background:#fff;padding:%?25?% %?30?%}.info-item__top[data-v-9f6def34]{min-height:%?40?%;margin-bottom:%?20?%;line-height:1}.floor-price__samll[data-v-9f6def34]{font-size:%?26?%;line-height:1;color:#fa2209;margin-bottom:%?-10?%}.floor-price[data-v-9f6def34]{color:#fa2209;margin-right:%?15?%;font-size:%?42?%}.original-price[data-v-9f6def34]{font-size:%?26?%;text-decoration:line-through;color:#959595;margin-right:%?15?%;margin-bottom:%?-6?%}.user-grade[data-v-9f6def34]{background:#3c3c3c;border-radius:%?6?%;padding:%?8?% %?14?%;margin-right:%?15?%;font-size:%?24?%;color:#eee0c3}.goods-sales[data-v-9f6def34]{font-size:%?24?%;color:#959595}.info-item__name .goods-name[data-v-9f6def34]{font-size:%?30?%}\r\n/* 商品分享 */.goods-share__line[data-v-9f6def34]{border-left:%?1?% solid #f4f4f4;height:%?60?%;margin:0 %?30?%}.goods-share .share-btn[data-v-9f6def34]{line-height:normal;padding:0;background:none;border-radius:0;box-shadow:none;font-size:8pt;border:none;color:#191919}.goods-share .share-btn[data-v-9f6def34]::after{border:none}.goods-share .share__icon[data-v-9f6def34]{font-size:%?40?%;margin-bottom:%?5?%}.info-item_selling-point[data-v-9f6def34]{margin-top:%?8?%;font-size:%?24?%;color:grey}.goods-choice[data-v-9f6def34]{padding:%?26?% %?30?%;font-size:%?28?%}.goods-choice .spec-list[data-v-9f6def34]{display:flex;align-items:center}.goods-choice .spec-list .spec-name[data-v-9f6def34]{margin-right:%?10?%}.goods-content .item-title[data-v-9f6def34]{padding:%?26?% %?30?%;font-size:%?28?%}.footer-fixed[data-v-9f6def34]{position:fixed;bottom:var(--window-bottom);left:0;right:0;display:flex;z-index:11;box-shadow:0 %?-4?% %?40?% 0 hsla(0,0%,59.2%,.24);background:#fff;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.footer-container[data-v-9f6def34]{width:100%;display:flex;height:%?106?%}.foo-item-fast[data-v-9f6def34]{box-sizing:border-box;min-width:%?214?%;line-height:1;display:flex;align-items:center;justify-content:space-evenly;margin-right:%?12?%}.foo-item-fast .fast-item[data-v-9f6def34]{position:relative;padding:%?4?% 0;line-height:1;text-align:center;width:%?84?%}.foo-item-fast .fast-item--cart[data-v-9f6def34]{margin-left:%?6?%}.foo-item-fast .fast-item--cart .fast-icon[data-v-9f6def34]{margin-left:%?-12?%}.foo-item-fast .fast-item .fast-badge[data-v-9f6def34]{display:inline-block;box-sizing:border-box;min-width:16px;padding:0 3px;color:#fff;font-weight:500;font-size:12px;font-family:-apple-system-font,Helvetica Neue,Arial,sans-serif;line-height:1.2;text-align:center;background-color:#ee0a24;border:1px solid #fff;border-radius:999px}.foo-item-fast .fast-item .fast-badge--fixed[data-v-9f6def34]{position:absolute;top:0;right:0;-webkit-transform-origin:100%;transform-origin:100%}.foo-item-fast .fast-item .fast-icon[data-v-9f6def34]{font-size:%?44?%;margin-bottom:%?8?%}.foo-item-fast .fast-item .fast-text[data-v-9f6def34]{font-size:%?22?%}.foo-item-btn[data-v-9f6def34]{flex:1}.foo-item-btn .btn-wrapper[data-v-9f6def34]{height:100%;display:flex;align-items:center}.foo-item-btn .btn-item[data-v-9f6def34]{flex:1;font-size:%?28?%;height:%?72?%;margin-right:%?16?%;color:#fff;border-radius:%?50?%;display:flex;justify-content:center;align-items:center}.foo-item-btn .btn-item-main[data-v-9f6def34]{background:linear-gradient(90deg,#f9211c,#ff6335)}.foo-item-btn .btn-item-deputy[data-v-9f6def34]{background:linear-gradient(90deg,#ffa600,#fb0)}',""]),t.exports=e},"5eed":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var a=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)}}})},o=[]},"5f2e":function(t,e,i){var n=i("2280");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("80c4a77a",n,!0,{sourceMap:!1,shadowMode:!1})},6543:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */\r\n/* 引入uView全局scss变量文件 */.goods-comment[data-v-0930afb5]{padding:%?20?% %?30?%;background-color:#fff}.item-title[data-v-0930afb5]{font-size:%?28?%;margin-bottom:%?25?%}.item-title .total[data-v-0930afb5]{margin:0 %?4?%}.item-title .show-more[data-v-0930afb5]{margin-right:%?8?%;font-size:%?24?%}.comment-item[data-v-0930afb5]{padding:%?15?% %?5?%;margin-bottom:%?10?%;border-bottom:%?1?% solid #f5f5f5}.comment-item[data-v-0930afb5]:last-child{margin-bottom:0;border-bottom:none}.comment-item .comment-item_row[data-v-0930afb5]{margin-bottom:%?10?%}.user-info[data-v-0930afb5]{margin-right:%?15?%}.user-info .user-avatar[data-v-0930afb5]{width:%?50?%;height:%?50?%;border-radius:50%;margin-right:%?10?%}.user-info .user-name[data-v-0930afb5]{font-size:%?24?%}.item-content[data-v-0930afb5]{color:#333;margin:%?16?% 0;max-height:%?76?%;line-height:%?38?%}.comment-time[data-v-0930afb5]{font-size:%?24?%;color:#999;margin-top:%?10?%}',""]),t.exports=e},"6cbd":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),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",{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)},o=[]},"6d8e":function(t,e,i){"use strict";var n=i("d510"),a=i.n(n);a.a},"6d9a":function(t,e,i){"use strict";i.r(e);var n=i("059a"),a=i("c9e9");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("52f0"),i("6d8e");var s,r=i("f0c5"),c=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"9f6def34",null,!1,n["a"],s);e["default"]=c.exports},7206:function(t,e,i){"use strict";var n=i("4ea4"),a=i("dbce");i("d3b7"),i("e25e"),i("3ca3"),i("ddb0"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(i("af1c")),s=a(i("92bb")),r=n(i("f396")),c=n(i("3af9")),d=n(i("3cf9")),u=n(i("9aef")),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,e=t.$getShareUrlParams({goodsId:t.goodsId});return{title:t.goods.goods_name,path:"/pages/goods/detail?".concat(e)}},onShareTimeline:function(){var t=this,e=t.$getShareUrlParams({goodsId:t.goodsId});return{title:t.goods.goods_name,path:"/pages/goods/detail?".concat(e)}}};e.default=l},"77b4":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={uRate:i("bc16").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return!t.isLoading&&t.list.length?i("v-uni-view",{staticClass:"goods-comment m-top20"},[i("v-uni-view",{staticClass:"item-title dis-flex"},[i("v-uni-view",{staticClass:"block-left flex-box"},[t._v("商品评价 ("),i("v-uni-text",{staticClass:"total"},[t._v(t._s(t.total)+"条")]),t._v(")")],1),i("v-uni-view",{staticClass:"block-right"},[i("v-uni-text",{staticClass:"show-more col-9",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onTargetToComment.apply(void 0,arguments)}}},[t._v("查看更多")]),i("v-uni-text",{staticClass:"iconfont icon-arrow-right"})],1)],1),i("v-uni-view",{staticClass:"comment-list"},t._l(t.list,(function(e,n){return i("v-uni-view",{key:n,staticClass:"comment-item"},[i("v-uni-view",{staticClass:"comment-item_row dis-flex flex-y-center"},[i("v-uni-view",{staticClass:"user-info dis-flex flex-y-center"},[i("avatar-image",{staticClass:"user-avatar",attrs:{url:e.user.avatar_url,width:50}}),i("v-uni-text",{staticClass:"user-name"},[t._v(t._s(e.user.nick_name))])],1),i("v-uni-view",{staticClass:"star-rating"},[i("u-rate",{attrs:{"active-color":"#f4a213",current:t.rates[e.score],disabled:!0}})],1)],1),i("v-uni-view",{staticClass:"item-content m-top20"},[i("v-uni-text",{staticClass:"f-26 twoline-hide"},[t._v(t._s(e.content))])],1),i("v-uni-view",{staticClass:"comment-time"},[t._v(t._s(e.create_time))])],1)})),1)],1):t._e()},o=[]},7843:function(t,e,i){"use strict";var n=i("34d3"),a=i.n(n);a.a},"7b88":function(t,e,i){var n=i("be7d");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("482f864e",n,!0,{sourceMap:!1,shadowMode:!1})},"880e":function(t,e,i){"use strict";i.r(e);var n=i("93d8"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"8b4f":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("f9d0").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=[]},"8ee1":function(t,e,i){"use strict";var n=i("4c10"),a=i.n(n);a.a},"93d8":function(t,e,i){"use strict";i("4160"),i("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;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,i=this;i.currentIndex=e.current+1},onPreviewImages:function(t){var e=this,i=[];e.images.forEach((function(t){i.push(t.preview_url)})),uni.previewImage({current:i[t],urls:i})}}};e.default=n},"9aef":function(t,e,i){"use strict";i.r(e);var n=i("16f5"),a=i("eb51");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("be3e");var s,r=i("f0c5"),c=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"625a93f0",null,!1,n["a"],s);e["default"]=c.exports},a30e:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */\r\n/* 引入uView全局scss变量文件 */.service-wrapper[data-v-625a93f0]{min-height:%?24?%;margin-bottom:%?-24?%}.service-simple[data-v-625a93f0]{padding:%?24?% %?30?%;display:flex;align-items:center}.service-simple .s-list[data-v-625a93f0]{flex:1;margin-left:%?-15?%}.service-simple .s-item[data-v-625a93f0]{float:left;font-size:%?26?%;margin:%?8?% %?15?%}.service-simple .s-item .item-icon[data-v-625a93f0]{color:#fa2209}.service-simple .s-item .item-val[data-v-625a93f0]{margin-left:%?12?%}.service-content[data-v-625a93f0]{padding:%?24?%}.service-content .title[data-v-625a93f0]{font-size:%?30?%;margin-bottom:%?50?%;font-weight:700;text-align:center}.service-content .content-scroll[data-v-625a93f0]{min-height:%?400?%;max-height:%?760?%}.service-content .s-list[data-v-625a93f0]{padding:0 %?30?% 0 %?80?%}.service-content .s-item[data-v-625a93f0]{position:relative;margin-bottom:%?60?%}.service-content .s-item .item-icon[data-v-625a93f0]{position:absolute;top:%?6?%;left:%?-50?%;color:#fa2209}.service-content .s-item .item-val[data-v-625a93f0]{font-size:%?28?%}.service-content .s-item .item-summary[data-v-625a93f0]{font-size:%?26?%;margin-top:%?20?%;color:#6d6d6d}',""]),t.exports=e},a3b1:function(t,e,i){"use strict";var n=i("7b88"),a=i.n(n);a.a},a84d:function(t,e,i){"use strict";i.r(e);var n=i("0dc5"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},a9d6:function(t,e,i){"use strict";i.r(e);var n=i("5482"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},ba01:function(t,e,i){"use strict";var n=i("dbce"),a=i("4ea4");i("a9e3"),i("d3b7"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(i("4094")),s=n(i("32ac")),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(){var t=this;t.$navTo("pages/comment/index",{goodsId:t.goodsId})}}};e.default=r},bc16:function(t,e,i){"use strict";i.r(e);var n=i("8b4f"),a=i("a84d");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("8ee1");var s,r=i("f0c5"),c=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"0bf62930",null,!1,n["a"],s);e["default"]=c.exports},be3e:function(t,e,i){"use strict";var n=i("fd97"),a=i.n(n);a.a},be7d:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */\r\n/* 引入uView全局scss变量文件 */.avatar-image .image[data-v-33483a45]{display:block;width:%?60?%;height:%?60?%;border-radius:50%;border-style:solid}',""]),t.exports=e},bfdc:function(t,e,i){"use strict";i.r(e);var n=i("ba01"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},c9e9:function(t,e,i){"use strict";i.r(e);var n=i("7206"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},d2c5:function(t,e,i){var n=i("5851");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("22e1bab6",n,!0,{sourceMap:!1,shadowMode:!1})},d344:function(t,e,i){"use strict";var n=i("dbce");i("a9e3"),i("d3b7"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("3987")),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},d510:function(t,e,i){var n=i("5b21");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("6f60a7ec",n,!0,{sourceMap:!1,shadowMode:!1})},eb51:function(t,e,i){"use strict";i.r(e);var n=i("d344"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},f396:function(t,e,i){"use strict";i.r(e);var n=i("6cbd"),a=i("880e");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("1181");var s,r=i("f0c5"),c=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"67e22068",null,!1,n["a"],s);e["default"]=c.exports},fcb6:function(t,e,i){"use strict";i.r(e);var n=i("0a2d"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},fd97:function(t,e,i){var n=i("a30e");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("47c28a7b",n,!0,{sourceMap:!1,shadowMode:!1})}}]);