UNPKG

beehole-store-server

Version:

www.bee-hole.com

1 lines 9.93 kB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c68dee66","chunk-43044724","chunk-4b068206","chunk-16bc18bf"],{"1b6c":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return c}));var i=n("5530"),a=n("bf0f");function o(t,e){return function(){return Object(a["b"])(t,Object(i["a"])({},e))}}function c(t,e){return Object(a["b"])(t,Object(i["a"])({},e))}},"1bb8":function(t,e,n){"use strict";n.r(e);var i=n("5530"),a=n("8d4c"),o=n("5d9e"),c=n("b34a"),r=n("1b6c"),s=n("c8a9"),l=n("2f62");e["default"]={name:"currencyPage",components:{AdvanceTable:o["a"],HuoBi:a["a"],SendEmail:c["default"]},data:function(){return{currency_disable:!1,pageNo:1,pageSize:10,infoList:[],selectedRowKeys:[],List:[],queryParam:{pageNo:1,limit:10},columns:[{title:Object(r["a"])("view.config.email.table.columns.subject"),dataIndex:"subject",width:"100px",scopedSlots:{customRender:"subject"}},{title:Object(r["a"])("view.config.email.table.columns.content"),dataIndex:"content",width:"200px",scopedSlots:{customRender:"content"}},{title:Object(r["a"])("view.config.email.table.columns.author_title"),dataIndex:"author_title",width:"200px",scopedSlots:{customRender:"author_title"}},{title:Object(r["a"])("view.config.email.table.columns.author_email"),dataIndex:"author_email",scopedSlots:{customRender:"author_email"}},{title:Object(r["a"])("view.config.email.table.columns.failure_reason"),dataIndex:"failure_reason",scopedSlots:{customRender:"failure_reason"}},{title:Object(r["a"])("view.config.email.table.columns.operate"),dataIndex:"operate",scopedSlots:{customRender:"operate"}}],loading:!1,showModal:!1,total:0}},computed:Object(i["a"])({},Object(l["c"])(["shopId","shopInfo"])),created:function(){this.getList()},methods:{getList:function(){var t=this;Object(s["b"])({page_no:this.queryParam.pageNo,limit:this.queryParam.limit}).then((function(e){t.infoList=e.list,t.total=e.total}))},onSelectChange:function(t,e){this.selectedRowKeys=t},changeSize:function(t,e){this.queryParam.pageNo=t,this.queryParam.limit=e,this.getList()},handleSendEmail:function(t,e){var n=this;this.showModal=!0,this.$nextTick((function(){return n.$refs.SendEmail.handleEdit(t,e)}))},closeSendEmail:function(){this.showModal=!1},addEmails:function(){this.formData.admin_emails||(this.formData.admin_emails=[]),this.formData.admin_emails.push("")}}}},"34cc":function(t,e,n){"use strict";n("da63")},"7a6f":function(t,e,n){"use strict";n.r(e);var i=n("5530"),a=n("2dd7"),o=n("c8a9"),c=n("1b6c"),r=n("2f62");e["default"]={name:"SendEmail",components:{AntModal:a["a"]},props:{viewId:0},computed:Object(i["a"])({},Object(r["c"])(["shopId","isMobile"])),data:function(){return{open:!1,formData:{subject:"",content:""},formTitle:"",rules:{subject:[{required:!0,message:Object(c["a"])("分类名不能为空"),trigger:"blur"}],content:[{required:!0,message:Object(c["a"])("内容不能为空"),trigger:"blur"}]},image_url:Object(c["a"])("view.test.list.form.image_url"),subject:Object(c["a"])("view.config.email.send.label.subject"),content:Object(c["a"])("view.config.email.send.label.content"),view_id:this.viewId}},created:function(){},methods:{handleAdd:function(){this.open=!0,this.formTitle=Object(c["b"])("view.config.email.send.modal.huifu")},handleEdit:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this;e.open=!0,e.formTitle=Object(c["b"])("view.config.email.send.modal.huifu")+t.author_email,e.formData=Object.assign({},e.formData,{recipient:t.author_email,email_log_id:t.id})},cancel:function(){this.open=!1,this.$emit("close")},submitForm:function(){var t=this,e=this;this.$refs.form.validate((function(n){if(n){var i=JSON.parse(JSON.stringify(t.formData));Object(o["d"])(i).then((function(t){0===t.code&&(e.$message.info(t.message),e.cancel())}))}}))}}}},"8d4c":function(t,e,n){"use strict";n("b0c0");var i=function(){var t=this,e=t._self._c;return t.huobiList&&t.huobiList.length?e("a-select",{attrs:{placeholder:"请选择","allow-clear":"",disabled:t.disable,getPopupContainer:function(t){return t.parentNode}},on:{change:t.back},model:{value:t.checkedHuoBi,callback:function(e){t.checkedHuoBi=e},expression:"checkedHuoBi"}},t._l(t.huobiList,(function(n,i){return e("a-select-option",{key:i,attrs:{value:n.name}},[t._v(t._s(n.name))])})),1):t._e()},a=[],o=(n("d81d"),n("7db0"),n("d3b7"),n("c7a1")),c={name:"HuoBiSelect",props:{huobi:{type:String,default:""},disable:{type:Boolean,default:!1}},data:function(){return{huobiList:[],checkedHuoBi:this.huobi}},watch:{huobi:function(t,e){t!==e&&(this.checkedHuoBi=t)}},created:function(){this.initLit()},methods:{initLit:function(){var t=this;Object(o["d"])().then((function(e){e.quote_currency&&e.quote_currency.map((function(e){t.huobiList.push({name:e})}))}))},back:function(t){var e=this,n=this.huobiList.find((function(t){return t.name===e.checkedHuoBi}));this.$emit("change",this.checkedHuoBi),this.$emit("changeView",n)}}},r=c,s=n("2877"),l=Object(s["a"])(r,i,a,!1,null,null,null);e["a"]=l.exports},"8e0c":function(t,e,n){},"9cb1":function(t,e,n){"use strict";n("8e0c")},b34a:function(t,e,n){"use strict";n.r(e);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:"580",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"},[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.subject,prop:"subject"}},[e("a-input",{attrs:{placeholder:t.$t("view.config.email.send.placeholder.subject")},model:{value:t.formData.subject,callback:function(e){t.$set(t.formData,"subject",e)},expression:"formData.subject"}})],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.content,prop:"content"}},[e("a-textarea",{attrs:{rows:5,placeholder:t.$t("view.config.email.send.placeholder.content")},model:{value:t.formData.content,callback:function(e){t.$set(t.formData,"content",e)},expression:"formData.content"}})],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.config.email.send.modal.btn.save"))+" ")]),e("a-button",{on:{click:t.cancel}},[t._v(" "+t._s(t.$t("view.config.email.send.modal.btn.cancel"))+" ")])],1)],2)],1)},a=[],o=n("5530"),c=n("7a6f"),r=Object(o["a"])({},c["default"]),s=r,l=(n("34cc"),n("2877")),u=Object(l["a"])(s,i,a,!1,null,"f16f86d0",null);e["default"]=u.exports},b973:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t._self._c;return e("div",[e("a-card",{attrs:{bordered:!1}},[t.showModal?e("send-email",{ref:"SendEmail",on:{cancel:t.closeSendEmail}}):t._e(),e("advance-table",{attrs:{loading:t.loading,size:"middle","format-conditions":!0,columns:t.columns,"data-source":t.infoList,rowKey:"id",tableKey:"config-email-list","row-selection":null,pagination:{current:t.queryParam.pageNo,pageSize:t.queryParam.limit,showSizeChanger:!1,showLessItems:!1,showQuickJumper:!1,total:t.total,showTotal:function(e,n){return t.$t("view.config.psArea.table.total",{num:n[0]+"-"+n[1],total:e})},onChange:t.changeSize},title:t.$t("view.config.email.table.title")},scopedSlots:t._u([{key:"id_card",fn:function(n){var i=n.record;return e("span",{},[e("a-switch",{attrs:{"checked-children":t.$t("view.config.psArea.table.columns.is_open.1"),"un-checked-children":t.$t("view.config.psArea.table.columns.is_open.2"),checked:1==i.is_open},on:{click:function(e){return t.changeIdCard(e,i)}}})],1)}},{key:"operate",fn:function(n){n.text;var i=n.record,a=n.index;return[e("a",{staticStyle:{"margin-right":"10px"},attrs:{type:"link"},on:{click:function(e){return t.handleSendEmail(i,a)}}},[t._v(" "+t._s(t.$t("view.config.email.table.columns.operate.send"))+" ")])]}}])})],1)],1)},a=[],o=n("5530"),c=n("1bb8"),r=Object(o["a"])({},c["default"]),s=r,l=(n("9cb1"),n("2877")),u=Object(l["a"])(s,i,a,!1,null,null,null);e["default"]=u.exports},c7a1:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return c})),n.d(e,"d",(function(){return r})),n.d(e,"e",(function(){return s})),n.d(e,"f",(function(){return l})),n.d(e,"g",(function(){return u})),n.d(e,"c",(function(){return d}));var i=n("b775"),a={configAdd:"/mallconfig/save",configList:"/mallconfig/list",huobiGet:"/pmethod/currency/get",huobiSet:"/pmethod/currencyrates/set",systemGet:"/config/sys/get",systemSet:"/config/sys/set",copyrightApi:"/config/copyright"};function o(t){return Object(i["b"])({url:a.configAdd,method:"post",data:t})}function c(t){return Object(i["b"])({url:a.configList,method:"post",params:t})}function r(t){return Object(i["b"])({url:a.huobiGet,method:"get",params:t})}function s(t){return Object(i["b"])({url:a.huobiSet,method:"post",params:t})}function l(t){return Object(i["b"])({url:a.systemGet,method:"post",params:t})}function u(t){return Object(i["b"])({url:a.systemSet,method:"post",data:t})}function d(t){return Object(i["b"])({url:a.copyrightApi,method:"post",data:t})}},c8a9:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return c})),n.d(e,"d",(function(){return r})),n.d(e,"e",(function(){return s})),n.d(e,"c",(function(){return l}));var i=n("b775"),a={emailBind:"/email/bind",emailList:"/email/list",emailSend:"/email/send",emailSetting:"/email/setting",emailPull:"/email/pull"};function o(t){return Object(i["b"])({url:a.emailBind,method:"post",data:t})}function c(t){return Object(i["b"])({url:a.emailList,method:"post",data:t})}function r(t){return Object(i["b"])({url:a.emailSend,method:"post",data:t})}function s(t){return Object(i["b"])({url:a.emailSetting,method:"post",data:t})}function l(t){return Object(i["b"])({url:a.emailPull,method:"post",data:t})}},da63:function(t,e,n){}}]);