diff --git a/public/favicon.ico b/public/favicon.ico
new file mode 100644
index 0000000..db51d1f
Binary files /dev/null and b/public/favicon.ico differ
diff --git a/public/index.html b/public/index.html
new file mode 100644
index 0000000..80c65d1
--- /dev/null
+++ b/public/index.html
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+ <%= 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 @@
-
-
+
setVal('community', e, 'getQuartersForCommunity')"
/>
- setVal('houseNumber', e)"
- />
+ />-->
-
+
提交