(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["other-page-checkstand-tableOrder"],{"027c":function(t,e,i){"use strict";var o=i("d0c5"),a=i.n(o);a.a},"033a":function(t,e,i){"use strict";i("6a54");var o=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.AddMerchandise=l,e.Editcategory=b,e.RenderQueue=u,e.changeGoodsSort=I,e.default=void 0,e.delCategory=C,e.deleteGoods=f,e.displayorder=x,e.editCategorySub=y,e.editGoodsDisplayorder=h,e.editGoodsHot=m,e.editGoodsStuta=g,e.editGoodsSub=p,e.editGoodsTotal=v,e.editGoodsTruncate=_,e.getDefaultDisplaySelection=N,e.goodsList=r,e.goodsListNoLoginApi=E,e.importCloudGoods=k,e.onChangeStatus=c,e.searchCloudGoods=S,e.searchGoodsImageByName=w,e.turnNotify=d,e.updateDefaultDisplaySelection=D,e.waitingList=s;var a=o(i("9b1b")),n=o(i("5b42"));function r(t){return n.default.get("api/manage.goods.goods/list",{params:t})}function s(t,e){return util.request((0,a.default)({method:"get",url:"manage/tangshi/assign/index",data:t},e))}function d(t,e){return util.request((0,a.default)({method:"post",url:"manage/tangshi/assign/status",data:t},e))}function c(t,e){return util.request((0,a.default)({method:"post",url:"manage/tangshi/assign/status",data:t},e))}function u(t,e){return util.request((0,a.default)({method:"post",url:"manage/tangshi/assign/queue_post",data:t},e))}function l(t){return n.default.get("api/manage.goods.goods/editDetail",{params:t})}function p(t){return n.default.post("api/manage.goods.goods/edit",t)}function f(t){return n.default.get("api/manage.goods.goods/delete",{params:t})}function g(t){return n.default.post("api/manage.goods.goods/status",t)}function h(t){return n.default.post("api/manage.goods.goods/displayorder",t)}function v(t){return n.default.post("api/manage.goods.goods/total",t)}function m(t){return n.default.post("api/manage.goods.goods/hot",t)}function _(t){return n.default.post("api/manage.goods.goods/truncate",t)}function b(t){return n.default.get("api/manage.goods.category/editDetail",{params:t})}function y(t){return n.default.post("api/manage.goods.category/edit",t)}function C(t){return n.default.get("api/manage.goods.category/delete",{params:t})}function x(t){return n.default.post("api/manage.goods.category/displayorders",t)}function I(t){return n.default.post("api/manage.goods.goods/changeGoodsSort",t)}function w(t){return n.default.post("api/manage.goods.goods/searchGoodsImageByName",t)}function S(t){return n.default.post("api/manage.goods.goods/searchCloudGoods",t)}function k(t){return n.default.post("api/manage.goods.goods/importCloudGoods",t)}function D(t){return n.default.post("api/manage.shop.config/updateDefaultDisplaySelection",t)}function N(t){return n.default.get("api/manage.shop.config/getDefaultDisplaySelection",{params:t})}function E(t){return n.default.get("api/manage.goods.goods/listNoLogin",{params:t})}var T={delCategory:C,editCategorySub:y,deleteGoods:f,editGoodsTruncate:_,editGoodsStuta:g,editGoodsSub:p,goodsList:r,waitingList:s,turnNotify:d,onChangeStatus:c,RenderQueue:u,AddMerchandise:l,Editcategory:b,displayorder:x,changeGoodsSort:I,searchGoodsImageByName:w,searchCloudGoods:S,importCloudGoods:k,updateDefaultDisplaySelection:D,getDefaultDisplaySelection:N,editGoodsDisplayorder:h,editGoodsTotal:v,editGoodsHot:m,goodsListNoLoginApi:E};e.default=T},"0417":function(t,e,i){var o=i("c86c");e=o(!1),e.push([t.i,".main-content[data-v-68057701]{flex-grow:1;display:flex;height:100%}.left-nav[data-v-68057701]{width:%?160?%;background-color:#fff}.nav-item[data-v-68057701]{position:relative;width:%?160?%;padding:%?30?%;box-sizing:border-box;transition:all .3s;background-color:#f4f4f4}.nav-item.active[data-v-68057701]{background-color:#fff}.bR[data-v-68057701]{position:absolute;right:0;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:%?6?%;height:50%;border-radius:%?60?%;background-color:#ffca28}.nav-image[data-v-68057701]{width:%?50?%;height:%?50?%;border-radius:%?8?%;display:block;margin:0 auto %?12?%}.nav-text[data-v-68057701]{font-size:%?23?%;color:#666;text-align:center;display:block}.right-list[data-v-68057701]{flex-grow:1;padding:0 %?20?%;box-sizing:border-box}.goods-group[data-v-68057701]{padding-bottom:%?40?%}.group-title[data-v-68057701]{position:-webkit-sticky;position:sticky;top:0;z-index:2;background:#fff;padding:%?20?%;font-size:%?30?%;font-weight:700}.goods-item[data-v-68057701]{display:flex;padding:%?12?%;box-sizing:border-box;background:#fff;border-radius:%?16?%}.goods-image[data-v-68057701]{width:%?180?%;height:%?180?%;border-radius:%?8?%;margin-right:%?24?%}.goods-info[data-v-68057701]{flex:1}.goods-title[data-v-68057701]{font-size:%?28?%;color:#333;margin-bottom:%?16?%;line-height:1.4}.price-container[data-v-68057701]{display:flex;align-items:baseline;margin-bottom:%?16?%}.current-price[data-v-68057701]{color:#e83a30;font-size:%?36?%;font-weight:700;margin-right:%?16?%}.sales[data-v-68057701]{color:#999;font-size:%?24?%}.action-btn[data-v-68057701]{background:#ffca28;color:#fff;padding:%?8?% %?24?%;border-radius:%?40?%;font-size:%?24?%;align-self:center}.empty-state[data-v-68057701]{text-align:center;padding:%?100?% 0}.empty-image[data-v-68057701]{width:%?300?%;height:%?300?%;opacity:.6}.empty-text[data-v-68057701]{display:block;color:#999;margin-top:%?24?%}.operation__add[data-v-68057701]{height:%?50?%;.icon{width:%?50?%;height:%?50?%;font-size:%?30?%;line-height:1;border-radius:50%;background-color:#ffca28;color:#fff}.num{width:%?60?%;height:100%;margin:%?0?% %?5?%;.input{width:100%;height:100%;padding:%?0?%;background-color:initial;color:#000;text-align:center}}}\n\n/* 购物车 start */.shopping-cart[data-v-68057701]{position:fixed;left:5%;bottom:%?40?%;width:90%;z-index:99998;transition:bottom .25s ease;&.hidden{bottom:%?-200?%}}\n\n/* 购物车 end */",""]),t.exports=e},"05a0":function(t,e,i){"use strict";i.r(e);var o=i("2407"),a=i("20df");for(var n in a)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(n);i("fcaf");var r=i("828b"),s=Object(r["a"])(a["default"],o["b"],o["c"],!1,null,"3d4bd26f",null,!1,o["a"],void 0);e["default"]=s.exports},"06f9":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.createQuery=void 0;e.createQuery=function(t){var e=uni.createSelectorQuery().in(t);return e}},"0c8e":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.setUserInfoToCache=e.setUserAddressAuthMin=e.setTokenToCache=e.setTangshiInfoDataToCache=e.setSubmitOrderChooseAddressId=e.setLocationInfoToCache=e.setKeywordToUserHistorySearchCache=e.setCopyRightCache=e.getUserInfoFromCache=e.getUserHistorySearchCacheData=e.getTokenFromCache=e.getTangshiCacheInfoData=e.getSubmitOrderChooseAddressId=e.getLocationInfoFromCache=e.getCopyRightCache=e.clearUserHistorySearchData=e.clearTangshiCacheInfoData=e.clearSubmitOrderChooseAddressId=e.clearCacheUserInfo=e.clearCacheToken=e.clearCacheLocationInfo=void 0,i("e966"),i("4626"),i("5ac7"),i("3efd");var o=i("8729"),a=i("edc8");e.setTokenToCache=function(t){(0,o.setCache)(a.TOKEN_KEY,t)};e.getTokenFromCache=function(){return(0,o.getCache)(a.TOKEN_KEY)};e.clearCacheToken=function(){(0,o.removeCache)(a.TOKEN_KEY)};e.setUserInfoToCache=function(t){var e=(0,o.getCache)(a.USER_INFO);e||(e={}),(0,o.setCache)(a.USER_INFO,Object.assign(e,t))};e.getUserInfoFromCache=function(){return(0,o.getCache)(a.USER_INFO)};e.clearCacheUserInfo=function(){(0,o.removeCache)(a.USER_INFO)};e.setLocationInfoToCache=function(t){var e=t.lat,i=t.lng,n=t.address,r=(0,o.getCache)(a.LOCATION_INFO);r||(r={});var s=0,d=(0,o.getCache)("user_address_auth_min")||0;d=parseInt(d),d&&(s=(new Date).getTime()+60*d*1e3),r.lat=e||0,r.lng=i||0,r.address=n||"",r.expireTime=s,(0,o.setCache)(a.LOCATION_INFO,r)};e.getLocationInfoFromCache=function(){var t=(0,o.getCache)(a.LOCATION_INFO);return t||(t={lat:1,lng:1,address:""}),t};e.clearCacheLocationInfo=function(){(0,o.removeCache)(a.LOCATION_INFO)};e.setSubmitOrderChooseAddressId=function(t){(0,o.setCache)(a.ORDER_ADDRESS_CHOOSE_ID,t)};e.getSubmitOrderChooseAddressId=function(){return(0,o.getCache)(a.ORDER_ADDRESS_CHOOSE_ID)};e.clearSubmitOrderChooseAddressId=function(){(0,o.removeCache)(a.ORDER_ADDRESS_CHOOSE_ID)};e.getUserHistorySearchCacheData=function(){return(0,o.getCache)(a.USER_SEARCH_HISTORY)||[]};e.setKeywordToUserHistorySearchCache=function(t){var e=(0,o.getCache)(a.USER_SEARCH_HISTORY);e||(e=[]),e.includes(t)||(e.length>=10&&e.pop(),e.unshift(t),(0,o.setCache)(a.USER_SEARCH_HISTORY,e))};e.clearUserHistorySearchData=function(){(0,o.removeCache)(a.USER_SEARCH_HISTORY)};var n=function(){var t=(0,o.getCache)(a.TANGSHI_INFO);return t||{status:!1,sid:0,tableId:0}};e.getTangshiCacheInfoData=n;e.setTangshiInfoDataToCache=function(t,e,i){var r=n();r.status=t,r.sid=e||r.sid,r.tableId=i||r.tableId,(0,o.setCache)(a.TANGSHI_INFO,r)};e.clearTangshiCacheInfoData=function(){(0,o.removeCache)(a.TANGSHI_INFO)};e.setCopyRightCache=function(t){(0,o.setCache)("copyright",t)};e.getCopyRightCache=function(t){return(0,o.getCache)("copyright")};e.setUserAddressAuthMin=function(t){(0,o.setCache)("user_address_auth_min",t)}},"10ef":function(t,e,i){var o=i("b29e");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=i("967d").default;a("506baa8b",o,!0,{sourceMap:!1,shadowMode:!1})},"13d2":function(t,e,i){var o=i("c86c");e=o(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.tn-badge[data-v-5ef10296]{width:auto;height:auto;box-sizing:border-box;display:flex;align-items:center;justify-content:center;z-index:10;font-size:%?20?%;background-color:#fff;border-radius:%?100?%;padding:%?4?% %?8?%;line-height:normal}.tn-badge--dot[data-v-5ef10296]{width:%?8?%;height:%?8?%;border-radius:50%;padding:0}.tn-badge--absolute[data-v-5ef10296]{position:absolute;top:0;right:0}.tn-badge--center-position[data-v-5ef10296]{-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%)}',""]),t.exports=e},"1aa1":function(t,e,i){"use strict";var o=i("ee4a"),a=i.n(o);a.a},"1ee6":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:"tn-badge-class tn-badge",class:[t.backgroundColorClass,t.fontColorClass,t.badgeClass],style:[t.badgeStyle],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleClick.apply(void 0,arguments)}}},[t.dot?t._e():t._t("default")],2)},a=[]},"20df":function(t,e,i){"use strict";i.r(e);var o=i("cfdc"),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},2407: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",{staticStyle:{width:"100%",height:"auto","max-height":"100vh"}},[i("v-uni-view",{class:3!=t.pageShowType?"shopping-cart":"shopping-cart2"},[t.isRest?[t.is_loaded?i("div",{staticClass:"cart-is_rest tn-flex-center theme-cart-btn-rest"},[t._v("门店已打烊...")]):i("div",{staticClass:"cart-is_rest tn-flex-center theme-cart-btn-rest"},[t._v("正在加载中...")])]:[i("v-uni-view",{staticClass:"cart-info theme-cart-info",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.handleClickInfoEvent.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"cart-icon"},[3!=t.pageShowType?i("v-uni-text",{staticClass:"tn-icon-cart"}):t._e(),3==t.pageShowType?i("v-uni-view",{staticClass:"icon"},[i("v-uni-text",{staticClass:"tn-icon-cart",staticStyle:{position:"absolute"}}),i("v-uni-image",{staticStyle:{width:"56rpx",height:"56rpx"},attrs:{src:t.shop_image,mode:"widthFix"}})],1):t._e(),t.totalNum>0?i("v-uni-view",{staticClass:"cart-good-num tn-flex-center theme-cart-num"},[t._v(t._s(t.totalNum))]):t._e()],1),i("v-uni-view",{staticClass:"cart-price"},[i("v-uni-view",{staticClass:"product-price"},[i("v-uni-view",{staticClass:"price theme-cart-info-price"},[i("v-uni-view",{staticClass:"unit"},[t._v("RM")]),i("v-uni-view",{staticClass:"value"},[t._v(t._s(t.totalPrice))])],1),t.oldTotalPrice&&3!=t.pageShowType?i("v-uni-view",{staticClass:"price old tn-color-gray theme-cart-info-oldprice"},[i("v-uni-view",{staticClass:"unit"},[t._v("RM")]),i("v-uni-view",{staticClass:"value"},[t._v(t._s(t.oldTotalPrice))])],1):t._e()],1),3!=t.pageShowType?i("v-uni-view",[0==t.multiple_cart?i("v-uni-view",{staticClass:"delivery-price theme-cart-info-delivery-price",staticStyle:{"align-items":"center"}},[t._v("预估配送费"),t.deliveryPrice&&t.deliveryPrice.start_fee>=0?i("v-uni-text",{staticClass:"price"},[t._v("RM"+t._s(t.deliveryPrice.start_fee))]):t.deliveryPrice?i("v-uni-text",{staticClass:"price"},[t._v("RM"+t._s(t.deliveryPrice))]):t._e()],1):i("v-uni-view",{staticClass:"delivery-price theme-cart-info-delivery-price",staticStyle:{"align-items":"center"}},[t._v("预估配送费"),t.deliveryPrice&&t.deliveryPrice.start_fee>=0?i("v-uni-text",{staticClass:"price"},[t._v("RM"+t._s(t.deliveryPrice.start_fee))]):t.deliveryPrice?i("v-uni-text",{staticClass:"price"},[t._v("RM"+t._s(t.multiple_cart_delivery_price))]):t._e()],1)],1):i("v-uni-view",[i("v-uni-view",{staticClass:"delivery-price theme-cart-info-delivery-price",staticStyle:{"align-items":"center"}},[t._v("已省 "+t._s(t.CurrencyUnit)+t._s(t.oldTotalPrice-t.totalPrice))])],1)],1)],1),3!=t.pageShowType?i("v-uni-view",{staticClass:"operation-btn tn-flex-center theme-cart-btn-avcti",class:[{"theme-cart-btn":!t.isToSubmit}],style:[t.themeBtnStyle],on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.handleSubmitEvent.apply(void 0,arguments)}}},[t._v(t._s(t.cidMinPrice?t.cidMinPriceText:t.submitBtnTipText))]):t._e(),3==t.pageShowType?i("v-uni-view",{staticClass:"operation-btn"},[2==t.deliveryType||3==t.deliveryType?i("v-uni-view",{staticClass:"left",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.handleSubmitEvent.apply(void 0,arguments)}}},[i("v-uni-text",[t._v("团购")]),i("v-uni-text",[t._v("下单到店")])],1):t._e(),1==t.deliveryType?i("v-uni-view",{staticClass:"left disabled"},[i("v-uni-text",[t._v("团购")]),i("v-uni-text",[t._v("当前不支持")])],1):t._e(),1==t.deliveryType||3==t.deliveryType?i("v-uni-view",{staticClass:"right",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.handleSubmitEvent.apply(void 0,arguments)}}},[i("v-uni-text",[t._v("配送")]),i("v-uni-text",[t._v(t._s(t.cidMinPrice?t.cidMinPriceText:t.submitBtnTipText))])],1):t._e(),2==t.deliveryType?i("v-uni-view",{staticClass:"left disabled"},[i("v-uni-text",[t._v("配送")]),i("v-uni-text",[t._v("当前不支持")])],1):t._e()],1):t._e()]],2),i("bottom-modal",{attrs:{"close-btn":!1,"z-index":99997,"no-padding":!0},model:{value:t.showProductList,callback:function(e){t.showProductList=e},expression:"showProductList"}},[0==t.multiple_cart?i("v-uni-view",{staticClass:"product-list__top-operation tn-flex-center-between",staticStyle:{"background-color":"#f8f7f8"}},[i("v-uni-view",{staticClass:"package-price"},[t._v("包装费RM"+t._s(t.shoppingCartData.boxPrice))]),t.shoppingCartData.discount_by_num_id>0&&t.shoppingCartData.discount_by_num_price>0?i("v-uni-view",[t._v("活动立减"+t._s(t.CurrencyUnit)+t._s(t.shoppingCartData.discount_by_num_price))]):t._e(),i("v-uni-view",{staticClass:"operation-clear",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.clearStoreShoppingCart.apply(void 0,arguments)}}},[i("v-uni-text",{staticClass:"tn-icon-delete"}),t._v("清空购物车")],1)],1):t._e(),0==t.multiple_cart?i("v-uni-view",{staticClass:"product-list__content"},[i("v-uni-scroll-view",{staticClass:"scroll-view",attrs:{"scroll-y":!0}},t._l(t.shoppingCartData.data,(function(e,o){return i("v-uni-view",{key:o,staticClass:"product-item"},[i("v-uni-view",{staticClass:"item-image"},[i("v-uni-image",{staticClass:"image",staticStyle:{width:"100rpx",height:"100rpx","border-radius":"inherit"},attrs:{src:e.image,mode:"aspectFill"}})],1),i("v-uni-view",{staticClass:"item-info"},[i("v-uni-view",{staticClass:"item-title tn-full-width tn-text-ellipsis-1"},["bargain"==e.bargain_type?i("v-uni-text",{staticClass:"red-box"},[t._v("含特价")]):t._e(),t._v(t._s(e.title))],1),i("v-uni-view",{staticClass:"item-spec"},[t._v(t._s(e.spec))]),i("v-uni-view",{staticClass:"item-operation"},[i("v-uni-view",{staticClass:"item-price tn-color-red"},["bargain"==e.bargain_type&&e.caigou_discount_price!=e.price?i("v-uni-text",[t._v("RM"+t._s(e.caigou_discount_price.toFixed(2))),e.discount_num>0?i("v-uni-text",{staticStyle:{"margin-left":"5rpx","font-size":"18rpx"}},[t._v("(第"+t._s(e.discount_num)+"个开始恢复原价)")]):t._e()],1):i("v-uni-text",[t._v("RM"+t._s(e.price.toFixed(2)))])],1),i("product-spec-number-box",{attrs:{"operation-from":"shoppingCart",type:0,sid:t.sid,"table-id":t.tableId,"spellrice-id":t.spellriceId,"good-id":e.goodId,"option-id":e.optionId,disabled:t.isRest},on:{"reduce-num":function(e){arguments[0]=e=t.$handleEvent(e),t.handleGoodNumChangeEvent(e,"-",o)},"add-num":function(e){arguments[0]=e=t.$handleEvent(e),t.handleGoodNumChangeEvent(e,"+",o)}},model:{value:e.num,callback:function(i){t.$set(e,"num",i)},expression:"item.num"}})],1)],1)],1)})),1)],1):t._e(),1==t.multiple_cart?i("v-uni-view",{staticClass:"product-list__content"},[i("v-uni-scroll-view",{staticClass:"scroll-view",attrs:{"scroll-y":!0}},t._l(t.multipleShoppingCartData,(function(e,o){return i("v-uni-view",{key:o},[i("v-uni-view",{staticClass:"store-title",staticStyle:{display:"flex","justify-content":"space-between"}},[i("v-uni-view",[i("v-uni-text",{staticStyle:{"font-weight":"bolder"}},[t._v(t._s(e.store_title))]),i("v-uni-text",{staticStyle:{"margin-left":"20rpx"}},[t._v("包装费RM"+t._s(e.boxPrice))])],1),i("v-uni-view",[i("v-uni-checkbox-group",[i("v-uni-checkbox",{attrs:{checked:e.checked},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleStoreCheckedChangeEvent(o)}},model:{value:e.checked,callback:function(i){t.$set(e,"checked",i)},expression:"i.checked"}})],1)],1)],1),t._l(e.data,(function(o,a){return i("v-uni-view",{key:a,staticClass:"product-item"},[i("v-uni-view",{staticClass:"item-image"},[i("v-uni-image",{staticClass:"image",staticStyle:{width:"100rpx",height:"100rpx","border-radius":"inherit"},attrs:{src:o.image,mode:"aspectFill"}})],1),i("v-uni-view",{staticClass:"item-info"},[i("v-uni-view",{staticClass:"item-title tn-full-width tn-text-ellipsis-1"},[t._v(t._s(o.title))]),i("v-uni-view",{staticClass:"item-spec"},[t._v(t._s(o.spec))]),i("v-uni-view",{staticClass:"item-operation"},[i("v-uni-view",{staticClass:"item-price tn-color-red"},[t._v("RM"+t._s(o.price.toFixed(2)))]),i("product-spec-number-box",{attrs:{"operation-from":"shoppingCart",type:0,sid:e.sid,"table-id":t.tableId,"spellrice-id":t.spellriceId,"good-id":o.goodId,"option-id":o.optionId,disabled:t.isRest},on:{"reduce-num":function(e){arguments[0]=e=t.$handleEvent(e),t.handleGoodNumChangeEvent(e,"-",a)},"add-num":function(e){arguments[0]=e=t.$handleEvent(e),t.handleGoodNumChangeEvent(e,"+",a)}},model:{value:o.num,callback:function(e){t.$set(o,"num",e)},expression:"item.num"}})],1)],1)],1)}))],2)})),1)],1):t._e(),i("v-uni-view",{staticClass:"product-list__bottom-empty"})],1)],1)},a=[]},"2baa":function(t,e,i){var o=i("c86c");e=o(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.bottom-modal[data-v-7cd1a66a]{position:fixed;left:0;top:0;width:100vw;height:100vh;z-index:99998\n /* mask */\n /* close-btn */\n /* wrapper */}.bottom-modal__mask[data-v-7cd1a66a]{position:absolute;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);opacity:0;-webkit-animation:showMask-data-v-7cd1a66a .25s ease .1s forwards;animation:showMask-data-v-7cd1a66a .25s ease .1s forwards}.bottom-modal__mask.transparent[data-v-7cd1a66a]{background-color:transparent}.bottom-modal__close-btn[data-v-7cd1a66a]{position:absolute;top:%?30?%;right:%?30?%;z-index:99999}.bottom-modal__wrapper[data-v-7cd1a66a]{position:absolute;left:0;bottom:0;width:100%;background-color:#fff;border-radius:%?20?% %?20?% %?0?% %?0?%;padding:%?40?%;padding-top:%?60?%;padding-bottom:%?40?%;padding-bottom:calc(constant(safe-area-inset-bottom) + %?40?%);padding-bottom:calc(env(safe-area-inset-bottom) + %?40?%);-webkit-transform-origin:center bottom;transform-origin:center bottom;-webkit-transform:scaleY(0);transform:scaleY(0);-webkit-animation:showWrapper-data-v-7cd1a66a .25s ease .1s forwards;animation:showWrapper-data-v-7cd1a66a .25s ease .1s forwards;z-index:99999;overflow:hidden}.bottom-modal__wrapper.no-padding[data-v-7cd1a66a]{padding:%?0?%;padding-bottom:%?40?%;padding-bottom:calc(constant(safe-area-inset-bottom) + %?40?%);padding-bottom:calc(env(safe-area-inset-bottom) + %?40?%)}@-webkit-keyframes showMask-data-v-7cd1a66a{0%{opacity:0}100%{opacity:1}}@keyframes showMask-data-v-7cd1a66a{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes showWrapper-data-v-7cd1a66a{0%{-webkit-transform:scaleY(0);transform:scaleY(0)}100%{-webkit-transform:scaleY(1);transform:scaleY(1)}}@keyframes showWrapper-data-v-7cd1a66a{0%{-webkit-transform:scaleY(0);transform:scaleY(0)}100%{-webkit-transform:scaleY(1);transform:scaleY(1)}}',""]),t.exports=e},"2d34":function(t,e){t.exports={data:function(){return{navBarInfo:{height:0,statusHeight:0},windowsOperationHeight:0,boundingInfo:{width:0,height:32,top:0,left:0,bottom:0,right:0}}},computed:{navBarStyle:function(){var t={};return t.height=this.navBarInfo.height+"px",this.$emit("getNavBarInfoHeight",this.navBarInfo.height),t},navbarContentStyle:function(){var t={},e=0;return e=this.boundingInfo.top?this.boundingInfo.top:(this.navBarInfo.height-this.boundingInfo.height)/2,t.height=this.boundingInfo.height+"px",t.top=e+"px",t},navbarTopStyle:function(){var t={},e=0;return e=this.boundingInfo.top?this.boundingInfo.top:(this.navBarInfo.height-this.boundingInfo.height)/2,t.top=e+"px",t},pageWrapperStyle:function(){return{top:"".concat(this.navBarInfo.height,"px")}}},methods:{initCustomNavBarInfo:function(){console.log("开始获取自定义导航栏");var t={height:0,statusHeight:45},e={width:0,height:32,top:0,left:0,bottom:0,right:0};try{var i,o=uni.getSystemInfoSync(),a=o.statusBarHeight;o.titleBarHeight;i=a+45,e.left=o.windowWidth,t={height:i,statusHeight:a},this.navBarInfo=t,this.boundingInfo=e,this.windowsOperationHeight=o.windowHeight-i}catch(n){console.error("更新导航栏信息失败",n),this.navBarInfo=t,this.boundingInfo=e}}}}},"307e":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 t.value?i("v-uni-view",{staticClass:"ordering-information"},[i("v-uni-image",{staticStyle:{width:"100%"},style:"height:calc(100vh - 500rpx)",attrs:{src:t.storeInfo&&t.storeInfo.person_num_image?t.storeInfo.person_num_image:"",mode:"aspectFill"}}),i("v-uni-view",{staticStyle:{"border-radius":"30px 30px 0 0","background-color":"#ffca28",opacity:"1","margin-top":"-140rpx","z-index":"2",position:"relative",height:"80rpx",width:"80%","margin-left":"10%",color:"#000","font-size":"16px","text-align":"center","line-height":"90rpx"}},[t._v(t._s(t.table_name))]),i("v-uni-view",{staticStyle:{"border-radius":"30px 30px 0 0","background-color":"#fff",opacity:"0.8","margin-top":"0rpx","z-index":"2",position:"relative",height:"80rpx"}}),i("v-uni-view",{staticClass:"content",staticStyle:{"margin-top":"-20rpx"}},[i("v-uni-view",{staticStyle:{"font-size":"16px","font-weight":"600"}},[t._v("你好 , 请选择就餐人数")]),i("v-uni-view",{staticClass:"numbox",staticStyle:{margin:"30rpx 0","font-size":"16px"}},[i("v-uni-view",{staticClass:"item",class:1==t.num?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.change_num(1)}}},[t._v("1")]),i("v-uni-view",{staticClass:"item",class:2==t.num?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.change_num(2)}}},[t._v("2")]),i("v-uni-view",{staticClass:"item",class:3==t.num?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.change_num(3)}}},[t._v("3")]),i("v-uni-view",{staticClass:"item",class:4==t.num?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.change_num(4)}}},[t._v("4")]),i("v-uni-view",{staticClass:"item",class:5==t.num?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.change_num(5)}}},[t._v("5")]),i("v-uni-view",{staticClass:"item",class:6==t.num?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.change_num(6)}}},[t._v("6")]),i("v-uni-view",{staticClass:"item",class:t.num>=7?"on":"",staticStyle:{width:"48%"}},[i("v-uni-view",{staticClass:"numbox ",staticStyle:{display:"flex","align-items":"center","justify-content":"space-around","border-radius":"30px"},style:t.num>=7?"background: #ffca28;color: #000;":""},[i("v-uni-text",{staticStyle:{"font-size":"25px","font-weight":"600",margin:"0 20rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.del.apply(void 0,arguments)}}},[t._v("-")]),i("v-uni-input",{staticStyle:{width:"100rpx"},attrs:{type:"number"},model:{value:t.num,callback:function(e){t.num=e},expression:"num"}}),i("v-uni-text",{staticStyle:{"font-size":"25px","font-weight":"600",margin:"0 20rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.add.apply(void 0,arguments)}}},[t._v("+")])],1)],1),i("v-uni-view",{staticStyle:{clear:"both"}})],1),i("v-uni-view",{staticClass:"submitbtn ",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.handleOrderEvent.apply(void 0,arguments)}}},[t._v("开始点餐")])],1)],1):t._e()},a=[]},"46ea":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.REFRESH_STORE_EVENT=void 0;e.REFRESH_STORE_EVENT="refresh_store"},"4f43":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.navPage=e.navMiniProgram=e.navBack=void 0,i("4626"),i("5ac7"),i("5ef2"),i("f7a5");e.navBack=function(t,e){var i=t||"/pages/index/index",o=getCurrentPages();if((null===o||void 0===o?void 0:o.length)>0){var a=o[0];1!==o.length||a.route&&a.route==i?uni.navigateBack({delta:e||1}):uni.reLaunch({url:i})}else uni.reLaunch({url:i})};e.navPage=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nav";if(t)if("nav"===e)if(t.includes("miniProgram"))o(t);else if(t.includes("webview")){var i=t.split("webview:"),a=i[1];uni.navigateTo({url:"/system-page/webview/webview?url="+encodeURIComponent(a),fail:function(t){console.error("[navigateTo]跳转页面失败",t)}})}else uni.navigateTo({url:t,fail:function(t){console.error("[navigateTo]跳转页面失败",t)}});else"redirect"===e?uni.redirectTo({url:t,fail:function(t){console.error("[redirectTo]跳转页面失败",t)}}):"reLaunch"===e?uni.reLaunch({url:t,fail:function(t){console.error("[reLaunch]跳转页面失败",t)}}):"phone"===e&&uni.makePhoneCall({phoneNumber:t,fail:function(t){console.error("[phone]拨打电话失败",t)}})};var o=function(t){if(t&&-1!=t.indexOf(":")){for(var e=t.split(":"),i=e[1].split(","),o={},a=0;a0&&(this.table_id=t.table_id,this.getStoreInfo())},computed:{isRest:function(){return 1==this.storeInfo.storeInfo.isRest||0==this.storeInfo.storeInfo.isInBusiness}},methods:{getDataList:function(){var t=this;a.default.tableGoodsList({sid:this._sid}).then((function(e){t.goodsList=e.data.CategoryGoods.map((function(t){return t.goods=t.goods.map((function(t){return t.specOptions=1===t.is_attrs||1===t.is_materials||1===t.is_options?1:0,t})),t})),t.$nextTick((function(){t.calcGroupPositions()}))}))},getStoreInfo:function(){var t=this;(0,u.getStoreInfoApi)({sid:this._sid,table_id:this.table_id}).then((function(e){var i;t.isLogin=!0;var o,a,n=e.store;t.table_id&&(t.showOrderingRenshuModal=1==(null===n||void 0===n||null===(o=n.tangshi)||void 0===o?void 0:o.person_num_status),t.storeInfo.storeInfo.person_num_image=(null===n||void 0===n||null===(a=n.tangshi)||void 0===a?void 0:a.image_url)||"",t.table_name=n&&n.table?n.table.title:"",t.storeInfo.storeInfo.table=n&&n.table?n.table:"");t.storeInfo.storeInfo.id=(null===n||void 0===n?void 0:n.id)||"",t.storeInfo.storeInfo.title=(null===n||void 0===n?void 0:n.title)||"",t.storeInfo.storeInfo.logo=(null===n||void 0===n?void 0:n.logo)||"",t.storeInfo.storeInfo.score=(null===n||void 0===n?void 0:n.score)||5,t.storeInfo.storeInfo.sendPrice=(null===n||void 0===n?void 0:n.send_price)||0,t.storeInfo.storeInfo.selfPickupMinPrice=(null===n||void 0===n?void 0:n.self_pickup_min_price)||0,t.storeInfo.storeInfo.deliveryPrice=(null===n||void 0===n?void 0:n.delivery_price)||0,t.storeInfo.storeInfo.deliveryTime=(null===n||void 0===n?void 0:n.delivery_time)||0,t.storeInfo.storeInfo.notice=(null===n||void 0===n?void 0:n.notice)||"",t.storeInfo.storeInfo.content=(null===n||void 0===n?void 0:n.content)||"",t.storeInfo.storeInfo.mobile=(null===n||void 0===n?void 0:n.telephone)||"",t.storeInfo.storeInfo.address=(null===n||void 0===n?void 0:n.address)||"",t.storeInfo.storeInfo.isRest=(null===n||void 0===n?void 0:n.is_rest)||0,t.storeInfo.storeInfo.isInBusiness=(null===n||void 0===n?void 0:n.is_in_business)||0,t.storeInfo.storeInfo.coupons=(null===n||void 0===n?void 0:n.coupon)||[],t.storeInfo.storeInfo.delivery_type=null===n||void 0===n?void 0:n.delivery_type,t.storeInfo.storeInfo.is_favorite=(null===n||void 0===n?void 0:n.is_favorite)||!1,t.storeInfo.storeInfo.delivery_title=(null===n||void 0===n?void 0:n.delivery_title)||"",t.storeInfo.storeInfo.delivery_fee_mode=(null===n||void 0===n?void 0:n.delivery_fee_mode)||1,t.storeInfo.storeInfo.address_type=(null===n||void 0===n?void 0:n.address_type)||0,t.storeInfo.storeInfo.deliveryFreePrice=(null===n||void 0===n?void 0:n.delivery_free_price)||0,t.storeInfo.storeInfo.distance=(null===n||void 0===n?void 0:n.distance)||0,t.storeInfo.class_type=(null===n||void 0===n?void 0:n.class_type)||2,t.storeInfo.table=(null===n||void 0===n?void 0:n.table)||[],t.storeInfo.activity=(null===n||void 0===n?void 0:n.activity)||{},t.storeInfo.storeInfo.default_display_selection=+(null===n||void 0===n||null===(i=n.data)||void 0===i?void 0:i.default_display_selection)||1,t.storeInfo.storeInfo.storeShow=(null===n||void 0===n?void 0:n.storeShow)||{},t.storeInfo.multiple_cart_is_open=(null===n||void 0===n?void 0:n.multiple_cart_is_open)||0,t.storeInfo.multiple_cart_add_fee=+(null===n||void 0===n?void 0:n.multiple_cart_add_fee)||0,t.storeInfo.storeInfo.vip_is_open=(null===n||void 0===n?void 0:n.vip_is_open)||0,t.storeInfo.storeInfo.vip_config=(null===n||void 0===n?void 0:n.vip_config)||[],t.pageShowType=n.pageShowType})).catch((function(e){console.error("[store-template-1]获取店铺信息失败",e),"请重新登录"==e.msg?t.isLogin=!1:(0,l.showModal)({title:"提示",content:e.msg||"获取店铺信息失败",callback:function(){(0,p.navBack)()}})}))},initScrollHeight:function(){var t=uni.getSystemInfoSync();this.scrollHeight=t.windowHeight-this.vuex_custom_bar_height},calcGroupPositions:function(){var t=this,e=uni.createSelectorQuery().in(this);this.groupPositions=[],this.goodsList.forEach((function(t,i){e.select("#group-".concat(i)).boundingClientRect()})),e.exec((function(e){e.forEach((function(e,i){if(e){var o={height:e.height,top:e.top};0===i?(o.start=0,o.end=e.height):(o.start=t.groupPositions[i-1].end,o.end=o.start+e.height),t.groupPositions[i]=o}}))}))},switchCategory:function(t){var e;t!=this.activeIndex&&(this.scrollTop=(null===(e=this.groupPositions[t])||void 0===e?void 0:e.start)+5||0,this.activeIndex=t)},handleScroll:function(t){var e=t.detail.scrollTop,i=this.groupPositions.findIndex((function(t){return e>=t.start&&e0&&(t.num=0)}))}))},getStoreShoppingCartData:function(){var t;(null===(t=this.$refs.shoppingCartRef)||void 0===t?void 0:t.updateShoppingCartData)&&this.$refs.shoppingCartRef.updateShoppingCartData()},updateCategoryGoodsNum:function(t){this.categoryGoodsNum=t},updateGoodsNum:function(t){this.goodsNum=t,console.log("啊啊啊啊啊啊啊啊",t,this.goodsNum)},getCartId:function(t){this.cartId=t},handleSubmitOrderRefreshEvent:function(){this.isRefreshData=!0},handleUpdateCategoryEvent:function(t){var e;(null===(e=this.$refs.goodsList)||void 0===e?void 0:e.handRequireCategoryEvent)&&this.$refs.goodsList.handRequireCategoryEvent(t)},handleOrderingRenshuClickEvent:function(t){this.renshu=t,this.showOrderingRenshuModal=!1,this.getDataList()},getCategoryGoodsNum:function(t){var e=this.categoryGoodsNum.find((function(e){return e.cid==t}));return e?e.num:null},getGoodsNum:function(t){var e=this.goodsNum.find((function(e){return e.goodId==t}));return e?e.num:null}}});e.default=f},7401:function(t,e,i){var o=i("668d");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=i("967d").default;a("94576c2e",o,!0,{sourceMap:!1,shadowMode:!1})},"79a6":function(t,e,i){var o=i("c86c");e=o(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.ordering-information[data-v-6c0885f4]{position:fixed;left:%?0?%;top:0;width:100vw;height:100vh;background-color:#fff;z-index:99999}\n/* 信息内容 start */.content[data-v-6c0885f4]{position:relative;padding:%?30?%;width:100%;height:calc(100% - %?240?%);padding-bottom:%?160?%}.content .data[data-v-6c0885f4]{margin-top:%?30?%}\n/* 信息内容 end */',""]),t.exports=e},"8d2a":function(t,e,i){"use strict";i.r(e);var o=i("1ee6"),a=i("9f89");for(var n in a)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(n);i("027c");var r=i("828b"),s=Object(r["a"])(a["default"],o["b"],o["c"],!1,null,"5ef10296",null,!1,o["a"],void 0);e["default"]=s.exports},"95e4":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("64aa");var o={options:{virtualHost:!0},props:{value:{type:Boolean,default:!1},closeBtn:{type:Boolean,default:!0},zIndex:{type:[String,Number],default:""},noPadding:{type:Boolean,default:!1},mask:{type:Boolean,default:!0},closeMask:{type:Boolean,default:!0},transparentMask:{type:Boolean,default:!1}},data:function(){return{openModal:!1}},computed:{modalStyle:function(){var t={};return this.zIndex&&(t.zIndex=Number(this.zIndex-1)),t},closeBtnStyle:function(){var t={};return this.zIndex&&(t.zIndex=Number(this.zIndex)),t},wrapperStyle:function(){var t={};return this.zIndex&&(t.zIndex=Number(this.zIndex)),t}},watch:{value:{handler:function(t){this.openModal=t},immediate:!0}},methods:{closeModal:function(t){("mask"!==t||this.closeMask)&&(this.$emit("cancel"),this.$emit("input",!1),this.$emit("close"))}}};e.default=o},"9f89":function(t,e,i){"use strict";i.r(e);var o=i("faf2"),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},a016:function(t,e,i){"use strict";i.r(e);var o=i("b089"),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},a465:function(t,e,i){"use strict";i.r(e);var o=i("95e4"),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},a736:function(t,e,i){"use strict";i.r(e);var o=i("d28f"),a=i("a465");for(var n in a)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(n);i("c8a1");var r=i("828b"),s=Object(r["a"])(a["default"],o["b"],o["c"],!1,null,"7cd1a66a",null,!1,o["a"],void 0);e["default"]=s.exports},a86a:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return o}));var o={tnNavBar:i("3703").default,tnBadge:i("8d2a").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("tn-nav-bar",[t._v("商品列表")]),i("v-uni-view",{staticStyle:{height:"100vh",display:"flex","flex-direction":"column"},style:{paddingTop:t.vuex_custom_bar_height+"px"}},[t.goodsList.length?i("v-uni-view",{staticClass:"main-content"},[i("v-uni-scroll-view",{staticClass:"left-nav",style:{height:t.scrollHeight+"px"},attrs:{"scroll-y":!0,"scroll-into-view":"cate-"+t.activeIndex,"scroll-anchoring":!0,"scroll-with-animation":!0}},[t._l(t.goodsList,(function(e,o){return i("v-uni-view",{key:o,staticClass:"nav-item",class:{active:t.activeIndex===o},attrs:{id:"cate-"+o},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.switchCategory(o)}}},[e.thumb?i("v-uni-image",{staticClass:"nav-image",attrs:{src:e.thumb,mode:"aspectFill"}}):t._e(),i("v-uni-text",{staticClass:"nav-text"},[t._v(t._s(e.title))]),t.activeIndex===o?i("v-uni-view",{staticClass:"bR"}):t._e(),t.getCategoryGoodsNum(e.id)?i("tn-badge",{attrs:{backgroundColor:"#ff0004",fontColor:"#ffffff",absolute:!0,top:"20",right:"20",radius:32}},[t._v(t._s(t.getCategoryGoodsNum(e.id)))]):t._e()],1)})),i("v-uni-view",{staticStyle:{height:"200rpx",width:"100%","background-color":"#f4f4f4"}})],2),i("v-uni-scroll-view",{staticClass:"right-list",style:{height:t.scrollHeight+"px"},attrs:{"scroll-y":!0,"scroll-top":t.scrollTop,"scroll-anchoring":!0},on:{scroll:function(e){arguments[0]=e=t.$handleEvent(e),t.handleScroll.apply(void 0,arguments)}}},[t._l(t.goodsList,(function(e,o){return i("v-uni-view",{key:o,staticClass:"goods-group",attrs:{id:"group-"+o}},[i("v-uni-view",{staticClass:"group-title"},[i("span",{staticStyle:{"border-left":"8rpx solid #ffca28","padding-left":"20rpx"}},[t._v(t._s(e.title))])]),t._l(e.goods,(function(e,a){return i("v-uni-view",{key:e.id,staticClass:"goods-item"},[i("v-uni-image",{staticClass:"goods-image",attrs:{src:e.thumb,mode:"aspectFill"}}),i("v-uni-view",{staticClass:"goods-info"},[i("v-uni-view",{staticClass:"goods-title"},[t._v(t._s(e.title))]),i("v-uni-view",{staticClass:"price-container"},[i("v-uni-text",{staticClass:"current-price"},[t._v("RM"+t._s(e.ts_price))])],1),i("v-uni-view",{staticClass:"tn-flex",staticStyle:{"justify-content":"space-between","align-items":"center"}},[i("v-uni-view",{staticClass:"sales"},[t._v(t._s(-1==e.total?"有库存":"库存"+e.total))]),i("product-spec-number-box",{ref:"goods",refInFor:!0,attrs:{value:t.getGoodsNum(e.id),min:e.min,max:e.max,type:e.specOptions,"image-url":e.image?e.image:e.thumb,desc:e.content,sid:e.sid,"good-id":e.id,"table-id":t.table_id,title:e.title,"good-price":e.price,disabled:!1,is_api:e.is_api,"good-old-price":e.oldPrice,good_code:e.good_code,brand:e.brand,storeCode:e.storeCode,buy_limit:e.buy_limit},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.handleProductNumChangeEvent(e,o,a)},"input-num":function(e){arguments[0]=e=t.$handleEvent(e),t.handleProductInputUpdaeEvent(e,o,a)}}})],1)],1)],1)}))],2)})),i("v-uni-view",{staticStyle:{height:"200rpx"}})],2)],1):i("v-uni-view",{staticClass:"empty-state"},[i("v-uni-text",{staticClass:"empty-text"},[t._v("暂无商品数据")])],1)],1),i("center-modal",{attrs:{"confirm-text":"修改"},on:{cancel:function(e){arguments[0]=e=t.$handleEvent(e),t.openInputGoodsNumModal=!t.openInputGoodsNumModal},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.submitUpdateCart.apply(void 0,arguments)}},model:{value:t.openInputGoodsNumModal,callback:function(e){t.openInputGoodsNumModal=e},expression:"openInputGoodsNumModal"}},[i("v-uni-input",{staticClass:"input",attrs:{type:"digit",placeholder:"请输入商品数量"},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}})],1),i("v-uni-view",{staticClass:"shopping-cart theme-shopping-cart"},[i("shopping-cart",{ref:"shoppingCartRef",attrs:{"send-price":t.storeInfo.storeInfo.sendPrice,selfPickupMinPrice:t.storeInfo.storeInfo.selfPickupMinPrice,"delivery-price":t.storeInfo.storeInfo.deliveryPrice,sid:t.storeInfo.storeInfo.id,"goods-data":t.goodsList,"table-id":t.table_id,"is-rest":t.storeInfo.storeInfo.isRest,deliveryType:t.storeInfo.storeInfo.delivery_type,isZiti:t.delivery_type,storeCode:t.storeCode,encrypted_data:t.encrypted_data,multiple_cart:t.storeInfo.multiple_cart_is_open,multiple_cart_add_fee:t.storeInfo.multiple_cart_add_fee,pageShowType:t.pageShowType},on:{updateCategoryGoodsNum:function(e){arguments[0]=e=t.$handleEvent(e),t.updateCategoryGoodsNum.apply(void 0,arguments)},updateGoodsNum:function(e){arguments[0]=e=t.$handleEvent(e),t.updateGoodsNum.apply(void 0,arguments)},"get-cart-id":function(e){arguments[0]=e=t.$handleEvent(e),t.getCartId.apply(void 0,arguments)},"good-num-change":function(e){arguments[0]=e=t.$handleEvent(e),t.handleShoppingCartGoodNumChangeEvent.apply(void 0,arguments)},clear:function(e){arguments[0]=e=t.$handleEvent(e),t.handleShoppingCartClearEvent.apply(void 0,arguments)},"refresh-data":function(e){arguments[0]=e=t.$handleEvent(e),t.handleSubmitOrderRefreshEvent.apply(void 0,arguments)},"update-category":function(e){arguments[0]=e=t.$handleEvent(e),t.handleUpdateCategoryEvent.apply(void 0,arguments)},updateCartNumber:function(e){arguments[0]=e=t.$handleEvent(e),t.updateCartNumber.apply(void 0,arguments)}}}),i("showcase-ordering-renshu",{attrs:{table_name:t.table_name,storeInfo:"storeInfo.storeInfo"},on:{ordering:function(e){arguments[0]=e=t.$handleEvent(e),t.handleOrderingRenshuClickEvent.apply(void 0,arguments)}},model:{value:t.showOrderingRenshuModal,callback:function(e){t.showOrderingRenshuModal=e},expression:"showOrderingRenshuModal"}})],1)],1)},n=[]},b089:function(t,e,i){"use strict";i("6a54");var o=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("64aa");o(i("2d34"));var a={props:{value:{type:Boolean,default:!1},table_name:"",storeInfo:""},data:function(){return{num:2}},methods:{change_num:function(t){console.log("e",t),this.num=t},add:function(){this.num=Number(this.num)+1},del:function(){Number(this.num)>1&&(this.num=Number(this.num)-1)},handleOrderEvent:function(){this.$emit("ordering",this.num)}}};e.default=a},b1a6:function(t,e,i){var o=i("2baa");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=i("967d").default;a("90b74ece",o,!0,{sourceMap:!1,shadowMode:!1})},b29e:function(t,e,i){var o=i("c86c");e=o(!1),e.push([t.i,".numbox .item[data-v-6c0885f4]{float:left;width:23%;background:#f5f5f5;height:%?78?%;border-radius:30px;margin:%?15?% 1%;text-align:center;line-height:%?78?%}.numbox .item.on[data-v-6c0885f4]{background:#ffca28;color:#000}.submitbtn[data-v-6c0885f4]{background-color:#ffca28;border-radius:30px;height:%?90?%;width:100%;margin:%?40?% 0;text-align:center;font-size:16px;color:#000;line-height:%?90?%}",""]),t.exports=e},b4f0:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.checkUserIsLogin=void 0,i("bf0f");i("0c8e");var o=i("edc8");e.checkUserIsLogin=function(){return new Promise((function(t,e){var i=uni.getStorageSync(o.TOKEN_KEY);return i?t():e()}))}},c266:function(t,e,i){"use strict";i.r(e);var o=i("a86a"),a=i("ce45");for(var n in a)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(n);i("563f");var r=i("828b"),s=Object(r["a"])(a["default"],o["b"],o["c"],!1,null,"68057701",null,!1,o["a"],void 0);e["default"]=s.exports},c8a1:function(t,e,i){"use strict";var o=i("b1a6"),a=i.n(o);a.a},cbea:function(t,e,i){"use strict";i("6a54");var o=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.searchRecordApi=e.postStoreCouponApi=e.postStoreCollectApi=e.myStoreApi=e.joinStoreVipApi=e.getStoreVipInfoApi=e.getStoreTangshiGoodsListApi=e.getStoreShoppingCartDataApi=e.getStoreInfoApi=e.getStoreGoodsListApi=e.getStoreCommentListApi=e.getOrderDinnerStoreListApi=e.getOrderDinnerStoreIdApi=e.getMyCommentListApi=e.getIsBrandStoreApi=e.getFaviateBrandStoreListApi=e.getCodeInfoByCodeApi=e.getClassChild=e.getCategorys=e.getBrandStoreListApi=e.getBrandMasterApi=e.getBrandGoodsApi=e.getBrandApi=e.delCommentApi=void 0,i("5c47"),i("af8f");var a=o(i("b4f6"));e.getStoreInfoApi=function(t){var e=t.sid,i=t.table_id,o=t.storeCode,n=t.brand;return a.default.get("api/user.store.store/index",{sid:e,table_id:i,storeCode:o,brand:n})};e.getStoreVipInfoApi=function(t){return a.default.get("api/user.store.store/storeVip",t)};e.joinStoreVipApi=function(t){return a.default.post("api/user.store.store/joinStoreVip",t)};e.getStoreGoodsListApi=function(t){var e=t.sid,i=t.search,o=t.orderId,n=t.cid,r=t.child_id,s=t.page,d=t.is_api_shop,c=t.storeCode,u=t.api_brand,l=t.order_type,p=t.encrypted_data,f=t.write_off_type,g=t.is_promotion,h=t.goodsC,v=t.chrid;return a.default.get("api/user.store.goods/goods",{sid:e,child_id:r||"",search:i||"",order_id:o||"",cid:n||"",page:s||1,is_api_shop:d||"",storeCode:c||"",api_brand:u||"",order_type:l||"",encrypted_data:p||"",write_off_type:f||"",is_promotion:g||-1,goodsC:h,chrid:v||""})};e.getStoreShoppingCartDataApi=function(t){var e=t.sid,i=t.tableId,o=t.encrypted_data;return a.default.get("api/user.store.goods/cartIndex",{sid:e,table_id:i||"",encrypted_data:o||""})};e.getStoreCommentListApi=function(t){var e=t.sid,i=t.type,o=t.note,n=t.page,r=t.pSize;return a.default.get("api/user.store.store/comment",{sid:e,type:i||"",note:o||0,page:n,psize:r})};e.getMyCommentListApi=function(t){var e=t.page,i=t.pSize;return a.default.get("api/user.store.store/myComment",{page:e,psize:i})};e.delCommentApi=function(t){return a.default.post("api/user.store.store/delComment",t)};e.getStoreTangshiGoodsListApi=function(t){var e=t.sid,i=t.search,o=t.tableId,n=t.clear;return a.default.get("api/user.store.table/goods",{sid:e,search:i||"",table_id:o,clear:n||!1})};e.postStoreCouponApi=function(t){var e=t.sid;return a.default.post("api/user.channel.coupon/receive",{sid:e})};e.postStoreCollectApi=function(t){var e=t.sid,i=t.type,o=t.storeCode;return a.default.get("api/user.member.favorite/operate",{sid:e,type:i,storeCode:o})};e.getCategorys=function(t){var e=t.template_id;return a.default.get("api/user.store.goods/plugin_categorys",{template_id:e})};e.getClassChild=function(t){var e=t.cid;return a.default.get("api/user.store.goods/plugin_goods",{cid:e})};e.getOrderDinnerStoreListApi=function(t){return a.default.get("api/user.store.store/getOrderDinnerStoreList",t)};e.getOrderDinnerStoreIdApi=function(t){return a.default.get("api/user.store.store/getOrderDinnerStoreId",t)};e.getBrandApi=function(t){return a.default.get("api/user.store.store/getBrand?sid="+t)};e.getCodeInfoByCodeApi=function(t){return a.default.get("api/user.store.store/getCodeInfo?code="+t,{})};e.searchRecordApi=function(t){return a.default.post("api/user.tuangouquan.write_off/searchRecords",t)};e.getIsBrandStoreApi=function(t){return a.default.get("api/user.store.store/getIsBrandStore?sid="+t)};e.getBrandStoreListApi=function(t){return a.default.post("api/user.store.store/getBrandStoreList",t)};e.getFaviateBrandStoreListApi=function(t){return a.default.get("api/user.store.store/getFaviateBrandStoreList",t)};e.getBrandMasterApi=function(t){return a.default.get("api/user.appointment.index/index?sid="+t)};e.getBrandGoodsApi=function(t){return a.default.get("api/user.appointment.index/goods?sid="+t)};e.myStoreApi=function(){return a.default.get("api/user.store.store/myStore")}},ce45:function(t,e,i){"use strict";i.r(e);var o=i("70a5b"),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},cfdc:function(t,e,i){"use strict";i("6a54");var o=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=o(i("9b1b"));i("64aa"),i("473f"),i("bf0f"),i("2797"),i("aa77"),i("aa9c"),i("c223"),i("fd3c"),i("8f71"),i("c9b5"),i("ab80"),i("dd2b");var n=o(i("7dcc")),r=o(i("a736")),s=o(i("e165")),d=i("edc8"),c=i("47da"),u=i("4f43"),l=i("cbea"),p=i("dfc8"),f=i("46ea"),g={props:{sendPrice:{type:[String,Number],default:0},selfPickupMinPrice:{type:[String,Number],default:0},deliveryPrice:{type:[String,Number],default:0},sid:{type:[String,Number],default:""},spellriceId:{type:[String,Number],default:""},tableId:{type:[String,Number],default:""},isRest:{type:Boolean,default:!1},goodsData:{type:Array,default:[]},deliveryType:{type:Number,default:1},isZiti:{type:Boolean,default:!1},personNum:{type:[String,Number],default:""},brand:{type:String,default:""},storeCode:{type:String,default:""},encrypted_data:{type:String,default:""},multiple_cart:{type:[Boolean,String,Number],default:!1},multiple_cart_add_fee:{type:Number,default:0},pageShowType:{type:Number,default:0}},components:{BottomModal:r.default,ProductSpecNumberBox:s.default},mixins:[n.default],data:function(){return{shoppingCartData:{boxPrice:0,data:[],discount_by_num_id:0,discount_by_num_price:0,encrypted_data:"",is_single_no_delivery:0},require:!0,require_text:"未选必选品",requireIndex:-1,showProductList:!1,cidMinPrice:!1,cidMinPriceText:"最低消费0",multipleShoppingCartData:[],other_shop_num:0,multiple_cart_delivery_price:0,tuangouquan_price:0,is_loaded:!1,shop_image:d.BASE_URL+"uploads/images/shopping/shangpin.png",categoryGoodsNum:[],goodsNum:[]}},computed:{totalPrice:function(){var t=this;if(0==this.multiple_cart){var e=0;return this.shoppingCartData.data.length>0&&(e=this.shoppingCartData.data.reduce((function(e,i){return i.is_tuangouquan?(t.tuangouquan_price=i.tuangouquan_price,e+i.total_discount_price-i.tuangouquan_price):e+i.total_discount_price}),0)),this.shoppingCartData.discount_by_num_id>0&&e!=this.shoppingCartData.price&&(e=this.shoppingCartData.price),this.shoppingCartData.encrypted_data&&(e=this.shoppingCartData.price),e.toFixed(2)}var i=0;return this.multipleShoppingCartData.length>0&&this.multipleShoppingCartData.forEach((function(t){t.checked&&t.data.forEach((function(t){Array.isArray(t)||(t=[t]),i+=t.reduce((function(t,e){return t+e.total_discount_price}),0)}))})),i.toFixed(2)},oldTotalPrice:function(){if(0==this.multiple_cart){var t=0;return this.shoppingCartData.data.length>0&&(t=this.shoppingCartData.data.reduce((function(t,e){if(88888!=e.goods_id)return t+e.oldPrice*e.num}),0)),t.toFixed(2)}var e=0;return this.multipleShoppingCartData.length>0&&this.multipleShoppingCartData.forEach((function(t){t.checked&&t.data.forEach((function(t){Array.isArray(t)||(t=[t]),e+=t.reduce((function(t,e){return t+e.oldPrice*e.num}),0)}))})),e.toFixed(2)},totalNum:function(){var t=0;return 0==this.multiple_cart?this.shoppingCartData.data.length>0&&(t=this.shoppingCartData.data.reduce((function(t,e){return t+e.num}),0)):this.multipleShoppingCartData.length>0&&this.multipleShoppingCartData.forEach((function(e){e.checked&&e.data.forEach((function(e){Array.isArray(e)||(e=[e]),t+=e.reduce((function(t,e){return t+e.num}),0)}))})),t},submitBtnTipText:function(){var t=this;if(this.isRest)return"休息中...";var e=Number(this.totalPrice),i=Number(this.sendPrice),o=Number(this.selfPickupMinPrice),n=!0;if(console.log("this.shoppingCartData",this.shoppingCartData),this.goodsData.length>0)for(var r=!1,s=!1,d=function(e){for(var i=0;i0&&(t.cidMinPrice=!1,e.price0&&n?"单点不送":i>0?this.isZiti?e+this.tuangouquan_price>=o?"去结算":"差".concat((o-e).toFixed(2),"起送"):e+this.tuangouquan_price>=i?"去结算":"差".concat((i-e).toFixed(2),"起送"):this.isZiti&&e+this.tuangouquan_price=i?"去结算":"请选择商品"},isToSubmit:function(){if(this.isRest)return!1;if(this.cidMinPrice)return!1;var t=Number(this.totalPrice),e=Number(this.sendPrice),i=Number(this.selfPickupMinPrice);return this.isZiti?i>0&&t+this.tuangouquan_price>=i||0===i&&t+this.tuangouquan_price>i:e>=0&&t+this.tuangouquan_price>=e||0===e&&t+this.tuangouquan_price>=e}},watch:{sid:{handler:function(t){t&&this.updateShoppingCartData()},immediate:!0}},methods:{handleStoreCheckedChangeEvent:function(t){this.multipleShoppingCartData[t].checked=!this.multipleShoppingCartData[t].checked,console.log("this.multipleShoppingCartData",this.multipleShoppingCartData)},getShoppingCartData:function(){var t=this;(0,l.getStoreShoppingCartDataApi)({sid:this.sid,tableId:this.tableId,encrypted_data:this.encrypted_data}).then((function(e){t.tuangouquan_price=0,console.log(t.goodsData,"阿里"),t.$emit("updateCartNumber",t.goodsData);var i=e.cart;if(0==t.multiple_cart)t.shoppingCartData.boxPrice=i.box_price,t.shoppingCartData.price=i.price,t.shoppingCartData.discount_by_num_id=i.discount_by_num_id,t.shoppingCartData.encrypted_data=i.encrypted_data||"",t.shoppingCartData.discount_by_num_id=Number(i.discount_by_num_id),t.shoppingCartData.discount_by_num_price=Number(i.discount_by_num_price),i.data&&(t.shoppingCartData.data=i.data.reduce((function(t,e){return t.concat(e.filter((function(t){return"88888"!=t.goods_id})).map((function(t){var e=Number(t.price),o=Number(t.caigou_discount_price),a=Number(t.total_discount_price),n=Number(t.num),r=0;return e==t.caigou_discount_price?r=0:(r=Math.floor((a-o*n)/(e-o)),r=n-r,r&&(r+=1)),console.log("discount_num",r),{cid:t.cid,goodId:t.goods_id,optionId:(0===t.option_id?0:t.option_id).toString(),title:t.title,image:t.thumb,spec:t.option_title,min:0,max:-1,num:t.num,price:Number(t.price),oldPrice:Number((null===t||void 0===t?void 0:t.old_price)||t.price),cart_price:Number(i.cart_price),total_discount_price:Number(t.total_discount_price),is_tuangouquan:t.is_tuangouquan,tuangouquan_price:t.tuangouquan_price,bargain_type:t.bargain_type||"",caigou_discount_price:Number(t.caigou_discount_price)||Number(t.price),discount_num:r,is_single_no_delivery:t.is_single_no_delivery||0}})))}),[]));else{t.multipleShoppingCartData=[],console.log("cart",i),i.forEach((function(e){var i=e.data.reduce((function(t,i){return t.concat(i.filter((function(t){return"88888"!=t.goods_id})).map((function(t){return{cid:t.cid,goodId:t.goods_id,optionId:(0===t.option_id?0:t.option_id).toString(),title:t.title,image:t.thumb,spec:t.option_title,min:0,max:-1,num:t.num,price:Number(t.price),oldPrice:Number((null===t||void 0===t?void 0:t.old_price)||t.price),cart_price:Number(e.cart_price),total_discount_price:Number(t.total_discount_price),store_title:e.store_title,is_single_no_delivery:t.is_single_no_delivery}})))}),[]),o={boxPrice:e.box_price,data:i,discount_by_num_id:e.discount_by_num_id,discount_by_num_price:e.discount_by_num_price,encrypted_data:e.encrypted_data||"",store_title:e.store_title,sid:e.sid,checked:!0};t.multipleShoppingCartData.push(o),t.multiple_cart_delivery_price=e.delivery_price,e.sid==t.sid&&(t.shoppingCartData.boxPrice=e.box_price,t.shoppingCartData.price=e.price,t.shoppingCartData.discount_by_num_id=e.discount_by_num_id,t.shoppingCartData.encrypted_data=e.encrypted_data||"",t.shoppingCartData.discount_by_num_id=Number(e.discount_by_num_id),t.shoppingCartData.discount_by_num_price=Number(e.discount_by_num_price),t.shoppingCartData.data=i)})),console.log("shoppingCartData",t.shoppingCartData),console.log("cart",i),console.log("xxxxxx",t.multipleShoppingCartData);var o=t.multipleShoppingCartData.find((function(e){return e.sid==t.sid}));console.log("currentShopCart",o),o||(t.shoppingCartData.data=[])}console.log("shoppingCartData",t.shoppingCartData),console.log(t.shoppingCartData.data,"this.shoppingCartData.data"),uni.$emit("historyCart",t.shoppingCartData.data),t.categoryGoodsNum=[],t.goodsNum=[],console.log(t.shoppingCartData.data,"this.shoppingCartData.data"),t.shoppingCartData.data.forEach((function(e){if(e.cid){var i=t.categoryGoodsNum.find((function(t){return t.cid===e.cid}));i?i.num+=e.num:t.categoryGoodsNum.push({cid:e.cid,num:e.num})}if(e.goodId){var o=t.goodsNum.find((function(t){return t.goodId===e.goodId}));o?o.num+=e.num:t.goodsNum.push({goodId:e.goodId,num:e.num}),console.log("this.goodsNum",t.goodsNum)}})),console.log("this.categoryGoodsNum",t.categoryGoodsNum),t.$emit("updateCategoryGoodsNum",t.categoryGoodsNum),t.$emit("updateGoodsNum",t.goodsNum),t.$emit("get-cart-id",i.id),t.is_loaded=!0})).catch((function(e){console.error("[shoppingCart]获取店铺购物车数据失败",e),t.shoppingCartData.data=[]}))},updateShoppingCartData:function(){this.getShoppingCartData()},clearStoreShoppingCart:function(){var t=this;(0,c.showModal)({title:"操作提示",content:"确定需要清空购物车吗?",showCancel:!0,callback:function(e){e&&(0,p.clearStoreShoppingCartApi)({sid:t.sid}).then((function(e){(0,c.showToast)({title:"清空购物车成功"}),t._resetShoppingCartData(),t.getShoppingCartData(),t.showProductList=!1,t.$emit("clear")})).catch((function(t){console.error("[shoppingCart]清空购物车数据失败",t),(0,c.showToast)({title:t.msg})}))}})},getCheckedStore:function(){var t=[];return this.multipleShoppingCartData.forEach((function(e){e.checked&&t.push(e.sid)})),t},handleSubmitEvent:function(){var t=this;if(0!=this.totalNum){if(console.log(this.isToSubmit,this.require,this.requireIndex,"this.isToSubmit"),this.isToSubmit)if(!this.require&&this.requireIndex>=0)this.$emit("update-category",this.requireIndex);else{uni.$once(f.REFRESH_STORE_EVENT,(function(){t.$emit("refresh-data")}));var e=3===+this.deliveryType&&this.isZiti?1:0;if(console.log(this.deliveryType,this.isZiti),0==this.multiple_cart)this.tableId&&""!=this.tableId?(0,u.navPage)("/other-page/submit-order/submit-tangshi-order?sid=".concat(this.sid,"&table_id=").concat(this.tableId,"&personNum=")+this.personNum):(0,u.navPage)("/other-page/submit-order/submit-order?sid=".concat(this.sid,"&orderType=").concat(e,"&brand=").concat(this.brand,"&storeCode=").concat(this.storeCode));else{var i=this.getCheckedStore();if(i.length>0)if(1==i.length)(0,u.navPage)("/order-page/submit-order/index?sid=".concat(i.join(","),"&orderType=").concat(e,"&brand=").concat(this.brand,"&storeCode=").concat(this.storeCode));else{var o=i.join(",");(0,u.navPage)("/order-page/one-touch-submit-order/index?sids=".concat(o),"redirect")}else(0,c.showToast)({title:"请选择店铺"})}}}else(0,c.showToast)({title:"请选择商品"})},handleGoodNumChangeEvent:function(t,e,i){var o=this,a=this.shoppingCartData.data[i];this.updateShoppingCartData(),this.$emit("good-num-change",{cid:a.cid,goodId:a.goodId,type:e,sid:sid}),0===t&&this.$nextTick((function(){setTimeout((function(){o.shoppingCartData.data.splice(i,1)}),250)}))},_resetShoppingCartData:function(){this.shoppingCartData.boxPrice=0,this.shoppingCartData.data=[]},handleClickInfoEvent:function(){this.showProductList=!this.showProductList}}};e.default=g},d0c5:function(t,e,i){var o=i("13d2");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=i("967d").default;a("565e6516",o,!0,{sourceMap:!1,shadowMode:!1})},d210:function(t,e,i){"use strict";i.r(e);var o=i("307e"),a=i("a016");for(var n in a)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(n);i("1aa1"),i("dac9");var r=i("828b"),s=Object(r["a"])(a["default"],o["b"],o["c"],!1,null,"6c0885f4",null,!1,o["a"],void 0);e["default"]=s.exports},d28f: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 t.openModal?i("v-uni-view",{staticClass:"bottom-modal",style:[t.modalStyle]},[t.mask?i("v-uni-view",{staticClass:"bottom-modal__mask",class:[{transparent:t.transparentMask}],on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e)},click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.closeModal("mask")}}}):t._e(),i("v-uni-view",{staticClass:"bottom-modal__wrapper",class:[{"no-padding":t.noPadding,"tn-shadow":t.transparentMask}],style:[t.wrapperStyle]},[t.closeBtn?i("v-uni-view",{staticClass:"bottom-modal__close-btn",style:[t.closeBtnStyle],on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.closeModal("btn")}}},[i("v-uni-text",{staticClass:"tn-icon-close"})],1):t._e(),t._t("default")],2)],1):t._e()},a=[]},d82f:function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return new Promise((function(e,i){t&&t.length||e()}))},i("bf0f");i("47da")},dac9:function(t,e,i){"use strict";var o=i("10ef"),a=i.n(o);a.a},eda6:function(t,e,i){"use strict";i("6a54");var o=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.postStoreCouponApi=e.getStoreInfoApi=e.getStoreGoodsListApi=e.getOrderDinnerStoreIdApi=e.getCodeInfoByCodeApi=e.getBrandApi=e.getAlipayTemplateIdDataApi=e.exchangeApi=e.default=e.checkExchangeApi=e.applyRefundApi=void 0,e.refundListBySupplierApi=m,e.updateGoodCartApi=e.searchRecordApi=void 0,i("5c47"),i("af8f");var a=o(i("b4f6")),n=function(t){return a.default.get("api/user.store.store/getOrderDinnerStoreId",t)};e.getOrderDinnerStoreIdApi=n;var r=function(t){return a.default.get("api/user.store.store/getBrand?sid="+t)};e.getBrandApi=r;var s=function(t){return a.default.get("api/user.store.store/getCodeInfo?code="+t,{})};e.getCodeInfoByCodeApi=s;var d=function(t){return a.default.get("api/user.mealRedpacket.meal_redpacket/checkExchange?sid="+t)};e.checkExchangeApi=d;var c=function(t){return a.default.post("api/user.mealRedpacket.meal_redpacket/exchange",t)};e.exchangeApi=c;var u=function(){return a.default.get("api/system.template.AliTemplate/templateList")};e.getAlipayTemplateIdDataApi=u;var l=function(t){return a.default.post("api/user.tuangouquan.write_off/searchRecords",t)};e.searchRecordApi=l;var p=function(t){var e=t.sid,i=t.search,o=t.orderId,n=t.cid,r=t.child_id,s=t.page,d=t.is_api_shop,c=t.storeCode,u=t.api_brand,l=t.order_type,p=t.encrypted_data,f=t.write_off_type,g=t.is_promotion,h=t.goodsC,v=t.chrid;return a.default.get("api/user.store.goods/goods",{sid:e,child_id:r||"",search:i||"",order_id:o||"",cid:n||"",page:s||1,is_api_shop:d||"",storeCode:c||"",api_brand:u||"",order_type:l||"",encrypted_data:p||"",write_off_type:f||"",is_promotion:g||-1,goodsC:h,chrid:v||""})};e.getStoreGoodsListApi=p;var f=function(t){var e=t.sid,i=t.table_id,o=t.storeCode,n=t.brand;return a.default.get("api/user.store.store/index",{sid:e,table_id:i,storeCode:o,brand:n})};e.getStoreInfoApi=f;var g=function(t){var e=t.sid;return a.default.post("api/user.channel.coupon/receive",{sid:e})};e.postStoreCouponApi=g;var h=function(t){var e=t.goodsId,i=t.sid,o=t.num,n=t.options_id;return a.default.post("api/user.store.goods/updateCart",{sid:i,goods_id:e,num:o,options_id:n})};e.updateGoodCartApi=h;var v=function(t){return a.default.post("api/user.order.order/applyRefund",t)};function m(t){return a.default.get("api/user.order.order/refundListBySupplier",t)}e.applyRefundApi=v;var _={getOrderDinnerStoreIdApi:n,getBrandApi:r,getCodeInfoByCodeApi:s,checkExchangeApi:d,exchangeApi:c,getAlipayTemplateIdDataApi:u,searchRecordApi:l,getStoreGoodsListApi:p,getStoreInfoApi:f,postStoreCouponApi:g,updateGoodCartApi:h,applyRefundApi:v,refundListBySupplierApi:m};e.default=_},ee4a:function(t,e,i){var o=i("79a6");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=i("967d").default;a("2b13d60a",o,!0,{sourceMap:!1,shadowMode:!1})},faf2:function(t,e,i){"use strict";i("6a54");var o=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("64aa");var a=o(i("7caa")),n={mixins:[a.default],name:"tn-badge",props:{index:{type:[Number,String],default:"0"},radius:{type:Number,default:0},padding:{type:String,default:""},margin:{type:String,default:""},dot:{type:Boolean,default:!1},absolute:{type:Boolean,default:!1},top:{type:[String,Number],default:""},right:{type:[String,Number],default:""},translateCenter:{type:Boolean,default:!0}},computed:{badgeClass:function(){var t="";return this.dot&&(t+=" tn-badge--dot"),this.absolute&&(t+=" tn-badge--absolute",this.translateCenter&&(t+=" tn-badge--center-position")),t},badgeStyle:function(){var t={};return 0!==this.radius&&(t.width=this.radius+"rpx",t.height=this.radius+"rpx",t.lineHeight=this.radius+"rpx"),this.padding&&(t.padding=this.padding),this.margin&&(t.margin=this.margin),this.fontColorStyle&&(t.color=this.fontColorStyle),this.fontSize&&(t.fontSize=this.fontSize+this.fontUnit),this.backgroundColorStyle&&(t.backgroundColor=this.backgroundColorStyle),this.top&&(t.top=this.$t.string.getLengthUnitValue(this.top)),this.right&&(t.right=this.$t.string.getLengthUnitValue(this.right)),t}},data:function(){return{}},methods:{handleClick:function(){this.$emit("click",{index:Number(this.index)}),this.$emit("tap",{index:Number(this.index)})}}};e.default=n},fcaf:function(t,e,i){"use strict";var o=i("7401"),a=i.n(o);a.a}}]);