Commit 16255e87 authored by zhanglu's avatar zhanglu

Merge branch 'build' into 'master'

Build

See merge request alpha/sun!29
parents 3b3fb394 f44616ca
<!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],o=n[1],a=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 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=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-0934":1,"chunk-0e44":1,"chunk-1625":1,"chunk-1ca7":1,"chunk-1cb0":1,"chunk-2cda":1,"chunk-3926":1,"chunk-43f9":1,"chunk-5c48":1,"chunk-6098":1,"chunk-60984":1,"chunk-61c4":1,"chunk-6dcd":1,"chunk-7714":1,"chunk-7b3f":1,"chunk-8eb6":1,"chunk-7c4d":1,"chunk-8b60":1,"chunk-ca22":1,"chunk-d472":1,"chunk-e901":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-0934":"b32ac522","/P8B":"31d6cfe0",Gbeq:"31d6cfe0","chunk-0e44":"e58bb28c","chunk-1625":"4927d978","chunk-1ca7":"877d5d6d","chunk-1cb0":"877d5d6d","chunk-2cda":"ee4efc5b","chunk-3926":"bb99af3f","chunk-43f9":"3ce1b5de","chunk-5c48":"c43184eb","chunk-6098":"e14a97eb","chunk-60984":"e14a97eb","chunk-61c4":"4927d978","chunk-6dcd":"41e195b0","chunk-7714":"28887714","chunk-7b3f":"3df7a910","chunk-8eb6":"fa66c487",SoCV:"31d6cfe0",VwWe:"31d6cfe0","chunk-7c4d":"21ddd85a","chunk-8b60":"6b175161","chunk-ca22":"a08cb31d","chunk-d472":"fd17f3dd",Q2Zf:"31d6cfe0",ZMmy:"31d6cfe0","chunk-e901":"bb99af3f","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 o=(f=r[h]).getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(o===u||o===t))return n()}var a=document.getElementsByTagName("style");for(h=0;h<a.length;h++){var f;if((o=(f=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,d.nc&&a.setAttribute("nonce",d.nc),a.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-0934":"2265211a","/P8B":"7f6807b2",Gbeq:"42306eb5","chunk-0e44":"051076fe","chunk-1625":"2eecde41","chunk-1ca7":"de9873b5","chunk-1cb0":"f0a821f5","chunk-2cda":"65790b67","chunk-3926":"0d76f15c","chunk-43f9":"f651be51","chunk-5c48":"9a72f594","chunk-6098":"42c807c4","chunk-60984":"97b7f4b6","chunk-61c4":"80619f0f","chunk-6dcd":"3900668e","chunk-7714":"7f5a9de0","chunk-7b3f":"3902e91b","chunk-8eb6":"8bff3d32",SoCV:"49bd7f8a",VwWe:"37520311","chunk-7c4d":"d40cba0c","chunk-8b60":"faf8cd2f","chunk-ca22":"52143547","chunk-d472":"c478b833",Q2Zf:"159a6cad",ZMmy:"fbf2ec27","chunk-e901":"2ba3f1e0","chunk-ecd4":"4c70d3a5","chunk-ed04":"846679ee","chunk-ed6c":"e320e660"}[e]+".js"}(e),h=function(n){a.onerror=a.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:a})},12e4);a.onerror=a.onload=h,o.appendChild(a)}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 o=window.webpackJsonp=window.webpackJsonp||[],a=o.push.bind(o);o.push=n,o=o.slice();for(var f=0;f<o.length;f++)n(o[f]);var k=a;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.92554c61.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,a=n[0],d=n[1],o=n[2],f=0,b=[];f<a.length;f++)t=a[f],r[t]&&b.push(r[t][0]),r[t]=0;for(u in d)Object.prototype.hasOwnProperty.call(d,u)&&(e[u]=d[u]);for(k&&k(n);b.length;)b.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 d=c[t];0!==r[d]&&(u=!1)}u&&(h.splice(n--,1),e=a(a.s=c[0]))}return e}var u={},t={runtime:0},r={runtime:0},h=[];function a(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,a),c.l=!0,c.exports}a.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-0934":1,"chunk-0e44":1,"chunk-1ca7":1,"chunk-1cb0":1,"chunk-2cda":1,"chunk-32ab":1,"chunk-3926":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-8eb6":1,"chunk-7c4d":1,"chunk-8b60":1,"chunk-ca22":1,"chunk-d472":1,"chunk-e901":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-0934":"b32ac522","/P8B":"31d6cfe0",Gbeq:"31d6cfe0","chunk-0e44":"e58bb28c","chunk-1ca7":"877d5d6d","chunk-1cb0":"877d5d6d","chunk-2cda":"ee4efc5b","chunk-32ab":"1d179934","chunk-3926":"bb99af3f","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-8eb6":"fa66c487",SoCV:"31d6cfe0",VwWe:"31d6cfe0","chunk-7c4d":"21ddd85a","chunk-8b60":"6b175161","chunk-ca22":"a08cb31d","chunk-d472":"fd17f3dd",Q2Zf:"31d6cfe0",ZMmy:"31d6cfe0","chunk-e901":"bb99af3f","chunk-ecd4":"41e195b0","chunk-ed04":"56a44dbd","chunk-ed6c":"41872d14"}[e]+".css",t=a.p+u,r=document.getElementsByTagName("link"),h=0;h<r.length;h++){var d=(f=r[h]).getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(d===u||d===t))return n()}var o=document.getElementsByTagName("style");for(h=0;h<o.length;h++){var f;if((d=(f=o[h]).getAttribute("data-href"))===u||d===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,d=document.getElementsByTagName("head")[0],o=document.createElement("script");o.charset="utf-8",o.timeout=120,a.nc&&o.setAttribute("nonce",a.nc),o.src=function(e){return a.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-0934":"2265211a","/P8B":"7f6807b2",Gbeq:"42306eb5","chunk-0e44":"051076fe","chunk-1ca7":"de9873b5","chunk-1cb0":"f0a821f5","chunk-2cda":"65790b67","chunk-32ab":"5f9d20da","chunk-3926":"0d76f15c","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-8eb6":"8bff3d32",SoCV:"49bd7f8a",VwWe:"37520311","chunk-7c4d":"d40cba0c","chunk-8b60":"faf8cd2f","chunk-ca22":"52143547","chunk-d472":"c478b833",Q2Zf:"159a6cad",ZMmy:"fbf2ec27","chunk-e901":"2ba3f1e0","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,d.appendChild(o)}return Promise.all(n)},a.m=e,a.c=u,a.d=function(e,n,c){a.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:c})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,n){if(1&n&&(e=a(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(a.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var u in e)a.d(c,u,function(n){return e[n]}.bind(null,u));return c},a.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(n,"a",n),n},a.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},a.p="/",a.oe=function(e){throw console.error(e),e};var d=window.webpackJsonp=window.webpackJsonp||[],o=d.push.bind(d);d.push=n,d=d.slice();for(var f=0;f<d.length;f++)n(d[f]);var k=o;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.da4aa0e1.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-212ef548]{position:relative}.createPost-container .createPost-main-container[data-v-212ef548]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-212ef548]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-212ef548]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-212ef548]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-212ef548]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-212ef548]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-212ef548]{display:inline-block}.createPost-container .word-counter[data-v-212ef548]{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-212ef548]{position:relative}.createPost-container .createPost-main-container[data-v-212ef548]{padding:40px 45px 20px 50px}.createPost-container .createPost-main-container .postInfo-container[data-v-212ef548]{position:relative;margin-bottom:10px}.createPost-container .createPost-main-container .postInfo-container[data-v-212ef548]:after{content:"";display:table;clear:both}.createPost-container .createPost-main-container .postInfo-container .postInfo-container-item[data-v-212ef548]{float:left}.createPost-container .createPost-main-container .editor-container[data-v-212ef548]{min-height:500px;margin:0 0 30px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container[data-v-212ef548]{text-align:right;margin-right:10px}.createPost-container .createPost-main-container .editor-container .editor-upload-btn-container .editor-upload-btn[data-v-212ef548]{display:inline-block}.createPost-container .word-counter[data-v-212ef548]{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
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-1625"],{"+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"),h=(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: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(h.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;if(""===t.postForm.modeling_obj_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(h.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("sRG1"),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:{type:"success",disabled:t.isdisabledFn},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:{uploadType: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:{uploadType: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,"212ef548",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"})}},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){},q2ZA:function(t,e,a){},sRG1:function(t,e,a){"use strict";var o=a("q2ZA");a.n(o).a}}]);
\ 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-61c4"],{"+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"),h=(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: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(h.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;if(""===t.postForm.modeling_obj_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(h.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("sRG1"),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:{type:"success",disabled:t.isdisabledFn},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:{uploadType: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:{uploadType: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,"212ef548",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"})}},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){},q2ZA:function(t,e,a){},sRG1:function(t,e,a){"use strict";var o=a("q2ZA");a.n(o).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
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.
......@@ -3,7 +3,7 @@
<el-form ref="postForm" :model="postForm" :rules="rules" class="form-container">
<sticky :class-name="'sub-navbar '+postForm.status">
<el-button v-loading="loading" style="margin-left: 10px;" type="success" @click="submitForm" :disabled="isdisabledFn">保存
<el-button v-loading="loading" :disabled="isdisabledFn" style="margin-left: 10px;" type="success" @click="submitForm">保存
</el-button>
</sticky>
......@@ -27,10 +27,16 @@
<el-col :span="12">
<el-form-item label-width="75px" label="*性别:" prop="gender">
<el-select v-model="postForm.sex" :placeholder="'性别:'" clearable
<el-select
v-model="postForm.sex"
:placeholder="'性别:'"
clearable
class="postInfo-container-item"
style="width: 230px">
<el-option v-for="item in GenderTypeOptions" :key="item.key" :label="item.display_name"
<el-option
v-for="item in GenderTypeOptions"
:key="item.key"
:label="item.display_name"
:value="item.key"/>
</el-select>
</el-form-item>
......@@ -43,15 +49,15 @@
<div>
<el-form-item style="margin-bottom: 20px;" label-width="75px" label="*原图:" prop="avatar">
<span v-model="uploadType"></span>
<FaceUpload v-model="postForm.ordinary_image_url" :uploadType="uploadType"/>
<span v-model="uploadType"/>
<FaceUpload v-model="postForm.ordinary_image_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"></span>
<FaceUpload v-model="postForm.modeling_obj_url" :uploadType="uploadType"/>
<span v-model="uploadType"/>
<FaceUpload v-model="postForm.modeling_obj_url" :upload-type="uploadType"/>
</el-form-item>
</div>
</el-card>
......@@ -63,44 +69,44 @@
</template>
<script>
import Tinymce from '@/components/Tinymce'
import FaceUpload from '@/components/Upload/faceupload'
import MDinput from '@/components/MDinput'
import Sticky from '@/components/Sticky' // 粘性header组件
import waves from '@/directive/waves'
import Pagination from '@/components/Pagination'
import {validateURL} from '@/utils/validate'
import {faceStarCreate, facestarDetail} from '@/api/face_image_upload'
import Tinymce from '@/components/Tinymce'
import FaceUpload from '@/components/Upload/faceupload'
import MDinput from '@/components/MDinput'
import Sticky from '@/components/Sticky' // 粘性header组件
import waves from '@/directive/waves'
import Pagination from '@/components/Pagination'
import { validateURL } from '@/utils/validate'
import { faceStarCreate, facestarDetail } from '@/api/face_image_upload'
const SexOptions = [
{'key': 1, 'display_name': '男'},
{'key': 2, 'display_name': '女'},
]
const SexOptions = [
{ 'key': 1, 'display_name': '男' },
{ 'key': 2, 'display_name': '女' }
]
const sexTypeKeyValue = SexOptions.reduce((acc, cur) => {
const sexTypeKeyValue = SexOptions.reduce((acc, cur) => {
acc[cur.key] = cur.display_name
return acc
}, {})
}, {})
const ValueToSexTypeKeyValue = SexOptions.reduce((acc, cur) => {
const ValueToSexTypeKeyValue = SexOptions.reduce((acc, cur) => {
acc[cur.key] = cur.display_name
return acc
}, {})
}, {})
const defaultForm = {
const defaultForm = {
status: 'draft',
uploadType: '',
name: '',
sex: '',
ordinary_image_url: '',
modeling_obj_url: '',
}
modeling_obj_url: ''
}
export default {
export default {
name: 'FaceStarDetail',
components: {Tinymce, MDinput, FaceUpload, Sticky, Pagination},
directives: {waves},
components: { Tinymce, MDinput, FaceUpload, Sticky, Pagination },
directives: { waves },
props: {
isEdit: {
type: Boolean,
......@@ -127,13 +133,13 @@
tags: [],
rules: {
name: [{validator: validateRequire, trigger: 'blur'}],
sex: [{validator: validateRequire, trigger: 'blur'}],
name: [{ validator: validateRequire, trigger: 'blur' }],
sex: [{ validator: validateRequire, trigger: 'blur' }]
},
tempRoute: {},
GenderTypeOptions: [
{'key': 1, 'display_name': '男'},
{'key': 2, 'display_name': '女'},
{ 'key': 1, 'display_name': '男' },
{ 'key': 2, 'display_name': '女' }
],
uploadType: -99,
isdisabledFn: false
......@@ -164,26 +170,20 @@
})
},
submitForm() {
this.$refs.postForm.validate(valid => {
if (valid) {
this.loading = true
if (this.postForm.ordinary_image_url === ''){
if (this.postForm.ordinary_image_url === '') {
this.$message.error('头像一不能为空~')
this.loading = false
return false
}
if (this.postForm.modeling_obj_url === ''){
this.$message.error('头像二不能为空~')
this.loading = false
return false
}
const gender = {
'男': 1,
'女': 2
}
this.isdisabledFn = true
if (gender.hasOwnProperty(this.postForm.sex)){
if (gender.hasOwnProperty(this.postForm.sex)) {
this.postForm.sex = gender[this.postForm.sex]
}
this.isdisabledFn = true
......@@ -202,8 +202,7 @@
type: 'danger',
duration: 2000
})
});
})
this.postForm.status = 'published'
this.loading = false
......@@ -224,9 +223,9 @@
if (!response.data.data.data) return
this.tagListOptions = response.data.data.data
})
},
}
}
}
</script>
<style rel="stylesheet/scss" lang="scss" 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