Commit 4cf6852a authored by zhanglu's avatar zhanglu

Merge branch 'feature/star_uv' into 'master'

上传uv图

See merge request alpha/sun!35
parents fb022b97 882a481b
......@@ -26,6 +26,7 @@ class FaceStarEdit(APIView):
name = request.POST.get('name')
sex = request.POST.get('sex')
ordinary_image_url = request.POST.get('ordinary_image_url')
modeling_uv_url = request.POST.get('modeling_uv_url')
modeling_obj_url = request.POST.get('modeling_obj_url')
try:
self.rpc['mercury/face/create_star'](
......@@ -33,6 +34,7 @@ class FaceStarEdit(APIView):
sex=sex,
ordinary_image_url=ordinary_image_url,
modeling_obj_url=modeling_obj_url,
modeling_uv_url=modeling_uv_url,
_id=_id
).unwrap()
except Exception as e:
......
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=renderer content=webkit><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><title>更美社区后台</title><link rel="shortcut icon" href=/favicon.ico><link href=/static/css/chunk-elementUI.e8091cad.css rel=stylesheet><link href=/static/css/chunk-libs.825f9043.css rel=stylesheet><link href=/static/css/app.be4107d6.css rel=stylesheet></head><body><script src=/static/tinymce4.7.5/tinymce.min.js></script><script src=/static/jquery.min.js></script><script src=/static/webuploader.min.js></script><div id=app></div><script>!function(e){function n(n){for(var u,t,d=n[0],a=n[1],o=n[2],f=0,i=[];f<d.length;f++)t=d[f],r[t]&&i.push(r[t][0]),r[t]=0;for(u in a)Object.prototype.hasOwnProperty.call(a,u)&&(e[u]=a[u]);for(k&&k(n);i.length;)i.shift()();return h.push.apply(h,o||[]),c()}function c(){for(var e,n=0;n<h.length;n++){for(var c=h[n],u=!0,t=1;t<c.length;t++){var a=c[t];0!==r[a]&&(u=!1)}u&&(h.splice(n--,1),e=d(d.s=c[0]))}return e}var u={},t={runtime:0},r={runtime:0},h=[];function d(n){if(u[n])return u[n].exports;var c=u[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,d),c.l=!0,c.exports}d.e=function(e){var n=[];t[e]?n.push(t[e]):0!==t[e]&&{"chunk-0766":1,"chunk-09df":1,"chunk-1449":1,"chunk-8995":1,"chunk-commons":1,"chunk-00b5":1,"chunk-0618":1,"chunk-0934":1,"chunk-0e44":1,"chunk-1ca7":1,"chunk-1cb0":1,"chunk-2cda":1,"chunk-32ab":1,"chunk-43f9":1,"chunk-5c48":1,"chunk-6098":1,"chunk-60984":1,"chunk-6dcd":1,"chunk-7458":1,"chunk-7714":1,"chunk-7b3f":1,"chunk-6603":1,"chunk-7c4d":1,"chunk-8b60":1,"chunk-b5f3":1,"chunk-ca22":1,"chunk-d472":1,"chunk-ecd4":1,"chunk-ed04":1,"chunk-ed6c":1}[e]&&n.push(t[e]=new Promise(function(n,c){for(var u="static/css/"+({"chunk-commons":"chunk-commons"}[e]||e)+"."+{"7zzA":"31d6cfe0",JEtC:"31d6cfe0","chunk-0766":"0777f867","chunk-09df":"f84fb0f9","chunk-1449":"6401da80","chunk-8995":"9427a5bb","chunk-commons":"7ca0b946","chunk-00b5":"ec341493","chunk-0618":"4c4f48e2","chunk-0934":"b32ac522","/P8B":"31d6cfe0",Gbeq:"31d6cfe0","chunk-0e44":"e58bb28c","chunk-1ca7":"877d5d6d","chunk-1cb0":"877d5d6d","chunk-2cda":"ee4efc5b","chunk-32ab":"1d179934","chunk-43f9":"3ce1b5de","chunk-5c48":"c43184eb","chunk-6098":"e14a97eb","chunk-60984":"e14a97eb","chunk-6dcd":"41e195b0","chunk-7458":"1d179934","chunk-7714":"28887714","chunk-7b3f":"3df7a910","chunk-6603":"60f50ad6",SoCV:"31d6cfe0",VwWe:"31d6cfe0","chunk-7c4d":"21ddd85a","chunk-8b60":"6b175161","chunk-b5f3":"4c4f48e2","chunk-ca22":"a08cb31d","chunk-d472":"fd17f3dd",Q2Zf:"31d6cfe0",ZMmy:"31d6cfe0","chunk-ecd4":"41e195b0","chunk-ed04":"56a44dbd","chunk-ed6c":"41872d14"}[e]+".css",t=d.p+u,r=document.getElementsByTagName("link"),h=0;h<r.length;h++){var a=(f=r[h]).getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(a===u||a===t))return n()}var o=document.getElementsByTagName("style");for(h=0;h<o.length;h++){var f;if((a=(f=o[h]).getAttribute("data-href"))===u||a===t)return n()}var k=document.createElement("link");k.rel="stylesheet",k.type="text/css",k.onload=n,k.onerror=function(n){var u=n&&n.target&&n.target.src||t,r=new Error("Loading CSS chunk "+e+" failed.\n("+u+")");r.request=u,c(r)},k.href=t,document.getElementsByTagName("head")[0].appendChild(k)}).then(function(){t[e]=0}));var c=r[e];if(0!==c)if(c)n.push(c[2]);else{var u=new Promise(function(n,u){c=r[e]=[n,u]});n.push(c[2]=u);var h,a=document.getElementsByTagName("head")[0],o=document.createElement("script");o.charset="utf-8",o.timeout=120,d.nc&&o.setAttribute("nonce",d.nc),o.src=function(e){return d.p+"static/js/"+({"chunk-commons":"chunk-commons"}[e]||e)+"."+{"7zzA":"acd9b7e4",JEtC:"d582661d","chunk-0766":"4986f5a0","chunk-09df":"8d717359","chunk-1449":"14c6dd5c","chunk-8995":"20ce8cd3","chunk-commons":"4e2244ed","chunk-00b5":"12d8fc68","chunk-0618":"36856995","chunk-0934":"2265211a","/P8B":"7f6807b2",Gbeq:"42306eb5","chunk-0e44":"051076fe","chunk-1ca7":"de9873b5","chunk-1cb0":"f0a821f5","chunk-2cda":"65790b67","chunk-32ab":"5f9d20da","chunk-43f9":"f651be51","chunk-5c48":"9a72f594","chunk-6098":"42c807c4","chunk-60984":"97b7f4b6","chunk-6dcd":"3900668e","chunk-7458":"3e8d9f01","chunk-7714":"7f5a9de0","chunk-7b3f":"3902e91b","chunk-6603":"0fb171d9",SoCV:"49bd7f8a",VwWe:"37520311","chunk-7c4d":"d40cba0c","chunk-8b60":"faf8cd2f","chunk-b5f3":"9bbb3ac5","chunk-ca22":"52143547","chunk-d472":"c478b833",Q2Zf:"159a6cad",ZMmy:"fbf2ec27","chunk-ecd4":"4c70d3a5","chunk-ed04":"846679ee","chunk-ed6c":"e320e660"}[e]+".js"}(e),h=function(n){o.onerror=o.onload=null,clearTimeout(f);var c=r[e];if(0!==c){if(c){var u=n&&("load"===n.type?"missing":n.type),t=n&&n.target&&n.target.src,h=new Error("Loading chunk "+e+" failed.\n("+u+": "+t+")");h.type=u,h.request=t,c[1](h)}r[e]=void 0}};var f=setTimeout(function(){h({type:"timeout",target:o})},12e4);o.onerror=o.onload=h,a.appendChild(o)}return Promise.all(n)},d.m=e,d.c=u,d.d=function(e,n,c){d.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:c})},d.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,n){if(1&n&&(e=d(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(d.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var u in e)d.d(c,u,function(n){return e[n]}.bind(null,u));return c},d.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(n,"a",n),n},d.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},d.p="/",d.oe=function(e){throw console.error(e),e};var a=window.webpackJsonp=window.webpackJsonp||[],o=a.push.bind(a);a.push=n,a=a.slice();for(var f=0;f<a.length;f++)n(a[f]);var k=o;c()}([]);</script><script src=/static/js/chunk-elementUI.9e82bb46.js></script><script src=/static/js/chunk-libs.726e3331.js></script><script src=/static/js/app.701ee40e.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=renderer content=webkit><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><title>更美社区后台</title><link rel="shortcut icon" href=/favicon.ico><link href=/static/css/chunk-elementUI.8441406c.css rel=stylesheet><link href=/static/css/chunk-libs.825f9043.css rel=stylesheet><link href=/static/css/app.be4107d6.css rel=stylesheet></head><body><script src=/static/tinymce4.7.5/tinymce.min.js></script><script src=/static/jquery.min.js></script><script src=/static/webuploader.min.js></script><div id=app></div><script>!function(e){function n(n){for(var u,t,f=n[0],o=n[1],a=n[2],d=0,i=[];d<f.length;d++)t=f[d],r[t]&&i.push(r[t][0]),r[t]=0;for(u in o)Object.prototype.hasOwnProperty.call(o,u)&&(e[u]=o[u]);for(k&&k(n);i.length;)i.shift()();return h.push.apply(h,a||[]),c()}function c(){for(var e,n=0;n<h.length;n++){for(var c=h[n],u=!0,t=1;t<c.length;t++){var o=c[t];0!==r[o]&&(u=!1)}u&&(h.splice(n--,1),e=f(f.s=c[0]))}return e}var u={},t={runtime:0},r={runtime:0},h=[];function f(n){if(u[n])return u[n].exports;var c=u[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,f),c.l=!0,c.exports}f.e=function(e){var n=[];t[e]?n.push(t[e]):0!==t[e]&&{"chunk-0766":1,"chunk-09df":1,"chunk-1449":1,"chunk-8995":1,"chunk-commons":1,"chunk-00b5":1,"chunk-0618":1,"chunk-0934":1,"chunk-0e44":1,"chunk-11b9":1,"chunk-1ca7":1,"chunk-1cb0":1,"chunk-2cda":1,"chunk-43f9":1,"chunk-5912":1,"chunk-5c48":1,"chunk-6098":1,"chunk-60984":1,"chunk-6dcd":1,"chunk-7714":1,"chunk-7b3f":1,"chunk-6603":1,"chunk-7c4d":1,"chunk-7ecf":1,"chunk-8b60":1,"chunk-b5f3":1,"chunk-ca22":1,"chunk-d472":1,"chunk-ecd4":1,"chunk-ed04":1}[e]&&n.push(t[e]=new Promise(function(n,c){for(var u="static/css/"+({"chunk-commons":"chunk-commons"}[e]||e)+"."+{"7zzA":"31d6cfe0",JEtC:"31d6cfe0","chunk-0766":"0777f867","chunk-09df":"f84fb0f9","chunk-1449":"6401da80","chunk-8995":"9427a5bb","chunk-commons":"7ca0b946","chunk-00b5":"ec341493","chunk-0618":"4c4f48e2","chunk-0934":"b32ac522","/P8B":"31d6cfe0",Gbeq:"31d6cfe0","chunk-0e44":"e58bb28c","chunk-11b9":"8560a59f","chunk-1ca7":"877d5d6d","chunk-1cb0":"877d5d6d","chunk-2cda":"ee4efc5b","chunk-43f9":"3ce1b5de","chunk-5912":"33ace087","chunk-5c48":"c43184eb","chunk-6098":"e14a97eb","chunk-60984":"e14a97eb","chunk-6dcd":"41e195b0","chunk-7714":"28887714","chunk-7b3f":"3df7a910","chunk-6603":"60f50ad6",SoCV:"31d6cfe0",VwWe:"31d6cfe0","chunk-7c4d":"21ddd85a","chunk-7ecf":"33ace087","chunk-8b60":"6b175161","chunk-b5f3":"4c4f48e2","chunk-ca22":"a08cb31d","chunk-d472":"fd17f3dd",Q2Zf:"31d6cfe0",ZMmy:"31d6cfe0","chunk-ecd4":"41e195b0","chunk-ed04":"56a44dbd"}[e]+".css",t=f.p+u,r=document.getElementsByTagName("link"),h=0;h<r.length;h++){var o=(d=r[h]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(o===u||o===t))return n()}var a=document.getElementsByTagName("style");for(h=0;h<a.length;h++){var d;if((o=(d=a[h]).getAttribute("data-href"))===u||o===t)return n()}var k=document.createElement("link");k.rel="stylesheet",k.type="text/css",k.onload=n,k.onerror=function(n){var u=n&&n.target&&n.target.src||t,r=new Error("Loading CSS chunk "+e+" failed.\n("+u+")");r.request=u,c(r)},k.href=t,document.getElementsByTagName("head")[0].appendChild(k)}).then(function(){t[e]=0}));var c=r[e];if(0!==c)if(c)n.push(c[2]);else{var u=new Promise(function(n,u){c=r[e]=[n,u]});n.push(c[2]=u);var h,o=document.getElementsByTagName("head")[0],a=document.createElement("script");a.charset="utf-8",a.timeout=120,f.nc&&a.setAttribute("nonce",f.nc),a.src=function(e){return f.p+"static/js/"+({"chunk-commons":"chunk-commons"}[e]||e)+"."+{"7zzA":"acd9b7e4",JEtC:"d582661d","chunk-0766":"4986f5a0","chunk-09df":"8d717359","chunk-1449":"14c6dd5c","chunk-8995":"20ce8cd3","chunk-commons":"4e2244ed","chunk-00b5":"12d8fc68","chunk-0618":"36856995","chunk-0934":"2265211a","/P8B":"7f6807b2",Gbeq:"42306eb5","chunk-0e44":"051076fe","chunk-11b9":"93f0f62f","chunk-1ca7":"de9873b5","chunk-1cb0":"f0a821f5","chunk-2cda":"65790b67","chunk-43f9":"f651be51","chunk-5912":"fe029e09","chunk-5c48":"9a72f594","chunk-6098":"42c807c4","chunk-60984":"97b7f4b6","chunk-6dcd":"3900668e","chunk-7714":"7f5a9de0","chunk-7b3f":"3902e91b","chunk-6603":"0fb171d9",SoCV:"49bd7f8a",VwWe:"37520311","chunk-7c4d":"d40cba0c","chunk-7ecf":"04967f1d","chunk-8b60":"faf8cd2f","chunk-b5f3":"9bbb3ac5","chunk-ca22":"52143547","chunk-d472":"c478b833",Q2Zf:"159a6cad",ZMmy:"fbf2ec27","chunk-ecd4":"4c70d3a5","chunk-ed04":"846679ee"}[e]+".js"}(e),h=function(n){a.onerror=a.onload=null,clearTimeout(d);var c=r[e];if(0!==c){if(c){var u=n&&("load"===n.type?"missing":n.type),t=n&&n.target&&n.target.src,h=new Error("Loading chunk "+e+" failed.\n("+u+": "+t+")");h.type=u,h.request=t,c[1](h)}r[e]=void 0}};var d=setTimeout(function(){h({type:"timeout",target:a})},12e4);a.onerror=a.onload=h,o.appendChild(a)}return Promise.all(n)},f.m=e,f.c=u,f.d=function(e,n,c){f.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:c})},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,n){if(1&n&&(e=f(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(f.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var u in e)f.d(c,u,function(n){return e[n]}.bind(null,u));return c},f.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(n,"a",n),n},f.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},f.p="/",f.oe=function(e){throw console.error(e),e};var o=window.webpackJsonp=window.webpackJsonp||[],a=o.push.bind(o);o.push=n,o=o.slice();for(var d=0;d<o.length;d++)n(o[d]);var k=a;c()}([]);</script><script src=/static/js/chunk-elementUI.befe8ef9.js></script><script src=/static/js/chunk-libs.06d36ade.js></script><script src=/static/js/app.19a9c948.js></script></body></html>
\ No newline at end of file
.upload-container[data-v-54c5d4d6]{width:100%;position:relative}.upload-container[data-v-54c5d4d6]:after{content:"";display:table;clear:both}.upload-container .image-uploader[data-v-54c5d4d6]{width:35%;float:left}.upload-container .image-preview[data-v-54c5d4d6]{width:200px;height:200px;position:relative;border:1px dashed #d9d9d9;float:left;margin-left:50px}.upload-container .image-preview .image-preview-wrapper[data-v-54c5d4d6]{position:relative;width:100%;height:100%}.upload-container .image-preview .image-preview-wrapper img[data-v-54c5d4d6]{width:100%;height:100%}.upload-container .image-preview .image-preview-action[data-v-54c5d4d6]{position:absolute;width:100%;height:100%;left:0;top:0;cursor:default;color:#fff;opacity:0;font-size:20px;background-color:rgba(0,0,0,.5);-webkit-transition:opacity .3s;transition:opacity .3s;cursor:pointer;text-align:center;line-height:200px}.upload-container .image-preview .image-preview-action .el-icon-delete[data-v-54c5d4d6]{font-size:36px}.upload-container .image-preview:hover .image-preview-action[data-v-54c5d4d6]{opacity:1}.upload-container .image-app-preview[data-v-54c5d4d6]{width:320px;height:180px;position:relative;border:1px dashed #d9d9d9;float:left;margin-left:50px}.upload-container .image-app-preview .app-fake-conver[data-v-54c5d4d6]{height:44px;position:absolute;width:100%;text-align:center;line-height:64px;color:#fff}.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}.createPost-container[data-v-0f553769]{position:relative}.createPost-container .createPost-main-container[data-v-0f553769]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-0f553769]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-0f553769]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-0f553769]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-0f553769]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-0f553769]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-0f553769]{display:inline-block}.createPost-container .word-counter[data-v-0f553769]{width:40px;position:absolute;right:-10px;top:0}
\ No newline at end of file
.upload-container[data-v-54c5d4d6]{width:100%;position:relative}.upload-container[data-v-54c5d4d6]:after{content:"";display:table;clear:both}.upload-container .image-uploader[data-v-54c5d4d6]{width:35%;float:left}.upload-container .image-preview[data-v-54c5d4d6]{width:200px;height:200px;position:relative;border:1px dashed #d9d9d9;float:left;margin-left:50px}.upload-container .image-preview .image-preview-wrapper[data-v-54c5d4d6]{position:relative;width:100%;height:100%}.upload-container .image-preview .image-preview-wrapper img[data-v-54c5d4d6]{width:100%;height:100%}.upload-container .image-preview .image-preview-action[data-v-54c5d4d6]{position:absolute;width:100%;height:100%;left:0;top:0;cursor:default;color:#fff;opacity:0;font-size:20px;background-color:rgba(0,0,0,.5);-webkit-transition:opacity .3s;transition:opacity .3s;cursor:pointer;text-align:center;line-height:200px}.upload-container .image-preview .image-preview-action .el-icon-delete[data-v-54c5d4d6]{font-size:36px}.upload-container .image-preview:hover .image-preview-action[data-v-54c5d4d6]{opacity:1}.upload-container .image-app-preview[data-v-54c5d4d6]{width:320px;height:180px;position:relative;border:1px dashed #d9d9d9;float:left;margin-left:50px}.upload-container .image-app-preview .app-fake-conver[data-v-54c5d4d6]{height:44px;position:absolute;width:100%;text-align:center;line-height:64px;color:#fff}.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}.createPost-container[data-v-6643efbe]{position:relative}.createPost-container .createPost-main-container[data-v-6643efbe]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-6643efbe]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-6643efbe]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-6643efbe]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-6643efbe]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-6643efbe]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-6643efbe]{display:inline-block}.createPost-container .word-counter[data-v-6643efbe]{width:40px;position:absolute;right:-10px;top:0}
\ No newline at end of file
.upload-container[data-v-54c5d4d6]{width:100%;position:relative}.upload-container[data-v-54c5d4d6]:after{content:"";display:table;clear:both}.upload-container .image-uploader[data-v-54c5d4d6]{width:35%;float:left}.upload-container .image-preview[data-v-54c5d4d6]{width:200px;height:200px;position:relative;border:1px dashed #d9d9d9;float:left;margin-left:50px}.upload-container .image-preview .image-preview-wrapper[data-v-54c5d4d6]{position:relative;width:100%;height:100%}.upload-container .image-preview .image-preview-wrapper img[data-v-54c5d4d6]{width:100%;height:100%}.upload-container .image-preview .image-preview-action[data-v-54c5d4d6]{position:absolute;width:100%;height:100%;left:0;top:0;cursor:default;color:#fff;opacity:0;font-size:20px;background-color:rgba(0,0,0,.5);-webkit-transition:opacity .3s;transition:opacity .3s;cursor:pointer;text-align:center;line-height:200px}.upload-container .image-preview .image-preview-action .el-icon-delete[data-v-54c5d4d6]{font-size:36px}.upload-container .image-preview:hover .image-preview-action[data-v-54c5d4d6]{opacity:1}.upload-container .image-app-preview[data-v-54c5d4d6]{width:320px;height:180px;position:relative;border:1px dashed #d9d9d9;float:left;margin-left:50px}.upload-container .image-app-preview .app-fake-conver[data-v-54c5d4d6]{height:44px;position:absolute;width:100%;text-align:center;line-height:64px;color:#fff}.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}.createPost-container[data-v-0f553769]{position:relative}.createPost-container .createPost-main-container[data-v-0f553769]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-0f553769]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-0f553769]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-0f553769]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-0f553769]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-0f553769]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-0f553769]{display:inline-block}.createPost-container .word-counter[data-v-0f553769]{width:40px;position:absolute;right:-10px;top:0}
\ No newline at end of file
.upload-container[data-v-54c5d4d6]{width:100%;position:relative}.upload-container[data-v-54c5d4d6]:after{content:"";display:table;clear:both}.upload-container .image-uploader[data-v-54c5d4d6]{width:35%;float:left}.upload-container .image-preview[data-v-54c5d4d6]{width:200px;height:200px;position:relative;border:1px dashed #d9d9d9;float:left;margin-left:50px}.upload-container .image-preview .image-preview-wrapper[data-v-54c5d4d6]{position:relative;width:100%;height:100%}.upload-container .image-preview .image-preview-wrapper img[data-v-54c5d4d6]{width:100%;height:100%}.upload-container .image-preview .image-preview-action[data-v-54c5d4d6]{position:absolute;width:100%;height:100%;left:0;top:0;cursor:default;color:#fff;opacity:0;font-size:20px;background-color:rgba(0,0,0,.5);-webkit-transition:opacity .3s;transition:opacity .3s;cursor:pointer;text-align:center;line-height:200px}.upload-container .image-preview .image-preview-action .el-icon-delete[data-v-54c5d4d6]{font-size:36px}.upload-container .image-preview:hover .image-preview-action[data-v-54c5d4d6]{opacity:1}.upload-container .image-app-preview[data-v-54c5d4d6]{width:320px;height:180px;position:relative;border:1px dashed #d9d9d9;float:left;margin-left:50px}.upload-container .image-app-preview .app-fake-conver[data-v-54c5d4d6]{height:44px;position:absolute;width:100%;text-align:center;line-height:64px;color:#fff}.waves-ripple{position:absolute;border-radius:100%;background-color:rgba(0,0,0,.15);background-clip:padding-box;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transform:scale(0);transform:scale(0);opacity:1}.waves-ripple.z-active{opacity:0;-webkit-transform:scale(2);transform:scale(2);-webkit-transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,-webkit-transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out;transition:opacity 1.2s ease-out,transform .6s ease-out,-webkit-transform .6s ease-out}.createPost-container[data-v-6643efbe]{position:relative}.createPost-container .createPost-main-container[data-v-6643efbe]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-6643efbe]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-6643efbe]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-6643efbe]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-6643efbe]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-6643efbe]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-6643efbe]{display:inline-block}.createPost-container .word-counter[data-v-6643efbe]{width:40px;position:absolute;right:-10px;top:0}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-ed6c"],{"//M8":function(e,t,i){"use strict";var l=i("AspQ");i.n(l).a},AspQ:function(e,t,i){},"Jkq+":function(e,t,i){"use strict";i.r(t);var l=i("XB8m"),n=i("Mz3J"),a=i("ZySA"),s={name:"FaceStarList",components:{Pagination:n.a},directives:{waves:a.a},filters:{isOnlineFilter:function(e){return{1:"success",0:"info"}[e]}},data:function(){return{list:null,total:0,listLoading:!0,multipleSelection:[],del_list:[],listQuery:{page:0,limit:10,filter:{sex:"",is_online:""}},BooleanTypeOptions:[{key:1,display_name:"是"},{key:0,display_name:"否"}],SexTypeOptions:[{key:1,display_name:"男"},{key:0,display_name:"女"}],SearchTypeOptions:[{key:"name",display_name:"明星名"}]}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(l.d)(this.listQuery).then(function(t){console.log(t.data.data.data),e.list=t.data.data.data,e.total=t.data.data.total,e.listLoading=!1})},handleSelectionChange:function(e){this.multipleSelection=e},handleSizeChange:function(e){this.listQuery.limit=e,this.getList()},handleCurrentChange:function(e){this.listQuery.page=e,this.getList()},handleCreate:function(){this.$router.push("/star/face/create")},handleOfflineOrOnline:function(e){var t=this,i=this.multipleSelection.length,n="";this.del_list=this.del_list.concat(this.multipleSelection);for(var a=0;a<i;a++)this.multipleSelection[a].is_online="offline"===e?0:1,n+=this.multipleSelection[a].id+" ";Object(l.a)({type:e,ids:n}).then(function(e){t.multipleSelection=[],t.$message.success(e.data.data.message),t.$router.go(0)})},handleFilter:function(){this.listQuery.page=1,this.getList()}}},o=(i("//M8"),i("KHd+")),r=Object(o.a)(s,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"filter-container"},[i("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"搜素"},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleFilter(t):null}},model:{value:e.listQuery.filter.value,callback:function(t){e.$set(e.listQuery.filter,"value",t)},expression:"listQuery.filter.value"}}),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"搜索字段",clearable:""},model:{value:e.listQuery.filter.key,callback:function(t){e.$set(e.listQuery.filter,"key",t)},expression:"listQuery.filter.key"}},e._l(e.SearchTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"是否在线",clearable:""},model:{value:e.listQuery.filter.is_online,callback:function(t){e.$set(e.listQuery.filter,"is_online",t)},expression:"listQuery.filter.is_online"}},e._l(e.BooleanTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"性别",clearable:""},model:{value:e.listQuery.filter.sex,callback:function(t){e.$set(e.listQuery.filter,"sex",t)},expression:"listQuery.filter.sex"}},e._l(e.SexTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleFilter}},[e._v("搜索")]),e._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleCreate}},[e._v("创建\n ")]),e._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){e.handleOfflineOrOnline("offline")}}},[e._v("下线\n ")]),e._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){e.handleOfflineOrOnline("online")}}},[e._v("上线\n ")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":""},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",align:"center"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"账号ID"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{staticClass:"link-type",attrs:{to:"/star/face/edit/"+t.row.id}},[i("span",[e._v(e._s(t.row.id))])])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"明星名"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tag",{attrs:{type:t.row.sex}},[e._v(e._s(1==t.row.sex?"男":"女"))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"原图"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.ordinary_image_url))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"模型"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.modeling_obj_url))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"是否在线"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tag",{attrs:{type:e._f("isOnlineFilter")(t.row.is_online)}},[e._v(e._s(1==t.row.is_online?"是":"否"))])]}}])})],1),e._v(" "),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],staticStyle:{"margin-left":"250px"},attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.limit},on:{"update:page":function(t){e.$set(e.listQuery,"page",t)},"update:limit":function(t){e.$set(e.listQuery,"limit",t)},pagination:e.getList}})],1)},[],!1,null,"5036f6ba",null);r.options.__file="list.vue";t.default=r.exports},XB8m:function(e,t,i){"use strict";i.d(t,"b",function(){return n}),i.d(t,"d",function(){return a}),i.d(t,"a",function(){return s}),i.d(t,"c",function(){return o});var l=i("t3Un");function n(e){return Object(l.a)({url:"/api/face/star/create",method:"post",data:e})}function a(e){return Object(l.a)({url:"/api/face/star/list",method:"get",params:e})}function s(e){return console.log(e),Object(l.a)({url:"/api/face/star/list/update",method:"post",data:e})}function o(e){return Object(l.a)({url:"/api/face/star/detail",method:"get",params:{id:e}})}},Y5bG:function(e,t,i){"use strict";i.d(t,"a",function(){return n}),Math.easeInOutQuad=function(e,t,i,l){return(e/=l/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t};var l=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)};function n(e,t,i){var n=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,a=e-n,s=0;t=void 0===t?500:t;!function e(){s+=20,function(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}(Math.easeInOutQuad(s,n,a,t)),s<t?l(e):i&&"function"==typeof i&&i()}()}},ZySA:function(e,t,i){"use strict";var l=i("P2sY"),n=i.n(l),a=(i("jUE0"),{bind:function(e,t){e.addEventListener("click",function(i){var l=n()({},t.value),a=n()({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},l),s=a.ele;if(s){s.style.position="relative",s.style.overflow="hidden";var o=s.getBoundingClientRect(),r=s.querySelector(".waves-ripple");switch(r?r.className="waves-ripple":((r=document.createElement("span")).className="waves-ripple",r.style.height=r.style.width=Math.max(o.width,o.height)+"px",s.appendChild(r)),a.type){case"center":r.style.top=o.height/2-r.offsetHeight/2+"px",r.style.left=o.width/2-r.offsetWidth/2+"px";break;default:r.style.top=(i.pageY-o.top-r.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",r.style.left=(i.pageX-o.left-r.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return r.style.backgroundColor=a.color,r.className="waves-ripple z-active",!1}},!1)}}),s=function(e){e.directive("waves",a)};window.Vue&&(window.waves=a,Vue.use(s)),a.install=s;t.a=a},jUE0:function(e,t,i){}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-11b9"],{"+FZ8":function(e,t,i){},BQYN:function(e,t,i){"use strict";var l=i("+FZ8");i.n(l).a},"Jkq+":function(e,t,i){"use strict";i.r(t);var l=i("XB8m"),n=i("Mz3J"),a=i("ZySA"),s={name:"FaceStarList",components:{Pagination:n.a},directives:{waves:a.a},filters:{isOnlineFilter:function(e){return{1:"success",0:"info"}[e]}},data:function(){return{list:null,total:0,listLoading:!0,multipleSelection:[],del_list:[],listQuery:{page:0,limit:10,filter:{sex:"",is_online:""}},BooleanTypeOptions:[{key:1,display_name:"是"},{key:0,display_name:"否"}],SexTypeOptions:[{key:1,display_name:"男"},{key:0,display_name:"女"}],SearchTypeOptions:[{key:"name",display_name:"明星名"}]}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(l.d)(this.listQuery).then(function(t){console.log(t.data.data.data),e.list=t.data.data.data,e.total=t.data.data.total,e.listLoading=!1})},handleSelectionChange:function(e){this.multipleSelection=e},handleSizeChange:function(e){this.listQuery.limit=e,this.getList()},handleCurrentChange:function(e){this.listQuery.page=e,this.getList()},handleCreate:function(){this.$router.push("/star/face/create")},handleOfflineOrOnline:function(e){var t=this,i=this.multipleSelection.length,n="";this.del_list=this.del_list.concat(this.multipleSelection);for(var a=0;a<i;a++)this.multipleSelection[a].is_online="offline"===e?0:1,n+=this.multipleSelection[a].id+" ";Object(l.a)({type:e,ids:n}).then(function(e){t.multipleSelection=[],t.$message.success(e.data.data.message),t.$router.go(0)})},handleFilter:function(){this.listQuery.page=1,this.getList()}}},o=(i("BQYN"),i("KHd+")),r=Object(o.a)(s,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"filter-container"},[i("el-input",{staticClass:"filter-item",staticStyle:{width:"180px"},attrs:{placeholder:"搜素"},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleFilter(t):null}},model:{value:e.listQuery.filter.value,callback:function(t){e.$set(e.listQuery.filter,"value",t)},expression:"listQuery.filter.value"}}),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"搜索字段",clearable:""},model:{value:e.listQuery.filter.key,callback:function(t){e.$set(e.listQuery.filter,"key",t)},expression:"listQuery.filter.key"}},e._l(e.SearchTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"是否在线",clearable:""},model:{value:e.listQuery.filter.is_online,callback:function(t){e.$set(e.listQuery.filter,"is_online",t)},expression:"listQuery.filter.is_online"}},e._l(e.BooleanTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-select",{staticClass:"filter-item",staticStyle:{width:"110px"},attrs:{placeholder:"性别",clearable:""},model:{value:e.listQuery.filter.sex,callback:function(t){e.$set(e.listQuery.filter,"sex",t)},expression:"listQuery.filter.sex"}},e._l(e.SexTypeOptions,function(e){return i("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),e._v(" "),i("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleFilter}},[e._v("搜索")]),e._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleCreate}},[e._v("创建\n ")]),e._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){e.handleOfflineOrOnline("offline")}}},[e._v("下线\n ")]),e._v(" "),i("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){e.handleOfflineOrOnline("online")}}},[e._v("上线\n ")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":""},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",align:"center"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"账号ID"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{staticClass:"link-type",attrs:{to:"/star/face/edit/"+t.row.id}},[i("span",[e._v(e._s(t.row.id))])])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"明星名"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tag",{attrs:{type:t.row.sex}},[e._v(e._s(1==t.row.sex?"男":"女"))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"原图"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.ordinary_image_url))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"UV图"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.modeling_uv_url))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"模型"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.modeling_obj_url))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"是否在线"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tag",{attrs:{type:e._f("isOnlineFilter")(t.row.is_online)}},[e._v(e._s(1==t.row.is_online?"是":"否"))])]}}])})],1),e._v(" "),i("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],staticStyle:{"margin-left":"250px"},attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.limit},on:{"update:page":function(t){e.$set(e.listQuery,"page",t)},"update:limit":function(t){e.$set(e.listQuery,"limit",t)},pagination:e.getList}})],1)},[],!1,null,"608e373e",null);r.options.__file="list.vue";t.default=r.exports},XB8m:function(e,t,i){"use strict";i.d(t,"b",function(){return n}),i.d(t,"d",function(){return a}),i.d(t,"a",function(){return s}),i.d(t,"c",function(){return o});var l=i("t3Un");function n(e){return Object(l.a)({url:"/api/face/star/create",method:"post",data:e})}function a(e){return Object(l.a)({url:"/api/face/star/list",method:"get",params:e})}function s(e){return console.log(e),Object(l.a)({url:"/api/face/star/list/update",method:"post",data:e})}function o(e){return Object(l.a)({url:"/api/face/star/detail",method:"get",params:{id:e}})}},Y5bG:function(e,t,i){"use strict";i.d(t,"a",function(){return n}),Math.easeInOutQuad=function(e,t,i,l){return(e/=l/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t};var l=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)};function n(e,t,i){var n=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,a=e-n,s=0;t=void 0===t?500:t;!function e(){s+=20,function(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}(Math.easeInOutQuad(s,n,a,t)),s<t?l(e):i&&"function"==typeof i&&i()}()}},ZySA:function(e,t,i){"use strict";var l=i("P2sY"),n=i.n(l),a=(i("jUE0"),{bind:function(e,t){e.addEventListener("click",function(i){var l=n()({},t.value),a=n()({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},l),s=a.ele;if(s){s.style.position="relative",s.style.overflow="hidden";var o=s.getBoundingClientRect(),r=s.querySelector(".waves-ripple");switch(r?r.className="waves-ripple":((r=document.createElement("span")).className="waves-ripple",r.style.height=r.style.width=Math.max(o.width,o.height)+"px",s.appendChild(r)),a.type){case"center":r.style.top=o.height/2-r.offsetHeight/2+"px",r.style.left=o.width/2-r.offsetWidth/2+"px";break;default:r.style.top=(i.pageY-o.top-r.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",r.style.left=(i.pageX-o.left-r.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return r.style.backgroundColor=a.color,r.className="waves-ripple z-active",!1}},!1)}}),s=function(e){e.directive("waves",a)};window.Vue&&(window.waves=a,Vue.use(s)),a.install=s;t.a=a},jUE0:function(e,t,i){}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-32ab"],{"+z3U":function(t,e,a){"use strict";var o=a("P2sY"),n=a.n(o),i=a("glbJ"),s=a("4d7F"),r=a.n(s),l=a("MSNs"),c={name:"SingleImageUpload3",props:{value:{type:String,default:""},uploadType:{type:Number,default:""}},data:function(){return{tempUrl:"",dataObj:{uploadType:this.uploadType}}},computed:{imageUrl:function(){return this.value}},methods:{rmImage:function(){this.emitInput("")},emitInput:function(t){this.$emit("input",t)},handleImageSuccess:function(t){this.emitInput(t.data.file_url)},handleBeforeUpload:function(){var t=this,e=this;return new r.a(function(a,o){Object(l.a)().then(function(o){var n=o.data.qiniu_key,i=o.data.qiniu_token;e._data.dataObj.token=i,e._data.dataObj.key=n,t.tempUrl=o.data.qiniu_url,a(!0)}).catch(function(t){console.log(t),o(!1)})})}}},u=(a("PRYl"),a("KHd+")),d=Object(u.a)(c,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"upload-container"},[a("el-upload",{staticClass:"image-uploader",attrs:{data:t.dataObj,multiple:!1,"show-file-list":!1,"on-success":t.handleImageSuccess,drag:"","before-upload":t.handleBeforeUpload,action:"/api/file/upload"}},[a("i",{staticClass:"el-icon-upload"}),t._v(" "),a("div",{staticClass:"el-upload__text"},[t._v("将文件拖到此处,或"),a("em",[t._v("点击上传")])])]),t._v(" "),a("div",{staticClass:"image-preview"},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.imageUrl.length>1,expression:"imageUrl.length>1"}],staticClass:"image-preview-wrapper"},[a("img",{attrs:{src:t.imageUrl,disabled:!0}}),t._v(" "),a("div",{staticClass:"image-preview-action"},[a("i",{staticClass:"el-icon-delete",on:{click:t.rmImage}})])])])],1)},[],!1,null,"54c5d4d6",null);d.options.__file="faceupload.vue";var p=d.exports,m=a("Grqa"),f=a("uARZ"),v=a("ZySA"),h=a("Mz3J"),g=(a("Yfch"),a("XB8m")),y=[{key:1,display_name:"男"},{key:2,display_name:"女"}],b=y.reduce(function(t,e){return t[e.key]=e.display_name,t},{}),_=(y.reduce(function(t,e){return t[e.key]=e.display_name,t},{}),{status:"draft",uploadType:"",name:"",sex:"",ordinary_image_url:"",modeling_obj_url:""}),w={name:"FaceStarDetail",components:{Tinymce:i.a,MDinput:m.a,FaceUpload:p,Sticky:f.a,Pagination:h.a},directives:{waves:v.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this,e=function(e,a,o){""===a?(t.$message({message:e.field+"为必传项",type:"error"}),o(new Error(e.field+"为必传项"))):o()};return{postForm:n()({},_),loading:!1,city:"",tags:[],rules:{name:[{validator:e,trigger:"blur"}],sex:[{validator:e,trigger:"blur"}]},tempRoute:{},GenderTypeOptions:[{key:1,display_name:"男"},{key:2,display_name:"女"}],uploadType:-99,isdisabledFn:!1}},computed:{lang:function(){return this.$store.getters.language}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=n()({},_);this.tempRoute=n()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(g.c)(t).then(function(t){e.postForm=t.data.data.data,e.postForm.sex=b[t.data.data.data.sex]}).catch(function(t){console.log(t)})},submitForm:function(){var t=this;this.$refs.postForm.validate(function(e){if(!e)return console.log("error submit!!"),!1;if(t.loading=!0,""===t.postForm.ordinary_image_url)return t.$message.error("头像一不能为空~"),t.loading=!1,!1;var a={"男":1,"女":2};t.isdisabledFn=!0,a.hasOwnProperty(t.postForm.sex)&&(t.postForm.sex=a[t.postForm.sex]),t.isdisabledFn=!0,Object(g.b)(t.postForm).then(function(e){t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),t.$router.go(0)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",t.loading=!1})},getRemoteCityList:function(t){var e=this;citySearch(t).then(function(t){t.data.data.data&&(e.regionListOptions=t.data.data.data)})},getRemoteTagList:function(t){var e=this;tagSearch(t).then(function(t){t.data.data.data&&(e.tagListOptions=t.data.data.data)})}}},F=(a("opkK"),Object(u.a)(w,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"createPost-container"},[a("el-form",{ref:"postForm",staticClass:"form-container",attrs:{model:t.postForm,rules:t.rules}},[a("sticky",{attrs:{"class-name":"sub-navbar "+t.postForm.status}},[a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-left":"10px"},attrs:{disabled:t.isdisabledFn,type:"success"},on:{click:t.submitForm}},[t._v("保存\n ")])],1),t._v(" "),a("div",{staticClass:"createPost-main-container"},[a("el-row",{attrs:{gutter:20}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("Face明星")])]),t._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("div",{staticClass:"postInfo-container"},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"*用户名:",prop:"nick_name"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text"},model:{value:t.postForm.name,callback:function(e){t.$set(t.postForm,"name",e)},expression:"postForm.name"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{"label-width":"75px",label:"*性别:",prop:"gender"}},[a("el-select",{staticClass:"postInfo-container-item",staticStyle:{width:"230px"},attrs:{placeholder:"性别:",clearable:""},model:{value:t.postForm.sex,callback:function(e){t.$set(t.postForm,"sex",e)},expression:"postForm.sex"}},t._l(t.GenderTypeOptions,function(t){return a("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})}))],1)],1)],1)],1)])],1),t._v(" "),a("div",[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"*原图:",prop:"avatar"}},[a("span",{model:{value:t.uploadType,callback:function(e){t.uploadType=e},expression:"uploadType"}}),t._v(" "),a("FaceUpload",{attrs:{"upload-type":t.uploadType},model:{value:t.postForm.ordinary_image_url,callback:function(e){t.$set(t.postForm,"ordinary_image_url",e)},expression:"postForm.ordinary_image_url"}})],1)],1),t._v(" "),a("div",[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"*模型:",prop:"avatar"}},[a("span",{model:{value:t.uploadType,callback:function(e){t.uploadType=e},expression:"uploadType"}}),t._v(" "),a("FaceUpload",{attrs:{"upload-type":t.uploadType},model:{value:t.postForm.modeling_obj_url,callback:function(e){t.$set(t.postForm,"modeling_obj_url",e)},expression:"postForm.modeling_obj_url"}})],1)],1)],1)],1)],1)],1)],1)},[],!1,null,"0f553769",null));F.options.__file="FaceStarDetail.vue";e.a=F.exports},HmOD:function(t,e,a){"use strict";a.r(e);var o={name:"CreateFaceStar",components:{FaceStarDetail:a("+z3U").a}},n=a("KHd+"),i=Object(n.a)(o,function(){var t=this.$createElement;return(this._self._c||t)("face-star-detail",{attrs:{"is-edit":!1}})},[],!1,null,null,null);i.options.__file="create.vue";e.default=i.exports},MSNs:function(t,e,a){"use strict";a.d(e,"a",function(){return n});var o=a("t3Un");function n(){return Object(o.a)({url:"/api/get_token",method:"get"})}},PHen:function(t,e,a){},PRYl:function(t,e,a){"use strict";var o=a("Ujl/");a.n(o).a},"Ujl/":function(t,e,a){},XB8m:function(t,e,a){"use strict";a.d(e,"b",function(){return n}),a.d(e,"d",function(){return i}),a.d(e,"a",function(){return s}),a.d(e,"c",function(){return r});var o=a("t3Un");function n(t){return Object(o.a)({url:"/api/face/star/create",method:"post",data:t})}function i(t){return Object(o.a)({url:"/api/face/star/list",method:"get",params:t})}function s(t){return console.log(t),Object(o.a)({url:"/api/face/star/list/update",method:"post",data:t})}function r(t){return Object(o.a)({url:"/api/face/star/detail",method:"get",params:{id:t}})}},Y5bG:function(t,e,a){"use strict";a.d(e,"a",function(){return n}),Math.easeInOutQuad=function(t,e,a,o){return(t/=o/2)<1?a/2*t*t+e:-a/2*(--t*(t-2)-1)+e};var o=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)};function n(t,e,a){var n=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,i=t-n,s=0;e=void 0===e?500:e;!function t(){s+=20,function(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}(Math.easeInOutQuad(s,n,i,e)),s<e?o(t):a&&"function"==typeof a&&a()}()}},Yfch:function(t,e,a){"use strict"},ZySA:function(t,e,a){"use strict";var o=a("P2sY"),n=a.n(o),i=(a("jUE0"),{bind:function(t,e){t.addEventListener("click",function(a){var o=n()({},e.value),i=n()({ele:t,type:"hit",color:"rgba(0, 0, 0, 0.15)"},o),s=i.ele;if(s){s.style.position="relative",s.style.overflow="hidden";var r=s.getBoundingClientRect(),l=s.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":((l=document.createElement("span")).className="waves-ripple",l.style.height=l.style.width=Math.max(r.width,r.height)+"px",s.appendChild(l)),i.type){case"center":l.style.top=r.height/2-l.offsetHeight/2+"px",l.style.left=r.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(a.pageY-r.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(a.pageX-r.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=i.color,l.className="waves-ripple z-active",!1}},!1)}}),s=function(t){t.directive("waves",i)};window.Vue&&(window.waves=i,Vue.use(s)),i.install=s;e.a=i},jUE0:function(t,e,a){},opkK:function(t,e,a){"use strict";var o=a("PHen");a.n(o).a}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-5912"],{"+z3U":function(t,e,a){"use strict";var o=a("P2sY"),n=a.n(o),i=a("glbJ"),s=a("4d7F"),r=a.n(s),l=a("MSNs"),c={name:"SingleImageUpload3",props:{value:{type:String,default:""},uploadType:{type:Number,default:""}},data:function(){return{tempUrl:"",dataObj:{uploadType:this.uploadType}}},computed:{imageUrl:function(){return this.value}},methods:{rmImage:function(){this.emitInput("")},emitInput:function(t){this.$emit("input",t)},handleImageSuccess:function(t){this.emitInput(t.data.file_url)},handleBeforeUpload:function(){var t=this,e=this;return new r.a(function(a,o){Object(l.a)().then(function(o){var n=o.data.qiniu_key,i=o.data.qiniu_token;e._data.dataObj.token=i,e._data.dataObj.key=n,t.tempUrl=o.data.qiniu_url,a(!0)}).catch(function(t){console.log(t),o(!1)})})}}},u=(a("PRYl"),a("KHd+")),d=Object(u.a)(c,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"upload-container"},[a("el-upload",{staticClass:"image-uploader",attrs:{data:t.dataObj,multiple:!1,"show-file-list":!1,"on-success":t.handleImageSuccess,drag:"","before-upload":t.handleBeforeUpload,action:"/api/file/upload"}},[a("i",{staticClass:"el-icon-upload"}),t._v(" "),a("div",{staticClass:"el-upload__text"},[t._v("将文件拖到此处,或"),a("em",[t._v("点击上传")])])]),t._v(" "),a("div",{staticClass:"image-preview"},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.imageUrl.length>1,expression:"imageUrl.length>1"}],staticClass:"image-preview-wrapper"},[a("img",{attrs:{src:t.imageUrl,disabled:!0}}),t._v(" "),a("div",{staticClass:"image-preview-action"},[a("i",{staticClass:"el-icon-delete",on:{click:t.rmImage}})])])])],1)},[],!1,null,"54c5d4d6",null);d.options.__file="faceupload.vue";var p=d.exports,m=a("Grqa"),f=a("uARZ"),v=a("ZySA"),g=a("Mz3J"),y=(a("Yfch"),a("XB8m")),h=[{key:1,display_name:"男"},{key:2,display_name:"女"}],b=h.reduce(function(t,e){return t[e.key]=e.display_name,t},{}),_=(h.reduce(function(t,e){return t[e.key]=e.display_name,t},{}),{status:"draft",uploadType:"",name:"",sex:"",ordinary_image_url:"",modeling_uv_url:"",modeling_obj_url:""}),w={name:"FaceStarDetail",components:{Tinymce:i.a,MDinput:m.a,FaceUpload:p,Sticky:f.a,Pagination:g.a},directives:{waves:v.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this,e=function(e,a,o){""===a?(t.$message({message:e.field+"为必传项",type:"error"}),o(new Error(e.field+"为必传项"))):o()};return{postForm:n()({},_),loading:!1,city:"",tags:[],rules:{name:[{validator:e,trigger:"blur"}],sex:[{validator:e,trigger:"blur"}]},tempRoute:{},GenderTypeOptions:[{key:1,display_name:"男"},{key:2,display_name:"女"}],uploadType:-99,isdisabledFn:!1}},computed:{lang:function(){return this.$store.getters.language}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=n()({},_);this.tempRoute=n()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(y.c)(t).then(function(t){e.postForm=t.data.data.data,e.postForm.sex=b[t.data.data.data.sex]}).catch(function(t){console.log(t)})},submitForm:function(){var t=this;this.$refs.postForm.validate(function(e){if(!e)return console.log("error submit!!"),!1;if(t.loading=!0,""===t.postForm.ordinary_image_url)return t.$message.error("头像一不能为空~"),t.loading=!1,!1;var a={"男":1,"女":2};t.isdisabledFn=!0,a.hasOwnProperty(t.postForm.sex)&&(t.postForm.sex=a[t.postForm.sex]),t.isdisabledFn=!0,Object(y.b)(t.postForm).then(function(e){t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),t.$router.go(0)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",t.loading=!1})},getRemoteCityList:function(t){var e=this;citySearch(t).then(function(t){t.data.data.data&&(e.regionListOptions=t.data.data.data)})},getRemoteTagList:function(t){var e=this;tagSearch(t).then(function(t){t.data.data.data&&(e.tagListOptions=t.data.data.data)})}}},F=(a("ePYM"),Object(u.a)(w,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"createPost-container"},[a("el-form",{ref:"postForm",staticClass:"form-container",attrs:{model:t.postForm,rules:t.rules}},[a("sticky",{attrs:{"class-name":"sub-navbar "+t.postForm.status}},[a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-left":"10px"},attrs:{disabled:t.isdisabledFn,type:"success"},on:{click:t.submitForm}},[t._v("保存\n ")])],1),t._v(" "),a("div",{staticClass:"createPost-main-container"},[a("el-row",{attrs:{gutter:20}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("Face明星")])]),t._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("div",{staticClass:"postInfo-container"},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"*用户名:",prop:"nick_name"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text"},model:{value:t.postForm.name,callback:function(e){t.$set(t.postForm,"name",e)},expression:"postForm.name"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{"label-width":"75px",label:"*性别:",prop:"gender"}},[a("el-select",{staticClass:"postInfo-container-item",staticStyle:{width:"230px"},attrs:{placeholder:"性别:",clearable:""},model:{value:t.postForm.sex,callback:function(e){t.$set(t.postForm,"sex",e)},expression:"postForm.sex"}},t._l(t.GenderTypeOptions,function(t){return a("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})}))],1)],1)],1)],1)])],1),t._v(" "),a("div",[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"*原图:",prop:"avatar"}},[a("span",{model:{value:t.uploadType,callback:function(e){t.uploadType=e},expression:"uploadType"}}),t._v(" "),a("FaceUpload",{attrs:{"upload-type":t.uploadType},model:{value:t.postForm.ordinary_image_url,callback:function(e){t.$set(t.postForm,"ordinary_image_url",e)},expression:"postForm.ordinary_image_url"}})],1)],1),t._v(" "),a("div",[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"*UV图:",prop:"avatar"}},[a("span",{model:{value:t.uploadType,callback:function(e){t.uploadType=e},expression:"uploadType"}}),t._v(" "),a("FaceUpload",{attrs:{"upload-type":t.uploadType},model:{value:t.postForm.modeling_uv_url,callback:function(e){t.$set(t.postForm,"modeling_uv_url",e)},expression:"postForm.modeling_uv_url"}})],1)],1),t._v(" "),a("div",[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"*模型:",prop:"avatar"}},[a("span",{model:{value:t.uploadType,callback:function(e){t.uploadType=e},expression:"uploadType"}}),t._v(" "),a("FaceUpload",{attrs:{"upload-type":t.uploadType},model:{value:t.postForm.modeling_obj_url,callback:function(e){t.$set(t.postForm,"modeling_obj_url",e)},expression:"postForm.modeling_obj_url"}})],1)],1)],1)],1)],1)],1)],1)},[],!1,null,"6643efbe",null));F.options.__file="FaceStarDetail.vue";e.a=F.exports},"5Q/F":function(t,e,a){},CXrD:function(t,e,a){"use strict";a.r(e);var o={name:"EditFaceStar",components:{FaceStarDetail:a("+z3U").a}},n=a("KHd+"),i=Object(n.a)(o,function(){var t=this.$createElement;return(this._self._c||t)("face-star-detail",{attrs:{"is-edit":!0}})},[],!1,null,null,null);i.options.__file="edit.vue";e.default=i.exports},MSNs:function(t,e,a){"use strict";a.d(e,"a",function(){return n});var o=a("t3Un");function n(){return Object(o.a)({url:"/api/get_token",method:"get"})}},PRYl:function(t,e,a){"use strict";var o=a("Ujl/");a.n(o).a},"Ujl/":function(t,e,a){},XB8m:function(t,e,a){"use strict";a.d(e,"b",function(){return n}),a.d(e,"d",function(){return i}),a.d(e,"a",function(){return s}),a.d(e,"c",function(){return r});var o=a("t3Un");function n(t){return Object(o.a)({url:"/api/face/star/create",method:"post",data:t})}function i(t){return Object(o.a)({url:"/api/face/star/list",method:"get",params:t})}function s(t){return console.log(t),Object(o.a)({url:"/api/face/star/list/update",method:"post",data:t})}function r(t){return Object(o.a)({url:"/api/face/star/detail",method:"get",params:{id:t}})}},Y5bG:function(t,e,a){"use strict";a.d(e,"a",function(){return n}),Math.easeInOutQuad=function(t,e,a,o){return(t/=o/2)<1?a/2*t*t+e:-a/2*(--t*(t-2)-1)+e};var o=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)};function n(t,e,a){var n=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,i=t-n,s=0;e=void 0===e?500:e;!function t(){s+=20,function(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}(Math.easeInOutQuad(s,n,i,e)),s<e?o(t):a&&"function"==typeof a&&a()}()}},Yfch:function(t,e,a){"use strict"},ZySA:function(t,e,a){"use strict";var o=a("P2sY"),n=a.n(o),i=(a("jUE0"),{bind:function(t,e){t.addEventListener("click",function(a){var o=n()({},e.value),i=n()({ele:t,type:"hit",color:"rgba(0, 0, 0, 0.15)"},o),s=i.ele;if(s){s.style.position="relative",s.style.overflow="hidden";var r=s.getBoundingClientRect(),l=s.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":((l=document.createElement("span")).className="waves-ripple",l.style.height=l.style.width=Math.max(r.width,r.height)+"px",s.appendChild(l)),i.type){case"center":l.style.top=r.height/2-l.offsetHeight/2+"px",l.style.left=r.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(a.pageY-r.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(a.pageX-r.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=i.color,l.className="waves-ripple z-active",!1}},!1)}}),s=function(t){t.directive("waves",i)};window.Vue&&(window.waves=i,Vue.use(s)),i.install=s;e.a=i},ePYM:function(t,e,a){"use strict";var o=a("5Q/F");a.n(o).a},jUE0:function(t,e,a){}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7458"],{"+z3U":function(t,e,a){"use strict";var o=a("P2sY"),n=a.n(o),i=a("glbJ"),s=a("4d7F"),r=a.n(s),l=a("MSNs"),c={name:"SingleImageUpload3",props:{value:{type:String,default:""},uploadType:{type:Number,default:""}},data:function(){return{tempUrl:"",dataObj:{uploadType:this.uploadType}}},computed:{imageUrl:function(){return this.value}},methods:{rmImage:function(){this.emitInput("")},emitInput:function(t){this.$emit("input",t)},handleImageSuccess:function(t){this.emitInput(t.data.file_url)},handleBeforeUpload:function(){var t=this,e=this;return new r.a(function(a,o){Object(l.a)().then(function(o){var n=o.data.qiniu_key,i=o.data.qiniu_token;e._data.dataObj.token=i,e._data.dataObj.key=n,t.tempUrl=o.data.qiniu_url,a(!0)}).catch(function(t){console.log(t),o(!1)})})}}},u=(a("PRYl"),a("KHd+")),d=Object(u.a)(c,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"upload-container"},[a("el-upload",{staticClass:"image-uploader",attrs:{data:t.dataObj,multiple:!1,"show-file-list":!1,"on-success":t.handleImageSuccess,drag:"","before-upload":t.handleBeforeUpload,action:"/api/file/upload"}},[a("i",{staticClass:"el-icon-upload"}),t._v(" "),a("div",{staticClass:"el-upload__text"},[t._v("将文件拖到此处,或"),a("em",[t._v("点击上传")])])]),t._v(" "),a("div",{staticClass:"image-preview"},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.imageUrl.length>1,expression:"imageUrl.length>1"}],staticClass:"image-preview-wrapper"},[a("img",{attrs:{src:t.imageUrl,disabled:!0}}),t._v(" "),a("div",{staticClass:"image-preview-action"},[a("i",{staticClass:"el-icon-delete",on:{click:t.rmImage}})])])])],1)},[],!1,null,"54c5d4d6",null);d.options.__file="faceupload.vue";var p=d.exports,m=a("Grqa"),f=a("uARZ"),v=a("ZySA"),h=a("Mz3J"),g=(a("Yfch"),a("XB8m")),y=[{key:1,display_name:"男"},{key:2,display_name:"女"}],b=y.reduce(function(t,e){return t[e.key]=e.display_name,t},{}),_=(y.reduce(function(t,e){return t[e.key]=e.display_name,t},{}),{status:"draft",uploadType:"",name:"",sex:"",ordinary_image_url:"",modeling_obj_url:""}),w={name:"FaceStarDetail",components:{Tinymce:i.a,MDinput:m.a,FaceUpload:p,Sticky:f.a,Pagination:h.a},directives:{waves:v.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this,e=function(e,a,o){""===a?(t.$message({message:e.field+"为必传项",type:"error"}),o(new Error(e.field+"为必传项"))):o()};return{postForm:n()({},_),loading:!1,city:"",tags:[],rules:{name:[{validator:e,trigger:"blur"}],sex:[{validator:e,trigger:"blur"}]},tempRoute:{},GenderTypeOptions:[{key:1,display_name:"男"},{key:2,display_name:"女"}],uploadType:-99,isdisabledFn:!1}},computed:{lang:function(){return this.$store.getters.language}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=n()({},_);this.tempRoute=n()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(g.c)(t).then(function(t){e.postForm=t.data.data.data,e.postForm.sex=b[t.data.data.data.sex]}).catch(function(t){console.log(t)})},submitForm:function(){var t=this;this.$refs.postForm.validate(function(e){if(!e)return console.log("error submit!!"),!1;if(t.loading=!0,""===t.postForm.ordinary_image_url)return t.$message.error("头像一不能为空~"),t.loading=!1,!1;var a={"男":1,"女":2};t.isdisabledFn=!0,a.hasOwnProperty(t.postForm.sex)&&(t.postForm.sex=a[t.postForm.sex]),t.isdisabledFn=!0,Object(g.b)(t.postForm).then(function(e){t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),t.$router.go(0)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",t.loading=!1})},getRemoteCityList:function(t){var e=this;citySearch(t).then(function(t){t.data.data.data&&(e.regionListOptions=t.data.data.data)})},getRemoteTagList:function(t){var e=this;tagSearch(t).then(function(t){t.data.data.data&&(e.tagListOptions=t.data.data.data)})}}},F=(a("opkK"),Object(u.a)(w,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"createPost-container"},[a("el-form",{ref:"postForm",staticClass:"form-container",attrs:{model:t.postForm,rules:t.rules}},[a("sticky",{attrs:{"class-name":"sub-navbar "+t.postForm.status}},[a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-left":"10px"},attrs:{disabled:t.isdisabledFn,type:"success"},on:{click:t.submitForm}},[t._v("保存\n ")])],1),t._v(" "),a("div",{staticClass:"createPost-main-container"},[a("el-row",{attrs:{gutter:20}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("Face明星")])]),t._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("div",{staticClass:"postInfo-container"},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"*用户名:",prop:"nick_name"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text"},model:{value:t.postForm.name,callback:function(e){t.$set(t.postForm,"name",e)},expression:"postForm.name"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{"label-width":"75px",label:"*性别:",prop:"gender"}},[a("el-select",{staticClass:"postInfo-container-item",staticStyle:{width:"230px"},attrs:{placeholder:"性别:",clearable:""},model:{value:t.postForm.sex,callback:function(e){t.$set(t.postForm,"sex",e)},expression:"postForm.sex"}},t._l(t.GenderTypeOptions,function(t){return a("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})}))],1)],1)],1)],1)])],1),t._v(" "),a("div",[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"*原图:",prop:"avatar"}},[a("span",{model:{value:t.uploadType,callback:function(e){t.uploadType=e},expression:"uploadType"}}),t._v(" "),a("FaceUpload",{attrs:{"upload-type":t.uploadType},model:{value:t.postForm.ordinary_image_url,callback:function(e){t.$set(t.postForm,"ordinary_image_url",e)},expression:"postForm.ordinary_image_url"}})],1)],1),t._v(" "),a("div",[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"*模型:",prop:"avatar"}},[a("span",{model:{value:t.uploadType,callback:function(e){t.uploadType=e},expression:"uploadType"}}),t._v(" "),a("FaceUpload",{attrs:{"upload-type":t.uploadType},model:{value:t.postForm.modeling_obj_url,callback:function(e){t.$set(t.postForm,"modeling_obj_url",e)},expression:"postForm.modeling_obj_url"}})],1)],1)],1)],1)],1)],1)],1)},[],!1,null,"0f553769",null));F.options.__file="FaceStarDetail.vue";e.a=F.exports},CXrD:function(t,e,a){"use strict";a.r(e);var o={name:"EditFaceStar",components:{FaceStarDetail:a("+z3U").a}},n=a("KHd+"),i=Object(n.a)(o,function(){var t=this.$createElement;return(this._self._c||t)("face-star-detail",{attrs:{"is-edit":!0}})},[],!1,null,null,null);i.options.__file="edit.vue";e.default=i.exports},MSNs:function(t,e,a){"use strict";a.d(e,"a",function(){return n});var o=a("t3Un");function n(){return Object(o.a)({url:"/api/get_token",method:"get"})}},PHen:function(t,e,a){},PRYl:function(t,e,a){"use strict";var o=a("Ujl/");a.n(o).a},"Ujl/":function(t,e,a){},XB8m:function(t,e,a){"use strict";a.d(e,"b",function(){return n}),a.d(e,"d",function(){return i}),a.d(e,"a",function(){return s}),a.d(e,"c",function(){return r});var o=a("t3Un");function n(t){return Object(o.a)({url:"/api/face/star/create",method:"post",data:t})}function i(t){return Object(o.a)({url:"/api/face/star/list",method:"get",params:t})}function s(t){return console.log(t),Object(o.a)({url:"/api/face/star/list/update",method:"post",data:t})}function r(t){return Object(o.a)({url:"/api/face/star/detail",method:"get",params:{id:t}})}},Y5bG:function(t,e,a){"use strict";a.d(e,"a",function(){return n}),Math.easeInOutQuad=function(t,e,a,o){return(t/=o/2)<1?a/2*t*t+e:-a/2*(--t*(t-2)-1)+e};var o=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)};function n(t,e,a){var n=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,i=t-n,s=0;e=void 0===e?500:e;!function t(){s+=20,function(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}(Math.easeInOutQuad(s,n,i,e)),s<e?o(t):a&&"function"==typeof a&&a()}()}},Yfch:function(t,e,a){"use strict"},ZySA:function(t,e,a){"use strict";var o=a("P2sY"),n=a.n(o),i=(a("jUE0"),{bind:function(t,e){t.addEventListener("click",function(a){var o=n()({},e.value),i=n()({ele:t,type:"hit",color:"rgba(0, 0, 0, 0.15)"},o),s=i.ele;if(s){s.style.position="relative",s.style.overflow="hidden";var r=s.getBoundingClientRect(),l=s.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":((l=document.createElement("span")).className="waves-ripple",l.style.height=l.style.width=Math.max(r.width,r.height)+"px",s.appendChild(l)),i.type){case"center":l.style.top=r.height/2-l.offsetHeight/2+"px",l.style.left=r.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(a.pageY-r.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(a.pageX-r.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=i.color,l.className="waves-ripple z-active",!1}},!1)}}),s=function(t){t.directive("waves",i)};window.Vue&&(window.waves=i,Vue.use(s)),i.install=s;e.a=i},jUE0:function(t,e,a){},opkK:function(t,e,a){"use strict";var o=a("PHen");a.n(o).a}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7ecf"],{"+z3U":function(t,e,a){"use strict";var o=a("P2sY"),n=a.n(o),i=a("glbJ"),s=a("4d7F"),r=a.n(s),l=a("MSNs"),c={name:"SingleImageUpload3",props:{value:{type:String,default:""},uploadType:{type:Number,default:""}},data:function(){return{tempUrl:"",dataObj:{uploadType:this.uploadType}}},computed:{imageUrl:function(){return this.value}},methods:{rmImage:function(){this.emitInput("")},emitInput:function(t){this.$emit("input",t)},handleImageSuccess:function(t){this.emitInput(t.data.file_url)},handleBeforeUpload:function(){var t=this,e=this;return new r.a(function(a,o){Object(l.a)().then(function(o){var n=o.data.qiniu_key,i=o.data.qiniu_token;e._data.dataObj.token=i,e._data.dataObj.key=n,t.tempUrl=o.data.qiniu_url,a(!0)}).catch(function(t){console.log(t),o(!1)})})}}},u=(a("PRYl"),a("KHd+")),d=Object(u.a)(c,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"upload-container"},[a("el-upload",{staticClass:"image-uploader",attrs:{data:t.dataObj,multiple:!1,"show-file-list":!1,"on-success":t.handleImageSuccess,drag:"","before-upload":t.handleBeforeUpload,action:"/api/file/upload"}},[a("i",{staticClass:"el-icon-upload"}),t._v(" "),a("div",{staticClass:"el-upload__text"},[t._v("将文件拖到此处,或"),a("em",[t._v("点击上传")])])]),t._v(" "),a("div",{staticClass:"image-preview"},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.imageUrl.length>1,expression:"imageUrl.length>1"}],staticClass:"image-preview-wrapper"},[a("img",{attrs:{src:t.imageUrl,disabled:!0}}),t._v(" "),a("div",{staticClass:"image-preview-action"},[a("i",{staticClass:"el-icon-delete",on:{click:t.rmImage}})])])])],1)},[],!1,null,"54c5d4d6",null);d.options.__file="faceupload.vue";var p=d.exports,m=a("Grqa"),f=a("uARZ"),v=a("ZySA"),g=a("Mz3J"),y=(a("Yfch"),a("XB8m")),h=[{key:1,display_name:"男"},{key:2,display_name:"女"}],b=h.reduce(function(t,e){return t[e.key]=e.display_name,t},{}),_=(h.reduce(function(t,e){return t[e.key]=e.display_name,t},{}),{status:"draft",uploadType:"",name:"",sex:"",ordinary_image_url:"",modeling_uv_url:"",modeling_obj_url:""}),w={name:"FaceStarDetail",components:{Tinymce:i.a,MDinput:m.a,FaceUpload:p,Sticky:f.a,Pagination:g.a},directives:{waves:v.a},props:{isEdit:{type:Boolean,default:!1}},data:function(){var t=this,e=function(e,a,o){""===a?(t.$message({message:e.field+"为必传项",type:"error"}),o(new Error(e.field+"为必传项"))):o()};return{postForm:n()({},_),loading:!1,city:"",tags:[],rules:{name:[{validator:e,trigger:"blur"}],sex:[{validator:e,trigger:"blur"}]},tempRoute:{},GenderTypeOptions:[{key:1,display_name:"男"},{key:2,display_name:"女"}],uploadType:-99,isdisabledFn:!1}},computed:{lang:function(){return this.$store.getters.language}},created:function(){if(this.isEdit){var t=this.$route.params&&this.$route.params.id;this.fetchData(t)}else this.postForm=n()({},_);this.tempRoute=n()({},this.$route)},methods:{fetchData:function(t){var e=this;Object(y.c)(t).then(function(t){e.postForm=t.data.data.data,e.postForm.sex=b[t.data.data.data.sex]}).catch(function(t){console.log(t)})},submitForm:function(){var t=this;this.$refs.postForm.validate(function(e){if(!e)return console.log("error submit!!"),!1;if(t.loading=!0,""===t.postForm.ordinary_image_url)return t.$message.error("头像一不能为空~"),t.loading=!1,!1;var a={"男":1,"女":2};t.isdisabledFn=!0,a.hasOwnProperty(t.postForm.sex)&&(t.postForm.sex=a[t.postForm.sex]),t.isdisabledFn=!0,Object(y.b)(t.postForm).then(function(e){t.$notify({title:"成功",message:e.data.data.message,type:"success",duration:2e3}),t.$router.go(0)}).catch(function(e){t.$notify({title:"失败",message:"操作失败",type:"danger",duration:2e3})}),t.postForm.status="published",t.loading=!1})},getRemoteCityList:function(t){var e=this;citySearch(t).then(function(t){t.data.data.data&&(e.regionListOptions=t.data.data.data)})},getRemoteTagList:function(t){var e=this;tagSearch(t).then(function(t){t.data.data.data&&(e.tagListOptions=t.data.data.data)})}}},F=(a("ePYM"),Object(u.a)(w,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"createPost-container"},[a("el-form",{ref:"postForm",staticClass:"form-container",attrs:{model:t.postForm,rules:t.rules}},[a("sticky",{attrs:{"class-name":"sub-navbar "+t.postForm.status}},[a("el-button",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-left":"10px"},attrs:{disabled:t.isdisabledFn,type:"success"},on:{click:t.submitForm}},[t._v("保存\n ")])],1),t._v(" "),a("div",{staticClass:"createPost-main-container"},[a("el-row",{attrs:{gutter:20}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("Face明星")])]),t._v(" "),a("el-row",[a("el-col",{attrs:{span:24}},[a("div",{staticClass:"postInfo-container"},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"*用户名:",prop:"nick_name"}},[a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text"},model:{value:t.postForm.name,callback:function(e){t.$set(t.postForm,"name",e)},expression:"postForm.name"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{"label-width":"75px",label:"*性别:",prop:"gender"}},[a("el-select",{staticClass:"postInfo-container-item",staticStyle:{width:"230px"},attrs:{placeholder:"性别:",clearable:""},model:{value:t.postForm.sex,callback:function(e){t.$set(t.postForm,"sex",e)},expression:"postForm.sex"}},t._l(t.GenderTypeOptions,function(t){return a("el-option",{key:t.key,attrs:{label:t.display_name,value:t.key}})}))],1)],1)],1)],1)])],1),t._v(" "),a("div",[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"*原图:",prop:"avatar"}},[a("span",{model:{value:t.uploadType,callback:function(e){t.uploadType=e},expression:"uploadType"}}),t._v(" "),a("FaceUpload",{attrs:{"upload-type":t.uploadType},model:{value:t.postForm.ordinary_image_url,callback:function(e){t.$set(t.postForm,"ordinary_image_url",e)},expression:"postForm.ordinary_image_url"}})],1)],1),t._v(" "),a("div",[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"*UV图:",prop:"avatar"}},[a("span",{model:{value:t.uploadType,callback:function(e){t.uploadType=e},expression:"uploadType"}}),t._v(" "),a("FaceUpload",{attrs:{"upload-type":t.uploadType},model:{value:t.postForm.modeling_uv_url,callback:function(e){t.$set(t.postForm,"modeling_uv_url",e)},expression:"postForm.modeling_uv_url"}})],1)],1),t._v(" "),a("div",[a("el-form-item",{staticStyle:{"margin-bottom":"20px"},attrs:{"label-width":"75px",label:"*模型:",prop:"avatar"}},[a("span",{model:{value:t.uploadType,callback:function(e){t.uploadType=e},expression:"uploadType"}}),t._v(" "),a("FaceUpload",{attrs:{"upload-type":t.uploadType},model:{value:t.postForm.modeling_obj_url,callback:function(e){t.$set(t.postForm,"modeling_obj_url",e)},expression:"postForm.modeling_obj_url"}})],1)],1)],1)],1)],1)],1)],1)},[],!1,null,"6643efbe",null));F.options.__file="FaceStarDetail.vue";e.a=F.exports},"5Q/F":function(t,e,a){},HmOD:function(t,e,a){"use strict";a.r(e);var o={name:"CreateFaceStar",components:{FaceStarDetail:a("+z3U").a}},n=a("KHd+"),i=Object(n.a)(o,function(){var t=this.$createElement;return(this._self._c||t)("face-star-detail",{attrs:{"is-edit":!1}})},[],!1,null,null,null);i.options.__file="create.vue";e.default=i.exports},MSNs:function(t,e,a){"use strict";a.d(e,"a",function(){return n});var o=a("t3Un");function n(){return Object(o.a)({url:"/api/get_token",method:"get"})}},PRYl:function(t,e,a){"use strict";var o=a("Ujl/");a.n(o).a},"Ujl/":function(t,e,a){},XB8m:function(t,e,a){"use strict";a.d(e,"b",function(){return n}),a.d(e,"d",function(){return i}),a.d(e,"a",function(){return s}),a.d(e,"c",function(){return r});var o=a("t3Un");function n(t){return Object(o.a)({url:"/api/face/star/create",method:"post",data:t})}function i(t){return Object(o.a)({url:"/api/face/star/list",method:"get",params:t})}function s(t){return console.log(t),Object(o.a)({url:"/api/face/star/list/update",method:"post",data:t})}function r(t){return Object(o.a)({url:"/api/face/star/detail",method:"get",params:{id:t}})}},Y5bG:function(t,e,a){"use strict";a.d(e,"a",function(){return n}),Math.easeInOutQuad=function(t,e,a,o){return(t/=o/2)<1?a/2*t*t+e:-a/2*(--t*(t-2)-1)+e};var o=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)};function n(t,e,a){var n=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,i=t-n,s=0;e=void 0===e?500:e;!function t(){s+=20,function(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}(Math.easeInOutQuad(s,n,i,e)),s<e?o(t):a&&"function"==typeof a&&a()}()}},Yfch:function(t,e,a){"use strict"},ZySA:function(t,e,a){"use strict";var o=a("P2sY"),n=a.n(o),i=(a("jUE0"),{bind:function(t,e){t.addEventListener("click",function(a){var o=n()({},e.value),i=n()({ele:t,type:"hit",color:"rgba(0, 0, 0, 0.15)"},o),s=i.ele;if(s){s.style.position="relative",s.style.overflow="hidden";var r=s.getBoundingClientRect(),l=s.querySelector(".waves-ripple");switch(l?l.className="waves-ripple":((l=document.createElement("span")).className="waves-ripple",l.style.height=l.style.width=Math.max(r.width,r.height)+"px",s.appendChild(l)),i.type){case"center":l.style.top=r.height/2-l.offsetHeight/2+"px",l.style.left=r.width/2-l.offsetWidth/2+"px";break;default:l.style.top=(a.pageY-r.top-l.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",l.style.left=(a.pageX-r.left-l.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return l.style.backgroundColor=i.color,l.className="waves-ripple z-active",!1}},!1)}}),s=function(t){t.directive("waves",i)};window.Vue&&(window.waves=i,Vue.use(s)),i.install=s;e.a=i},ePYM:function(t,e,a){"use strict";var o=a("5Q/F");a.n(o).a},jUE0:function(t,e,a){}}]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -54,6 +54,13 @@
</el-form-item>
</div>
<div>
<el-form-item style="margin-bottom: 20px;" label-width="75px" label="*UV图:" prop="avatar">
<span v-model="uploadType"/>
<FaceUpload v-model="postForm.modeling_uv_url" :upload-type="uploadType"/>
</el-form-item>
</div>
<div>
<el-form-item style="margin-bottom: 20px;" label-width="75px" label="*模型:" prop="avatar">
<span v-model="uploadType"/>
......@@ -100,6 +107,7 @@ const defaultForm = {
name: '',
sex: '',
ordinary_image_url: '',
modeling_uv_url: '',
modeling_obj_url: ''
}
......
<template>
<div class="app-container">
<div class="filter-container">
<el-input :placeholder="'搜素'" v-model="listQuery.filter.value" style="width: 180px;" class="filter-item"
@keyup.enter.native="handleFilter"/>
<el-select v-model="listQuery.filter.key" :placeholder="'搜索字段'" clearable class="filter-item"
style="width: 110px">
<el-input
:placeholder="'搜素'"
v-model="listQuery.filter.value"
style="width: 180px;"
class="filter-item"
@keyup.enter.native="handleFilter"/>
<el-select
v-model="listQuery.filter.key"
:placeholder="'搜索字段'"
clearable
class="filter-item"
style="width: 110px">
<el-option v-for="item in SearchTypeOptions" :key="item.key" :label="item.display_name" :value="item.key"/>
</el-select>
<el-select v-model="listQuery.filter.is_online" :placeholder="'是否在线'" clearable class="filter-item"
style="width: 110px">
<el-select
v-model="listQuery.filter.is_online"
:placeholder="'是否在线'"
clearable
class="filter-item"
style="width: 110px">
<el-option v-for="item in BooleanTypeOptions" :key="item.key" :label="item.display_name" :value="item.key"/>
</el-select>
<el-select v-model="listQuery.filter.sex" :placeholder="'性别'" clearable class="filter-item"
style="width: 110px">
<el-select
v-model="listQuery.filter.sex"
:placeholder="'性别'"
clearable
class="filter-item"
style="width: 110px">
<el-option v-for="item in SexTypeOptions" :key="item.key" :label="item.display_name" :value="item.key"/>
</el-select>
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="handleFilter">搜索</el-button>
<el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-edit"
@click="handleCreate">创建
<el-button
class="filter-item"
style="margin-left: 10px;"
type="primary"
icon="el-icon-edit"
@click="handleCreate">创建
</el-button>
<el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-edit"
@click="handleOfflineOrOnline('offline')">下线
<el-button
class="filter-item"
style="margin-left: 10px;"
type="primary"
icon="el-icon-edit"
@click="handleOfflineOrOnline('offline')">下线
</el-button>
<el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-edit"
@click="handleOfflineOrOnline('online')">上线
<el-button
class="filter-item"
style="margin-left: 10px;"
type="primary"
icon="el-icon-edit"
@click="handleOfflineOrOnline('online')">上线
</el-button>
</div>
<el-table v-loading="listLoading" :data="list" border fit highlight-current-row style="width: 100%"
ref="multipleTable" @selection-change="handleSelectionChange">
<el-table-column type="selection" align="center"></el-table-column>
<el-table
v-loading="listLoading"
ref="multipleTable"
:data="list"
border
fit
highlight-current-row
style="width: 100%"
@selection-change="handleSelectionChange">
<el-table-column type="selection" align="center"/>
<el-table-column align="center" label="账号ID">
<template slot-scope="scope">
<router-link :to="'/star/face/edit/'+scope.row.id" class="link-type">
......@@ -55,6 +90,12 @@
</template>
</el-table-column>
<el-table-column align="center" label="UV图">
<template slot-scope="scope">
<span>{{ scope.row.modeling_uv_url }}</span>
</template>
</el-table-column>
<el-table-column align="center" label="模型">
<template slot-scope="scope">
<span>{{ scope.row.modeling_obj_url }}</span>
......@@ -69,111 +110,116 @@
</el-table>
<pagination v-show="total>0" :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit"
style="margin-left: 250px;" @pagination="getList"/>
<pagination
v-show="total>0"
:total="total"
:page.sync="listQuery.page"
:limit.sync="listQuery.limit"
style="margin-left: 250px;"
@pagination="getList"/>
</div>
</template>
<script>
import {fetchList, OffLineOrOnLine} from '@/api/face_image_upload'
import Pagination from '@/components/Pagination' // Secondary package based on el-pagination
import waves from '@/directive/waves'
import { fetchList, OffLineOrOnLine } from '@/api/face_image_upload'
import Pagination from '@/components/Pagination' // Secondary package based on el-pagination
import waves from '@/directive/waves'
export default {
name: 'FaceStarList',
components: {Pagination},
directives: {waves},
filters: {
isOnlineFilter(status) {
const statusMap = {
1: 'success',
0: 'info',
}
return statusMap[status]
export default {
name: 'FaceStarList',
components: { Pagination },
directives: { waves },
filters: {
isOnlineFilter(status) {
const statusMap = {
1: 'success',
0: 'info'
}
return statusMap[status]
}
},
data() {
return {
list: null,
total: 0,
listLoading: true,
multipleSelection: [],
del_list: [],
listQuery: {
page: 0,
limit: 10,
filter: {
sex: '',
is_online: ''
}
},
BooleanTypeOptions: [
{ 'key': 1, 'display_name': '是' },
{ 'key': 0, 'display_name': '否' }
],
SexTypeOptions: [
{ 'key': 1, 'display_name': '男' },
{ 'key': 0, 'display_name': '女' }
],
SearchTypeOptions: [
{ 'key': 'name', 'display_name': '明星名' }
]
}
},
created() {
this.getList()
},
methods: {
getList() {
this.listLoading = true
fetchList(this.listQuery).then(response => {
console.log(response.data.data.data)
this.list = response.data.data.data
this.total = response.data.data.total
this.listLoading = false
})
},
data() {
return {
list: null,
total: 0,
listLoading: true,
multipleSelection: [],
del_list: [],
listQuery: {
page: 0,
limit: 10,
filter: {
sex: '',
is_online: '',
},
},
BooleanTypeOptions: [
{'key': 1, 'display_name': '是'},
{'key': 0, 'display_name': '否'}
],
SexTypeOptions: [
{'key': 1, 'display_name': '男'},
{'key': 0, 'display_name': '女'}
],
SearchTypeOptions: [
{'key': 'name', 'display_name': '明星名'},
]
}
handleSelectionChange(val) {
this.multipleSelection = val
},
created() {
handleSizeChange(val) {
this.listQuery.limit = val
this.getList()
},
methods: {
getList() {
this.listLoading = true
fetchList(this.listQuery).then(response => {
console.log(response.data.data.data)
this.list = response.data.data.data
this.total = response.data.data.total
this.listLoading = false
})
},
handleSelectionChange(val) {
this.multipleSelection = val;
},
handleSizeChange(val) {
this.listQuery.limit = val
this.getList()
},
handleCurrentChange(val) {
this.listQuery.page = val
this.getList()
},
handleCreate() {
this.$router.push('/star/face/create')
},
handleOfflineOrOnline(val) {
const length = this.multipleSelection.length;
let str = '';
this.del_list = this.del_list.concat(this.multipleSelection);
for (let i = 0; i < length; i++) {
if (val === 'offline') {
this.multipleSelection[i].is_online = 0
} else {
this.multipleSelection[i].is_online = 1
}
str += this.multipleSelection[i].id + ' ';
handleCurrentChange(val) {
this.listQuery.page = val
this.getList()
},
handleCreate() {
this.$router.push('/star/face/create')
},
handleOfflineOrOnline(val) {
const length = this.multipleSelection.length
let str = ''
this.del_list = this.del_list.concat(this.multipleSelection)
for (let i = 0; i < length; i++) {
if (val === 'offline') {
this.multipleSelection[i].is_online = 0
} else {
this.multipleSelection[i].is_online = 1
}
OffLineOrOnLine({type: val, ids: str}).then(response => {
this.multipleSelection = [];
this.$message.success(response.data.data.message);
this.$router.go(0)
})
},
handleFilter() {
this.listQuery.page = 1
this.getList()
},
str += this.multipleSelection[i].id + ' '
}
OffLineOrOnLine({ type: val, ids: str }).then(response => {
this.multipleSelection = []
this.$message.success(response.data.data.message)
this.$router.go(0)
})
},
handleFilter() {
this.listQuery.page = 1
this.getList()
}
}
}
</script>
<style scoped>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment