王总上门按摩后台代码
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.
 
 
 
 
 

1 lines
7.4 KiB

webpackJsonp([49],{"49/z":function(t,e){},OrNc:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("mvHQ"),i=a.n(n),r=a("Xxa5"),s=a.n(r),o=a("exGp"),c=a.n(o),l=a("PJh5"),u=a.n(l),m={data:function(){return{bind_technician_img:"https://lbqnyv2.migugu.com/bianzu18.png",subForm:{bind_technician_img:[],agent_article_id:"",agent_article_title:""},subFormRules:{bind_technician_img:{required:!0,type:"array",message:"请选择绑定"+this.$t("action.attendantName")+"背景图",trigger:"blur"}},showDialog:!1,loading:!1,searchForm:{page:1,limit:10,title:"",status:1},tableData:[],total:0}},created:function(){this.getFormInfo()},methods:{getFormInfo:function(){var t=this;return c()(s.a.mark(function e(){var a,n,i,r;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$api.system.configInfo();case 2:if(a=e.sent,n=a.code,i=a.data,200===n){e.next=7;break}return e.abrupt("return");case 7:for(r in i.bind_technician_img=i.bind_technician_img&&i.bind_technician_img.length>0?[{url:i.bind_technician_img}]:[],t.subForm)t.subForm[r]=i[r];case 9:case"end":return e.stop()}},e,t)}))()},getCover:function(t,e){this.subForm[e]=t},toReset:function(t){this.subForm[t]=[{url:this[t]}],this.submitForm()},resetForm:function(t){this.$refs[t].resetFields(),this.getTableDataList(1)},handleSizeChange:function(t){this.searchForm.limit=t,this.handleCurrentChange(1)},handleCurrentChange:function(t){this.searchForm.page=t,this.getTableDataList()},getTableDataList:function(t){var e=this;return c()(s.a.mark(function a(){var n,r,o,c;return s.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return t&&(e.searchForm.page=1),e.tableData=[],e.loading=!0,n=JSON.parse(i()(e.searchForm)),a.next=6,e.$api.market.articleList(n);case 6:if(r=a.sent,o=r.code,c=r.data,e.loading=!1,200===o){a.next=12;break}return a.abrupt("return");case 12:e.tableData=c.data,e.total=c.total;case 14:case"end":return a.stop()}},a,e)}))()},toShowDialog:function(){var t=this;return c()(s.a.mark(function e(){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.searchForm.title="",e.next=3,t.getTableDataList(1);case 3:t.showDialog=!t.showDialog;case 4:case"end":return e.stop()}},e,t)}))()},toClose:function(){this.subForm.agent_article_id="",this.subForm.agent_article_title=""},handleSelectionChange:function(t){t=JSON.parse(i()(t)),this.currentRow=t},handleDialogConfirm:function(){if(null!==this.currentRow&&this.currentRow.id){var t=this.currentRow,e=t.id,a=void 0===e?0:e,n=t.title,i=void 0===n?"":n;this.subForm.agent_article_id=a,this.subForm.agent_article_title=i,this.showDialog=!1}else this.$message.error("请选择文章")},submitForm:function(){var t=this;return c()(s.a.mark(function e(){var a,n;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=!1,t.$refs.subForm.validate(function(t){t&&(a=!0)}),(n=JSON.parse(i()(t.subForm))).bind_technician_img=n.bind_technician_img[0].url,delete n.agent_article_title,!a){e.next=9;break}return e.next=8,t.$api.system.configUpdate(n);case 8:t.$message.success(t.$t("tips.successSub"));case 9:case"end":return e.stop()}},e,t)}))()}},filters:{handleTime:function(t,e){return 1===e?u()(1e3*t).format("YYYY-MM-DD"):2===e?u()(1e3*t).format("HH:mm:ss"):u()(1e3*t).format("YYYY-MM-DD HH:mm:ss")}}},h={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"lb-system-wechat"},[a("top-nav"),t._v(" "),a("div",{staticClass:"page-main"},[a("el-form",{ref:"subForm",staticClass:"config-form",attrs:{model:t.subForm,rules:t.subFormRules,"label-width":"180px"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{label:"绑定"+t.$t("action.attendantName")+"背景图",prop:"bind_technician_img"}},[a("lb-cover",{attrs:{fileList:t.subForm.bind_technician_img},on:{selectedFiles:function(e){return t.getCover(e,"bind_technician_img")}}}),t._v(" "),a("lb-tool-tips",[t._v("邀请"+t._s(t.$t("action.attendantName"))+"推广图,图片建议尺寸:710 *\n 1138\n "),a("div",{staticClass:"mt-sm"},[t._v("\n 代理商邀请"+t._s(t.$t("action.attendantName"))+"海报,通过该海报可以将"+t._s(t.$t("action.attendantName"))+"绑定在自己的账号下获得佣金\n ")]),t._v(" "),a("div",{staticClass:"mt-sm"},[t._v("\n 由于页面生成的二维码位置是固定的,所以设计海报时注意将中间的二维码位置留出来\n ")]),t._v(" "),a("div",{staticClass:"mt-sm"},[t._v("\n 海报背景图中不要出现诱导用户分享以及传播外链内容的\n ")]),t._v(" "),a("div",{staticClass:"mt-sm"},[t._v("\n 包括但不限于:以金钱奖励、实物奖励、虚拟奖品(包括但不限于红包、优惠券、代金券、积分、话费、流量);声称分享可获得返佣等\n ")])]),t._v(" "),a("div",[a("lb-button",{attrs:{type:"danger",plain:"",size:"small"},on:{click:function(e){return t.toReset("bind_technician_img")}}},[t._v(t._s(t.$t("action.defaultSet")))])],1)],1),t._v(" "),a("el-form-item",[a("lb-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick"}],attrs:{type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$t("action.submit")))])],1)],1)],1),t._v(" "),a("el-dialog",{attrs:{title:"选择文章",visible:t.showDialog,width:"1000px",center:""},on:{"update:visible":function(e){t.showDialog=e}}},[a("el-form",{ref:"searchForm",attrs:{inline:!0,model:t.searchForm},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{label:"输入查询",prop:"title"}},[a("el-input",{attrs:{placeholder:"请输入文章标题"},model:{value:t.searchForm.title,callback:function(e){t.$set(t.searchForm,"title",e)},expression:"searchForm.title"}})],1),t._v(" "),a("el-form-item",[a("lb-button",{staticStyle:{"margin-right":"5px"},attrs:{size:"medium",type:"primary",icon:"el-icon-search"},on:{click:function(e){return t.getTableDataList(1)}}},[t._v(t._s(t.$t("action.search")))]),t._v(" "),a("lb-button",{staticStyle:{"margin-right":"5px"},attrs:{size:"medium",icon:"el-icon-refresh-left"},on:{click:function(e){return t.resetForm("searchForm")}}},[t._v(t._s(t.$t("action.reset")))])],1)],1),t._v(" "),a("el-table",{ref:"singleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData,"header-cell-style":{background:"#f5f7fa",color:"#606266"},"tooltip-effect":"dark","highlight-current-row":""},on:{"current-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{prop:"id",label:"ID"}}),t._v(" "),a("el-table-column",{attrs:{prop:"title",label:"文章标题"}}),t._v(" "),a("el-table-column",{attrs:{prop:"top",label:"排序值"}}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"创建时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("p",[t._v(t._s(t._f("handleTime")(e.row.create_time,1)))]),t._v(" "),a("p",[t._v(t._s(t._f("handleTime")(e.row.create_time,2)))])]}}])})],1),t._v(" "),a("lb-page",{attrs:{batch:!1,page:t.searchForm.page,pageSize:t.searchForm.limit,total:t.total},on:{handleSizeChange:t.handleSizeChange,handleCurrentChange:t.handleCurrentChange}}),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.showDialog=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.handleDialogConfirm}},[t._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var d=a("VU/8")(m,h,!1,function(t){a("49/z")},"data-v-721f98dc",null);e.default=d.exports}});