diff --git a/src/App.vue b/src/App.vue index aad14ea..e1a5553 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,8 @@ ")}catch(l){console&&console.log(l)}}t=function(){var l,a=document.createElement("div");a.innerHTML=c._iconfont_svg_string_5136943,(a=a.getElementsByTagName("svg")[0])&&(a.setAttribute("aria-hidden","true"),a.style.position="absolute",a.style.width=0,a.style.height=0,a.style.overflow="hidden",a=a,(l=document.body).firstChild?n(a,l.firstChild):l.appendChild(a))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(t,0):(i=function(){document.removeEventListener("DOMContentLoaded",i,!1),t()},document.addEventListener("DOMContentLoaded",i,!1)):document.attachEvent&&(o=t,e=c.document,h=!1,s(),e.onreadystatechange=function(){"complete"==e.readyState&&(e.onreadystatechange=null,d())})}function d(){h||(h=!0,o())}function s(){try{e.documentElement.doScroll("left")}catch(l){return void setTimeout(s,50)}d()}})(window); \ No newline at end of file +window._iconfont_svg_string_5136943='',(a=>{var l=(c=(c=document.getElementsByTagName("script"))[c.length-1]).getAttribute("data-injectcss"),c=c.getAttribute("data-disable-injectsvg");if(!c){var t,i,o,e,h,n=function(l,c){c.parentNode.insertBefore(l,c)};if(l&&!a.__iconfont__svg__cssinject__){a.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(l){console&&console.log(l)}}t=function(){var l,c=document.createElement("div");c.innerHTML=a._iconfont_svg_string_5136943,(c=c.getElementsByTagName("svg")[0])&&(c.setAttribute("aria-hidden","true"),c.style.position="absolute",c.style.width=0,c.style.height=0,c.style.overflow="hidden",c=c,(l=document.body).firstChild?n(c,l.firstChild):l.appendChild(c))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(t,0):(i=function(){document.removeEventListener("DOMContentLoaded",i,!1),t()},document.addEventListener("DOMContentLoaded",i,!1)):document.attachEvent&&(o=t,e=a.document,h=!1,s(),e.onreadystatechange=function(){"complete"==e.readyState&&(e.onreadystatechange=null,d())})}function d(){h||(h=!0,o())}function s(){try{e.documentElement.doScroll("left")}catch(l){return void setTimeout(s,50)}d()}})(window); \ No newline at end of file diff --git a/src/assets/css/iconfont/iconfont.json b/src/assets/css/iconfont/iconfont.json index 2ad52b9..6f20f1b 100644 --- a/src/assets/css/iconfont/iconfont.json +++ b/src/assets/css/iconfont/iconfont.json @@ -5,6 +5,13 @@ "css_prefix_text": "icon-", "description": "", "glyphs": [ + { + "icon_id": "1020316", + "name": "消费记录", + "font_class": "xiaofeijilu", + "unicode": "e654", + "unicode_decimal": 58964 + }, { "icon_id": "2681721", "name": "余额", diff --git a/src/assets/css/iconfont/iconfont.ttf b/src/assets/css/iconfont/iconfont.ttf index d14ba51..da31225 100644 Binary files a/src/assets/css/iconfont/iconfont.ttf and b/src/assets/css/iconfont/iconfont.ttf differ diff --git a/src/assets/css/iconfont/iconfont.woff b/src/assets/css/iconfont/iconfont.woff index 59a6b4a..f19885b 100644 Binary files a/src/assets/css/iconfont/iconfont.woff and b/src/assets/css/iconfont/iconfont.woff differ diff --git a/src/assets/css/iconfont/iconfont.woff2 b/src/assets/css/iconfont/iconfont.woff2 index cda55aa..c4f9524 100644 Binary files a/src/assets/css/iconfont/iconfont.woff2 and b/src/assets/css/iconfont/iconfont.woff2 differ diff --git a/src/components/left/Menu.vue b/src/components/left/Menu.vue index c16e52a..3ec1035 100644 --- a/src/components/left/Menu.vue +++ b/src/components/left/Menu.vue @@ -18,7 +18,13 @@ 首页 - + + + + @@ -90,12 +96,15 @@ const activeIndex = ref('index') // 菜单项点击事件 const handleSelect = (index: string) => { activeIndex.value = index - + // 处理路由跳转 switch (index) { case 'index': router.push('/index'); break; + case 'bill': + router.push('/bill'); + break; case 'discover': router.push('/discover'); break; @@ -127,6 +136,8 @@ const updateActiveIndex = () => { const path = route.path if (path.includes('/index')) { activeIndex.value = 'index'; + } else if (path.includes('/bill')) { + activeIndex.value = 'bill'; } else if (path.includes('/discover')) { activeIndex.value = 'discover'; } else if (path.includes('/profile')) { diff --git a/src/components/video/ImgVideo.vue b/src/components/video/ImgVideo.vue index de8d9a4..a8ce3b4 100644 --- a/src/components/video/ImgVideo.vue +++ b/src/components/video/ImgVideo.vue @@ -1,148 +1,176 @@ \ No newline at end of file diff --git a/src/components/video/ReferenceVideo.vue b/src/components/video/ReferenceVideo.vue index 72150c5..bc189c0 100644 --- a/src/components/video/ReferenceVideo.vue +++ b/src/components/video/ReferenceVideo.vue @@ -7,20 +7,37 @@
-
- - - - + +
+ 视频预览 +
+ + + + + + +
-
- 上传视频 / 主体 - 最多可上传1个5-8s或2个5s内视频 / 主体 + +
+
+ + + + +
+
+ 上传视频 / 主体 + 最多可上传1个视频 +
+ + 选择文件 +
- 视频示例
@@ -28,19 +45,37 @@
-
- - - - + +
+ 图片预览 +
+ + + + + + +
-
- 上传图片 / 主体 - 最多可上传1-4张图片 + +
+
+ + + + +
+
+ 上传图片 / 主体 + 最多可上传1张图片 +
+ + 选择文件 +
- 图片示例
@@ -144,13 +179,20 @@
+ + + Preview Image + diff --git a/src/main.ts b/src/main.ts index 4b4f80a..9468499 100644 --- a/src/main.ts +++ b/src/main.ts @@ -8,6 +8,7 @@ import ElementPlus from 'element-plus' // element-ui css import 'element-plus/dist/index.css' import 'element-plus/theme-chalk/index.css' +import zhCn from 'element-plus/es/locale/lang/zh-cn' // pinia持久化 import piniaPluginPersistedstate from 'pinia-plugin-persistedstate' // pinia @@ -15,11 +16,13 @@ import { createPinia } from 'pinia' // icon import './assets/css/iconfont/iconfont.css' - const pinia = createPinia() pinia.use(piniaPluginPersistedstate) const app = createApp(App) + app.use(router) -app.use(ElementPlus) +app.use(ElementPlus, { + locale: zhCn, +}) app.use(pinia) -app.mount('#app') \ No newline at end of file +app.mount('#app') \ No newline at end of file diff --git a/src/router/index.ts b/src/router/index.ts index a242f88..892f256 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -29,6 +29,12 @@ const router = createRouter({ name: 'index', component: () => import('@/views/index/index.vue') }, + // 消费记录 + { + path: '/bill', + name: 'bill', + component: () => import('@/views/Bill/Bill.vue') + }, // ImgGenerate { path: '/ImgGenerate', @@ -70,15 +76,15 @@ const router = createRouter({ } ] }, - - + + // 素材广场 { path: '/material-square', name: 'material-square', component: () => import('@/views/videoGenerate/videoGenerate.vue') } - + ] }, diff --git a/src/views/Bill/Bill.vue b/src/views/Bill/Bill.vue new file mode 100644 index 0000000..6e5470a --- /dev/null +++ b/src/views/Bill/Bill.vue @@ -0,0 +1,783 @@ + + + + + + \ No newline at end of file