启程易购后端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
qicheng_shop_backend/public/system/js/chunk-83630348.83abc988.js

1 lines
9.9 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-83630348"],{"056a":function(t,n){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQQAAACUCAYAAAB1GVf9AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABBKADAAQAAAABAAAAlAAAAAD7OG/zAAAH8ElEQVR4Ae3dWXPUOBQGUGcYoKCAByi2///f2LewE5bAzVSXIBPfdu8y9/gFpdVedKT+4pbtcHRycnI6WAgQIPBL4B8KBAgQWAgIhIWEfwkQcIZgDBAg0AScITQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBP5tRaW5CLx//374+PHjcHJyMnz//n24dOnScOXKleH69evDjRs35tIMx9mhwNGvQXXa4XE5pAs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vuj6fjyk1PuMfpzh+OrQ3+ATCP31yf+OKCYE48Mfv/V/X+I3bFw9+P2BpJjFj2v+c1h6/DozB7ddHqP/uWmXulvYdoRA9ts+zhziKkL85yzxF5LiDMJCYF0BgbCu3I7Xi1PqVa4QxHvj+QOX9HbcMX/55gVChx0cXwHWmXQTBh125swOSSB01mERBL5bd9YphQ7HpGJnnS0MOuuQYocjEIp1uOYSyAQEQqajjkAxAYFQrMM1l0AmIBAyHXUEigkIhGIdrrkEMgGBkOmoI1BMwF9dLtbhmksgE3CGkOmoI1BMQCAU63DNJZAJCIRMRx2BYgICoViHay6BTEAgZDrqCBQTEAjFOlxzCWQCAiHTUUegmIBAKNbhmksgExAImY46AsUEBEKxDtdcApmAQMh01BEoJiAQinW45hLIBARCpqOOQDEBgVCswzWXQCYgEDIddQSKCQiEYh2uuQQyAYGQ6agjUExAIBTrcM0lkAkIhExHHYFiAgKhWIdrLoFMQCBkOuoIFBMQCMU6XHMJZAICIdNRR6CYgEAo1uGaSyATEAiZjjoCxQQEQrEO11wCmYBAyHTUESgmIBCKdbjmEsgEBEKmo45AMQGBUKzDNZdAJiAQMh11BIoJCIRiHa65BDIBgZDpqCNQTEAgFOtwzSWQCQiETEcdgWICAqFYh2sugUxAIGQ66ggUExAIxTpccwlkAgIh01FHoJiAQCjW4ZpLIBMQCJmOOgLFBARCsQ7XXAKZgEDIdNQRKCYgEIp1uOYSyAQEQqajjkAxAYFQrMM1l0AmIBAyHXUEigkIhGIdrrkEMgGBkOmoI1BMQCAU63DNJZAJCIRMRx2BYgICoViHay6BTEAgZDrqCBQTEAjFOlxzCWQCPwEYef7DpS5s4AAAAABJRU5ErkJggg=="},"115d":function(t,n,e){},"5c68":function(t,n,e){"use strict";e.r(n);var o=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"divBox"},[e("el-card",[e("div",{staticClass:"mb20"},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[t._v("添加社区话题")])],1),t._v(" "),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.tableData.data,size:"small","row-key":"topic_id"}},[e("el-table-column",{attrs:{label:"话题名称","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.topic_name))])]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"话题图标","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("div",{staticClass:"demo-image__preview"},[e("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:n.row.pic?n.row.pic:t.moren,"preview-src-list":[n.row.pic?n.row.pic:t.moren]}})],1)]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"上级分类","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.category&&n.row.category.cate_name))])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"100"}}),t._v(" "),e("el-table-column",{attrs:{prop:"count_use",label:"文章数","min-width":"100"}}),t._v(" "),e("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"100"}}),t._v(" "),e("el-table-column",{attrs:{prop:"status",label:"是否显示","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"显示","inactive-text":"隐藏"},on:{change:function(e){return t.onchangeIsShow(n.row)}},model:{value:n.row.status,callback:function(e){t.$set(n.row,"status",e)},expression:"scope.row.status"}})]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"status",label:"是否推荐","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"开启","inactive-text":"关闭"},on:{change:function(e){return t.onchangeIsHot(n.row)}},model:{value:n.row.is_hot,callback:function(e){t.$set(n.row,"is_hot",e)},expression:"scope.row.is_hot"}})]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.onEdit(n.row.topic_id)}}},[t._v("编辑")]),t._v(" "),e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.handleDelete(n.row.topic_id,n.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),e("div",{staticClass:"block"},[e("el-pagination",{attrs:{background:"","page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},a=[],c=e("7998"),i={name:"communityTopic",data:function(){return{moren:e("056a"),isChecked:!1,listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:20}}},mounted:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,Object(c["t"])(this.tableFrom).then((function(n){t.tableData.data=n.data.list,t.tableData.total=n.data.count,t.listLoading=!1})).catch((function(n){t.listLoading=!1,t.$message.error(n.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList()},onAdd:function(){var t=this;this.$modalForm(Object(c["q"])()).then((function(){return t.getList()}))},onEdit:function(t){var n=this;this.$modalForm(Object(c["w"])(t)).then((function(){return n.getList()}))},handleDelete:function(t,n){var e=this;this.$modalSure("确定删除该话题").then((function(){Object(c["r"])(t).then((function(t){var n=t.message;e.$message.success(n),e.getList()})).catch((function(t){var n=t.message;e.$message.error(n)}))}))},onchangeIsShow:function(t){var n=this;Object(c["v"])(t.topic_id,t.status).then((function(t){var e=t.message;n.$message.success(e)})).catch((function(t){var e=t.message;n.$message.error(e)}))},onchangeIsHot:function(t){var n=this;Object(c["s"])(t.topic_id,t.is_hot).then((function(t){var e=t.message;n.$message.success(e)})).catch((function(t){var e=t.message;n.$message.error(e)}))}}},r=i,u=(e("6049"),e("2877")),A=Object(u["a"])(r,o,a,!1,null,"55036dc4",null);n["default"]=A.exports},6049:function(t,n,e){"use strict";e("115d")},7998:function(t,n,e){"use strict";e.d(n,"e",(function(){return a})),e.d(n,"c",(function(){return c})),e.d(n,"g",(function(){return i})),e.d(n,"d",(function(){return r})),e.d(n,"f",(function(){return u})),e.d(n,"t",(function(){return A})),e.d(n,"q",(function(){return s})),e.d(n,"w",(function(){return l})),e.d(n,"r",(function(){return m})),e.d(n,"v",(function(){return d})),e.d(n,"s",(function(){return g})),e.d(n,"j",(function(){return f})),e.d(n,"i",(function(){return Q})),e.d(n,"a",(function(){return h})),e.d(n,"x",(function(){return p})),e.d(n,"o",(function(){return B})),e.d(n,"h",(function(){return C})),e.d(n,"k",(function(){return E})),e.d(n,"b",(function(){return I})),e.d(n,"u",(function(){return v})),e.d(n,"m",(function(){return w})),e.d(n,"l",(function(){return y})),e.d(n,"n",(function(){return b})),e.d(n,"p",(function(){return x}));var o=e("0c6d");function a(t){return o["a"].get("community/category/lst",t)}function c(){return o["a"].get("community/category/create/form")}function i(t){return o["a"].get("community/category/update/".concat(t,"/form"))}function r(t){return o["a"].delete("community/category/delete/".concat(t))}function u(t,n){return o["a"].post("community/category/status/".concat(t),{status:n})}function A(t){return o["a"].get("community/topic/lst",t)}function s(){return o["a"].get("community/topic/create/form")}function l(t){return o["a"].get("community/topic/update/".concat(t,"/form"))}function m(t){return o["a"].delete("community/topic/delete/".concat(t))}function d(t,n){return o["a"].post("community/topic/status/".concat(t),{status:n})}function g(t,n){return o["a"].post("community/topic/hot/".concat(t),{status:n})}function f(t){return o["a"].get("community/lst",t)}function Q(t){return o["a"].get("community/detail/".concat(t))}function h(t,n){return o["a"].post("community/status/".concat(t),n)}function p(t){return o["a"].get("community/update/".concat(t,"/form"))}function B(t,n){return o["a"].post("community/show/".concat(t),{status:n})}function C(t){return o["a"].delete("community/delete/".concat(t))}function E(t){return o["a"].get("community/status/".concat(t,"/form"))}function I(){return o["a"].get("community/category/option")}function v(){return o["a"].get("community/topic/option")}function w(t){return o["a"].get("community/reply/lst",t)}function y(t){return o["a"].delete("community/reply/delete/".concat(t))}function b(t){return o["a"].get("community/reply/status/".concat(t,"/form"))}function x(){return o["a"].get("community/title")}}}]);