diff --git a/package.json b/package.json index e4ec599..779f77f 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "lint": "vue-cli-service lint" }, "dependencies": { + "@ant-design-vue/use": "^0.0.1-alpha.6", "ant-design-vue": "^2.0.0-beta.9", "axios": "^0.20.0", "core-js": "^3.6.5", diff --git a/src/api/index.ts b/src/api/index.ts index cd8b1f2..82f4cb2 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -18,3 +18,4 @@ export function getinfo(): Promise{ export function seninfo(data: object): Promise{ return post("b",data) } + diff --git a/src/components/login/LoginTab.vue b/src/components/login/LoginTab.vue new file mode 100644 index 0000000..f82c8c7 --- /dev/null +++ b/src/components/login/LoginTab.vue @@ -0,0 +1,48 @@ + + + + \ No newline at end of file diff --git a/src/router/index.ts b/src/router/index.ts index b5fde67..7801986 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,4 +1,5 @@ import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router' +import Login from "../views/login/Login.vue" const routes: Array = [ { @@ -7,8 +8,19 @@ const routes: Array = [ component: () => import("../layout/Mine.vue"), children: [ { - path:"Archives", + path:"archives", + name: "Archives", component: () => import("../views/mine/Archives.vue") + }, + { + path:"webcast", + name: "Webcast", + component: () => import("../views/mine/ReleaseWebcast.vue") + }, + { + path:"video", + name: "Video", + component: () => import("../views/mine/ReleaseVideo.vue") } ] }, @@ -33,17 +45,24 @@ const routes: Array = [ component: () => import(/* webpackChunkName: "about" */ '../components/NavTop.vue') }, { - path: '/about', - name: 'About', - // route level code-splitting - // this generates a separate chunk (about.[hash].js) for this route - // which is lazy-loaded when the route is visited. - component: () => import(/* webpackChunkName: "about" */ '../views/About.vue') + path: '/login', + name: 'Login', + component:Login }, { - path: '/archives', - name: 'Archives', - component: () => import('../views/mine/Archives.vue') + path: '/sign', + name: 'Sign', + component: () => import('../views/login/Sign.vue') + }, + { + path: '/reset', + name: 'Reset', + component: () => import('../views/login/Reset.vue') + }, + { + path: '/about', + name: 'About', + component: () => import('../views/login/About.vue') }, ] diff --git a/src/static/images/agree.png b/src/static/images/agree.png new file mode 100644 index 0000000..6dab149 Binary files /dev/null and b/src/static/images/agree.png differ diff --git a/src/static/images/delete.png b/src/static/images/delete.png new file mode 100644 index 0000000..f84334d Binary files /dev/null and b/src/static/images/delete.png differ diff --git a/src/static/images/email.png b/src/static/images/email.png new file mode 100644 index 0000000..ddf119e Binary files /dev/null and b/src/static/images/email.png differ diff --git a/src/static/images/facebook.png b/src/static/images/facebook.png new file mode 100644 index 0000000..042d1c0 Binary files /dev/null and b/src/static/images/facebook.png differ diff --git a/src/static/images/link.png b/src/static/images/link.png new file mode 100644 index 0000000..af037a5 Binary files /dev/null and b/src/static/images/link.png differ diff --git a/src/static/images/loginbg.png b/src/static/images/loginbg.png new file mode 100644 index 0000000..b66ee9d Binary files /dev/null and b/src/static/images/loginbg.png differ diff --git a/src/static/images/logo.png b/src/static/images/logo.png new file mode 100644 index 0000000..f3d2503 Binary files /dev/null and b/src/static/images/logo.png differ diff --git a/src/static/images/smile.png b/src/static/images/smile.png new file mode 100644 index 0000000..01e8947 Binary files /dev/null and b/src/static/images/smile.png differ diff --git a/src/static/images/success.png b/src/static/images/success.png new file mode 100644 index 0000000..60fa7d8 Binary files /dev/null and b/src/static/images/success.png differ diff --git a/src/static/images/tel.png b/src/static/images/tel.png new file mode 100644 index 0000000..37a23c1 Binary files /dev/null and b/src/static/images/tel.png differ diff --git a/src/static/images/weibo.png b/src/static/images/weibo.png new file mode 100644 index 0000000..52698b9 Binary files /dev/null and b/src/static/images/weibo.png differ diff --git a/src/static/images/weixin.png b/src/static/images/weixin.png new file mode 100644 index 0000000..6622aaf Binary files /dev/null and b/src/static/images/weixin.png differ diff --git a/src/static/js/common.ts b/src/static/js/common.ts new file mode 100644 index 0000000..8f5b035 --- /dev/null +++ b/src/static/js/common.ts @@ -0,0 +1,20 @@ +/** + * 图片转Base64 + */ +function getBase64(file: File): Promise { + return new Promise((resolve, reject) => { + const reader = new FileReader(); + reader.readAsDataURL(file); + reader.onload = () => resolve(reader.result); + reader.onerror = error => reject(error); + }); +} +/** + * 预览图片 + */ +export async function previewCover(file: any): Promise { + if (!file.url && !file.preview) { + file.preview = await getBase64(file.originFileObj); + } + return file.url || file.preview || ''; +} diff --git a/src/views/About.vue b/src/views/About.vue deleted file mode 100644 index 3fa2807..0000000 --- a/src/views/About.vue +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/src/views/login/About.vue b/src/views/login/About.vue new file mode 100644 index 0000000..f4e69ea --- /dev/null +++ b/src/views/login/About.vue @@ -0,0 +1,23 @@ + + + + \ No newline at end of file diff --git a/src/views/login/Login.vue b/src/views/login/Login.vue new file mode 100644 index 0000000..95c88b9 --- /dev/null +++ b/src/views/login/Login.vue @@ -0,0 +1,403 @@ + + + + \ No newline at end of file diff --git a/src/views/login/Reset.vue b/src/views/login/Reset.vue new file mode 100644 index 0000000..afe2650 --- /dev/null +++ b/src/views/login/Reset.vue @@ -0,0 +1,340 @@ + + + + \ No newline at end of file diff --git a/src/views/login/Sign.vue b/src/views/login/Sign.vue new file mode 100644 index 0000000..f1a8eb7 --- /dev/null +++ b/src/views/login/Sign.vue @@ -0,0 +1,373 @@ + + + + \ No newline at end of file diff --git a/src/views/mine/Archives.vue b/src/views/mine/Archives.vue index 86a258b..e3cd19b 100644 --- a/src/views/mine/Archives.vue +++ b/src/views/mine/Archives.vue @@ -107,7 +107,7 @@
自我介绍
- +
@@ -322,7 +322,7 @@ export default defineComponent({ } .main-container { margin-left: 17px; - .input-box { + ::v-deep .input-box { display: flex; align-items: center; margin-bottom: 28px; @@ -341,12 +341,16 @@ export default defineComponent({ border-radius: 3px; border: 1px solid #DCDFE0; font-size: 11px; + color: #3F3F3F; } .ant-select { font-size: 12px; + color: #3F3F3F; } - .select-down { - font-size: 12px; + .ant-select-dropdown { + .ant-select-dropdown-menu-item { + font-size: 12px; + } } } .speak-lang { @@ -403,6 +407,11 @@ export default defineComponent({ .ant-input { width: 359px; } + .introduce-textarea { + height: 85px; + min-height: 85px; + max-height: 85px; + } } .phone-box { .phone { diff --git a/src/views/mine/ReleaseVideo.vue b/src/views/mine/ReleaseVideo.vue new file mode 100644 index 0000000..e339e6c --- /dev/null +++ b/src/views/mine/ReleaseVideo.vue @@ -0,0 +1,300 @@ + + + \ No newline at end of file diff --git a/src/views/mine/ReleaseWebcast.vue b/src/views/mine/ReleaseWebcast.vue index dd0e61c..3113423 100644 --- a/src/views/mine/ReleaseWebcast.vue +++ b/src/views/mine/ReleaseWebcast.vue @@ -1,92 +1,289 @@ \ No newline at end of file