|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-cart-cart~pages-cart-tabBarCart~pages-goods-detail-index"],{"071b":function(t,e,n){"use strict";n.r(e);var i=n("36cb"),u=n("70ad");for(var o in u)"default"!==o&&function(t){n.d(e,t,(function(){return u[t]}))}(o);n("7645");var a,r=n("f0c5"),s=Object(r["a"])(u["default"],i["b"],i["c"],!1,null,"1f875ce7",null,!1,i["a"],a);e["default"]=s.exports},"145b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ApiGetCategoryTwoAndGoods=e.ApiGetCategoryOneList=e.ApiGetCategoryNav=e.ApiGetGoodsSkus=e.ApiGetGoodsDetail=e.ApiGetRecommendedGoodsList=e.ApiGetGoodsList=void 0;var i=n("5767"),u="/mall/product",o=function(t){return(0,i.ToAsyncAwait)(i.MsbRequest.get("".concat(u,"/app/product/page"),t))};e.ApiGetGoodsList=o;var a=function(t){return(0,i.ToAsyncAwait)(i.MsbRequest.get("".concat(u,"/app/product/recommended"),t))};e.ApiGetRecommendedGoodsList=a;var r=function(t){return(0,i.ToAsyncAwait)(i.MsbRequest.get("".concat(u,"/app/product/").concat(t.id)))};e.ApiGetGoodsDetail=r;var s=function(t){return(0,i.ToAsyncAwait)(i.MsbRequest.get("".concat(u,"/app/product/sku"),t))};e.ApiGetGoodsSkus=s;var c=function(){return(0,i.ToAsyncAwait)(i.MsbRequest.get("".concat(u,"/app/product/categoryNavigation")))};e.ApiGetCategoryNav=c;var l=function(){return(0,i.ToAsyncAwait)(i.MsbRequest.get("".concat(u,"/app/productCategory/levelOne")))};e.ApiGetCategoryOneList=l;var d=function(t){return(0,i.ToAsyncAwait)(i.MsbRequest.get("".concat(u,"/app/productCategory/listCategoryAndProduct/").concat(t.categoryId)))};e.ApiGetCategoryTwoAndGoods=d},"36cb":function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={uIcon:n("a653").default},u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"u-number-box"},[t.showMinus&&t.$slots.minus?n("v-uni-view",{staticClass:"u-number-box__slot",on:{touchstart:function(e){arguments[0]=e=t.$handleEvent(e),t.onTouchStart("minus")},touchend:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.clearTimeout.apply(void 0,arguments)},click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.clickHandler("minus")}}},[t._t("minus")],2):t.showMinus?n("v-uni-view",{staticClass:"u-number-box__minus",class:{"u-number-box__minus--disabled":t.isDisabled("minus")},style:[t.buttonStyle("minus")],attrs:{"hover-class":"u-number-box__minus--hover","hover-stay-time":"150"},on:{touchstart:function(e){arguments[0]=e=t.$handleEvent(e),t.onTouchStart("minus")},touchend:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.clearTimeout.apply(void 0,arguments)},click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.clickHandler("minus")}}},[n("u-icon",{attrs:{name:"minus",color:t.isDisabled("minus")?"#c8c9cc":"#323233",size:"15",bold:!0,customStyle:t.iconStyle}})],1):t._e(),t._t("input",[n("v-uni-input",{staticClass:"u-number-box__input",class:{"u-number-box__input--disabled":t.disabled||t.disabledInput},style:[t.inputStyle],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)},focus:function(e){arguments[0]=e=t.$handleEvent(e),t.onFocus.apply(void 0,arguments)},input:function(e){arguments[0]=e=t.$handleEvent(e),t.onInput.apply(void 0,arguments)}},model:{value:t.currentValue,callback:function(e){t.currentValue=e},expression:"currentValue"}})]),t.showPlus&&t.$slots.plus?n("v-uni-view",{staticClass:"u-number-box__slot",on:{touchstart:function(e){arguments[0]=e=t.$handleEvent(e),t.onTouchStart("plus")},touchend:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.clearTimeout.apply(void 0,arguments)},click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.clickHandler("plus")}}},[t._t("plus")],2):t.showPlus?n("v-uni-view",{staticClass:"u-number-box__plus",class:{"u-number-box__minus--disabled":t.isDisabled("plus")},style:[t.buttonStyle("plus")],attrs:{"hover-class":"u-number-box__plus--hover","hover-stay-time":"150"},on:{touchstart:function(e){arguments[0]=e=t.$handleEvent(e),t.onTouchStart("plus")},touchend:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.clearTimeout.apply(void 0,arguments)},click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.clickHandler("plus")}}},[n("u-icon",{attrs:{name:"plus",color:t.isDisabled("plus")?"#c8c9cc":"#323233",size:"15",bold:!0,customStyle:t.iconStyle}})],1):t._e()],2)},o=[]},"4abc":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ApiGetCartList=e.ApiDeleteCartGoods=e.ApiPutAddCart=e.ApiPutCartNum=void 0;var i=n("5767"),u="/mall/product",o=function(t){return(0,i.ToAsyncAwait)(i.MsbRequestTk.put("".concat(u,"/shoppingCart/number"),t))};e.ApiPutCartNum=o;var a=function(t){return(0,i.ToAsyncAwait)(i.MsbRequestTk.put("".concat(u,"/shoppingCart/increase"),t))};e.ApiPutAddCart=a;var r=function(t){return(0,i.ToAsyncAwait)(i.MsbRequestTk.delete("".concat(u,"/shoppingCart?idList=").concat(t.idList),t))};e.ApiDeleteCartGoods=r;var s=function(){return(0,i.ToAsyncAwait)(i.MsbRequestTk.get("".concat(u,"/shoppingCart")))};e.ApiGetCartList=s},"4b84":function(t,e,n){var i=n("24fb");e=i(!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/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */uni-view[data-v-1f875ce7], uni-scroll-view[data-v-1f875ce7], uni-swiper-item[data-v-1f875ce7]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-number-box[data-v-1f875ce7]{display:flex;flex-direction:row;align-items:center}.u-number-box__slot[data-v-1f875ce7]{touch-action:none}.u-number-box__plus[data-v-1f875ce7], .u-number-box__minus[data-v-1f875ce7]{width:35px;display:flex;flex-direction:row;justify-content:center;align-items:center;touch-action:none}.u-number-box__plus--hover[data-v-1f875ce7], .u-number-box__minus--hover[data-v-1f875ce7]{background-color:#e6e6e6!important}.u-number-box__plus--disabled[data-v-1f875ce7], .u-number-box__minus--disabled[data-v-1f875ce7]{color:#c8c9cc;background-color:#f7f8fa}.u-number-box__plus[data-v-1f875ce7]{border-top-right-radius:4px;border-bottom-right-radius:4px}.u-number-box__minus[data-v-1f875ce7]{border-top-left-radius:4px;border-bottom-left-radius:4px}.u-number-box__input[data-v-1f875ce7]{position:relative;text-align:center;font-size:15px;padding:0;margin:0 2px;display:flex;flex-direction:row;align-items:center;justify-content:center}.u-number-box__input--disabled[data-v-1f875ce7]{color:#c8c9cc;background-color:#f2f3f5}',""]),t.exports=e},"70ad":function(t,e,n){"use strict";n.r(e);var i=n("8b14"),u=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=u.a},7645:function(t,e,n){"use strict";var i=n("b402"),u=n.n(i);u.a},"8b14":function(t,e,n){"use strict";var i=n("4ea4");n("99af"),n("4de4"),n("c975"),n("fb6a"),n("d3b7"),n("ac1f"),n("25f0"),n("5319"),n("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=i(n("5530")),o=i(n("f5d7")),a={name:"u-number-box",mixins:[uni.$u.mpMixin,uni.$u.mixin,o.default],data:function(){return{currentValue:"",longPressTimer:null}},watch:{watchChange:function(t){this.check()},value:function(t){t!==this.currentValue&&(this.currentValue=this.format(this.value))}},computed:{getCursorSpacing:function(){return uni.$u.getPx(this.cursorSpacing)},buttonStyle:function(){var t=this;return function(e){var n={backgroundColor:t.bgColor,height:uni.$u.addUnit(t.buttonSize),color:t.color};return t.isDisabled(e)&&(n.backgroundColor="#f7f8fa"),n}},inputStyle:function(){this.disabled||this.disabledInput;var t={color:this.color,backgroundColor:this.bgColor,height:uni.$u.addUnit(this.buttonSize),width:uni.$u.addUnit(this.inputWidth)};return t},watchChange:function(){return[this.integer,this.decimalLength,this.min,this.max]},isDisabled:function(){var t=this;return function(e){return"plus"===e?t.disabled||t.disablePlus||t.currentValue>=t.max:t.disabled||t.disableMinus||t.currentValue<=t.min}}},mounted:function(){this.init()},methods:{init:function(){this.currentValue=this.format(this.value)},format:function(t){return t=this.filter(t),t=""===t?0:+t,t=Math.max(Math.min(this.max,t),this.min),null!==this.decimalLength&&(t=t.toFixed(this.decimalLength)),t},filter:function(t){return t=String(t).replace(/[^0-9.-]/g,""),this.integer&&-1!==t.indexOf(".")&&(t=t.split(".")[0]),t},check:function(){var t=this.format(this.currentValue);t!==this.currentValue&&(this.currentValue=t)},onFocus:function(t){this.$emit("focus",(0,u.default)((0,u.default)({},t.detail),{},{name:this.name}))},onBlur:function(t){this.format(t.detail.value);this.$emit("blur",(0,u.default)((0,u.default)({},t.detail),{},{name:this.name}))},onInput:function(t){var e=t.detail||{},n=e.value,i=void 0===n?"":n;if(""!==i){var u=this.filter(i);if(null!==this.decimalLength&&-1!==u.indexOf(".")){var o=u.split(".");u="".concat(o[0],".").concat(o[1].slice(0,this.decimalLength))}u=this.format(u),this.emitChange(u)}},emitChange:function(t){var e=this;this.asyncChange||this.$nextTick((function(){e.$emit("input",t),e.currentValue=t,e.$forceUpdate()})),this.$emit("change",{value:t,name:this.name})},onChange:function(){var t=this.type;if(this.isDisabled(t))return this.$emit("overlimit",t);var e="minus"===t?-this.step:+this.step,n=this.format(this.add(+this.currentValue,e));this.emitChange(n),this.$emit(t)},add:function(t,e){var n=Math.pow(10,10);return Math.round((t+e)*n)/n},clickHandler:function(t){this.type=t,this.onChange()},longPressStep:function(){var t=this;this.clearTimeout(),this.longPressTimer=setTimeout((function(){t.onChange(),t.longPressStep()}),250)},onTouchStart:function(t){var e=this;this.longPress&&(this.clearTimeout(),this.type=t,this.longPressTimer=setTimeout((function(){e.onChange(),e.longPressStep()}),600))},onTouchEnd:function(){this.longPress&&this.clearTimeout()},clearTimeout:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(){clearTimeout(this.longPressTimer),this.longPressTimer=null}))}};e.default=a},b402:function(t,e,n){var i=n("4b84");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var u=n("4f06").default;u("d5a876ee",i,!0,{sourceMap:!1,shadowMode:!1})},f5d7:function(t,e,n){"use strict";n("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={props:{name:{type:[String,Number],default:uni.$u.props.numberBox.name},value:{type:[String,Number],default:uni.$u.props.numberBox.value},min:{type:[String,Number],default:uni.$u.props.numberBox.min},max:{type:[String,Number],default:uni.$u.props.numberBox.max},step:{type:[String,Number],default:uni.$u.props.numberBox.step},integer:{type:Boolean,default:uni.$u.props.numberBox.integer},disabled:{type:Boolean,default:uni.$u.props.numberBox.disabled},disabledInput:{type:Boolean,default:uni.$u.props.numberBox.disabledInput},asyncChange:{type:Boolean,default:uni.$u.props.numberBox.asyncChange},inputWidth:{type:[String,Number],default:uni.$u.props.numberBox.inputWidth},showMinus:{type:Boolean,default:uni.$u.props.numberBox.showMinus},showPlus:{type:Boolean,default:uni.$u.props.numberBox.showPlus},decimalLength:{type:[String,Number,null],default:uni.$u.props.numberBox.decimalLength},longPress:{type:Boolean,default:uni.$u.props.numberBox.longPress},color:{type:String,default:uni.$u.props.numberBox.color},buttonSize:{type:[String,Number],default:uni.$u.props.numberBox.buttonSize},bgColor:{type:String,default:uni.$u.props.numberBox.bgColor},cursorSpacing:{type:[String,Number],default:uni.$u.props.numberBox.cursorSpacing},disablePlus:{type:Boolean,default:uni.$u.props.numberBox.disablePlus},disableMinus:{type:Boolean,default:uni.$u.props.numberBox.disableMinus},iconStyle:{type:[Object,String],default:uni.$u.props.numberBox.iconStyle}}};e.default=i}}]); |