| 1234567891011 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/menu/Child/dialogBar"],{568:function(t,e,n){"use strict";n.r(e);var o=n(569),u=n(571);for(var r in u)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return u[t]}))}(r);n(573);var i,c=n(39),a=Object(c["default"])(u["default"],o["render"],o["staticRenderFns"],!1,null,"9010b8be",null,!1,o["components"],i);a.options.__file="pages/menu/Child/dialogBar.vue",e["default"]=a.exports},569:function(t,e,n){"use strict";n.r(e);var o=n(570);n.d(e,"render",(function(){return o["render"]})),n.d(e,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(e,"components",(function(){return o["components"]}))},570:function(t,e,n){"use strict";var o;n.r(e),n.d(e,"render",(function(){return u})),n.d(e,"staticRenderFns",(function(){return i})),n.d(e,"recyclableRender",(function(){return r})),n.d(e,"components",(function(){return o}));var u=function(){var t=this,e=t.$createElement;t._self._c},r=!1,i=[];u._withStripped=!0},571:function(t,e,n){"use strict";n.r(e);var o=n(572),u=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=u.a},572:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(52),u=function(){n.e("components/uni-number-box").then(function(){return resolve(n(624))}.bind(null,n)).catch(n.oe)},r={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,o.goodsDetail)({},this.showItem.id).then((function(n){var o=n.data;console.log(o);var u=o.storeInfo;if(t.dataList=u,e.specList=o.productAttr,1!=Array.isArray(o.productValue)){e.many=2,e.specList=o.productAttr,e.productValue=o.productValue,e.specSelected=[];for(var r=0;r<e.specList.length;r++){var i=e.specList[r].attr_value[0];i.check=!0,e.specSelected.push(i.attr)}var c=e.specSelected.join(",");console.log(c,"str"),e.actionPrice=e.productValue[c].price,e.goodsNumberMax=e.productValue[c].stock,e.actionImage=e.productValue[c].image,e.uniqueId=e.productValue[c].unique,e.goodsStore=e.productValue[c].stock}else e.many=1,e.productValue=o.productValue,e.actionPrice=u.price,e.actionImage=u.image_base,e.goodsNumberMax=u.stock,e.shopId=o.mer_id}))},del:function(){this.$emit("tcDel")},numberChange:function(t){this.num=t.number},selectSpec:function(t,e,n){e.attr_value.forEach((function(t){t.check=!1})),t.check=!0;var o=this;o.specSelected[n]=t.attr;var u=o.specSelected.join(",");o.productValue[u]?(o.buys_show=!0,o.buys_shows=!1,o.actionPrice=o.productValue[u].price,o.actionImage=o.productValue[u].image,o.uniqueId=o.productValue[u].unique,o.goodsStore=o.productValue[u].stock):(o.buys_show=!1,o.buys_shows=!0),0==o.goodsStore&&(o.buys_show=!1,o.buys_shows=!0),o.specSelected[n]=t.attr},setShop:function(e){var n=this;(0,o.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"}),n.$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 n=0;n<this.dataList.length;n++)this.dataList[e].list[n].isChoose&&(t+=this.dataList[e].list[n].price);return t}}};e.default=r}).call(this,n(1)["default"])},573:function(t,e,n){"use strict";n.r(e);var o=n(574),u=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=u.a},574:function(t,e,n){}}]);
- //# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/menu/Child/dialogBar.js.map
- ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
- 'pages/menu/Child/dialogBar-create-component',
- {
- 'pages/menu/Child/dialogBar-create-component':(function(module, exports, __webpack_require__){
- __webpack_require__('1')['createComponent'](__webpack_require__(568))
- })
- },
- [['pages/menu/Child/dialogBar-create-component']]
- ]);
|