From 6d327be81961c997d9071f52c1513ad414a6d2db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=98=E7=AB=8B=E6=A0=87?= <2658037827@qq.com> Date: Fri, 13 Oct 2023 17:55:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B3=A8=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/favicon.ico | Bin 0 -> 4286 bytes public/index.html | 19 ++++ src/components/Picker/index.vue | 4 +- src/plugins/vant.js | 4 +- src/router/index.js | 6 +- src/router/router.config.js | 2 +- src/views/userInfo/index.vue | 187 ++++++++++++++++++++------------ 7 files changed, 146 insertions(+), 76 deletions(-) create mode 100644 public/favicon.ico create mode 100644 public/index.html diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..db51d1fd10f1fb58032d4fd1ece209a5a6557286 GIT binary patch literal 4286 zcmeI#dr(x@9S88ccb_b<&$~XhJXYlWTr(PJ8W&55H4Gu9V`tE0GS;@%v6NV2I*v62 zh^59csl~@6Wa0|~6p5lnr34KjRE?U^aS~0e1N#Idh^QFWb-BNOFS5%nkjG^FtJ7r; z=j^%XoX`FJ?m2gWVMO>bnHb?WQ>S5=DGb9TqM(bJk0SK{|MPG%kW?{Kma-#0J@xI> zW$C+SZOGU+cayp1@r@bv*+u393v)6K+gKg>m(bYgSHe4Hlxk__Uj^St32#Qjk39=NJMHbXvBBTd zGM*`)GWFaR6ZhG+2_psHxtCestP;ihE=H_V=pxrEFC%_J{%L0U6pGty^dSB+VgLEY z1=iMPqr%z}X|kS-G1*!ZBW!JHLE{9Q`)qsQl%TeApJ<_@iY<4($L77eQ=&oqi{UrS zDAV=Acf)@^aDw#%mCSlnz07)Cx7^yq{nFYzJs18?_-*j3ZEYC~Z0&PYfpfmA?W|%M z_{om<*tZ-tY`ddYyvtrESzP&!GAg!wYOHUr?NG>U>tSV~^+@lMIv^9og!(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{NvISJXrOoid)Cjr7mR|6@>hqzB5;ox#RoPp@X^F@NZglTDKeLoj4=>X!!B))8S{re**q9 z@So$Ys+F`p>`#RMMjze>xo7dNkJTGIzvX^%|1E>bd(4n9+{T%QTl7Dr8eI-;fNxPR zp`bnZ@b2J$Zzb}7vWTo=qE?1TM8wO9ylSHUEC<~}hc`n0u@~XrDq+MnH>0-EM`WW; ylnZ3*#@~TfIa%Gz&;TzU8hCYgx7!kpqQ2l&XYJ + + + + + + + <%= webpackConfig.name %> + + + +
+ + + + + diff --git a/src/components/Picker/index.vue b/src/components/Picker/index.vue index 5a1f452..97d68f0 100644 --- a/src/components/Picker/index.vue +++ b/src/components/Picker/index.vue @@ -55,13 +55,13 @@ export default { value(val) { let values = this.items.map(item => item.value) this.index = values.indexOf(val) - console.log(this.index, this.value) + console.log(this.index, this.value, this.items) }, items: { handler() { let values = this.items.map(item => item.value) this.index = values.indexOf(this.value) - // this.index = -1 + console.log(this.items, this.index, this.value) }, deep: true } diff --git a/src/plugins/vant.js b/src/plugins/vant.js index f9f3ffa..51ebfde 100644 --- a/src/plugins/vant.js +++ b/src/plugins/vant.js @@ -20,7 +20,8 @@ import { Tag, Steps, Step, - Divider + Divider, + List } from 'vant' Vue.use(Button) @@ -43,3 +44,4 @@ Vue.use(Button) .use(Steps) .use(Step) .use(Divider) + .use(List) diff --git a/src/router/index.js b/src/router/index.js index 94371e3..0893f88 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -50,7 +50,11 @@ function paramsFormat(params) { } router.beforeEach((to, from, next) => { - document.title = to.meta.title ? to.meta.title : title + if (to.params.type) { + document.title = to.params.type === 'edit' ? '编辑' : '注册' + } else { + document.title = to.meta.title ? to.meta.title : title + } if (localStorage.getItem('token')) { store.dispatch('getUserInfo').then(() => { next() diff --git a/src/router/router.config.js b/src/router/router.config.js index 5e0846c..8b9bdb0 100644 --- a/src/router/router.config.js +++ b/src/router/router.config.js @@ -30,7 +30,7 @@ export const constantRouterMap = [ path: '/userInfo/:type', name: 'userInfo', component: () => import('@/views/userInfo'), - meta: { title: '完善信息', keepAlive: false } + meta: { title: '', keepAlive: false } }, { path: '/demand', diff --git a/src/views/userInfo/index.vue b/src/views/userInfo/index.vue index 8629b6e..245de03 100644 --- a/src/views/userInfo/index.vue +++ b/src/views/userInfo/index.vue @@ -22,8 +22,8 @@ - -
+ - + />-->
- + 提交