| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[66],{1688:function(t,e,a){"use strict";a.r(e);var n=[{title:"ID",dataIndex:"id",key:"id"},{title:"创建时间",dataIndex:"created_at",key:"created_at"},{title:"页面名称",dataIndex:"name",key:"name"},{title:"类型",dataIndex:"page_sort",key:"page_sort",scopedSlots:{customRender:"tags"}},{title:"是否默认",dataIndex:"is_default",key:"is_default",scopedSlots:{customRender:"is_default"}},{title:"操作",key:"action",scopedSlots:{customRender:"action"}}],o={data:function(){return{cps_open_state:"",store_id:"",columns:n,page_name:"",page_sort:"",loading:!1,main_page_list:[],main_page_pagination:{current:1,pageSize:10,total:0}}},computed:{},created:function(){this.fun.getKey("store_id")&&(this.store_id=this.fun.getKey("store_id")),this.currentChange(1)},methods:{toPage:function(t,e){e?this.store_id?this.$router.push(this.fun.getUrl("/store_bottom_navigation",{},{page_sort:t,id:e})):this.$router.push(this.fun.getUrl("/bottom_navigation",{},{page_sort:t,id:e})):this.store_id?this.$router.push(this.fun.getUrl("/store_bottom_navigation",{},{page_sort:t})):this.$router.push(this.fun.getUrl("/bottom_navigation",{},{page_sort:t}))},mouseenter:function(t){this.mouse_hover_id=t},currentChange:function(t){var e=this;this.main_page_pagination.current=t;var a="plugin.decorate.admin.decorate-footer.get-list";this.store_id&&(a="plugin.store-decorate.admin.store-decorate-footer.get-list"),$http.post(a,{page:t,name:this.page_name,page_sort:this.page_sort},"loading").then((function(t){1===t.result?(e.main_page_pagination.total=t.data.total,e.main_page_pagination.pageSize=t.data.per_page,e.main_page_list=t.data.data):(e.main_page_list=[],-1===t.data.status&&e.currentChange(1)),e.cps_open_state=t.data.cps_open_state})).catch((function(t){console.error(t)}))},switchIt:function(t){var e=this,a="plugin.decorate.admin.decorate-footer.open-footer";this.store_id&&(a="plugin.store-decorate.admin.store-decorate-footer.open-footer"),$http.post(a,{id:t.id,is_default:1==t.is_default?0:1},"loading").then((function(t){1===t.result?(e.currentChange(e.main_page_pagination.current),e.$message.success("设置成功")):t.msg&&e.$message.error(t.msg)})).catch((function(t){console.log(t)}))},deleteIt:function(t){var e=this;this.$confirm({title:"确认删除该底部导航?",onOk:function(){var a="plugin.decorate.admin.decorate-footer.del";e.store_id&&(a="plugin.store-decorate.admin.store-decorate-footer.del"),$http.post(a,{id:t},"loading").then((function(t){1===t.result?(e.currentChange(e.main_page_pagination.current),e.$message.success("删除成功")):t.msg&&e.$message.error(t.msg)})).catch((function(t){console.log(t)}))}})},copyIt:function(t){var e=this,a="plugin.decorate.admin.decorate-footer.copy-page";this.store_id&&(a="plugin.store-decorate.admin.store-decorate-footer.copy-page"),$http.post(a,{id:t},"loading").then((function(t){1===t.result?(e.currentChange(e.main_page_pagination.current),e.$message.success("复制成功")):t.msg&&e.$message.error(t.msg)})).catch((function(t){console.log(t)}))}}},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"navigation_list"}},[a("div",{staticClass:"page-head"},[a("a-select",{staticStyle:{width:"25%","margin-right":"5%"},on:{change:function(e){return t.currentChange(1)}},model:{value:t.page_sort,callback:function(e){t.page_sort=e},expression:"page_sort"}},[a("a-select-option",{attrs:{value:""}},[t._v("\n 页面类型\n ")]),t._v(" "),a("a-select-option",{attrs:{value:"1"}},[t._v("\n H5\n ")]),t._v(" "),a("a-select-option",{attrs:{value:"2"}},[t._v("\n 微信小程序\n ")]),t._v(" "),t.store_id||1!=t.cps_open_state?t._e():a("a-select-option",{attrs:{value:"3"}},[t._v("\n 聚合APP H5\n ")]),t._v(" "),t.store_id||1!=t.cps_open_state?t._e():a("a-select-option",{attrs:{value:"4"}},[t._v("\n 聚合APP(原生)\n ")])],1),t._v(" "),a("a-input",{staticStyle:{width:"33%"},attrs:{placeholder:"请输入页面名称进行搜索"},model:{value:t.page_name,callback:function(e){t.page_name="string"==typeof e?e.trim():e},expression:"page_name"}},[a("a-icon",{staticStyle:{color:"#999999"},attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1),t._v(" "),a("a-button",{staticStyle:{width:"6%","margin-left":"3%"},attrs:{type:"primary"},on:{click:function(e){return t.currentChange(1)}}},[t._v("搜索")])],1),t._v(" "),a("div",{staticClass:"page-content"},[a("div",{staticClass:"content-head"},[a("div",{staticClass:"left"},[t._v("页面总数: "+t._s(t.main_page_pagination.total))]),t._v(" "),a("div",{staticClass:"right",attrs:{content:"right"}},[t.store_id||1!=t.cps_open_state?t._e():a("a-button",{staticStyle:{"margin-right":"10px"},attrs:{icon:"plus"},on:{click:function(e){return t.toPage("4")}}},[t._v("添加聚合APP(原生)导航")]),t._v(" "),a("a-button",{staticStyle:{"margin-right":"10px"},attrs:{icon:"plus"},on:{click:function(e){return t.toPage("1")}}},[t._v("添加H5导航")]),t._v(" "),a("a-button",{staticStyle:{"margin-right":"10px"},attrs:{icon:"plus"},on:{click:function(e){return t.toPage("2")}}},[t._v("添加小程序导航")]),t._v(" "),t.store_id||1!=t.cps_open_state?t._e():a("a-button",{staticStyle:{"margin-right":"10px"},attrs:{icon:"plus"},on:{click:function(e){return t.toPage("3")}}},[t._v("添加聚合APP H5导航")]),t._v(" "),a("a-tooltip",[a("template",{slot:"title"},[t._v("Tips: 自定义菜单启用默认后将代替系统默认菜单")]),t._v(" "),a("a-icon",{staticStyle:{color:"#ff9b19","font-size":"18px"},attrs:{type:"alert"}})],2)],1)]),t._v(" "),a("a-spin",{attrs:{spinning:t.loading}},[a("div",{staticClass:"main-page-list"},[a("div",{staticClass:"table-box"},[a("a-table",{attrs:{pagination:{pageSize:t.main_page_pagination.pageSize,current:t.main_page_pagination.current,total:t.main_page_pagination.total,showQuickJumper:!0,onChange:t.currentChange},columns:t.columns,"data-source":t.main_page_list,rowKey:function(t){return t.id}},scopedSlots:t._u([{key:"tags",fn:function(e,n){return a("span",{staticClass:"type-box",on:{mouseenter:function(e){return t.mouseenter(n.id)}}},[a("a-tooltip",{directives:[{name:"show",rawName:"v-show",value:"1"==n.page_sort,expression:"record.page_sort == '1'"}]},[a("template",{slot:"title"},[t._v("\n H5\n ")]),t._v(" "),a("i",{staticClass:"iconfont icon-ht_btn_wap",staticStyle:{color:"#5f20fe"}})],2),t._v(" "),a("a-tooltip",{directives:[{name:"show",rawName:"v-show",value:"2"==n.page_sort,expression:"record.page_sort == '2'"}]},[a("template",{slot:"title"},[t._v("\n 小程序\n ")]),t._v(" "),a("i",{staticClass:"iconfont icon-ht_btn_smallprogram",staticStyle:{color:"#00dfb9"}})],2),t._v(" "),a("a-tooltip",{directives:[{name:"show",rawName:"v-show",value:"3"==n.page_sort,expression:"record.page_sort == '3'"}]},[a("template",{slot:"title"},[t._v("\n 聚合APP H5\n ")]),t._v(" "),a("i",{staticClass:"iconfont icon-ht_btn_otherpage",staticStyle:{color:"#d5ed19"}})],2),t._v(" "),a("a-tooltip",{directives:[{name:"show",rawName:"v-show",value:"4"==n.page_sort,expression:"record.page_sort == '4'"}]},[a("template",{slot:"title"},[t._v("\n 聚合APP(原生)\n ")]),t._v(" "),a("i",{staticClass:"iconfont icon-fontclass-cps",staticStyle:{color:"#FFA800"}})],2)],1)}},{key:"is_default",fn:function(e,n){return a("span",{staticClass:"type-box"},[a("a-switch",{attrs:{checked:1==n.is_default},on:{change:function(e){return t.switchIt(n)}}})],1)}},{key:"action",fn:function(e,n){return a("span",{staticClass:"edit-box"},[a("a-tooltip",[a("template",{slot:"title"},[t._v("编辑")]),t._v(" "),a("i",{staticClass:"iconfont icon-ht_operation_edit",attrs:{id:"dea"},on:{click:function(e){return t.toPage(n.page_sort,n.id)}}})],2),t._v(" "),a("a-tooltip",[a("template",{slot:"title"},[t._v("\n 复制页面\n ")]),t._v(" "),a("i",{staticClass:"iconfont icon-ht_operation_copypage",on:{click:function(e){return t.copyIt(n.id)}}})],2),t._v(" "),a("a-tooltip",[a("template",{slot:"title"},[t._v("删除")]),t._v(" "),a("i",{staticClass:"iconfont icon-ht_operation_delete",attrs:{id:"del"},on:{click:function(e){return t.deleteIt(n.id)}}})],2)],1)}}])})],1)])])],1)])};i._withStripped=!0;var s=a(11);var r=function(t){a(2069)},c=Object(s.a)(o,i,[],!1,r,"data-v-80a924a2",null);c.options.__file="src\\views\\bottom-navigation\\bottom_navigation_list.vue";e.default=c.exports},2069:function(t,e,a){var n=a(2070);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);(0,a(19).default)("50cfc225",n,!1,{})},2070:function(t,e,a){(t.exports=a(16)(!1)).push([t.i,'\n.edit-box i[data-v-80a924a2] {\n color: #999999;\n margin-left: 15px;\n cursor: pointer;\n}\n.edit-box i[data-v-80a924a2]:hover {\n color: #ffa800;\n}\n#navigation_list[data-v-80a924a2] {\n padding: 30px 20px 20px 20px;\n position: relative;\n}\n.page-head[data-v-80a924a2] {\n display: flex;\n}\n.main-page-list[data-v-80a924a2] {\n width: 100%;\n margin-top: 15px;\n}\n.main-page-list .ant-pagination[data-v-80a924a2] {\n text-align: center;\n margin-top: 24px;\n}\n.table-box[data-v-80a924a2] {\n font-weight: bold;\n}\n.content-head[data-v-80a924a2] {\n display: flex;\n margin-top: 15px;\n background-color: #ffffff;\n}\n.content-head .left[data-v-80a924a2] {\n position: relative;\n font-weight: bold;\n font-size: 16px;\n margin-left: 10px;\n display: flex;\n align-self: center;\n justify-self: center;\n flex: 1;\n}\n.content-head .left[data-v-80a924a2]::before {\n content: "";\n width: 5px;\n height: 25px;\n position: absolute;\n top: 0;\n left: -10px;\n background: #29ba9c;\n}\n.content-head .right[data-v-80a924a2] {\n display: flex;\n align-self: center;\n justify-self: center;\n align-items: center;\n flex: 0 0 100px;\n margin-right: 13px;\n}\n',""])}}]);
|