chunk-7e36a294.2a1753bc.js 9.0 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7e36a294","chunk-f6657b32","chunk-2d0cc0e0","chunk-2d216ba7","chunk-2d0a4474"],{"0680":function(t,e,n){"use strict";n.r(e),n.d(e,"getDict",(function(){return i}));var a=n("1da1"),r=(n("96cf"),n("4360")),i=function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,r["store"].dispatch("dictionary/getDictionary",e);case 2:return t.abrupt("return",r["store"].getters["dictionary/getDictionary"][e]);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},"4bfb":function(t,e,n){"use strict";n.r(e),n.d(e,"getUserList",(function(){return r})),n.d(e,"getUserCourseList",(function(){return i})),n.d(e,"finishDownload",(function(){return o})),n.d(e,"getUserFinishList",(function(){return s})),n.d(e,"getIdentifyList",(function(){return c})),n.d(e,"getUnRegisterList",(function(){return u})),n.d(e,"resetUserPass",(function(){return l})),n.d(e,"updateUserInfo",(function(){return d})),n.d(e,"getCertificateList",(function(){return f})),n.d(e,"getWxpaylogList",(function(){return h})),n.d(e,"buyCourseList",(function(){return p})),n.d(e,"postData",(function(){return m}));var a=n("b775"),r=function(t){return Object(a["default"])({url:"/admin/getUserList",method:"post",data:t})},i=function(t){return Object(a["default"])({url:"/admin/getUserCourseList",method:"post",data:t})},o=function(t){return Object(a["default"])({url:"/admin/finishDownload",method:"post",data:t})},s=function(t){return Object(a["default"])({url:"/admin/getUserFinishList",method:"post",data:t})},c=function(t){return Object(a["default"])({url:"/admin/getIdentifyList",method:"post",data:t})},u=function(t){return Object(a["default"])({url:"/admin/getUnRegisterList",method:"post",data:t})},l=function(t){return Object(a["default"])({url:"/admin/resetUserPass",method:"post",data:t})},d=function(t){return Object(a["default"])({url:"/admin/updateUserInfo",method:"post",data:t})},f=function(t){return Object(a["default"])({url:"/admin/getCertificateList",method:"post",data:t})},h=function(t){return Object(a["default"])({url:"/admin/getWxpaylogList",method:"post",data:t})},p=function(t){return Object(a["default"])({url:"/admin/buyCourseList",method:"post",data:t})},m=function(t,e){return Object(a["default"])({url:"/admin/".concat(t),method:"post",data:e})}},a4a2:function(t,e,n){"use strict";n.r(e);var a=n("5530"),r=n("1da1"),i=(n("96cf"),n("4de4"),n("d3b7"),n("159b"),n("d81d"),n("0680"));n("c466"),n("ed08");e["default"]={data:function(){return{page:1,total:10,size:10,tableData:[],searchInfo:{isFinish:0}}},watch:{},methods:{filterDict:function(t,e){var n=this[e+"Options"]&&this[e+"Options"].filter((function(e){return e.value==t}));return n&&n[0]&&n[0].label},getDict:function(t){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function n(){var a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(i["getDict"])(t);case 2:return a=n.sent,e[t+"Options"]=a,n.abrupt("return",a);case 5:case"end":return n.stop()}}),n)})))()},handleSizeChange:function(t){this.size=t,this.getTableData()},handleCurrentChange:function(t){this.page=t,this.getTableData()},handleSelectAll:function(t){console.log("handleSelectAll",t),this[t].forEach((function(t){t._selected=!0}))},handleSelectNull:function(t){console.log("handleSelectNull",t),this[t].forEach((function(t){t._selected=!1}))},handleChangeItem:function(t,e,n){this[t][e]=n(this[t][e])},getAllTableData:function(t){var e=Object(a["a"])({size:1e4,from:0},this.searchInfo);this.listApi(e).then((function(e){t(e)}))},getTableData:function(){var t=arguments,e=this;return Object(r["a"])(regeneratorRuntime.mark((function n(){var r,i,o,s,c;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.length>0&&void 0!==t[0]?t[0]:e.page,i=t.length>1&&void 0!==t[1]?t[1]:e.size,o=(r-1)*i,s=Object(a["a"])({size:i,from:o},e.searchInfo),n.next=6,e.listApi(s);case 6:c=n.sent,200==c.code&&(e.tableData=c.data.list.map((function(t){return t.edit=!1,t._selected=!1,t})),e.total=c.data.total);case 8:case"end":return n.stop()}}),n)})))()}}}},a54e:function(t,e,n){"use strict";n("c30f")},c30f:function(t,e,n){},c466:function(t,e,n){"use strict";n.r(e),n.d(e,"curDate",(function(){return a})),n.d(e,"formatTimeToStr",(function(){return r})),n.d(e,"toDatetime",(function(){return i})),n.d(e,"toDate",(function(){return o})),n.d(e,"toDateShow",(function(){return s})),n.d(e,"getDate",(function(){return c}));n("ac1f"),n("00b4"),n("5319"),n("4d63"),n("c607"),n("2c3e"),n("25f0");function a(){var t=(new Date).Format("yyyy-MM-dd");return t.toLocaleString()}function r(t,e){var n=new Date(t).Format("yyyy-MM-dd hh:mm:ss");return e&&(n=new Date(t).Format(e)),n.toLocaleString()}function i(t){if(!t)return"2020-01-01 00:00:00";var e=new Date(t).Format("yyyy-MM-dd hh:mm:ss");return e.toLocaleString()}function o(t){if(!t)return"2020-01-01";var e=new Date(t).Format("yyyy-MM-dd");return e.toLocaleString()}function s(t){if(!t)return"---";var e=new Date(t).Format("yyyy-MM-dd");return e.toLocaleString()}function c(t){var e=new Date;return e.setDate(e.getDate()+t),o(e)}Date.prototype.Format=function(t){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var n in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),e)new RegExp("("+n+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?e[n]:("00"+e[n]).substr((""+e[n]).length)));return t}},ea4e:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"search-term"},[n("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:t.searchInfo}},[n("el-form-item",{attrs:{label:"手机号码",prop:"phone"}},[n("el-input",{staticClass:"user-form-item",attrs:{placeholder:"请输入手机号码",type:"text",clearable:""},model:{value:t.searchInfo.phone,callback:function(e){t.$set(t.searchInfo,"phone",e)},expression:"searchInfo.phone"}})],1),n("el-form-item",{attrs:{label:"身份证号",prop:"cardId"}},[n("el-input",{staticClass:"user-form-item",attrs:{placeholder:"请输入身份证",type:"text",clearable:""},model:{value:t.searchInfo.cardId,callback:function(e){t.$set(t.searchInfo,"cardId",e)},expression:"searchInfo.cardId"}})],1),n("el-form-item",{attrs:{label:"是否通过",prop:"isOk"}},[n("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.searchInfo.isOk,callback:function(e){t.$set(t.searchInfo,"isOk",e)},expression:"searchInfo.isOk"}})],1)],1)],1),n("el-table",{attrs:{data:t.tableData,border:"",stripe:""}},[n("el-table-column",{attrs:{label:"流水号",prop:"id"}}),n("el-table-column",{attrs:{label:"手机号码",prop:"phone","min-width":"100"}}),n("el-table-column",{attrs:{label:"身份证",prop:"cardId","min-width":"200"}}),n("el-table-column",{attrs:{label:"姓名",prop:"nickname"}}),n("el-table-column",{attrs:{label:"是否通过",prop:"isOk"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("span",[t._v(" "+t._s(a.isOk?"通过":"未通过"))])]}}])}),n("el-table-column",{attrs:{label:"信息",prop:"msg"}}),n("el-table-column",{attrs:{align:"center",width:"160px",label:"操作","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[a.isOk?n("el-button",{attrs:{type:"success",size:"small",icon:"el-icon-circle-check",disabled:""}},[t._v("已经认证")]):n("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-circle-check"},on:{click:function(e){return t.passIdentify(a)}}},[t._v("通过")])]}}])})],1),n("el-pagination",{style:{float:"right",padding:"20px"},attrs:{"current-page":t.page,"page-size":t.size,"page-sizes":[10,30,50,100],total:t.total,layout:"total, sizes, prev, pager, next, jumper"},on:{"current-change":t.handleCurrentChange,"size-change":t.handleSizeChange}})],1)},r=[],i=(n("99af"),n("4bfb")),o=n("a4a2"),s=n("5f72"),c={name:"Api",data:function(){return{listApi:i["getIdentifyList"],tableData:[]}},watch:{searchInfo:{handler:function(t,e){this.page=1,this.getTableData()},deep:!0}},mixins:[o["default"]],methods:{dosubmit:function(t,e){var n=this,a={id:t.id};Object(i["postData"])("passIdentify",a).then((function(a){200==a.code&&(n.$message.successMsg("通过实名认证",1),t.isOk=1,e&&e())}))},passIdentify:function(t){var e=this,n=t.phone,a=t.cardId,r=t.nickname;Object(s["MessageBox"])({title:"身份确认",dangerouslyUseHTMLString:!0,message:"<span>用户:".concat(r,"\n</br>电话:").concat(n,"\n</br> 身份证:").concat(a,"\n</br>一旦提交就不可以修改,你是否继续操作</span>"),showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消",beforeClose:function(n,a,r){"confirm"===n?e.dosubmit(t,r):r()}})}},created:function(){this.getTableData()}},u=c,l=(n("a54e"),n("2877")),d=Object(l["a"])(u,a,r,!1,null,"113182f3",null);e["default"]=d.exports}}]);