UNPKG

beehole-store-server

Version:

www.bee-hole.com

1 lines 20.1 kB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-39308111","chunk-7970105c","chunk-d757ac5e"],{"002b":function(t,e,a){"use strict";a("e9bb")},"49dd":function(t,e,a){"use strict";a.r(e);a("b0c0");var i=function(){var t=this,e=t._self._c;return e("div",[e("ant-modal",{attrs:{visible:t.open,"modal-title":t.formTitle,"adjust-size":!0,modalHeight:"480",modalWidth:t.isMobile?"100vw":"640"},on:{cancel:t.cancel}},[e("a-form-model",{ref:"form",attrs:{slot:"content",model:t.formData,rules:t.rules,layout:"vertical"},slot:"content"},[t.formData.cat_id?e("a-row",{staticClass:"form-row top-view",staticStyle:{"padding-top":"0"},attrs:{gutter:32}},[e("a-col",{attrs:{lg:24,md:24,sm:24}},[e("view-tabs",{attrs:{"view-id":t.view_id,defaultLang:t.defaultLang},on:{change:t.changeView,"update:defaultLang":function(e){t.defaultLang=e},"update:default-lang":function(e){t.defaultLang=e}}})],1)],1):t._e(),e("a-row",{staticClass:"form-row",class:{"top-view1":t.formData.cat_id},style:{paddingTop:t.formData.cat_id?"60px":"0"},attrs:{gutter:32}},[e("a-col",{attrs:{lg:24,md:24,sm:24}},[e("a-form-model-item",{attrs:{prop:"ai"}},[e("ai",{attrs:{value:t.formData.ai},on:{"update:value":function(e){return t.$set(t.formData,"ai",e)}}})],1)],1)],1),e("a-row",{staticClass:"form-row",attrs:{gutter:32}},[e("a-col",{attrs:{lg:24,md:24,sm:24}},[e("a-form-model-item",{attrs:{label:t.$t("view.test.list.form.name"),prop:"name"}},[e("a-input",{attrs:{placeholder:t.$t("view.test.list.form.placeholder.name"),disabled:1==t.formData.ai&&t.defaultLang!==t.lang},model:{value:t.formData.name,callback:function(e){t.$set(t.formData,"name",e)},expression:"formData.name"}},[t.defaultLang!==t.lang?e("aiTs",{attrs:{slot:"suffix",disabled:1==t.formData.ai&&t.defaultLang!==t.lang,value:t.formData.name,lang:t.lang,loadding:t.aiTsUpdate},on:{"update:value":function(e){return t.$set(t.formData,"name",e)},"update:loadding":function(e){t.aiTsUpdate=e}},slot:"suffix"}):t._e()],1)],1)],1)],1),e("a-row",{staticClass:"form-row",attrs:{gutter:32}},[e("a-col",{attrs:{lg:24,md:24,sm:24}},[e("a-form-model-item",{attrs:{label:t.$t("view.test.list.table.supCat"),prop:"p_cat_id"}},[e("cat-list",{attrs:{"view-id":t.view_id,"p-cat-id":t.formData.p_cat_id},on:{"update:pCatId":function(e){return t.$set(t.formData,"p_cat_id",e)},"update:p-cat-id":function(e){return t.$set(t.formData,"p_cat_id",e)}}})],1)],1)],1),e("a-row",{staticClass:"form-row",attrs:{gutter:32}},[e("a-col",{attrs:{lg:24,md:24,sm:24}},[e("a-form-model-item",{attrs:{label:t.image_url,prop:"image_url"}},[e("a-row",{staticStyle:{display:"flex"},attrs:{gutter:[16,8]}},[e("a-col",{attrs:{lg:7,md:7,sm:8}},[e("img",{staticClass:"iamge",attrs:{src:t.formData.image_url&&"http"!=t.formData.image_url?t.formData.image_url:"https://img.alicdn.com/imgextra/i1/20841398/TB2saKTcA9WBuNjSspeXXaz5VXa-20841398.png"}})]),e("a-col",{staticClass:"item-image-input",attrs:{lg:17,md:17,sm:14}},[e("attach-list",{attrs:{params:{good_id:3},value:t.formData.image_url},on:{"update:value":function(e){return t.$set(t.formData,"image_url",e)}}}),e("a-input",{staticStyle:{"margin-top":"10px"},attrs:{placeholder:t.$t("view.test.form.add.placeholder.img.link")},model:{value:t.formData.image_url,callback:function(e){t.$set(t.formData,"image_url",e)},expression:"formData.image_url"}})],1)],1)],1)],1)],1)],1),e("template",{slot:"footer"},[e("a-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$t("view.test.form.add.modal.btn.save"))+" ")]),e("a-button",{on:{click:t.cancel}},[t._v(" "+t._s(t.$t("view.test.form.add.modal.btn.cancel"))+" ")])],1)],2)],1)},n=[],s=a("5530"),c=a("c2f7"),r=Object(s["a"])({},c["default"]),o=r,d=(a("002b"),a("2877")),l=Object(d["a"])(o,i,n,!1,null,"c53b2762",null);e["default"]=l.exports},"68dd":function(t,e,a){"use strict";a("b0c0");var i=function(){var t=this,e=t._self._c;return e("div",[t.viewLists&&t.viewLists.length?e("a-select",{attrs:{placeholder:"请选择","allow-clear":"",getPopupContainer:function(t){return t.parentNode}},on:{change:t.back},model:{value:t.checkedViewId,callback:function(e){t.checkedViewId=e},expression:"checkedViewId"}},t._l(t.viewLists,(function(a,i){return e("a-select-option",{key:i,attrs:{value:a.view_id}},[t._v(t._s(a.name))])})),1):t._e()],1)},n=[],s=a("5530"),c=a("8f0e"),r=Object(s["a"])({},c["a"]),o=r,d=a("2877"),l=Object(d["a"])(o,i,n,!1,null,null,null);e["a"]=l.exports},"6be3":function(t,e,a){"use strict";a("b0c0");var i=function(){var t=this,e=t._self._c;return e("div",[t.catLists&&t.catLists.length?e("a-select",{attrs:{placeholder:"请选择","allow-clear":"",getPopupContainer:function(t){return t.parentNode},disabled:0!=t.readOnly},on:{change:t.back},model:{value:t.checkedcatId,callback:function(e){t.checkedcatId=e},expression:"checkedcatId"}},[0!=t.readOnly?e("div",{attrs:{slot:"suffixIcon"},slot:"suffixIcon"}):t._e(),t._l(t.catLists,(function(a,i){return e("a-select-option",{key:i,attrs:{value:a.cat_id}},[t._v(t._s(t.$t(a.name)))])}))],2):t._e()],1)},n=[],s=a("5530"),c=a("dcb0"),r=a("5880"),o={name:"CatSelect",props:{viewId:{default:""},pCatId:{default:0},readOnly:{default:0}},computed:Object(s["a"])({},Object(r["mapGetters"])(["shopId"])),data:function(){return{catLists:[],checkedcatId:this.pCatId}},created:function(){this.initLit()},watch:{viewId:function(t,e){t!==e&&this.initLit()}},methods:{initLit:function(){var t=this;Object(c["f"])({shop_id:this.shopId,view_id:this.viewId}).then((function(e){e.list.unshift({cat_id:0,name:"view.test.list.form.pcat_1"}),t.catLists=e.list}))},back:function(){this.$emit("update:pCatId",this.checkedcatId),this.$emit("change",this.checkedcatId)}}},d=Object(s["a"])({},o),l=d,u=a("2877"),m=Object(u["a"])(l,i,n,!1,null,null,null);e["a"]=m.exports},"70d0":function(t,e,a){"use strict";a.r(e);a("b0c0"),a("99af");var i=function(){var t=this,e=t._self._c;return e("div",[e("a-card",{staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[e("div",{ref:"search",staticClass:"table-page-search-wrapper"},[e("a-form",{attrs:{labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("a-row",{attrs:{gutter:48}},[e("a-col",{attrs:{md:6,sm:24}},[e("a-form-item",{attrs:{label:t.$t("view.test.list.form.name")}},[e("a-input",{attrs:{placeholder:t.$t("view.test.list.form.placeholder.name"),"allow-clear":""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleQuery.apply(null,arguments)}},model:{value:t.queryParam.name,callback:function(e){t.$set(t.queryParam,"name",e)},expression:"queryParam.name"}})],1)],1),e("a-col",{attrs:{lg:6,md:6,sm:24}},[e("a-form-model-item",{attrs:{label:t.$t("view.test.list.form.view"),prop:"name"}},[e("view-select",{attrs:{"view-id":t.queryParam.view_id},on:{change:t.changeView}})],1)],1),e("a-col",[e("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"right"}},[e("a-button",{attrs:{type:"primary"},on:{click:t.handleQuery}},[e("a-icon",{attrs:{type:"search"}}),t._v(t._s(t.$t("view.test.list.query.btn"))+" ")],1),e("a-button",{staticStyle:{"margin-left":"8px"},on:{click:t.resetQuery}},[e("a-icon",{attrs:{type:"redo"}}),t._v(t._s(t.$t("view.test.list.reset.btn"))+" ")],1)],1)])],1)],1)],1)]),e("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[t.visibleAddCat?e("add-cat",{ref:"AddCat",attrs:{viewId:t.queryParam.view_id},on:{ok:t.addcatBack,close:function(e){t.visibleAddCat=!1}}}):t._e(),e("advance-table",{attrs:{loading:t.loading,size:"middle","row-selection":{selectedRowKeys:t.selectedRowKeys,onChange:t.onSelectChange},"format-conditions":!0,columns:t.columns,"data-source":t.list,rowKey:"cat_id",tableKey:"test-cat-catlist-table",expandIconColumnIndex:1,defaultExpandedRowKeys:t.expandedRowKeys,expandedRowKeys:t.expandedRowKeys,pagination:{current:t.queryParam.page,pageSize:t.queryParam.limit,total:t.total_count,showSizeChanger:!0,showLessItems:!0,showQuickJumper:!0,showTotal:function(t,e){return"第 ".concat(e[0],"-").concat(e[1]," 条,总计 ").concat(t," 条")},onChange:t.changeSize,onShowSizeChange:t.onShowSizeChange},title:"列表"},on:{expand:t.expandNode},scopedSlots:t._u([{key:"p_cat_id",fn:function(a){var i=a.text;return e("span",{},[e("cat-list",{attrs:{"view-id":t.queryParam.view_id,"p-cat-id":i,"read-only":1}})],1)}},{key:"operation",fn:function(a){var i=a.text,n=a.record;return e("span",{},[e("a",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:post:edit"],expression:"['system:post:edit']"}],on:{click:function(e){return t.handleUpdate(n,void 0)}}},[t._v(" "+t._s(t.$t("view.test.list.update.btn"))+" ")]),e("a-divider",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:post:remove"],expression:"['system:post:remove']"}],attrs:{type:"vertical"}}),e("a",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:post:remove"],expression:"['system:post:remove']"}],on:{click:function(e){return t.handleDelete(n,i)}}},[t._v(" "+t._s(t.$t("view.test.list.delete.btn"))+" ")])],1)}}])},[e("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[e("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:user:add"],expression:"['system:user:add']"}],attrs:{type:"primary"},on:{click:function(e){return t.handleAdd()}}},[e("a-icon",{attrs:{type:"plus"}}),t._v(t._s(t.$t("view.test.list.add.btn"))+" ")],1),t.multiple?t._e():e("a-button",{attrs:{type:"danger"},on:{click:function(e){return t.handleDelete()}}},[e("a-icon",{attrs:{type:"delete"}}),t._v(" "+t._s(t.$t("view.test.list.delete.btn"))+" ")],1)],1)])],1)],1)},n=[],s=a("5530"),c=(a("d81d"),a("c740"),a("a434"),a("4de4"),a("d3b7"),a("5d9e")),r=a("49dd"),o=a("dcb0"),d=a("1b6c"),l=a("5880"),u=a("68dd"),m=a("6be3"),h={name:"Catlist",components:{AdvanceTable:c["a"],AddCat:r["default"],ViewSelect:u["a"],CatList:m["a"]},computed:Object(s["a"])({},Object(l["mapGetters"])(["shopId"])),data:function(){return{queryParam:{Name:"",page:1,limit:5},visibleAddCat:!1,loading:!1,multiple:!0,selectedRowKeys:[],labelCol:{span:8},wrapperCol:{span:16},total_count:21,expandedRowKeys:[],columns:[{title:"id",dataIndex:"cat_id",width:"250px",scopedSlots:{customRender:"id"}},{title:Object(d["a"])("view.test.list.form.name"),dataIndex:"name",width:"250px",scopedSlots:{customRender:"name"}},{title:Object(d["a"])("view.test.list.table.supCat"),dataIndex:"p_cat_id",width:"250px",scopedSlots:{customRender:"p_cat_id"}},{title:Object(d["a"])("view.test.list.table.operate"),dataIndex:"operation",width:"240px",scopedSlots:{customRender:"operation"}}],list:[]}},filters:{},created:function(){this.getList()},methods:{handleQuery:function(){this.getList()},resetQuery:function(){this.queryParam={Name:"",page:1,limit:5},this.handleQuery()},onSelectChange:function(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.ids=this.selectedRows.map((function(t){return t.cat_id})),this.userNames=this.selectedRows.map((function(t){return t.name})),this.single=1!==t.length,this.multiple=!t.length},handleAdd:function(){var t=this;this.visibleAddCat=!0,this.$nextTick((function(){return t.$refs.AddCat.handleAdd()}))},handleUpdate:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;this.visibleAddCat=!0,this.$nextTick((function(){return t.$refs.AddCat.handleEdit(e,a)}))},handleDelete:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this,a=t.cat_id||this.ids,i=t.name||this.userNames;this.$confirm({title:Object(d["a"])("view.test.list.modal.title"),content:this.$t("view.test.list.modal.delete.content",{id:i}),onOk:function(){var i,n=-1;t&&t.cat_id?(n=e._.findIndex(e.list,{cat_id:t.cat_id}),Object(o["b"])({cat_id:t.cat_id}).then((function(t){e.list.splice(n,1)}))):a.length&&(e._.map(a,(function(t){i=Object(o["b"])({cat_id:t}).then((function(t){return t}))})),i.then((function(t){e.selectedRowKeys=[],e.selectedRows=[],e.ids=[],e.userNames=[],e.getList()})))},onCancel:function(){}})},getList:function(){var t=this;this.queryParam.viewId=this.viewId,t.shopId&&(this.queryParam.shop_id=t.shopId),Object(o["d"])(t.queryParam).then((function(e){t.list=e.list,t.total_count=e.total_count}))},addcatBack:function(t){this.getList()},changeSize:function(t,e){this.queryParam.page=t,this.queryParam.limit=e,this.getList()},onShowSizeChange:function(t,e){this.queryParam.limit=e,this.getList()},expandNode:function(t,e){t?this.expandedRowKeys.push(e.id):this.expandedRowKeys=this.expandedRowKeys.filter((function(t){return t!==e.id}))},expandIcon:function(t){var e=this.$createElement;return"y"===t.record.treeLeaf?e("span",{style:"margin-right:22px"}):t.expanded?e("a",{style:"color: 'black',margin-right:0px",on:{click:function(e){t.onExpand(t.record,e)}}},[e("a-icon",{attrs:{type:"caret-down"}})]):e("a",{style:"color: 'black' ,margin-right:0px",on:{click:function(e){t.onExpand(t.record,e)}}},[e("a-icon",{attrs:{type:"caret-right"}})])},changeView:function(t){this.queryParam.view_id=t,this.getList()}}},f=h,p=a("2877"),b=Object(p["a"])(f,i,n,!1,null,null,null);e["default"]=b.exports},"8ebd":function(t,e,a){"use strict";var i=function(){var t=this,e=t._self._c;return e("a-tooltip",[e("template",{slot:"title"},[t._v(" "+t._s(t.$t("app.form.ai.ts"))+" ")]),e("a-switch",{attrs:{"checked-children":t.$t("app.form.ai.open"),"un-checked-children":t.$t("app.form.ai.close")},on:{change:t.back},model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}})],2)},n=[],s=a("5530"),c={name:"ai",props:{value:{default:1},id:{default:-1}},data:function(){return{checked:!0}},watch:{value:function(){this.checked=!!this.value}},created:function(){-1!==this.id&&void 0!==this.id||this.back()},methods:{back:function(){var t=0;this.checked&&(t=1),this.$emit("update:value",t),this.$emit("change",t)}}},r=Object(s["a"])({},c),o=r,d=a("2877"),l=Object(d["a"])(o,i,n,!1,null,null,null);e["a"]=l.exports},"8f0e":function(t,e,a){"use strict";var i=a("5530"),n=(a("a9e3"),a("d81d"),a("7db0"),a("d3b7"),a("d047")),s=a("5880");e["a"]={name:"ViewSelect",props:{viewId:{type:Number,default:0},lang:{type:String},backVal:{type:String,default:"viewId"}},computed:Object(i["a"])({},Object(s["mapGetters"])(["shopId"])),data:function(){return{viewLists:[],checkedViewId:0,checkedLang:""}},created:function(){this.checkedViewId||(this.checkedViewId=this.viewId),this.checkedLang&&""!==this.checkedLang||(this.checkedLang=this.lang),this.initLit()},methods:{initLit:function(){var t=this;Object(n["i"])({ShopId:this.shopId,limit:100,page:1}).then((function(e){t._.map(e.list,(function(e){1===e.is_default&&t.$emit("update:defaultLang",e.language)})),"viewId"===t.backVal?(t.viewLists=e.list,e.list&&(t.checkedLang=t.viewLists[0].language,t.checkedViewId=t.viewLists[0].view_id,t.back())):(t.viewLists=e.list,t.viewList&&(t.checkedLang=t.viewLists[0].language,t.checkedViewId=t.viewLists[0].view_id,t.back()))}))},back:function(t){var e=this,a=this.viewLists.find((function(t){return"viewId"===e.backVal?t.view_id===e.checkedViewId:t.language===e.checkedLang}));"viewId"===this.backVal?(this.checkedLang=a.language,this.$emit("change",this.checkedViewId,this.checkedLang)):(this.checkedViewId=a.view_id,this.$emit("change",this.checkedLang,this.checkedViewId)),this.$emit("changeView",a)}}}},bf9b:function(t,e,a){"use strict";a("b0c0");var i=function(){var t=this,e=t._self._c;return e("div",[t.viewLists&&t.viewLists.length?["viewId"==t.backVal?e("a-tabs",{attrs:{animated:!1},on:{change:t.back},model:{value:t.checkedViewId,callback:function(e){t.checkedViewId=e},expression:"checkedViewId"}},t._l(t.viewLists,(function(t){return e("a-tab-pane",{key:t.view_id,attrs:{tab:t.name}})})),1):e("a-tabs",{attrs:{animated:!1},on:{change:t.back},model:{value:t.checkedLang,callback:function(e){t.checkedLang=e},expression:"checkedLang"}},t._l(t.viewLists,(function(t){return e("a-tab-pane",{key:t.language,attrs:{tab:t.name}})})),1)]:t._e()],2)},n=[],s=a("5530"),c=a("8f0e"),r=Object(s["a"])({},c["a"]),o=r,d=a("2877"),l=Object(d["a"])(o,i,n,!1,null,null,null);e["a"]=l.exports},c2f7:function(t,e,a){"use strict";a.r(e);var i=a("5530"),n=(a("b0c0"),a("2dd7")),s=a("dcb0"),c=a("1b6c"),r=a("5880"),o=a("fb04"),d=a("bf9b"),l=a("6be3"),u=a("8ebd"),m=a("50af");e["default"]={name:"CareteCat",components:{AntModal:n["a"],AttachList:o["a"],ViewTabs:d["a"],CatList:l["a"],ai:u["a"],aiTs:m["a"]},props:{viewId:0},computed:Object(i["a"])({},Object(r["mapGetters"])(["shopId","isMobile"])),data:function(){return{open:!1,formData:{name:"",p_cat_id:0},formTitle:"",rules:{name:[{required:!0,message:Object(c["a"])("分类名不能为空"),trigger:"blur"}]},image_url:Object(c["a"])("view.test.list.form.image_url"),catname:Object(c["a"])("view.test.list.form.name"),view_id:this.viewId,aiTsUpdate:!1,lang:"",defaultLang:""}},created:function(){},methods:{handleAdd:function(){this.open=!0,this.formTitle=Object(c["b"])("view.test.form.add.modal.title")},handleEdit:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this,a={cat_id:t.cat_id};t.view_id&&(a.view_id=t.view_id),Object(s["c"])(a).then((function(t){e.formData=t,e.open=!0,e.formTitle="编辑"+t.name}))},cancel:function(){this.open=!1,this.$emit("close")},submitForm:function(){var t=this,e=this;this.$refs.form.validate((function(a){if(a){if(t.aiTsUpdate)return t.$message.warning(t.$t("view.test.form.add.message.aiUpdate")),!1;var i=JSON.parse(JSON.stringify(t.formData));e.shopId&&(i.shop_id=e.shopId),i.cat_id&&(i.view_id=e.view_id),Object(s["a"])(i).then((function(t){if("ok"===t.result){e.$message.info(e.$t("view.test.form.add.message.success"));var a=new Date,n=a.getFullYear()+"-"+(1+a.getMonth())+"-"+a.getDate();i.cat_id,e.$emit("ok",Object.assign({id:Math.random(100),created_at:n},i))}}))}}))},changeView:function(t,e){this.view_id=t,this.lang=e,this.handleEdit({cat_id:this.formData.cat_id,view_id:t})}}}},d047:function(t,e,a){"use strict";a.d(e,"i",(function(){return s})),a.d(e,"h",(function(){return c})),a.d(e,"b",(function(){return r})),a.d(e,"f",(function(){return o})),a.d(e,"a",(function(){return d})),a.d(e,"d",(function(){return l})),a.d(e,"g",(function(){return u})),a.d(e,"e",(function(){return m})),a.d(e,"c",(function(){return h}));var i=a("b775"),n={list:"/shop/view/list"};function s(t){return Object(i["b"])({url:n.list,method:"post",data:t})}function c(t){return Object(i["b"])({url:"/shop/view/add",method:"post",data:t})}function r(t){return Object(i["b"])({url:"/shop/view/close_auto_trans",method:"post",data:t})}function o(t){return Object(i["b"])({url:"/shop/view/open_auto_trans",method:"post",data:t})}function d(t){return Object(i["b"])({url:"/trans_task/add_shop_job",method:"post",data:t})}function l(t){return Object(i["b"])({url:"/shop/getinfo",method:"post",data:t})}function u(t){return Object(i["b"])({url:"/mall_config/save",method:"post",data:t})}function m(t){return Object(i["b"])({url:"/lang/get",method:"post",data:t})}function h(t){return Object(i["b"])({url:"/mall_config/get",method:"post",data:t})}},dcb0:function(t,e,a){"use strict";a.d(e,"d",(function(){return s})),a.d(e,"a",(function(){return c})),a.d(e,"c",(function(){return r})),a.d(e,"b",(function(){return o})),a.d(e,"g",(function(){return d})),a.d(e,"e",(function(){return l})),a.d(e,"f",(function(){return u}));var i=a("b775"),n={catlist:"/cat/list",catadd:"/cat/add",catInfo:"/cat/info",catDelete:"/cat/delete",publicCatList:"/standard/cat",infoList:"/good/info/list",parentList:"/cat/parent/list",cartSubAdd:"/cat/sub/add"};function s(t){return Object(i["b"])({url:n.catlist,method:"post",params:t})}function c(t){var e=t.view_id?n.cartSubAdd:n.catadd;return Object(i["b"])({url:e,method:"post",params:t}).then((function(){return{result:"ok",cat_id:12}}))}function r(t){return Object(i["b"])({url:n.catInfo,method:"post",params:t})}function o(t){return Object(i["b"])({url:n.catDelete,method:"post",params:t})}function d(t){return Object(i["b"])({url:n.publicCatList,method:"post",params:t})}function l(t){return Object(i["b"])({url:n.infoList,method:"post",params:t})}function u(t){return Object(i["b"])({url:n.parentList,method:"post",params:t})}},e9bb:function(t,e,a){}}]);