(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-category-index~pages-goods-detail"],{2909:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,o.default)(t)||(0,a.default)(t)||(0,n.default)(t)||(0,r.default)()};var o=s(i("6005")),a=s(i("db90")),n=s(i("06c5")),r=s(i("3427"));function s(t){return t&&t.__esModule?t:{default:t}}},3427:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},i("d9e2"),i("d401")},4211:function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"number-box"},[i("v-uni-view",{staticClass:"u-icon-minus",class:{"u-icon-disabled":t.disabled||t.inputVal<=t.min},style:{background:t.bgColor,height:t.inputHeight+"rpx",color:t.color,fontSize:t.size+"rpx",minHeight:"1.4em"},on:{touchstart:function(e){e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.btnTouchStart("minus")},touchend:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.clearTimer.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"num-btn",style:"font-size:"+(Number(t.size)+10)+"rpx"},[t._v("-")])],1),i("v-uni-input",{staticClass:"u-number-input",class:{"u-input-disabled":t.disabled},style:{color:t.color,fontSize:t.size+"rpx",background:t.bgColor,height:t.inputHeight+"rpx",width:t.inputWidth+"rpx"},attrs:{disabled:t.disabledInput||t.disabled,"cursor-spacing":t.getCursorSpacing,type:"number"},on:{blur:function(e){arguments[0]=e=t.$handleEvent(e),t.onBlur.apply(void 0,arguments)}},model:{value:t.inputVal,callback:function(e){t.inputVal=e},expression:"inputVal"}}),i("v-uni-view",{staticClass:"u-icon-plus",class:{"u-icon-disabled":t.disabled||t.inputVal>=t.max},style:{background:t.bgColor,height:t.inputHeight+"rpx",color:t.color,fontSize:t.size+"rpx",minHeight:"1.4em"},on:{touchstart:function(e){e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.btnTouchStart("plus")},touchend:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.clearTimer.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"num-btn",style:"font-size:"+(Number(t.size)+10)+"rpx"},[t._v("+")])],1)],1)},a=[]},4868:function(t,e,i){"use strict";i.r(e);var o=i("6fff"),a=i("ccc1");for(var n in a)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(n);i("7757");var r=i("f0c5"),s=Object(r["a"])(a["default"],o["b"],o["c"],!1,null,"60b50c93",null,!1,o["a"],void 0);e["default"]=s.exports},6005:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(Array.isArray(t))return(0,o.default)(t)};var o=function(t){return t&&t.__esModule?t:{default:t}}(i("6b75"))},"63ef":function(t,e,i){"use strict";i("7a82");var o=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.update=e.total=e.list=e.clear=e.add=void 0;var a=o(i("0227")),n={list:"cart/list",total:"cart/total",add:"cart/add",update:"cart/update",clear:"cart/clear"};e.list=function(){return a.default.get(n.list,{},{load:!1})};e.total=function(){return a.default.get(n.total,{},{load:!1})};e.add=function(t,e,i){return a.default.post(n.add,{goodsId:t,goodsSkuId:e,goodsNum:i})};e.update=function(t,e,i){return a.default.post(n.update,{goodsId:t,goodsSkuId:e,goodsNum:i},{isPrompt:!1})};e.clear=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return a.default.post(n.clear,{cartIds:t})}},"6fff":function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"goods-sku-popup",class:t.getValue()&&t.complete?"show":"none",attrs:{catchtouchmove:"true"},on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.moveHandle.apply(void 0,arguments)},click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.stop.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"mask",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close("mask")}}}),i("v-uni-view",{staticClass:"layer attr-content",style:{borderRadius:t.borderRadius+"rpx "+t.borderRadius+"rpx 0 0"}},[i("v-uni-view",{staticClass:"specification-wrapper"},[i("v-uni-scroll-view",{staticClass:"specification-wrapper-content",attrs:{"scroll-y":"true"}},[i("v-uni-view",{staticClass:"specification-header"},[i("v-uni-view",{staticClass:"specification-left"},[i("v-uni-image",{staticClass:"product-img",style:{backgroundColor:t.goodsThumbBackgroundColor},attrs:{src:t.selectShop.image?t.selectShop.image:t.goodsInfo[t.goodsThumbName],mode:"aspectFill"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.previewImage.apply(void 0,arguments)}}})],1),i("v-uni-view",{staticClass:"specification-right"},[i("v-uni-view",{staticClass:"price-content",style:{color:t.themeColorFn("priceColor")}},[i("v-uni-text",{staticClass:"sign"},[t._v("¥")]),i("v-uni-text",{staticClass:"price",class:t.priceCom.length>16?"price2":""},[t._v(t._s(t.priceCom))])],1),t.hideStock?i("v-uni-view",{staticClass:"inventory"}):i("v-uni-view",{staticClass:"inventory"},[t._v(t._s(t.stockText)+":"+t._s(t.stockCom))]),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t.isManyCom,expression:"isManyCom"}],staticClass:"choose"},[t.selectArr.every((function(t){return""==t}))?t._e():i("v-uni-text",[t._v("已选:"+t._s(t.selectArr.join(" ")))])],1)],1)],1),i("v-uni-view",{staticClass:"specification-content"},[t._l(t.goodsInfo[t.specListName],(function(e,o){return i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t.isManyCom,expression:"isManyCom"}],key:o,staticClass:"specification-item"},[i("v-uni-view",{staticClass:"item-title"},[t._v(t._s(e.name))]),i("v-uni-view",{staticClass:"item-wrapper"},t._l(e.list,(function(e,a){return i("v-uni-view",{key:a,staticClass:"item-content",class:[e.ishow?"":"noactived",t.subIndex[o]==a?"actived":""],style:[e.ishow?"":t.themeColorFn("disableStyle"),e.ishow?t.themeColorFn("btnStyle"):"",t.subIndex[o]==a?t.themeColorFn("activedStyle"):""],on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.skuClick(e,o,a)}}},[t._v(t._s(e.name))])})),1)],1)})),i("v-uni-view",{staticClass:"number-box-view"},[i("v-uni-view",{staticStyle:{flex:"1"}},[t._v("数量")]),i("v-uni-view",{staticStyle:{flex:"4","text-align":"right"}},[i("number-box",{attrs:{min:t.minBuyNum||1,max:t.maxBuyNumCom,step:t.stepBuyNum||1,"step-strictly":t.stepStrictly,"positive-integer":!0},model:{value:t.selectNum,callback:function(e){t.selectNum=e},expression:"selectNum"}})],1)],1)],2)],1),0!=t.showClose?i("v-uni-view",{staticClass:"close",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close("close")}}},[i("v-uni-image",{staticClass:"close-item",attrs:{src:t.closeImage}})],1):t._e()],1),t.outFoStock||4==t.mode?i("v-uni-view",{staticClass:"btn-wrapper"},[i("v-uni-view",{staticClass:"sure",staticStyle:{color:"#ffffff","background-color":"#cccccc"}},[t._v(t._s(t.noStockText))])],1):1==t.mode?i("v-uni-view",{staticClass:"btn-wrapper"},[i("v-uni-view",{staticClass:"sure add-cart",staticStyle:{"border-radius":"38rpx 0rpx 0rpx 38rpx"},style:{color:t.themeColorFn("addCartColor"),backgroundColor:t.themeColorFn("addCartBackgroundColor")},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.addCart.apply(void 0,arguments)}}},[t._v(t._s(t.addCartText))]),i("v-uni-view",{staticClass:"sure",staticStyle:{"border-radius":"0rpx 38rpx 38rpx 0rpx"},style:{color:t.themeColorFn("buyNowColor"),backgroundColor:t.themeColorFn("buyNowBackgroundColor")},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.buyNow.apply(void 0,arguments)}}},[t._v(t._s(t.buyNowText))])],1):2==t.mode?i("v-uni-view",{staticClass:"btn-wrapper"},[i("v-uni-view",{staticClass:"sure add-cart",style:{color:t.themeColorFn("addCartColor"),backgroundColor:t.themeColorFn("addCartBackgroundColor")},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.addCart.apply(void 0,arguments)}}},[t._v(t._s(t.addCartText))])],1):3==t.mode?i("v-uni-view",{staticClass:"btn-wrapper"},[i("v-uni-view",{staticClass:"sure",style:{color:t.themeColorFn("buyNowColor"),backgroundColor:t.themeColorFn("buyNowBackgroundColor")},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.buyNow.apply(void 0,arguments)}}},[t._v(t._s(t.buyNowText))])],1):t._e()],1)],1)},a=[]},"703c":function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a9e3"),i("c975"),i("d401"),i("d3b7"),i("25f0"),i("ac1f"),i("00b4");var o={name:"NumberBox",emits:["update:modelValue","input","change","blur","plus","minus"],props:{value:{type:Number,default:1},modelValue:{type:Number,default:1},bgColor:{type:String,default:"#F2F3F5"},min:{type:Number,default:0},max:{type:Number,default:99999},step:{type:Number,default:1},stepFirst:{type:Number,default:0},stepStrictly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:[Number,String],default:26},color:{type:String,default:"#323233"},inputWidth:{type:[Number,String],default:80},inputHeight:{type:[Number,String],default:50},index:{type:[Number,String],default:""},disabledInput:{type:Boolean,default:!1},cursorSpacing:{type:[Number,String],default:100},longPress:{type:Boolean,default:!0},pressTime:{type:[Number,String],default:250},positiveInteger:{type:Boolean,default:!0}},watch:{value:function(t,e){this.changeFromInner||(this.inputVal=t,this.$nextTick((function(){this.changeFromInner=!1})))},modelValue:function(t,e){this.changeFromInner||(this.inputVal=t,this.$nextTick((function(){this.changeFromInner=!1})))},inputVal:function(t,e){var i=this;if(""!=t){var o=0,a=this.isNumber(t);o=a&&t>=this.min&&t<=this.max?t:e,this.positiveInteger&&(t<0||-1!==String(t).indexOf("."))&&(o=e,this.$nextTick((function(){i.inputVal=e}))),this.handleChange(o,"change")}},min:function(t){void 0!==t&&""!=t&&this.getValue()t&&this.$emit("input",t)}},data:function(){return{inputVal:1,timer:null,changeFromInner:!1,innerChangeTimer:null}},created:function(){this.inputVal=Number(this.getValue())},computed:{getCursorSpacing:function(){return Number(uni.upx2px(this.cursorSpacing))}},methods:{getValue:function(){return this.value},btnTouchStart:function(t){var e=this;this[t](),this.longPress&&(clearInterval(this.timer),this.timer=null,this.timer=setInterval((function(){e[t]()}),this.pressTime))},clearTimer:function(){var t=this;this.$nextTick((function(){clearInterval(t.timer),t.timer=null}))},minus:function(){this.computeVal("minus")},plus:function(){this.computeVal("plus")},calcPlus:function(t,e){var i,o,a;try{o=t.toString().split(".")[1].length}catch(r){o=0}try{a=e.toString().split(".")[1].length}catch(r){a=0}i=Math.pow(10,Math.max(o,a));var n=o>=a?o:a;return((t*i+e*i)/i).toFixed(n)},calcMinus:function(t,e){var i,o,a;try{o=t.toString().split(".")[1].length}catch(r){o=0}try{a=e.toString().split(".")[1].length}catch(r){a=0}i=Math.pow(10,Math.max(o,a));var n=o>=a?o:a;return((t*i-e*i)/i).toFixed(n)},computeVal:function(t){if(uni.hideKeyboard(),!this.disabled){var e=0;if("minus"===t?e=this.stepFirst>0&&this.inputVal==this.stepFirst?this.min:this.calcMinus(this.inputVal,this.step):"plus"===t&&(e=this.stepFirst>0&&this.inputVal0&&(e-=i)}e>this.max?e=this.max:e0&&this.inputVal0&&(i=this.stepFirst),this.stepStrictly){var a=i%this.step;a>0&&(i-=a)}i>this.max?i=this.max:i0&&void 0!==arguments[0]?arguments[0]:{},e=this,i=t.useCache;if("undefined"==typeof c)return e.toast("custom-action必须是function","none"),!1;var o=e.actionTips,a="",n=!1;"custom"!==o?a=i?"":"请求中...":n=!i,c.callFunction({url:e.action,title:a,loading:n,data:{goods_id:e.goodsId},success:function(t){e.updateGoodsInfo(t.goodsInfo),l[e.goodsId]=t.goodsInfo,e.$emit("update-goods",t.goodsInfo)},fail:function(){e.updateValue(!1)}})},updateValue:function(t){t?(this.$emit("open",!0),this.$emit("input",!0),this.$emit("update:modelValue",!0)):(this.$emit("input",!1),this.$emit("close","close"),this.$emit("update:modelValue",!1))},updateGoodsInfo:function(t){var e=this.skuListName;"{}"===JSON.stringify(this.goodsInfo)||this.goodsInfo[this.goodsIdName]!==t[this.goodsIdName]?(this.goodsInfo=t,this.initKey=!0):this.goodsInfo[e]=t[e],this.initKey&&(this.initKey=!1,this.init(this.isManyCom));var i=this.getListItem(this.goodsInfo[e],this.skuIdName,this.selectShop[this.skuIdName]);Object.assign(this.selectShop,i),this.defaultSelectSku(),this.complete=!0},open:function(){var t=this;return(0,s.default)((0,n.default)().mark((function e(){var i,o,a,s,c,u;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t,i.openTime=(new Date).getTime(),o=!0,i.skuListName,a=!1,s=l[i.goodsId],s&&i.useCache?(a=!0,i.updateGoodsInfo(s)):i.complete=!1,!i.customAction||"function"!==typeof i.customAction){e.next=33;break}return e.prev=8,e.next=11,i.customAction({useCache:a,goodsId:i.goodsId,goodsInfo:s,close:function(){setTimeout((function(){i.close()}),500)}}).catch((function(t){setTimeout((function(){i.close()}),500)}));case 11:s=e.sent,e.next=21;break;case 14:if(e.prev=14,e.t0=e["catch"](8),c=e.t0.message,u=void 0===c?"":c,!(u.indexOf(".catch is not a function")>-1)){e.next=21;break}return i.toast("custom-action必须返回一个Promise","none"),setTimeout((function(){i.close()}),500),e.abrupt("return",!1);case 21:if(l[i.goodsId]=s,!s||"object"!=(0,r.default)(s)||"{}"==JSON.stringify(s)){e.next=28;break}o=!1,i.updateGoodsInfo(s),i.updateValue(!0),e.next=31;break;case 28:return i.toast("未获取到商品信息","none"),i.$emit("input",!1),e.abrupt("return",!1);case 31:e.next=47;break;case 33:if("undefined"===typeof i.localdata||null===i.localdata){e.next=46;break}if(s=i.localdata,!s||"object"!=(0,r.default)(s)||"{}"==JSON.stringify(s)){e.next=41;break}o=!1,i.updateGoodsInfo(s),i.updateValue(!0),e.next=44;break;case 41:return i.toast("未获取到商品信息","none"),i.$emit("input",!1),e.abrupt("return",!1);case 44:e.next=47;break;case 46:o&&i.findGoodsInfo({useCache:a});case 47:case"end":return e.stop()}}),e,null,[[8,14]])})))()},close:function(t){if((new Date).getTime()-this.openTime<400)return!1;"mask"==t?!1!==this.maskCloseAble&&(this.$emit("input",!1),this.$emit("close","mask"),this.$emit("update:modelValue",!1)):(this.$emit("input",!1),this.$emit("close","close"),this.$emit("update:modelValue",!1))},moveHandle:function(){},skuClick:function(t,e,i){t.ishow&&(this.selectArr[e]!=t.name?(this.$set(this.selectArr,e,t.name),this.$set(this.subIndex,e,i)):(this.$set(this.selectArr,e,""),this.$set(this.subIndex,e,-1)),this.checkInpath(e),this.checkSelectShop())},checkSelectShop:function(){if(this.selectArr.every((function(t){return""!=t}))){this.selectShop=this.shopItemInfo[this.getArrayToSting(this.selectArr)];var t=this.selectShop[this.stockName];"undefined"!==typeof t&&this.selectNum>t&&(this.selectNum=t),this.selectNum>this.maxBuyNum&&(this.selectNum=this.maxBuyNum),this.selectNum0&&(n.push(t),r+=t[e])})),r<=0&&(t.outFoStock=!0);n.reduce((function(e,i){return e.concat(i[t.skuArrName].reduce((function(e,o){return e.concat(e.map((function(e){return t.shopItemInfo.hasOwnProperty(t.getArrayToSting([].concat((0,a.default)(e),[o])))||(t.shopItemInfo[t.getArrayToSting([].concat((0,a.default)(e),[o]))]=i),[].concat((0,a.default)(e),[o])})))}),[[]]))}),[[]])},getArrayToSting:function(t){var e="";return t.map((function(t,i){t=t.replace(/\./g,"。"),e+=0==i?t:","+t})),e},checkSelectComplete:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this,i=(new Date).getTime();if(e.clickTime&&i-e.clickTime<400)return!1;e.clickTime=i;var o=e.selectShop,a=e.selectNum,n=e.stockText,r=e.stockName;return o&&o[e.skuIdName]?a<=0?(e.toast("购买数量必须>0","none"),!1):a>o[r]?(e.toast(n+"不足","none"),!1):void("function"==typeof t.success&&t.success(o)):(e.toast("请先选择对应规格","none"),!1)},addCart:function(){var t=this;t.checkSelectComplete({success:function(e){e.buy_num=t.selectNum,t.$emit("add-cart",e)}})},buyNow:function(){var t=this;t.checkSelectComplete({success:function(e){e.buy_num=t.selectNum,t.$emit("buy-now",e)}})},toast:function(t,e){uni.showToast({title:t,icon:e})},getListItem:function(t,e,i){var o;for(var a in t)if("object"==(0,r.default)(i)){if(JSON.stringify(t[a][e])===JSON.stringify(i)){o=t[a];break}}else if(t[a][e]===i){o=t[a];break}return o},getListIndex:function(t,e,i){for(var o=-1,a=0;a0&&this.selectSku(t)},selectSku:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this,i=t.sku,o=t.num,a=e.goodsInfo[e.specListName];if(i&&a.length===i.length){for(var n=[],r=!0,s=0;s0&&(e.selectNum=o)},priceFilter:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=this;return"string"==typeof t&&(t=parseFloat(t)),0===e.amountType?t.toFixed(2):(t/100).toFixed(2)},pushGoodsCache:function(t){var e=this.goodsIdName;l[t[e]]=t},stop:function(){},previewImage:function(){var t=this.selectShop,e=this.goodsInfo,i=this.goodsThumbName,o=t.image?t.image:e[i];o&&uni.previewImage({urls:[o]})}},computed:{maxBuyNumCom:function(){var t=this.maxBuyNum||1e5,e=this.stockName;return this.selectShop&&"undefined"!==typeof this.selectShop[e]&&t>this.selectShop[e]&&(t=this.selectShop[e]),t},isManyCom:function(){var t=this.goodsInfo,e=this.defaultSingleSkuName,i=this.specListName,o=!0;return t[i]&&1===t[i].length&&1===t[i][0].list.length&&t[i][0].name===e&&(o=!1),o},priceCom:function(){var t="",e=this.selectShop,i=void 0===e?{}:e,o=this.goodsInfo,a=void 0===o?{}:o,n=this.skuListName,r=this.skuIdName;if(i[r])t=this.priceFilter(i.price);else{var s=a[n];if(s&&s.length>0){var c=[];s.map((function(t,e){c.push(t.price)}));var u=this.priceFilter(Math.min.apply(Math,c)),l=this.priceFilter(Math.max.apply(Math,c));t=u===l?u+"":"".concat(u," - ").concat(l)}}return t},stockCom:function(){var t="",e=this.selectShop,i=void 0===e?{}:e,o=this.goodsInfo,a=void 0===o?{}:o,n=this.skuListName,r=this.stockName;if(i[r])t=i[r];else{var s=a[n];if(s&&s.length>0){var c=[];s.map((function(t,e){c.push(t[r])}));var u=Math.min.apply(Math,c),l=Math.max.apply(Math,c);t=u===l?u:"".concat(u," - ").concat(l)}}return t}},watch:{value:function(t,e){t&&this.open()},modelValue:function(t,e){t&&this.open()},defaultGoods:{immediate:!0,handler:function(t,e){var i=this.goodsIdName;"object"===(0,r.default)(t)&&t&&t[i]&&!l[t[i]]&&this.pushGoodsCache(t)}}}};e.default=d},"7b52":function(t,e,i){var o=i("adf8");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=i("4f06").default;a("0c72020a",o,!0,{sourceMap:!1,shadowMode:!1})},adb4:function(t,e,i){var o=i("24fb");e=o(!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变量文件 */\r\n/* sku弹出层 */.goods-sku-popup[data-v-60b50c93]{position:fixed;left:var(--window-left);right:var(--window-right);bottom:var(--window-bottom);top:var(--window-top);z-index:21;overflow:hidden}.goods-sku-popup.show[data-v-60b50c93]{display:block}.goods-sku-popup.show .mask[data-v-60b50c93]{-webkit-animation:showPopup-data-v-60b50c93 .2s linear both;animation:showPopup-data-v-60b50c93 .2s linear both}.goods-sku-popup.show .layer[data-v-60b50c93]{-webkit-animation:showLayer-data-v-60b50c93 .2s linear both;animation:showLayer-data-v-60b50c93 .2s linear both;bottom:var(--window-bottom)}.goods-sku-popup.hide .mask[data-v-60b50c93]{-webkit-animation:hidePopup-data-v-60b50c93 .2s linear both;animation:hidePopup-data-v-60b50c93 .2s linear both}.goods-sku-popup.hide .layer[data-v-60b50c93]{-webkit-animation:hideLayer-data-v-60b50c93 .2s linear both;animation:hideLayer-data-v-60b50c93 .2s linear both}.goods-sku-popup.none[data-v-60b50c93]{display:none}.goods-sku-popup .mask[data-v-60b50c93]{position:fixed;left:var(--window-left);right:var(--window-right);top:0;height:100%;z-index:1;background-color:rgba(0,0,0,.65)}.goods-sku-popup .layer[data-v-60b50c93]{display:flex;flex-direction:column;position:fixed;left:var(--window-left);right:var(--window-right);bottom:var(--window-bottom);z-index:99;border-radius:%?10?% %?10?% 0 0;background-color:#fff;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.goods-sku-popup .layer .specification-wrapper[data-v-60b50c93]{width:100%;padding:%?30?% %?25?%;box-sizing:border-box}.goods-sku-popup .layer .specification-wrapper .specification-wrapper-content[data-v-60b50c93]{width:100%;max-height:%?900?%;min-height:%?300?%}.goods-sku-popup .layer .specification-wrapper .specification-wrapper-content[data-v-60b50c93]::-webkit-scrollbar{\r\n /*隐藏滚轮*/display:none}.goods-sku-popup .layer .specification-wrapper .specification-wrapper-content .specification-header[data-v-60b50c93]{width:100%;display:flex;flex-direction:row;position:relative;margin-bottom:%?40?%}.goods-sku-popup .layer .specification-wrapper .specification-wrapper-content .specification-header .specification-left[data-v-60b50c93]{width:%?180?%;height:%?180?%;flex:0 0 %?180?%}.goods-sku-popup .layer .specification-wrapper .specification-wrapper-content .specification-header .specification-left .product-img[data-v-60b50c93]{width:%?180?%;height:%?180?%}.goods-sku-popup .layer .specification-wrapper .specification-wrapper-content .specification-header .specification-right[data-v-60b50c93]{flex:1;padding:0 %?35?% %?10?% %?28?%;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;font-weight:500}.goods-sku-popup .layer .specification-wrapper .specification-wrapper-content .specification-header .specification-right .price-content[data-v-60b50c93]{color:#fe560a;margin-bottom:%?10?%}.goods-sku-popup .layer .specification-wrapper .specification-wrapper-content .specification-header .specification-right .price-content .sign[data-v-60b50c93]{font-size:%?28?%;margin-right:%?4?%}.goods-sku-popup .layer .specification-wrapper .specification-wrapper-content .specification-header .specification-right .price-content .price[data-v-60b50c93]{margin-left:%?4?%;font-size:%?48?%}.goods-sku-popup .layer .specification-wrapper .specification-wrapper-content .specification-header .specification-right .price-content .price2[data-v-60b50c93]{margin-left:%?4?%;font-size:%?36?%}.goods-sku-popup .layer .specification-wrapper .specification-wrapper-content .specification-header .specification-right .inventory[data-v-60b50c93]{font-size:%?24?%;color:#525252;margin-bottom:%?14?%}.goods-sku-popup .layer .specification-wrapper .specification-wrapper-content .specification-header .specification-right .choose[data-v-60b50c93]{font-size:%?24?%;color:#525252;min-height:%?32?%}.goods-sku-popup .layer .specification-wrapper .specification-wrapper-content .specification-content[data-v-60b50c93]{font-weight:500}.goods-sku-popup .layer .specification-wrapper .specification-wrapper-content .specification-content .specification-item[data-v-60b50c93]{margin-bottom:%?40?%}.goods-sku-popup .layer .specification-wrapper .specification-wrapper-content .specification-content .specification-item[data-v-60b50c93]:last-child{margin-bottom:0}.goods-sku-popup .layer .specification-wrapper .specification-wrapper-content .specification-content .specification-item .item-title[data-v-60b50c93]{margin-bottom:%?20?%;font-size:%?28?%;color:#999}.goods-sku-popup .layer .specification-wrapper .specification-wrapper-content .specification-content .specification-item .item-wrapper[data-v-60b50c93]{display:flex;flex-direction:row;flex-flow:wrap;margin-bottom:%?-20?%}.goods-sku-popup .layer .specification-wrapper .specification-wrapper-content .specification-content .specification-item .item-wrapper .item-content[data-v-60b50c93]{display:inline-block;padding:%?10?% %?35?%;font-size:%?24?%;border-radius:%?10?%;background-color:#fff;color:#333;margin-right:%?20?%;margin-bottom:%?20?%;border:%?2?% solid #f4f4f4;box-sizing:border-box}.goods-sku-popup .layer .specification-wrapper .specification-wrapper-content .specification-content .specification-item .item-wrapper .item-content.actived[data-v-60b50c93]{border-color:#fe560a;color:#fe560a}.goods-sku-popup .layer .specification-wrapper .specification-wrapper-content .specification-content .specification-item .item-wrapper .item-content.noactived[data-v-60b50c93]{color:#c8c9cc;background:#f2f3f5;border-color:#f2f3f5}.goods-sku-popup .layer .specification-wrapper .specification-wrapper-content .specification-content .number-box-view[data-v-60b50c93]{display:flex;padding-top:%?20?%}.goods-sku-popup .layer .specification-wrapper .close[data-v-60b50c93]{position:absolute;top:%?30?%;right:%?25?%;width:%?50?%;height:%?50?%;text-align:center;line-height:%?50?%}.goods-sku-popup .layer .specification-wrapper .close .close-item[data-v-60b50c93]{width:%?40?%;height:%?40?%}.goods-sku-popup .layer .btn-wrapper[data-v-60b50c93]{display:flex;width:100%;height:%?120?%;flex:0 0 %?120?%;align-items:center;justify-content:space-between;padding:0 %?26?%;box-sizing:border-box}.goods-sku-popup .layer .btn-wrapper .layer-btn[data-v-60b50c93]{width:%?335?%;height:%?76?%;border-radius:%?38?%;color:#fff;line-height:%?76?%;text-align:center;font-weight:500;font-size:%?28?%}.goods-sku-popup .layer .btn-wrapper .layer-btn.add-cart[data-v-60b50c93]{background:#ffbe46}.goods-sku-popup .layer .btn-wrapper .layer-btn.buy[data-v-60b50c93]{background:#fe560a}.goods-sku-popup .layer .btn-wrapper .sure[data-v-60b50c93]{margin:0 auto;width:95%;max-width:%?1200?%;height:%?80?%;border-radius:%?38?%;color:#fff;line-height:%?80?%;text-align:center;font-weight:500;font-size:%?28?%;background:#fe560a}.goods-sku-popup .layer .btn-wrapper .sure.add-cart[data-v-60b50c93]{background:#ff9402}@-webkit-keyframes showPopup-data-v-60b50c93{0%{opacity:0}100%{opacity:1}}@keyframes showPopup-data-v-60b50c93{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes hidePopup-data-v-60b50c93{0%{opacity:1}100%{opacity:0}}@keyframes hidePopup-data-v-60b50c93{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes showLayer-data-v-60b50c93{0%{-webkit-transform:translateY(120%);transform:translateY(120%)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes showLayer-data-v-60b50c93{0%{-webkit-transform:translateY(120%);transform:translateY(120%)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes hideLayer-data-v-60b50c93{0%{-webkit-transform:translateY(0);transform:translateY(0)}100%{-webkit-transform:translateY(120%);transform:translateY(120%)}}@keyframes hideLayer-data-v-60b50c93{0%{-webkit-transform:translateY(0);transform:translateY(0)}100%{-webkit-transform:translateY(120%);transform:translateY(120%)}}',""]),t.exports=e},adf8:function(t,e,i){var o=i("24fb");e=o(!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变量文件 */.number-box[data-v-7e1a60fc]{display:inline-flex;align-items:center}.u-number-input[data-v-7e1a60fc]{position:relative;text-align:center;padding:0;margin:0 %?6?%;display:flex;align-items:center;justify-content:center}.u-icon-plus[data-v-7e1a60fc],\r\n.u-icon-minus[data-v-7e1a60fc]{width:%?60?%;display:flex;justify-content:center;align-items:center}.u-icon-plus[data-v-7e1a60fc]{border-radius:0 %?8?% %?8?% 0}.u-icon-minus[data-v-7e1a60fc]{border-radius:%?8?% 0 0 %?8?%}.u-icon-disabled[data-v-7e1a60fc]{color:#c8c9cc!important;background:#f7f8fa!important}.u-input-disabled[data-v-7e1a60fc]{color:#c8c9cc!important;background-color:#f2f3f5!important}.num-btn[data-v-7e1a60fc]{font-weight:550;position:relative;top:%?-4?%}',""]),t.exports=e},b5c0:function(t,e,i){"use strict";var o=i("7b52"),a=i.n(o);a.a},ccc1:function(t,e,i){"use strict";i.r(e);var o=i("7aa1"),a=i.n(o);for(var n in o)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(n);e["default"]=a.a},d311:function(t,e,i){"use strict";i("7a82");var o=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.specData=e.list=e.detail=void 0;var a=o(i("0227")),n={list:"goods/list",detail:"goods/detail",specData:"goods/specData"};e.list=function(t){return a.default.get(n.list,t)};e.detail=function(t){return a.default.get(n.detail,{goodsId:t})};e.specData=function(t){return a.default.get(n.specData,{goodsId:t})}},db90:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},i("a4d3"),i("e01a"),i("d3b7"),i("d28b"),i("3ca3"),i("ddb0"),i("a630")},e20a:function(t,e,i){"use strict";i.r(e);var o=i("703c"),a=i.n(o);for(var n in o)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(n);e["default"]=a.a}}]);