This commit is contained in:
Mrhongxing committed 2026-11-04 20:25:27 +08:00
1 parent 4aaaf23d2f
commit d1ee8edbbd
14 files changed
+1678 -104

No files matched your search

+1
View File
@@ -0,0 +1 @@
(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function e(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var t={},n=[],r=()=>{},i=()=>!1,a=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),o=e=>e.startsWith(`onUpdate:`),s=Object.assign,c=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,u=(e,t)=>l.call(e,t),d=Array.isArray,f=e=>x(e)===`[object Map]`,p=e=>x(e)===`[object Set]`,m=e=>x(e)===`[object Date]`,h=e=>typeof e==`function`,g=e=>typeof e==`string`,_=e=>typeof e==`symbol`,v=e=>typeof e==`object`&&!!e,y=e=>(v(e)||h(e))&&h(e.then)&&h(e.catch),b=Object.prototype.toString,x=e=>b.call(e),S=e=>x(e).slice(8,-1),C=e=>x(e)===`[object Object]`,w=e=>g(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,ee=e(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),te=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ne=/-\w/g,T=te(e=>e.replace(ne,e=>e.slice(1).toUpperCase())),re=/\B([A-Z])/g,E=te(e=>e.replace(re,`-$1`).toLowerCase()),D=te(e=>e.charAt(0).toUpperCase()+e.slice(1)),ie=te(e=>e?`on${D(e)}`:``),O=(e,t)=>!Object.is(e,t),ae=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},k=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},oe=e=>{let t=parseFloat(e);return isNaN(t)?e:t},se,ce=()=>se||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function le(e){if(d(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=g(r)?pe(r):le(r);if(i)for(let e in i)t[e]=i[e]}return t}if(g(e)||v(e))return e}var ue=/;(?![^(]*\))/g,de=/:([^]+)/,fe=/\/\*[^]*?\*\//g;function pe(e){let t={};return e.replace(fe,``).split(ue).forEach(e=>{if(e){let n=e.split(de);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function A(e){let t=``;if(g(e))t=e;else if(d(e))for(let n=0;n<e.length;n++){let r=A(e[n]);r&&(t+=r+` `)}else if(v(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}var me=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,he=e(me);me+``;function ge(e){return!!e||e===``}function _e(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=ve(e[r],t[r]);return n}function ve(e,t){if(e===t)return!0;let n=m(e),r=m(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=_(e),r=_(t),n||r)return e===t;if(n=d(e),r=d(t),n||r)return n&&r?_e(e,t):!1;if(n=v(e),r=v(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!ve(e[n],t[n]))return!1}}return String(e)===String(t)}var ye=e=>!!(e&&e.__v_isRef===!0),be=e=>g(e)?e:e==null?``:d(e)||v(e)&&(e.toString===b||!h(e.toString))?ye(e)?be(e.value):JSON.stringify(e,xe,2):String(e),xe=(e,t)=>ye(t)?xe(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Se(t,r)+` =>`]=n,e),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Se(e))}:_(t)?Se(t):v(t)&&!d(t)&&!C(t)?String(t):t,Se=(e,t=``)=>_(e)?`Symbol(${e.description??t})`:e,j,Ce=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=j,!e&&j&&(this.index=(j.scopes||(j.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){let t=j;try{return j=this,e()}finally{j=t}}}on(){++this._on===1&&(this.prevScope=j,j=this)}off(){this._on>0&&--this._on===0&&(j=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopLine truncated
+1
View File
@@ -0,0 +1 @@
.topbar[data-v-640de8cc]{background:#fff;border-bottom:1px solid #e8edf5;align-items:center;gap:58px;height:74px;padding:0 clamp(24px,5vw,76px);animation:.55s cubic-bezier(.22,1,.36,1) both nav-slide-down-640de8cc;display:flex;position:relative}.topbar[data-v-640de8cc]:after{content:"";transform-origin:0;background:#1769e0;height:1px;animation:.8s ease-out .2s both nav-border-reveal-640de8cc;position:absolute;bottom:-1px;left:0;right:0;transform:scaleX(0)}.brand[data-v-640de8cc]{color:#13213b;white-space:nowrap;align-items:center;gap:10px;font-size:19px;font-weight:800;text-decoration:none;transition:color .25s,transform .25s;display:flex}.brand[data-v-640de8cc]:hover{color:#1769e0;transform:translateY(-2px)}.brand-mark[data-v-640de8cc]{color:#fff;background:#1769e0;border-radius:10px;place-items:center;width:36px;height:36px;transition:transform .35s cubic-bezier(.22,1,.36,1),box-shadow .35s;display:grid}.brand:hover .brand-mark[data-v-640de8cc]{transform:rotate(-8deg)scale(1.08);box-shadow:0 7px 15px #1769e14d}.brand-mark svg[data-v-640de8cc]{fill:currentColor;width:22px}.nav-links[data-v-640de8cc]{align-self:stretch;gap:34px;display:flex}.nav-links a[data-v-640de8cc]{color:#78849a;opacity:0;align-items:center;font-size:14px;text-decoration:none;transition:color .25s,transform .25s;animation:.45s cubic-bezier(.22,1,.36,1) both nav-item-in-640de8cc;display:flex;position:relative}.nav-links a[data-v-640de8cc]:first-child{animation-delay:.18s}.nav-links a[data-v-640de8cc]:nth-child(2){animation-delay:.25s}.nav-links a[data-v-640de8cc]:nth-child(3){animation-delay:.32s}.nav-links a[data-v-640de8cc]:nth-child(4){animation-delay:.39s}.nav-links a[data-v-640de8cc]:hover{color:#1769e0;transform:translateY(-2px)}.nav-links a.active[data-v-640de8cc]{color:#1769e0;font-weight:700}.nav-links a.active[data-v-640de8cc]:after{content:"";transform-origin:50%;background:#1769e0;border-radius:3px 3px 0 0;height:3px;animation:.35s cubic-bezier(.22,1,.36,1) .35s both nav-underline-in-640de8cc;position:absolute;bottom:0;left:0;right:0;transform:scaleX(1)}.nav-links a[data-v-640de8cc]:not(.active):after{content:"";transform-origin:50%;background:#1769e0;border-radius:3px 3px 0 0;height:3px;transition:transform .25s cubic-bezier(.22,1,.36,1);position:absolute;bottom:0;left:0;right:0;transform:scaleX(0)}.nav-links a[data-v-640de8cc]:not(.active):hover:after{transform:scaleX(1)}@keyframes nav-slide-down-640de8cc{0%{opacity:0;transform:translateY(-18px)}to{opacity:1;transform:translateY(0)}}@keyframes nav-border-reveal-640de8cc{0%{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes nav-item-in-640de8cc{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@keyframes nav-underline-in-640de8cc{0%{transform:scaleX(0)}to{transform:scaleX(1)}}@media (prefers-reduced-motion:reduce){.topbar[data-v-640de8cc],.topbar[data-v-640de8cc]:after,.nav-links a[data-v-640de8cc],.nav-links a.active[data-v-640de8cc]:after{animation:none}.nav-links a[data-v-640de8cc]{opacity:1}}.workshop-page{min-height:100vh - 74px;color:#17233c;background:#f5f7fb;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,sans-serif}.topbar-actions{align-items:center;gap:18px;margin-left:auto;display:flex}.icon-button{color:#7d899d;cursor:pointer;background:0 0;border:0;place-items:center;width:25px;height:32px;padding:0;display:grid;position:relative}.icon-button svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:20px}.notification i{background:#f15b5b;border:2px solid #fff;border-radius:50%;width:6px;height:6px;position:absolute;top:4px;right:0}.user-avatar{color:#1769e0;background:#dceaff;border-radius:50%;place-items:center;width:34px;height:34px;font-size:14px;font-weight:700;display:grid}.user-name{color:#34415a;font-size:14px}.page-content{max-width:1310px;margin:auto;padding:43px 28px 60px}.welcome-row{justify-content:space-between;align-items:center;margin-bottom:34px;display:flex}.eyebrow{color:#8d98aa;margin:0 0 10px;font-size:12px}h1{color:#17233c;letter-spacing:-.7px;margin:0 0 8px;font-size:27px}h1 span{font-size:23px}.subheading{color:#7c8799;margin:0;font-size:13px}.primary-button{color:#fff;cursor:pointer;background:#1769e0;border:0;border-radius:7px;align-items:center;gap:8px;padding:12px 19px;font-size:13px;font-weight:600;display:flex;box-shadow:0 5px 12px #1769e033}.primary-button span{font-size:20px;font-weight:300;line-height:14px}.stats-grid{grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:25px;display:grid}.stat-card{background:#fff;border:1px solid #edf0f5;border-radius:10px;align-items:center;min-height:122px;padding:22px 18px;display:flex;box-shadow:0 4px 14px #253b5d08}.stat-icon{border-radius:10px;flex:0 0 45px;place-items:center;width:45px;height:45px;margin-right:14px;display:grid}.stat-icon svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7px;width:22px}.blue{color:#216de1;background:#eafLine truncated
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="46" fill="none" viewBox="0 0 48 46"><path fill="#863bff" d="M25.946 44.938c-.664.845-2.021.375-2.021-.698V33.937a2.26 2.26 0 0 0-2.262-2.262H10.287c-.92 0-1.456-1.04-.92-1.788l7.48-10.471c1.07-1.497 0-3.578-1.842-3.578H1.237c-.92 0-1.456-1.04-.92-1.788L10.013.474c.214-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.471c-1.07 1.498 0 3.579 1.842 3.579h11.377c.943 0 1.473 1.088.89 1.83L25.947 44.94z" style="fill:#863bff;fill:color(display-p3 .5252 .23 1);fill-opacity:1"/><mask id="a" width="48" height="46" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="#000" d="M25.842 44.938c-.664.844-2.021.375-2.021-.698V33.937a2.26 2.26 0 0 0-2.262-2.262H10.183c-.92 0-1.456-1.04-.92-1.788l7.48-10.471c1.07-1.498 0-3.579-1.842-3.579H1.133c-.92 0-1.456-1.04-.92-1.787L9.91.473c.214-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.471c-1.07 1.498 0 3.578 1.842 3.578h11.377c.943 0 1.473 1.088.89 1.832L25.843 44.94z" style="fill:#000;fill-opacity:1"/></mask><g mask="url(#a)"><g filter="url(#b)"><ellipse cx="5.508" cy="14.704" fill="#ede6ff" rx="5.508" ry="14.704" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -4.47 31.516)"/></g><g filter="url(#c)"><ellipse cx="10.399" cy="29.851" fill="#ede6ff" rx="10.399" ry="29.851" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -39.328 7.883)"/></g><g filter="url(#d)"><ellipse cx="5.508" cy="30.487" fill="#7e14ff" rx="5.508" ry="30.487" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.814 -25.913 -14.639)scale(1 -1)"/></g><g filter="url(#e)"><ellipse cx="5.508" cy="30.599" fill="#7e14ff" rx="5.508" ry="30.599" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.814 -32.644 -3.334)scale(1 -1)"/></g><g filter="url(#f)"><ellipse cx="5.508" cy="30.599" fill="#7e14ff" rx="5.508" ry="30.599" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="matrix(.00324 1 1 -.00324 -34.34 30.47)"/></g><g filter="url(#g)"><ellipse cx="14.072" cy="22.078" fill="#ede6ff" rx="14.072" ry="22.078" style="fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1" transform="rotate(93.35 24.506 48.493)scale(-1 1)"/></g><g filter="url(#h)"><ellipse cx="3.47" cy="21.501" fill="#7e14ff" rx="3.47" ry="21.501" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.009 28.708 47.59)scale(-1 1)"/></g><g filter="url(#i)"><ellipse cx="3.47" cy="21.501" fill="#7e14ff" rx="3.47" ry="21.501" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(89.009 28.708 47.59)scale(-1 1)"/></g><g filter="url(#j)"><ellipse cx=".387" cy="8.972" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(39.51 .387 8.972)"/></g><g filter="url(#k)"><ellipse cx="47.523" cy="-6.092" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 47.523 -6.092)"/></g><g filter="url(#l)"><ellipse cx="41.412" cy="6.333" fill="#47bfff" rx="5.971" ry="9.665" style="fill:#47bfff;fill:color(display-p3 .2799 .748 1);fill-opacity:1" transform="rotate(37.892 41.412 6.333)"/></g><g filter="url(#m)"><ellipse cx="-1.879" cy="38.332" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 -1.88 38.332)"/></g><g filter="url(#n)"><ellipse cx="-1.879" cy="38.332" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 -1.88 38.332)"/></g><g filter="url(#o)"><ellipse cx="35.651" cy="29.907" fill="#7e14ff" rx="4.407" ry="29.108" style="fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1" transform="rotate(37.892 35.651 29.907)"/></g><g filter="url(#p)"><ellipse cx="38.418" cy="32.4" fill="#47bfff" rx="5.971" ry="15.297" style="fill:#47bfff;fill:color(display-p3 .2799 .748 1);fill-opacity:1" transform="rotate(37.892 38.418 32.4)"/></g></g><defs><filter id="b" width="60.045" height="41.654" x="-19.77" y="16.149" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filter><filter id="c" width="90.34" height="51.437" x="-54.613" y="-7.533" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur result="effect1_foregroundBlur_2002_17158" stdDeviation="7.659"/></filtLine truncated

After

Width:  |  Height:  |  Size: 9.3 KiB

+24
View File
@@ -0,0 +1,24 @@
<svg xmlns="http://www.w3.org/2000/svg">
<symbol id="bluesky-icon" viewBox="0 0 16 17">
<g clip-path="url(#bluesky-clip)"><path fill="#08060d" d="M7.75 7.735c-.693-1.348-2.58-3.86-4.334-5.097-1.68-1.187-2.32-.981-2.74-.79C.188 2.065.1 2.812.1 3.251s.241 3.602.398 4.13c.52 1.744 2.367 2.333 4.07 2.145-2.495.37-4.71 1.278-1.805 4.512 3.196 3.309 4.38-.71 4.987-2.746.608 2.036 1.307 5.91 4.93 2.746 2.72-2.746.747-4.143-1.747-4.512 1.702.189 3.55-.4 4.07-2.145.156-.528.397-3.691.397-4.13s-.088-1.186-.575-1.406c-.42-.19-1.06-.395-2.741.79-1.755 1.24-3.64 3.752-4.334 5.099"/></g>
<defs><clipPath id="bluesky-clip"><path fill="#fff" d="M.1.85h15.3v15.3H.1z"/></clipPath></defs>
</symbol>
<symbol id="discord-icon" viewBox="0 0 20 19">
<path fill="#08060d" d="M16.224 3.768a14.5 14.5 0 0 0-3.67-1.153c-.158.286-.343.67-.47.976a13.5 13.5 0 0 0-4.067 0c-.128-.306-.317-.69-.476-.976A14.4 14.4 0 0 0 3.868 3.77C1.546 7.28.916 10.703 1.231 14.077a14.7 14.7 0 0 0 4.5 2.306q.545-.748.965-1.587a9.5 9.5 0 0 1-1.518-.74q.191-.14.372-.293c2.927 1.369 6.107 1.369 8.999 0q.183.152.372.294-.723.437-1.52.74.418.838.963 1.588a14.6 14.6 0 0 0 4.504-2.308c.37-3.911-.63-7.302-2.644-10.309m-9.13 8.234c-.878 0-1.599-.82-1.599-1.82 0-.998.705-1.82 1.6-1.82.894 0 1.614.82 1.599 1.82.001 1-.705 1.82-1.6 1.82m5.91 0c-.878 0-1.599-.82-1.599-1.82 0-.998.705-1.82 1.6-1.82.893 0 1.614.82 1.599 1.82 0 1-.706 1.82-1.6 1.82"/>
</symbol>
<symbol id="documentation-icon" viewBox="0 0 21 20">
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="m15.5 13.333 1.533 1.322c.645.555.967.833.967 1.178s-.322.623-.967 1.179L15.5 18.333m-3.333-5-1.534 1.322c-.644.555-.966.833-.966 1.178s.322.623.966 1.179l1.534 1.321"/>
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M17.167 10.836v-4.32c0-1.41 0-2.117-.224-2.68-.359-.906-1.118-1.621-2.08-1.96-.599-.21-1.349-.21-2.848-.21-2.623 0-3.935 0-4.983.369-1.684.591-3.013 1.842-3.641 3.428C3 6.449 3 7.684 3 10.154v2.122c0 2.558 0 3.838.706 4.726q.306.383.713.671c.76.536 1.79.64 3.581.66"/>
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M3 10a2.78 2.78 0 0 1 2.778-2.778c.555 0 1.209.097 1.748-.047.48-.129.854-.503.982-.982.145-.54.048-1.194.048-1.749a2.78 2.78 0 0 1 2.777-2.777"/>
</symbol>
<symbol id="github-icon" viewBox="0 0 19 19">
<path fill="#08060d" fill-rule="evenodd" d="M9.356 1.85C5.05 1.85 1.57 5.356 1.57 9.694a7.84 7.84 0 0 0 5.324 7.44c.387.079.528-.168.528-.376 0-.182-.013-.805-.013-1.454-2.165.467-2.616-.935-2.616-.935-.349-.91-.864-1.143-.864-1.143-.71-.48.051-.48.051-.48.787.051 1.2.805 1.2.805.695 1.194 1.817.857 2.268.649.064-.507.27-.857.49-1.052-1.728-.182-3.545-.857-3.545-3.87 0-.857.31-1.558.8-2.104-.078-.195-.349-1 .077-2.078 0 0 .657-.208 2.14.805a7.5 7.5 0 0 1 1.946-.26c.657 0 1.328.092 1.946.26 1.483-1.013 2.14-.805 2.14-.805.426 1.078.155 1.883.078 2.078.502.546.799 1.247.799 2.104 0 3.013-1.818 3.675-3.558 3.87.284.247.528.714.528 1.454 0 1.052-.012 1.896-.012 2.156 0 .208.142.455.528.377a7.84 7.84 0 0 0 5.324-7.441c.013-4.338-3.48-7.844-7.773-7.844" clip-rule="evenodd"/>
</symbol>
<symbol id="social-icon" viewBox="0 0 20 20">
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M12.5 6.667a4.167 4.167 0 1 0-8.334 0 4.167 4.167 0 0 0 8.334 0"/>
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M2.5 16.667a5.833 5.833 0 0 1 8.75-5.053m3.837.474.513 1.035c.07.144.257.282.414.309l.93.155c.596.1.736.536.307.965l-.723.73a.64.64 0 0 0-.152.531l.207.903c.164.715-.213.991-.84.618l-.872-.52a.63.63 0 0 0-.577 0l-.872.52c-.624.373-1.003.094-.84-.618l.207-.903a.64.64 0 0 0-.152-.532l-.723-.729c-.426-.43-.289-.864.306-.964l.93-.156a.64.64 0 0 0 .412-.31l.513-1.034c.28-.562.735-.562 1.012 0"/>
</symbol>
<symbol id="x-icon" viewBox="0 0 19 19">
<path fill="#08060d" fill-rule="evenodd" d="M1.893 1.98c.052.072 1.245 1.769 2.653 3.77l2.892 4.114c.183.261.333.48.333.486s-.068.089-.152.183l-.522.593-.765.867-3.597 4.087c-.375.426-.734.834-.798.905a1 1 0 0 0-.118.148c0 .01.236.017.664.017h.663l.729-.83c.4-.457.796-.906.879-.999a692 692 0 0 0 1.794-2.038c.034-.037.301-.34.594-.675l.551-.624.345-.392a7 7 0 0 1 .34-.374c.006 0 .93 1.306 2.052 2.903l2.084 2.965.045.063h2.275c1.87 0 2.273-.003 2.266-.021-.008-.02-1.098-1.572-3.894-5.547-2.013-2.862-2.28-3.246-2.273-3.266.008-.019.282-.332 2.085-2.38l2-2.274 1.567-1.782c.022-.028-.016-.03-.65-.03h-.674l-.3.342a871 871 0 0 1-1.782 2.025c-.067.075-.405.458-.75.852a100 100 0 0 1-.803.91c-.148.172-.299.344-.99 1.127-.304.343-.32.358-.345.327-.015-.019-.904-1.282-1.976-2.808L6.365 1.85H1.8zm1.782.91 8.078 11.294c.772 1.08 1.413 1.973 1.425 1.984.016.017.241.02 1.05.017l1.03-.004-2.694-3.766L7.796 5.75 5.722 2.852l-1.039-.004-1.039-.004z" clip-rule="evenodd"/>
</symbol>
</svg>

After

Width:  |  Height:  |  Size: 4.9 KiB

+14
View File
@@ -0,0 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>hong</title>
<script type="module" crossorigin src="/assets/index-B67_PU6l.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DVtkaHGg.css">
</head>
<body>
<div id="app"></div>
</body>
</html>
+1
View File
@@ -0,0 +1 @@
{"root":["../../src/main.ts","../../src/router/index.ts","../../src/app.vue","../../src/app2.vue","../../src/components/dragglecontroller.vue","../../src/components/helloworld.vue","../../src/views/main/index.vue"],"errors":true,"version":"5.9.3"}
+1
View File
@@ -0,0 +1 @@
{"root":["../../vite.config.ts"],"version":"5.9.3"}
+216 -87
View File
@@ -1,109 +1,238 @@
<template>
<div class="app">
<h1>Vue 3 拖拽控制器</h1>
<p class="description">通过滑块控制元素位置,也可以直接拖拽元素</p>
<DraggableController
:container-height="500"
:element-width="150"
:element-height="120"
element-color="#409eff"
:initial-x="100"
:initial-y="100"
:min-x="0"
:min-y="0"
:max-x="350"
:max-y="380"
@position-change="handlePositionChange"
@drag-start="handleDragStart"
@drag-end="handleDragEnd"
/>
<div v-if="logs.length" class="log-panel">
<h3>事件日志</h3>
<div class="log-list">
<div v-for="(log, index) in logs.slice(-5)" :key="index" class="log-item">
{{ log }}
</div>
</div>
</div>
</div>
</template>
<script setup lang="ts"> <script setup lang="ts">
import { ref } from 'vue' import { computed } from 'vue';
import DraggableController from './components/DraggleController.vue' import { useRoute } from 'vue-router';
const router = useRoute();
const isLoginPage = computed(() => router.path === '/login');
const isActiveNav = (path: string) => router.path === path;
const logs = ref<string[]>([])
const handlePositionChange = (x: number, y: number) => {
const timestamp = new Date().toLocaleTimeString()
logs.value.unshift(`[${timestamp}] 位置变化: (${x.toFixed(0)}, ${y.toFixed(0)})`)
}
const handleDragStart = () => {
const timestamp = new Date().toLocaleTimeString()
logs.value.unshift(`[${timestamp}] 开始拖拽`)
}
const handleDragEnd = () => {
const timestamp = new Date().toLocaleTimeString()
logs.value.unshift(`[${timestamp}] 结束拖拽`)
}
</script> </script>
<template>
<header v-if="!isLoginPage" class="topbar">
<a class="brand" href="#">
<span class="brand-mark">
<svg viewBox="0 0 24 24" aria-hidden="true">
<path
d="M21 7.5a6.6 6.6 0 0 1-8.8 6.2L6.2 19.7a2.1 2.1 0 0 1-3-3l6-6A6.6 6.6 0 0 1 15.5 3l-2.7 2.7 1.5 1.5L17 4.5A6.6 6.6 0 0 1 21 7.5Z" />
</svg>
</span>
<span>天泽汽修</span>
</a>
<nav class="nav-links" aria-label="主导航">
<a :class="{ active: isActiveNav('/main') }" href="/main">首页</a>
<a :class="{ active: isActiveNav('/maintenance') }" href="/maintenance">车辆保养</a>
<a :class="{ active: isActiveNav('/bill') }" href="/bill">维修服务</a>
<a :class="{ active: isActiveNav('/contact') }" href="/contact">联系我们</a>
</nav>
<div class="topbar-actions">
<button class="icon-button" aria-label="搜索服务">
<svg viewBox="0 0 24 24" aria-hidden="true">
<circle cx="10.8" cy="10.8" r="6.8" />
<path d="m16 16 5 5" />
</svg>
</button>
<button class="icon-button notification" aria-label="在线咨询">
<svg viewBox="0 0 24 24" aria-hidden="true">
<path
d="M20 11.5a7.5 7.5 0 0 1-8 7.5 8.5 8.5 0 0 1-3.5-.8L4 20l1.5-3.5A7.3 7.3 0 0 1 4.5 12 7.5 7.5 0 0 1 12 4.5a7.5 7.5 0 0 1 8 7Z" />
<path d="M8 12h.01M12 12h.01M16 12h.01" />
</svg>
</button>
<div class="user-avatar">泽</div>
<span class="user-name">在线客服</span>
</div>
</header>
<router-view />
<!-- <HelloWorld /> -->
</template>
<style scoped> <style scoped>
* { .topbar {
margin: 0; position: relative;
padding: 0; height: 74px;
box-sizing: border-box; padding: 0 clamp(24px, 5vw, 76px);
display: flex;
align-items: center;
gap: 58px;
background: #fff;
border-bottom: 1px solid #e8edf5;
animation: nav-slide-down 0.55s cubic-bezier(.22, 1, .36, 1) both;
} }
body { .topbar::after {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; content: "";
background: #f0f2f5; position: absolute;
padding: 20px; right: 0;
bottom: -1px;
left: 0;
height: 1px;
transform: scaleX(0);
transform-origin: left;
background: #1769e0;
animation: nav-border-reveal 0.8s .2s ease-out both;
} }
.app { .brand {
max-width: 1400px; display: flex;
margin: 0 auto; align-items: center;
gap: 10px;
color: #13213b;
font-size: 19px;
font-weight: 800;
text-decoration: none;
white-space: nowrap;
transition: color .25s ease, transform .25s ease;
} }
h1 { .brand:hover {
margin-bottom: 8px; color: #1769e0;
color: #333; transform: translateY(-2px);
} }
.description { .brand-mark {
color: #666; width: 36px;
margin-bottom: 24px; height: 36px;
display: grid;
place-items: center;
color: #fff;
background: #1769e0;
border-radius: 10px;
transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease;
} }
.log-panel { .brand:hover .brand-mark {
margin-top: 20px; transform: rotate(-8deg) scale(1.08);
padding: 16px; box-shadow: 0 7px 15px #1769e14d;
background: white;
border-radius: 8px;
box-shadow: 0 1px 4px rgba(0,0,0,0.1);
} }
.log-panel h3 { .brand-mark svg {
margin-bottom: 12px; width: 22px;
font-size: 16px; fill: currentColor;
color: #333; }
.nav-links {
display: flex;
align-self: stretch;
gap: 34px;
} }
.log-list { .nav-links a {
max-height: 200px; position: relative;
overflow-y: auto; display: flex;
align-items: center;
color: #78849a;
font-size: 14px;
text-decoration: none;
opacity: 0;
animation: nav-item-in .45s cubic-bezier(.22, 1, .36, 1) both;
transition: color .25s ease, transform .25s ease;
} }
.log-item { .nav-links a:nth-child(1) {
padding: 6px 0; animation-delay: .18s;
font-size: 12px; }
color: #666;
border-bottom: 1px solid #f0f0f0; .nav-links a:nth-child(2) {
font-family: monospace; animation-delay: .25s;
}
.nav-links a:nth-child(3) {
animation-delay: .32s;
}
.nav-links a:nth-child(4) {
animation-delay: .39s;
}
.nav-links a:hover {
color: #1769e0;
transform: translateY(-2px);
}
.nav-links a.active {
color: #1769e0;
font-weight: 700;
}
.nav-links a.active::after {
content: "";
position: absolute;
right: 0;
bottom: 0;
left: 0;
height: 3px;
transform: scaleX(1);
transform-origin: center;
background: #1769e0;
border-radius: 3px 3px 0 0;
animation: nav-underline-in .35s .35s cubic-bezier(.22, 1, .36, 1) both;
}
.nav-links a:not(.active)::after {
content: "";
position: absolute;
right: 0;
bottom: 0;
left: 0;
height: 3px;
transform: scaleX(0);
transform-origin: center;
background: #1769e0;
border-radius: 3px 3px 0 0;
transition: transform .25s cubic-bezier(.22, 1, .36, 1);
}
.nav-links a:not(.active):hover::after {
transform: scaleX(1);
}
@keyframes nav-slide-down {
from {
opacity: 0;
transform: translateY(-18px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes nav-border-reveal {
from {
transform: scaleX(0);
}
to {
transform: scaleX(1);
}
}
@keyframes nav-item-in {
from {
opacity: 0;
transform: translateY(-8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes nav-underline-in {
from {
transform: scaleX(0);
}
to {
transform: scaleX(1);
}
}
@media (prefers-reduced-motion: reduce) {
.topbar,
.topbar::after,
.nav-links a,
.nav-links a.active::after {
animation: none;
}
.nav-links a {
opacity: 1;
}
} }
</style> </style>
-9
View File
@@ -1,9 +0,0 @@
<script setup lang="ts">
import HelloWorld from './components/HelloWorld.vue'
</script>
<template>
<router-view />
<!-- <HelloWorld /> -->
</template>
+1 -1
View File
@@ -2,7 +2,7 @@ import { createApp } from 'vue'
import { createPinia } from 'pinia' import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate' import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import App from './App2.vue' import App from './App.vue'
import router from './router' import router from './router'
import './style.css' import './style.css'
const app = createApp(App) const app = createApp(App)
+14 -2
View File
@@ -1,5 +1,7 @@
import { createRouter, createWebHistory } from 'vue-router' import { createRouter, createWebHistory } from 'vue-router'
import login from '../views/main/index.vue' import main from '../views/main/index.vue'
import login from '../views/login/index.vue'
import bill from '../views/bill/index.vue'
const router = createRouter({ const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL), history: createWebHistory(import.meta.env.BASE_URL),
@@ -7,11 +9,21 @@ const router = createRouter({
{ {
path: '/main', path: '/main',
name: 'main', name: 'main',
component: main
},
{
path: '/login',
name: 'login',
component: login component: login
}, },
{
path: '/bill',
name: 'bill',
component:bill
},
{ {
path: '/', path: '/',
redirect: '/main' redirect: '/login'
}, },
{ {
path: '/:pathMatch(.*)*', path: '/:pathMatch(.*)*',
+206
View File
@@ -0,0 +1,206 @@
<template>
<main class="bill-page">
<header class="page-header">
<h1>我的账单</h1>
<span class="bill-count">共 {{ total }} 笔</span>
</header>
<section class="bill-list" aria-label="账单列表">
<article v-for="bill in bills" :key="bill.id" class="bill-item">
<div class="bill-icon" :class="bill.type">
{{ bill.type === 'income' ? '收' : '支' }}
</div>
<div class="bill-info">
<div class="bill-title">{{ bill.title || '账单' }}</div>
<div class="bill-time">{{ bill.time }}</div>
</div>
<div class="bill-amount" :class="bill.type">
{{ bill.type === 'income' ? '+' : '-' }}{{ formatAmount(bill.amount) }}
</div>
</article>
<div v-if="loading" class="list-status">正在加载...</div>
<div v-else-if="!bills.length" class="list-status">暂无账单</div>
<div v-else-if="finished" class="list-status">没有更多账单了</div>
<!-- 滚动到此处时自动请求下一页 -->
<div ref="loadMoreTarget" class="load-more-target" aria-hidden="true"></div>
</section>
</main>
</template>
<script setup>
import { nextTick, onBeforeUnmount, onMounted, ref } from 'vue'
const PAGE_SIZE = 20
const bills = ref([])
const total = ref(0)
const page = ref(1)
const loading = ref(false)
const finished = ref(false)
const loadMoreTarget = ref(null)
let observer
/**
* 账单数据接口:将此处替换为项目实际的请求方法即可。
* 返回格式建议为:{ list: Array, total: Number }。
*/
async function getBillList(params) {
// 示例:return request.get('/bill/list', { params })
return { list: [], total: 0 }
}
async function loadBills(reset = false) {
if (loading.value || (!reset && finished.value)) return
if (reset) {
page.value = 1
finished.value = false
bills.value = []
}
loading.value = true
try {
const result = await getBillList({ page: page.value, pageSize: PAGE_SIZE })
const list = result?.list || []
bills.value = reset ? list : bills.value.concat(list)
total.value = result?.total ?? bills.value.length
finished.value = list.length < PAGE_SIZE || bills.value.length >= total.value
if (!finished.value) page.value += 1
} catch (error) {
// 请求失败时保留已加载内容,下一次进入底部可重试。
console.error('获取账单失败', error)
} finally {
loading.value = false
}
}
function formatAmount(amount) {
return Number(amount || 0).toFixed(2)
}
onMounted(async () => {
await loadBills()
await nextTick()
observer = new IntersectionObserver(
([entry]) => entry.isIntersecting && loadBills(),
{ rootMargin: '120px 0px' },
)
if (loadMoreTarget.value) observer.observe(loadMoreTarget.value)
})
onBeforeUnmount(() => observer?.disconnect())
</script>
<style scoped>
.bill-page {
box-sizing: border-box;
width: 100%;
min-height: 100vh;
padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
background: #f6f7fb;
color: #20232a;
}
.page-header {
display: flex;
align-items: baseline;
justify-content: space-between;
max-width: 720px;
margin: 0 auto 16px;
}
h1 {
margin: 0;
font-size: 22px;
font-weight: 600;
}
.bill-count {
color: #969ba6;
font-size: 13px;
}
.bill-list {
max-width: 720px;
margin: 0 auto;
overflow: hidden;
border-radius: 12px;
background: #fff;
}
.bill-item {
display: flex;
align-items: center;
min-height: 72px;
padding: 0 16px;
border-bottom: 1px solid #f0f1f4;
}
.bill-icon {
display: grid;
width: 36px;
height: 36px;
margin-right: 12px;
place-items: center;
border-radius: 50%;
font-size: 13px;
}
.bill-icon.income {
color: #14966b;
background: #e7f8f1;
}
.bill-icon.expense {
color: #eb635b;
background: #fff0ef;
}
.bill-info {
flex: 1;
min-width: 0;
}
.bill-title {
overflow: hidden;
font-size: 15px;
text-overflow: ellipsis;
white-space: nowrap;
}
.bill-time {
margin-top: 5px;
color: #a0a5ae;
font-size: 12px;
}
.bill-amount {
margin-left: 12px;
font-size: 15px;
font-weight: 500;
}
.bill-amount.income {
color: #14966b;
}
.bill-amount.expense {
color: #20232a;
}
.list-status {
padding: 20px 0;
color: #a0a5ae;
font-size: 13px;
text-align: center;
}
.load-more-target {
height: 1px;
}
@media (min-width: 768px) {
.bill-page {
padding-top: 32px;
}
}
</style>
+515
View File
@@ -0,0 +1,515 @@
<template>
<main class="login-page">
<section class="brand-panel">
<div class="brand-content">
<a class="brand" href="#" aria-label="天泽汽修首页">
<span class="brand-mark">
<svg viewBox="0 0 24 24" aria-hidden="true">
<path
d="M21 7.5a6.6 6.6 0 0 1-8.8 6.2L6.2 19.7a2.1 2.1 0 0 1-3-3l6-6A6.6 6.6 0 0 1 15.5 3l-2.7 2.7 1.5 1.5L17 4.5A6.6 6.6 0 0 1 21 7.5Z" />
</svg>
</span>
<span>天泽汽修</span>
</a>
<div class="brand-slogan">
<p class="eyebrow">专业 · 安心 · 值得信赖</p>
<h1>让每一次出发<br /><em>都安心无忧</em></h1>
<p class="intro">一站式汽车维修保养服务,专业技师为您的爱车提供贴心呵护。</p>
</div>
<div class="service-tags">
<span>专业技师团队</span><span>原厂品质配件</span><span>透明服务价格</span>
</div>
</div>
<!-- <div class="decor decor-one"></div> -->
<!-- <div class="decor decor-two"></div> -->
</section>
<section class="form-panel">
<div class="login-card">
<div class="mobile-brand">
<span class="brand-mark"><svg viewBox="0 0 24 24" aria-hidden="true">
<path
d="M21 7.5a6.6 6.6 0 0 1-8.8 6.2L6.2 19.7a2.1 2.1 0 0 1-3-3l6-6A6.6 6.6 0 0 1 15.5 3l-2.7 2.7 1.5 1.5L17 4.5A6.6 6.6 0 0 1 21 7.5Z" />
</svg></span>
<strong>天泽汽修</strong>
</div>
<div class="form-heading">
<h2>欢迎回来</h2>
<p>登录后即可查看您的车辆服务记录</p>
</div>
<form class="login-form" @submit.prevent="handleSubmit">
<label for="phone">手机号</label>
<div class="input-wrap">
<svg viewBox="0 0 24 24" aria-hidden="true">
<circle cx="12" cy="7" r="3.5" />
<path d="M5 20c.5-3.5 2.8-5.5 7-5.5s6.5 2 7 5.5" />
</svg>
<input id="phone" type="tel" placeholder="请输入您的手机号" autocomplete="tel" />
</div>
<div class="password-label"><label for="password">登录密码</label><a href="#">忘记密码?</a></div>
<div class="input-wrap">
<svg viewBox="0 0 24 24" aria-hidden="true">
<rect x="5" y="10" width="14" height="10" rx="2" />
<path d="M8 10V7a4 4 0 0 1 8 0v3" />
</svg>
<input id="password" type="password" placeholder="请输入登录密码" autocomplete="current-password" />
<button type="button" class="password-toggle" aria-label="显示密码"><svg viewBox="0 0 24 24"
aria-hidden="true">
<path d="M3 12s3.2-5 9-5 9 5 9 5-3.2 5-9 5-9-5-9-5Z" />
<circle cx="12" cy="12" r="2" />
</svg></button>
</div>
<label class="remember"><input type="checkbox" /><span>记住我</span></label>
<button :disabled="loading" type="submit" class="login-button">{{ loading ? '登录中...' : '登录' }}</button>
</form>
<p class="register-tip">还没有账号?<a href="#">立即注册</a></p>
<div class="agreement"><span class="agreement-line"></span><span>登录即表示您同意</span><a
href="#">《用户服务协议》</a><span>和</span><a href="#">《隐私政策》</a><span class="agreement-line"></span>
</div>
</div>
<p class="copyright">© 2024 天泽汽修 · 用心服务每一位车主</p>
</section>
</main>
</template>
<script setup lang="ts">
import { ref } from 'vue';
import { useRouter } from 'vue-router';
const router = useRouter();
const formData = ref({
phone: '',
password: '',
remember: false
});
const loading = ref(false);
async function handleSubmit() {
loading.value = true;
try {
// 模拟登录请求
await new Promise(resolve => setTimeout(resolve, 1000));
alert(`登录成功!手机号:${formData.value.phone}`);
router.push('/main'); // 登录成功后跳转到主页面
} catch (error) {
console.error('登录失败', error);
} finally {
loading.value = false;
}
}
</script>
<style>
* {
box-sizing: border-box;
}
.login-page {
display: flex;
min-height: 100vh;
color: #1d2b45;
background: #f7f9fc;
font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
.brand-panel,
.form-panel {
width: 50%;
}
.brand-panel {
position: relative;
display: flex;
min-height: 100vh;
overflow: hidden;
color: #fff;
background: linear-gradient(145deg, #0d58c9, #176fe1 62%, #2782eb);
}
.brand-content {
position: relative;
z-index: 1;
display: flex;
width: 76%;
max-width: 570px;
margin: 0 auto;
padding: clamp(42px, 8vh, 85px) 0;
flex-direction: column;
}
.brand,
.mobile-brand {
display: flex;
align-items: center;
gap: 11px;
color: inherit;
font-size: 21px;
font-weight: 800;
text-decoration: none;
}
.brand-mark {
display: grid;
width: 39px;
height: 39px;
place-items: center;
background: #fff;
border-radius: 11px;
}
.brand-mark svg {
width: 24px;
fill: #1769e1;
}
.brand-slogan {
margin-top: clamp(90px, 17vh, 175px);
display: flex;
flex-direction: column;
align-items: center;
}
.eyebrow {
margin: 0 0 20px;
color: #bcd7ff;
font-size: 13px;
letter-spacing: 3px;
}
.brand-slogan h1 {
margin: 0;
color: #fff;
font-size: clamp(36px, 4vw, 56px);
font-weight: 800;
letter-spacing: -2px;
line-height: 1.28;
}
.brand-slogan h1 em {
color: #d3e6ff;
font-style: normal;
}
.intro {
width: 80%;
margin: 25px 0 0;
color: #c9ddfb;
font-size: 15px;
line-height: 1.9;
display: flex;
justify-content: center;
}
.service-tags {
display: flex;
margin-top: auto;
gap: 11px;
flex-wrap: wrap;
justify-content: space-around;
}
.service-tags span {
padding: 8px 13px;
color: #d9eaff;
background: #ffffff1c;
border: 1px solid #ffffff2b;
border-radius: 5px;
font-size: 11px;
}
.decor {
position: absolute;
border: 1px solid #ffffff1f;
border-radius: 50%;
}
.decor-one {
top: -180px;
right: -100px;
width: 480px;
height: 480px;
}
.decor-two {
right: 12%;
bottom: -240px;
width: 460px;
height: 460px;
background: #ffffff09;
}
.car-line {
position: absolute;
right: 2%;
bottom: 10%;
width: min(58%, 500px);
opacity: .16;
fill: none;
stroke: #fff;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 3;
}
.form-panel {
display: flex;
min-height: 100vh;
padding: 40px 5%;
align-items: center;
flex-direction: column;
justify-content: center;
}
.login-card {
width: 100%;
max-width: 420px;
}
.mobile-brand {
display: none;
color: #1769e1;
font-size: 18px;
}
.mobile-brand .brand-mark {
width: 34px;
height: 34px;
background: #e8f1ff;
}
.mobile-brand .brand-mark svg {
width: 20px;
}
.form-heading {
margin-bottom: 35px;
}
.form-heading h2 {
margin: 0 0 9px;
color: #1b2942;
font-size: 30px;
letter-spacing: -.8px;
}
.form-heading p,
.register-tip,
.agreement {
margin: 0;
color: #8e9aac;
font-size: 13px;
}
.login-form label,
.password-label label {
display: block;
margin-bottom: 9px;
color: #40506a;
font-size: 13px;
font-weight: 600;
}
.password-label {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 21px;
}
.password-label a,
.register-tip a,
.agreement a {
color: #1769e1;
text-decoration: none;
}
.input-wrap {
display: flex;
height: 48px;
align-items: center;
padding: 0 14px;
gap: 10px;
background: #fff;
border: 1px solid #e0e6ef;
border-radius: 6px;
transition: border-color .2s, box-shadow .2s;
}
.input-wrap:focus-within {
border-color: #1769e1;
box-shadow: 0 0 0 3px #1769e11a;
}
.input-wrap>svg {
width: 18px;
flex: 0 0 18px;
fill: none;
stroke: #a4afbd;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 1.7;
}
.input-wrap input {
width: 100%;
min-width: 0;
padding: 0;
color: #25344d;
outline: 0;
border: 0;
background: transparent;
font: inherit;
font-size: 13px;
}
.input-wrap input::placeholder {
color: #adb6c3;
}
.password-toggle {
display: grid;
width: 24px;
height: 30px;
padding: 0;
place-items: center;
color: #a4afbd;
background: none;
border: 0;
cursor: pointer;
}
.password-toggle svg {
width: 18px;
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 1.6;
}
.remember {
display: flex !important;
margin: 17px 0 25px !important;
align-items: center;
gap: 8px;
color: #77859a !important;
font-size: 12px !important;
font-weight: 400 !important;
}
.remember input {
width: 15px;
height: 15px;
margin: 0;
accent-color: #1769e1;
}
.login-button {
width: 100%;
height: 48px;
color: #fff;
background: #1769e1;
border: 0;
border-radius: 6px;
box-shadow: 0 8px 18px #1769e12e;
cursor: pointer;
font: inherit;
font-size: 14px;
font-weight: 600;
transition: background .2s, transform .2s;
}
.login-button:hover {
background: #0e5ac7;
transform: translateY(-1px);
}
.register-tip {
margin-top: 25px;
text-align: center;
}
.register-tip a {
margin-left: 4px;
font-weight: 600;
}
.agreement {
display: flex;
margin-top: 75px;
align-items: center;
justify-content: center;
gap: 4px;
font-size: 10px;
white-space: nowrap;
}
.agreement-line {
width: 25px;
height: 1px;
margin: 0 5px;
background: #e2e7ee;
}
.copyright {
margin: 28px 0 0;
color: #b0b9c6;
font-size: 10px;
}
@media (max-width: 760px) {
.login-page {
display: block;
background: #f7f9fc;
}
.brand-panel {
display: none;
}
.form-panel {
width: 100%;
min-height: 100vh;
padding: 38px 7% 25px;
justify-content: flex-start;
}
.login-card {
max-width: 470px;
}
.mobile-brand {
display: flex;
margin-bottom: 65px;
}
.form-heading {
margin-bottom: 30px;
}
.form-heading h2 {
font-size: 27px;
}
.agreement {
margin-top: 58px;
}
}
@media (max-width: 380px) {
.form-panel {
padding-right: 20px;
padding-left: 20px;
}
.mobile-brand {
margin-bottom: 48px;
}
.agreement-line {
width: 12px;
margin: 0 2px;
}
}
</style>
+683 -5
View File
@@ -1,12 +1,690 @@
<template> <template>
<div><div class="container">a</div></div> <main class="workshop-page">
<section class="page-content">
<div class="welcome-row">
<div>
<p class="eyebrow">专业服务 · 品质保障 · 贴心陪伴</p>
<h1>爱车养护,就到天泽汽修 <span>🚗</span></h1>
<p class="subheading">专注每一次检修,让您的每一段旅程都安心无忧。</p>
</div>
<button class="primary-button">
<span>+</span> 预约到店
</button>
</div>
<div class="stats-grid">
<article class="stat-card">
<div class="stat-icon blue">
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M7 6h7l3 3v11H7V6Zm3-3h4v3h-4V3Zm7 7h3v4h-3M10 10h4M10 14h4M10 18h4" />
</svg>
</div>
<div>
<p>机油更换</p><strong>70</strong><small>天</small>
</div>
<span class="trend up">OK</span>
</article>
<article class="stat-card">
<div class="stat-icon orange">
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M6 3h12v18H6zM9 7h6M9 11h6M9 15h3" />
</svg>
</div>
<div>
<p>累计服务年限</p><strong>15</strong><small>年</small>
</div>
<span class="trend up">专业沉淀</span>
</article>
<article class="stat-card">
<div class="stat-icon green">
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M12 3 4 6v5c0 5 3.4 8.5 8 10 4.6-1.5 8-5 8-10V6l-8-3Z" />
<path d="m8 12 2.5 2.5L16 9" />
</svg>
</div>
<div>
<p>技师团队</p><strong>28</strong><small>位</small>
</div>
<span class="trend up">经验丰富</span>
</article>
<article class="stat-card">
<div class="stat-icon purple">
<svg viewBox="0 0 24 24" aria-hidden="true">
<path d="M20 11a8 8 0 1 1-2.3-5.7M20 4v7h-7" />
</svg>
</div>
<div>
<p>客户好评率</p><strong>99.2</strong><small>%</small>
</div>
<span class="trend neutral">口碑之选</span>
</article>
</div>
<div class="dashboard-grid">
<section class="panel appointments">
<div class="panel-heading">
<div>
<h2>热门服务项目</h2>
<p>为您的爱车提供全方位呵护</p>
</div>
<a href="#">查看全部 <span>→</span></a>
</div>
<div class="appointment-list">
<div class="appointment-item">
<time>01<small>服务项目</small></time>
<div class="car-badge">B</div>
<div class="appointment-info"><strong>常规保养</strong>
<p>更换机油、机滤,全面检查车辆状态</p>
</div>
<span class="status waiting">热 门</span>
</div>
<div class="appointment-item">
<time>02<small>服务项目</small></time>
<div class="car-badge red">A</div>
<div class="appointment-info"><strong>空调清洗</strong>
<p>深度清洁空调系统,清新车内空气</p>
</div>
<span class="status serving">推荐</span>
</div>
<div class="appointment-item">
<time>03<small>服务项目</small></time>
<div class="car-badge green">T</div>
<div class="appointment-info"><strong>安全检测</strong>
<p>刹车、轮胎、灯光等 32 项专业检查</p>
</div>
<span class="status waiting">安心</span>
</div>
<div class="appointment-item">
<time>04<small>服务项目</small></time>
<div class="car-badge dark">V</div>
<div class="appointment-info"><strong>轮胎服务</strong>
<p>轮胎检测、换位及动平衡服务</p>
</div>
<span class="status done">专业</span>
</div>
</div>
</section>
<section class="panel quick-panel">
<div class="panel-heading">
<div>
<h2>便捷服务</h2>
<p>轻松预约您的爱车服务</p>
</div>
</div>
<div class="quick-actions">
<a href="#"><span class="quick-icon blue">+</span><strong>预约保养</strong><small>提前预约,省时省心</small></a>
<a href="#"><span class="quick-icon orange">♧</span><strong>在线估价</strong><small>快速了解服务价格</small></a>
<a href="#"><span class="quick-icon green">▣</span><strong>服务门店</strong><small>查看门店地址与营业时间</small></a>
<a href="#"><span class="quick-icon purple">◷</span><strong>联系客服</strong><small>专业顾问为您答疑</small></a>
</div>
</section>
</div>
<section class="notice-banner">
<div class="notice-icon">!</div>
<div><strong>首次到店礼遇</strong>
<p>新客户到店即可领取免费安全检测,提前预约还可享专属优惠。</p>
</div>
<a href="#">立即预约 <span>→</span></a>
</section>
</section>
</main>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
</script> </script>
<style> <style>
.container { * {
width: 100px; box-sizing: border-box;
height: 100px; }
background-color: #f0f0f0;
.workshop-page {
min-height:100vh - 74px;
color: #17233c;
background: #f5f7fb;
font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
.topbar-actions {
display: flex;
align-items: center;
gap: 18px;
margin-left: auto;
}
.icon-button {
position: relative;
display: grid;
padding: 0;
width: 25px;
height: 32px;
place-items: center;
color: #7d899d;
background: none;
border: 0;
cursor: pointer;
}
.icon-button svg {
width: 20px;
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 1.8;
}
.notification i {
position: absolute;
top: 4px;
right: 0;
width: 6px;
height: 6px;
background: #f15b5b;
border: 2px solid #fff;
border-radius: 50%;
}
.user-avatar {
display: grid;
width: 34px;
height: 34px;
place-items: center;
color: #1769e0;
background: #dceaff;
border-radius: 50%;
font-size: 14px;
font-weight: 700;
}
.user-name {
color: #34415a;
font-size: 14px;
}
.page-content {
max-width: 1310px;
margin: auto;
padding: 43px 28px 60px;
}
.welcome-row {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 34px;
}
.eyebrow {
margin: 0 0 10px;
color: #8d98aa;
font-size: 12px;
}
h1 {
margin: 0 0 8px;
color: #17233c;
font-size: 27px;
letter-spacing: -.7px;
}
h1 span {
font-size: 23px;
}
.subheading {
margin: 0;
color: #7c8799;
font-size: 13px;
}
.primary-button {
display: flex;
align-items: center;
gap: 8px;
padding: 12px 19px;
color: #fff;
background: #1769e0;
border: 0;
border-radius: 7px;
box-shadow: 0 5px 12px #1769e033;
cursor: pointer;
font-size: 13px;
font-weight: 600;
}
.primary-button span {
font-size: 20px;
font-weight: 300;
line-height: 14px;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 18px;
margin-bottom: 25px;
}
.stat-card {
display: flex;
align-items: center;
min-height: 122px;
padding: 22px 18px;
background: #fff;
border: 1px solid #edf0f5;
border-radius: 10px;
box-shadow: 0 4px 14px #253b5d08;
}
.stat-icon {
display: grid;
flex: 0 0 45px;
width: 45px;
height: 45px;
margin-right: 14px;
place-items: center;
border-radius: 10px;
}
.stat-icon svg {
width: 22px;
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 1.7;
}
.blue {
color: #216de1;
background: #eaf2ff;
}
.orange {
color: #ec8b28;
background: #fff3e4;
}
.green {
color: #2ba66b;
background: #e7f8ef;
}
.purple {
color: #8c62dc;
background: #f0eaff;
}
.stat-card p {
margin: 0 0 7px;
color: #8490a2;
font-size: 12px;
}
.stat-card strong {
color: #1b2942;
font-size: 25px;
line-height: 1;
}
.stat-card small {
margin-left: 4px;
color: #8994a6;
font-size: 11px;
}
.trend {
align-self: flex-start;
margin: 3px 0 0 auto;
padding: 4px 7px;
border-radius: 4px;
font-size: 10px;
white-space: nowrap;
}
.trend.up {
color: #2ca66c;
background: #eaf8f0;
}
.trend.neutral {
color: #8b63d9;
background: #f0eaff;
}
.dashboard-grid {
display: grid;
grid-template-columns: minmax(0, 1.58fr) minmax(340px, 1fr);
gap: 20px;
}
.panel {
padding: 24px 25px;
background: #fff;
border: 1px solid #edf0f5;
border-radius: 10px;
box-shadow: 0 4px 14px #253b5d08;
}
.panel-heading {
display: flex;
align-items: flex-start;
justify-content: space-between;
padding-bottom: 17px;
border-bottom: 1px solid #f0f2f6;
}
.panel-heading h2 {
margin: 0 0 5px;
color: #1e2b43;
font-size: 16px;
}
.panel-heading p {
margin: 0;
color: #98a2b1;
font-size: 11px;
}
.panel-heading a {
color: #1769e0;
font-size: 11px;
text-decoration: none;
}
.panel-heading a span,
.notice-banner a span {
margin-left: 4px;
font-size: 16px;
}
.appointment-item {
display: flex;
align-items: center;
min-height: 66px;
border-bottom: 1px solid #f2f3f6;
}
.appointment-item:last-child {
border-bottom: 0;
}
.appointment-item time {
width: 56px;
color: #35425a;
font-size: 13px;
font-weight: 700;
}
.appointment-item time small {
display: block;
margin-top: 3px;
color: #a0a9b7;
font-size: 10px;
font-weight: 400;
}
.car-badge {
display: grid;
width: 31px;
height: 31px;
margin-right: 12px;
place-items: center;
color: #286de0;
background: #e5efff;
border-radius: 7px;
font-size: 12px;
font-weight: 800;
}
.car-badge.red {
color: #e45656;
background: #ffebeb;
}
.car-badge.green {
color: #2c9b68;
background: #e4f7ed;
}
.car-badge.dark {
color: #53647b;
background: #edf0f4;
}
.appointment-info {
flex: 1;
}
.appointment-info strong {
display: block;
margin-bottom: 4px;
color: #354158;
font-size: 12px;
}
.appointment-info p {
margin: 0;
color: #9aa4b3;
font-size: 11px;
}
.status {
padding: 5px 9px;
border-radius: 4px;
font-size: 10px;
}
.status.waiting {
color: #d98627;
background: #fff3e4;
}
.status.serving {
color: #216de1;
background: #eaf2ff;
}
.status.done {
color: #2ca66c;
background: #eaf8f0;
}
.quick-actions {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
padding-top: 17px;
}
.quick-actions a {
display: flex;
min-height: 103px;
padding: 15px 13px;
flex-direction: column;
border: 1px solid #eef0f4;
border-radius: 8px;
text-decoration: none;
transition: border-color .2s, transform .2s;
}
.quick-actions a:hover {
border-color: #b7d0f7;
transform: translateY(-2px);
}
.quick-icon {
display: grid;
width: 30px;
height: 30px;
margin-bottom: 9px;
place-items: center;
border-radius: 7px;
font-size: 19px;
}
.quick-actions strong {
color: #3a465c;
font-size: 12px;
}
.quick-actions small {
margin-top: 4px;
color: #a0a9b7;
font-size: 10px;
}
.notice-banner {
display: flex;
align-items: center;
gap: 13px;
margin-top: 20px;
padding: 14px 18px;
color: #775c2d;
background: #fffbf2;
border: 1px solid #faefd1;
border-radius: 8px;
}
.notice-icon {
display: grid;
flex: 0 0 25px;
width: 25px;
height: 25px;
place-items: center;
color: #fff;
background: #e8ad42;
border-radius: 50%;
font-size: 14px;
font-weight: 800;
}
.notice-banner strong {
font-size: 12px;
}
.notice-banner p {
margin: 3px 0 0;
color: #9c875f;
font-size: 11px;
}
.notice-banner b {
color: #e28d24;
}
.notice-banner a {
margin-left: auto;
color: #d4871f;
font-size: 11px;
text-decoration: none;
white-space: nowrap;
}
@media (max-width: 900px) {
.topbar {
gap: 24px;
}
.nav-links {
gap: 16px;
}
.stats-grid {
grid-template-columns: repeat(2, 1fr);
}
.dashboard-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 600px) {
.topbar {
height: auto;
min-height: 68px;
padding: 14px 18px;
flex-wrap: wrap;
}
.nav-links {
order: 3;
width: 100%;
height: 38px;
justify-content: space-between;
}
.topbar-actions {
gap: 8px;
}
.user-name {
display: none;
}
.page-content {
padding: 28px 16px 40px;
}
.welcome-row {
align-items: flex-start;
flex-direction: column;
gap: 20px;
}
.stats-grid {
gap: 10px;
}
.stat-card {
min-height: 105px;
padding: 14px 10px;
}
.stat-icon {
flex-basis: 36px;
width: 36px;
height: 36px;
margin-right: 8px;
}
.stat-icon svg {
width: 18px;
}
.stat-card strong {
font-size: 20px;
}
.trend {
display: none;
}
.panel {
padding: 18px 14px;
}
.appointment-item time {
width: 48px;
}
.appointment-info strong {
font-size: 11px;
}
.status {
padding: 4px 6px;
}
.notice-banner {
align-items: flex-start;
}
.notice-banner a {
margin-top: 4px;
}
} }
</style> </style>