1 line
19 KiB
JavaScript
1 line
19 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-41e80944"],{"1fde":function(e,t,r){},"37da":function(e,t,r){"use strict";var a=r("1fde"),n=r.n(a);n.a},"3bbe":function(e,t,r){var a=r("861d");e.exports=function(e){if(!a(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},7156:function(e,t,r){var a=r("861d"),n=r("d2bb");e.exports=function(e,t,r){var i,s;return n&&"function"==typeof(i=t.constructor)&&i!==r&&a(s=i.prototype)&&s!==r.prototype&&n(e,s),e}},7852:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAgCAYAAAAFQMh/AAADPklEQVRIicXXXYhVVRQH8N91xkIyKrCwFMuMEIKBY0g99JB2T/QYFRJTFE4fNPWQQV8j+JJ9gNlT0JBQUi9mVA8VRRzyKRUK5yT2qJl9gfQxmFJhjbeHs093e+bcc6fGwT9c9n/vtfb+n7PPWnvt2+pMtIcwjhWYQsfcoIVBHMWmVmeiPVdCjZiHg2dB9/ggEoziPCzB/cH4Jg7PUmARHgn8PRzAX3i71Zlox44XYjLw5fim79JJ1mzP0/JT3iDJdpfD8ypuV0d8RV/RfsjTlVHv8thUFR6I+N+zFuZUL62qcCy24AwIV9fvaTioyGUYOgPCF0X85ybhSUwEfl/FNmAmyNN4zZHQ/oG9sdtgzdSPsFoRaGuxK4yvxxh+wolICM5VpOIuPIyT8vRi3dT8RJId6ye8FRsxX5HLS8P4BxjGmpo5FEfh65LsZOjviGwvVJ3rPv4J3BP4EnymOFyOKnbgOnwc+e/HrZJssSTbA/J0G24K9hcl2edVkeoBEmMLngj8cODvVt7iEknWjYU8XYWXcGMYySTZzXWL9wx3PKm7RcvxDl7VDbIxcQDm6dPYF4nu7CXaT5jiWw/pbu2DuHeaV562o4fch7WS7M6mhfsJUxzsP0b9y2p8Fkb8tyDeiH7C6/Cn7pYewBs1fu/rRvEaHJOnY/9XeBg7FTkKzym2/bvQvw13gyQ7JcmGsQG/Bvvz8nRLr8V7RfVqlCkwqUijL0N/KR7Ho6G/HZslWVG78/RSfIhVwT4iybbPVPgIlimqy5WhD8/gKZxT8Z/Cy5LssX9H8rRco3jYJPshnlC31Q9EE0Yj0XFsqhGlSLEN8jQ+WO6I+MbqhDrh4dD+gm2Bj+ChGt8qbpGnr4Ak+wKfhvF18nR+k/ACXBv4a6EdxOYZiJYYlaeLA98a2kW4vkl4Jc4PfE9or1Cfu024JrRHorFlsUPdG5coy9hC/x3lnPjq04odqmUxvvqUD3VIN1D6Xf5b4be3xhY/xDThryP+bWiPO70qnY7m6+2hiH9fJ3w7LlBUoRLr8ZXKFk1DcQOpQ0dRz0vcJU+vUhzBb7U6E+0daKwkc4DdZ+1P26DioH9WsdVTze6zxgB+x/g/VQnDNM78FmUAAAAASUVORK5CYII="},a9e3:function(e,t,r){"use strict";var a=r("83ab"),n=r("da84"),i=r("94ca"),s=r("6eeb"),o=r("5135"),c=r("c6b6"),u=r("7156"),l=r("c04e"),m=r("d039"),d=r("7c73"),p=r("241c").f,f=r("06cf").f,v=r("9bf2").f,g=r("58a8").trim,w="Number",h=n[w],b=h.prototype,_=c(d(b))==w,x=function(e){var t,r,a,n,i,s,o,c,u=l(e,!1);if("string"==typeof u&&u.length>2)if(u=g(u),t=u.charCodeAt(0),43===t||45===t){if(r=u.charCodeAt(2),88===r||120===r)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:a=2,n=49;break;case 79:case 111:a=8,n=55;break;default:return+u}for(i=u.slice(2),s=i.length,o=0;o<s;o++)if(c=i.charCodeAt(o),c<48||c>n)return NaN;return parseInt(i,a)}return+u};if(i(w,!h(" 0o1")||!h("0b1")||h("+0x1"))){for(var C,I=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof I&&(_?m((function(){b.valueOf.call(r)})):c(r)!=w)?u(new h(x(t)),r,I):x(t)},N=a?p(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),R=0;N.length>R;R++)o(h,C=N[R])&&!o(I,C)&&v(I,C,f(h,C));I.prototype=b,b.constructor=I,s(n,w,I)}},bb25:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"minapplets"},[a("div",{staticClass:"outmain ba_f formwidth"},[e._m(0),a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"基础设置",name:"1"}},[a("el-form",{ref:"form",staticClass:"mar_t20",attrs:{model:e.form,rules:e.rules,"label-width":"180px"}},[a("el-form-item",{attrs:{label:"小程序名称",prop:"miniName",required:!0}},[a("el-input",{attrs:{placeholder:"请输入小程序名称"},model:{value:e.form.miniName,callback:function(t){e.$set(e.form,"miniName",t)},expression:"form.miniName"}})],1),a("el-form-item",{attrs:{label:"AppID(小程序ID)",prop:"miniAppId",required:!0}},[a("el-input",{attrs:{placeholder:"请输入小程序AppID"},model:{value:e.form.miniAppId,callback:function(t){e.$set(e.form,"miniAppId",t)},expression:"form.miniAppId"}}),a("div",{staticClass:"yb_margin lh16"},[e._v("获取方式:微信公众平台-开发-开发设置-开发者ID-小程序AppID")])],1),a("el-form-item",{attrs:{label:"AppSecret(小程序密钥)",prop:"miniSecret",required:!0}},[a("el-input",{attrs:{placeholder:"请输入小程序AppSecret",type:e.passw},model:{value:e.form.miniSecret,callback:function(t){e.$set(e.form,"miniSecret",t)},expression:"form.miniSecret"}},[a("i",{class:e.icon,attrs:{slot:"suffix"},on:{click:e.showPass},slot:"suffix"})]),a("div",{staticClass:"yb_margin lh16"},[e._v("获取方式:微信公众平台-开发-开发设置-开发者ID-小程序AppSecret")])],1)],1)],1),a("el-tab-pane",{attrs:{label:"用户列表",name:"2"}},[a("div",{staticClass:"pad_20"},[a("el-table",{ref:"multipleTable",staticClass:"tablecenter",staticStyle:{width:"100%"},attrs:{data:e.list,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"ID",prop:"memberId",width:"80"}}),a("el-table-column",{attrs:{prop:"userName",label:"用户信息"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex pad_tb_10 flex-center"},[a("div",{},[a("img",{staticClass:"namelogo",attrs:{src:t.row.portrait}})]),a("div",{staticClass:"flex-col mar_l20 t_c"},[a("div",{staticClass:"overflowlnr"},[e._v(e._s(t.row.memberName))]),a("div",{staticClass:"fon_12 color_9"},[e._v("注册时间:"+e._s(t.row.createdAt))])])])]}}])}),a("el-table-column",{attrs:{prop:"end_time",label:"关联平台"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.apply_name?a("div",{staticClass:"flex-center"},[e._v(e._s(t.row.apply_name)),t.row.applyId?a("span",[e._v("(平台ID:"+e._s(t.row.applyId)+")")]):e._e()]):e._e()]}}])}),a("el-table-column",{attrs:{prop:"userName",label:"关联门店","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex-center"},[t.row.name?a("div",[e._v(e._s(t.row.name)),t.row.storeId?a("span",[e._v("(门店ID:"+e._s(t.row.storeId)+")")]):e._e()]):e._e()])]}}])}),a("el-table-column",{attrs:{label:"关联账号",prop:"image",align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex pad_tb_10 flex-center"},[a("div",{staticClass:"flex-col mar_l20 t_c"},[a("div",{staticClass:"overflowlnr"},[e._v(e._s(t.row.userName))])])])]}}])})],1),a("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:e.page.total,"page-size":e.page.size,"current-page":e.page.currentPage},on:{"update:currentPage":function(t){return e.$set(e.page,"currentPage",t)},"update:current-page":function(t){return e.$set(e.page,"currentPage",t)},"current-change":e.handleCurrentChange}})],1)]),a("el-tab-pane",{attrs:{label:"上传小程序",name:"4"}},[a("el-form",{directives:[{name:"show",rawName:"v-show",value:"1"==e.shawCode,expression:"shawCode=='1'"}],ref:"form3",staticClass:"mar_t20",attrs:{model:e.form3,"label-width":"180px"}},[a("el-form-item",{attrs:{label:"版本号"}},[a("el-input",{attrs:{placeholder:"请输入版本号",required:!0},model:{value:e.form3.version,callback:function(t){e.$set(e.form3,"version",t)},expression:"form3.version"}})],1),a("el-form-item",{attrs:{label:"版本描述",prop:"name"}},[a("el-input",{attrs:{placeholder:"请输入版本描述",required:!0,type:"textarea",rows:"6"},model:{value:e.form3.describe,callback:function(t){e.$set(e.form3,"describe",t)},expression:"form3.describe"}})],1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"==e.shawCode,expression:"shawCode=='2'"}],staticClass:"shawCode t_c pad_30"},[a("img",{directives:[{name:"show",rawName:"v-show",value:2==e.code,expression:"code==2"}],staticClass:"imgCode",attrs:{src:e.loginImg}}),a("div",{directives:[{name:"show",rawName:"v-show",value:1==e.code,expression:"code==1"}],staticClass:"pad_20"},[a("img",{staticClass:"loadWait",attrs:{src:r("7852")}})]),a("div",{directives:[{name:"show",rawName:"v-show",value:1==e.code,expression:"code==1"}],staticClass:"mar_b20"},[e._v("正在获取二维码,请耐心等待,等待时间大约")]),a("div",{directives:[{name:"show",rawName:"v-show",value:1==e.code,expression:"code==1"}],staticClass:"mar_t20 waitTime"},[e._v(e._s(e.initTimer)+"s")]),a("div",{directives:[{name:"show",rawName:"v-show",value:2==e.code,expression:"code==2"}],staticClass:"mar_b20"},[e._v("请扫描二维码,确认后将直接上传代码")]),a("div",{directives:[{name:"show",rawName:"v-show",value:3==e.code,expression:"code==3"}],staticClass:"mar_b20"},[a("div",{staticClass:"mar_b20"},[e._v("扫描成功,等待上传代码,请稍后...")]),a("img",{staticClass:"loadWait",attrs:{src:r("7852")}}),a("div",{staticClass:"waitTime mar_t20"},[e._v(e._s(e.updateTimes)+"s")])]),a("div",{directives:[{name:"show",rawName:"v-show",value:4==e.code,expression:"code==4"}]},[e._v("上传代码成功,请到微信开发平台小程序后台预览,提交审核应用。")]),a("div",{directives:[{name:"show",rawName:"v-show",value:4==e.code,expression:"code==4"}]},[e._v(" 微信开发平台小程序后台 "),a("a",{attrs:{href:"https://mp.weixin.qq.com/",target:"_blank"}},[e._v("https://mp.weixin.qq.com/")])]),a("img",{directives:[{name:"show",rawName:"v-show",value:4==e.code,expression:"code==4"}],staticClass:"imgCode",attrs:{src:e.previewImg}})])],1)],1),a("el-dialog",{attrs:{title:"二维码",visible:e.dialogVisible,"close-on-click-modal":!1,width:"30%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"t_c"},[a("img",{staticClass:"wid imgCode",attrs:{src:e.codeImg}})]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"medium"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary",size:"medium"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("确 定")])],1)])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"!=e.activeName&&"4"!=e.activeName,expression:"activeName!='2' && activeName!='4'"}],staticClass:"mar_t20 ba_f pad_20 t_c"},[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("保存")])],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"4"==e.activeName&&1==e.code,expression:"activeName=='4' && code==1"}],staticClass:"mar_t20 ba_f pad_20 t_c"},[a("el-button",{attrs:{type:"primary"},on:{click:e.upload}},[e._v("确认并上传")])],1)])},n=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"shuju_title mar_b20"},[r("div",{staticClass:"shuju_title_text"},[r("span",[e._v("商户端设置")])])])}],i=(r("96cf"),r("1da1")),s=r("294d"),o=(r("ed08"),r("365c")),c={created:function(){this.init()},data:function(){return{activeName:"1",form:{miniName:"",miniAppId:"",miniSecret:""},form2:{},rules:{miniName:[{required:!0,message:"请输入小程序名称",trigger:"blur"}],miniAppId:[{required:!0,message:"请输入AppId",trigger:"blur"}],miniSecret:[{required:!0,message:"请输入appSecret",trigger:"blur"}]},list:[],listLoading:!0,selectRows:"",elementLoadingText:"正在加载...",page:{total:0,size:10,currentPage:1},codeImg:"",dialogVisible:!1,passw:"password",icon:"el-input__icon el-icon-view",data:"",form3:{version:"",describe:""},plugin:[],shawCode:"1",initTimer:60,times:20,updateTimes:60,code:1,loginStatus:!1,loginImg:"",previewImg:""}},methods:{getEdition:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(s["s"])();case 2:r=t.sent,a=r.data,e.data=a;case 5:case"end":return t.stop()}}),t)})))()},init:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:"1"==e.activeName?(e.bus.$emit("loading",!0),e.formData()):"2"==e.activeName?e.fetchData():"4"==e.activeName&&e.uploadData();case 1:case"end":return t.stop()}}),t)})))()},handleClick:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:"1"==e.activeName?e.formData():"2"==e.activeName?e.fetchData():"4"==e.activeName&&e.uploadData(),e.code=1;case 2:case"end":return t.stop()}}),t)})))()},formData:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(s["p"])({ident:"merchantConfig"});case 2:r=t.sent,a=r.data,e.form2=e.form,e.form=Object.assign(e.form2,a),e.bus.$emit("loading",!1);case 7:case"end":return t.stop()}}),t)})))()},fetchData:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var r,a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.listLoading=!0,t.next=3,Object(s["db"])({page:e.page.currentPage});case 3:r=t.sent,a=r.data,n=r.count,e.list=a,e.page.total=n,e.bus.$emit("loading",!1),setTimeout((function(){e.listLoading=!1}),100);case 10:case"end":return t.stop()}}),t)})))()},uploadData:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.shawCode="1",t.next=3,Object(s["q"])({ident:"shdUpdateConfig"});case 3:r=t.sent,a=r.data,e.plugin=a.plugin?a.plugin:[],e.form3=Object.assign({},a),e.bus.$emit("loading",!1);case 8:case"end":return t.stop()}}),t)})))()},handleCurrentChange:function(e){this.page.currentPage=e,this.formData2()},downloadPage:function(){var e=o["a"].backendPath;return e+"channel/index/mini-down"},onSubmit:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$refs["form"].validate(function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(r){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!r){t.next=11;break}return e.form.ident="merchantConfig",e.form.identName="商户端小程序配置",t.next=5,Object(s["T"])(e.form);case 5:a=t.sent,n=a.msg,e.$baseMessage(n,"success"),e.init(),t.next=12;break;case 11:return t.abrupt("return",!1);case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},showPass:function(){"text"==this.passw?(this.passw="password",this.icon="el-input__icon el-icon-view"):(this.passw="text",this.icon="el-input__icon el-icon-unlock")},upload:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(""!=e.form3.version){t.next=3;break}return e.$baseMessage("请填写版本号","warning"),t.abrupt("return");case 3:if(""!=e.form3.describe){t.next=6;break}return e.$baseMessage("请填写版本描述","warning"),t.abrupt("return");case 6:return t.next=8,Object(s["U"])({ident:"shdUpdateConfig",identName:"上传商户端小程序",version:e.form3.version,describe:e.form3.describe,plugin:e.plugin});case 8:r=t.sent,r.data,e.shawCode="2","1"==e.code?(e.initTimer=setInterval((function(){}),5e3),e.WxUpdate()):e.initTimer--,e.loginTimer=setInterval(Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:2==e.code?(clearInterval(e.loginTimer),e.loginStatusTimer=setInterval(Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.GetLoginStatus({type:"shd"});case 2:3==e.code?(clearInterval(e.loginStatusTimer),e.Preview(),e.updateTimer=setInterval(Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:4==e.code?clearInterval(e.updateTimer):(e.updateTimes--,0===e.updateTimes&&(clearInterval(e.updateTimer),e.$baseMessage("上传失败请重试","error"),e.uploadData()));case 1:case"end":return t.stop()}}),t)}))),1e3)):(e.updateTimes--,0===e.updateTimes&&(clearInterval(e.loginStatusTimer),e.$baseMessage("上传失败请重试","error"),e.uploadData()));case 3:case"end":return t.stop()}}),t)}))),3e3)):(e.times--,0===e.times&&(clearInterval(e.loginTimer),e.$baseMessage("上传失败请重试","error"),e.uploadData()));case 1:case"end":return t.stop()}}),t)}))),1200);case 13:case"end":return t.stop()}}),t)})))()},WxUpdate:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var r,a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(s["x"])({type:"shd"});case 2:r=t.sent,a=r.msg,n=r.data,"成功"==a&&(e.code=2,e.loginImg=n);case 6:case"end":return t.stop()}}),t)})))()},GetLoginStatus:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var r,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(s["y"])({type:"shd"});case 2:r=t.sent,a=r.msg,r.data,"成功"==a&&(e.code=3);case 6:case"end":return t.stop()}}),t)})))()},Preview:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var r,a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(s["W"])({type:"shd"});case 2:r=t.sent,a=r.msg,n=r.data,{id:e.id},"成功"==a?(e.code=4,e.previewImg=n):(e.uploadData(),e.$baseConfirm(a,null,Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:location.reload();case 1:case"end":return e.stop()}}),e)}))),Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:location.reload();case 1:case"end":return e.stop()}}),e)})))));case 7:case"end":return t.stop()}}),t)})))()}}},u=c,l=(r("37da"),r("2877")),m=Object(l["a"])(u,a,n,!1,null,null,null);t["default"]=m.exports},bf19:function(e,t,r){"use strict";var a=r("23e7");a({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},d2bb:function(e,t,r){var a=r("825a"),n=r("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(r,[]),t=r instanceof Array}catch(i){}return function(r,i){return a(r),n(i),t?e.call(r,i):r.__proto__=i,r}}():void 0)},ed08:function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return i}));r("a9e3"),r("ac1f"),r("5319"),r("bf19");function a(e){var t=new Date(e).toJSON(),r=new Date(+new Date(t)+288e5).toISOString().replace(/T/g," ").replace(/\.[\d]{3}Z/,"");return r}function n(e){var t=new Date(e),r=t.getFullYear(),a=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,n=t.getDate()<10?"0"+t.getDate():t.getDate(),i=t.getHours()<10?"0"+t.getHours():t.getHours(),s=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),o=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return r+"-"+a+"-"+n+" "+i+":"+s+":"+o}function i(e){var t=new Date(1e3*Number(e)),r=t.getFullYear()+"-",a=(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-",n=(t.getDate()<10?"0"+t.getDate():t.getDate())+" ",i=(t.getHours()<10?"0"+t.getHours():t.getHours())+":",s=(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":",o=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds(),c=r+a+n+i+s+o;return c}}}]); |