(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/menu/Child/dialogBar"],{"0467":function(t,e,o){"use strict";var n;o.d(e,"b",(function(){return u})),o.d(e,"c",(function(){return c})),o.d(e,"a",(function(){return n}));var u=function(){var t=this,e=t.$createElement;t._self._c},c=[]},"07e8":function(t,e,o){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o("7e95"),u=function(){o.e("components/uni-number-box").then(function(){return resolve(o("144c"))}.bind(null,o)).catch(o.oe)},c={components:{uniNumberBox:u},data:function(){return{buys_show:!0,buys_shows:!1,pid:"",num:1,uniqueId:"",actionPrice:0,actionImage:"",dataList:[],specList:[],feeding:"",goodsNumberMax:0,goodsNumberMin:0}},props:{showItem:{type:Object,default:function(){return{}}}},created:function(){this.loadData()},methods:{loadData:function(){var t=this,e=this;console.log(this.showItem,"dangqian duixiang "),(0,n.goodsDetail)({},this.showItem.id).then((function(o){var n=o.data;console.log(n);var u=n.storeInfo;if(t.dataList=u,e.specList=n.productAttr,1!=Array.isArray(n.productValue)){e.many=2,e.specList=n.productAttr,e.productValue=n.productValue,e.specSelected=[];for(var c=0;c<e.specList.length;c++){var i=e.specList[c].attr_value[0];i.check=!0,e.specSelected.push(i.attr)}var a=e.specSelected.join(",");console.log(a,"str"),e.actionPrice=e.productValue[a].price,e.goodsNumberMax=e.productValue[a].stock,e.actionImage=e.productValue[a].image,e.uniqueId=e.productValue[a].unique,e.goodsStore=e.productValue[a].stock}else e.many=1,e.productValue=n.productValue,e.actionPrice=u.price,e.actionImage=u.image_base,e.goodsNumberMax=u.stock,e.shopId=n.mer_id}))},del:function(){this.$emit("tcDel")},numberChange:function(t){this.num=t.number},selectSpec:function(t,e,o){e.attr_value.forEach((function(t){t.check=!1})),t.check=!0;var n=this;n.specSelected[o]=t.attr;var u=n.specSelected.join(",");n.productValue[u]?(n.buys_show=!0,n.buys_shows=!1,n.actionPrice=n.productValue[u].price,n.actionImage=n.productValue[u].image,n.uniqueId=n.productValue[u].unique,n.goodsStore=n.productValue[u].stock):(n.buys_show=!1,n.buys_shows=!0),0==n.goodsStore&&(n.buys_show=!1,n.buys_shows=!0),n.specSelected[o]=t.attr},setShop:function(e){var o=this;(0,n.cartAdd)({cartNum:this.num,uniqueId:this.uniqueId,new:0,mer_id:"",productId:e.id}).then((function(e){t.showToast({title:"成功加入购物车",type:"top",duration:500,icon:"none"}),o.$emit("setShop")})).catch((function(t){console.log(t)}))}},watch:{num:function(){this.num=Math.ceil(this.num)},totalPrice:function(){this.feedingList()}},computed:{totalPrice:function(){for(var t=this.price,e=0;e<this.dataList.length;e++)for(var o=0;o<this.dataList.length;o++)this.dataList[e].list[o].isChoose&&(t+=this.dataList[e].list[o].price);return t}}};e.default=c}).call(this,o("543d")["default"])},"0d62":function(t,e,o){"use strict";var n=o("3593"),u=o.n(n);u.a},3593:function(t,e,o){},"9d94":function(t,e,o){"use strict";o.r(e);var n=o("07e8"),u=o.n(n);for(var c in n)"default"!==c&&function(t){o.d(e,t,(function(){return n[t]}))}(c);e["default"]=u.a},a854:function(t,e,o){"use strict";o.r(e);var n=o("0467"),u=o("9d94");for(var c in u)"default"!==c&&function(t){o.d(e,t,(function(){return u[t]}))}(c);o("0d62");var i,a=o("f0c5"),s=Object(a["a"])(u["default"],n["b"],n["c"],!1,null,"24d24847",null,!1,n["a"],i);e["default"]=s.exports}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'pages/menu/Child/dialogBar-create-component',
    {
        'pages/menu/Child/dialogBar-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("a854"))
        })
    },
    [['pages/menu/Child/dialogBar-create-component']]
]);
