diff --git a/src/api/home.js b/src/api/home.js
index ee3615b..cbe3ce2 100644
--- a/src/api/home.js
+++ b/src/api/home.js
@@ -2,10 +2,10 @@
import request from '@/utils/request'
// 【社区服务】活动列表+轮播图
-export function communityActivity(params) {
+export function communityActivity(data) {
return request({
url: `/actual/base/communityActivity/page`,
- method: 'get',
- params
+ method: 'post',
+ data
})
}
diff --git a/src/api/user.js b/src/api/user.js
index 964c13e..d2b6c3c 100644
--- a/src/api/user.js
+++ b/src/api/user.js
@@ -19,12 +19,12 @@ export function checkWxmpRegister(params) {
})
}
// 获取用户信息
-export function getUserWechatByUserId(params) {
+export function getUserWechatByUserId(id) {
return request({
- url: `/auth/loginH5/resiH5/getUserInfoByToken`,
+ url: `epmetuser/user/getH5LoginUserInfo/${id}`,
method: 'get',
message: '获取用户信息中...',
- params
+
})
}
diff --git a/src/assets/images/icons/about.png b/src/assets/images/icons/about.png
new file mode 100644
index 0000000..6e3081d
Binary files /dev/null and b/src/assets/images/icons/about.png differ
diff --git a/src/assets/images/icons/activity.png b/src/assets/images/icons/activity.png
new file mode 100644
index 0000000..3ebfbb5
Binary files /dev/null and b/src/assets/images/icons/activity.png differ
diff --git a/src/assets/images/icons/privacy.png b/src/assets/images/icons/privacy.png
new file mode 100644
index 0000000..c136163
Binary files /dev/null and b/src/assets/images/icons/privacy.png differ
diff --git a/src/assets/images/icons/satisfaction.png b/src/assets/images/icons/satisfaction.png
new file mode 100644
index 0000000..0b41172
Binary files /dev/null and b/src/assets/images/icons/satisfaction.png differ
diff --git a/src/components/registerDialog/index.vue b/src/components/registerDialog/index.vue
new file mode 100644
index 0000000..92bdd6f
--- /dev/null
+++ b/src/components/registerDialog/index.vue
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/plugins/vant.js b/src/plugins/vant.js
index 45cebf6..b45ecb4 100644
--- a/src/plugins/vant.js
+++ b/src/plugins/vant.js
@@ -26,6 +26,7 @@ import {
Search,
Swipe,
SwipeItem,
+ NoticeBar
} from 'vant'
Vue.use(Button)
@@ -53,3 +54,4 @@ Vue.use(Button)
.use(Search)
.use(Swipe)
.use(SwipeItem)
+ .use(NoticeBar)
\ No newline at end of file
diff --git a/src/router/index.js b/src/router/index.js
index cdfe201..e06c157 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -87,9 +87,10 @@ router.beforeEach((to, from, next) => {
}
})
} else {
- if (getQueryStringByName('code') && !whiteList.includes(to.path)) {
+ if (getQueryStringByName('code')) {
login({ wxCode: getQueryStringByName('code'),appId:'wx1078fa1e99424de9'}).then(res => {
localStorage.setItem('token', res.token)
+ localStorage.setItem('userId', res.userH5DTO.id)
let state = decodeURIComponent(getQueryStringByName('state'))
state = state.replace(/[\\\b\f\n\r\t]/g, '')
state = state.replace(/(\s*?{\s*?|\s*?,\s*?)(['"])?([a-zA-Z0-9]+)(['"])?:/g, '$1"$3":')
diff --git a/src/router/router.config.js b/src/router/router.config.js
index 3c38984..fd7bf41 100644
--- a/src/router/router.config.js
+++ b/src/router/router.config.js
@@ -79,4 +79,10 @@ export const constantRouterMap = [
component: () => import('@/views/selectAgency'),
meta: { title: '选择所在社区', keepAlive: false }
}
+ ,{
+ path: '/houseQR',
+ name: 'houseQR',
+ component: () => import('@/views/houseQR'),
+ meta: { title: '电子门牌', keepAlive: false }
+ }
]
diff --git a/src/store/modules/app.js b/src/store/modules/app.js
index 387b48b..f5f709c 100644
--- a/src/store/modules/app.js
+++ b/src/store/modules/app.js
@@ -2,11 +2,15 @@ import {checkWxmpRegister, getUserWechatByUserId} from '@/api/user'
const state = {
userInfo: {},
- appId: ''
+ appId: '',
+ realNameFlag:null,
+ agencyId:null
}
const mutations = {
SET_USER_INFO(state, userInfo) {
- state.userInfo = userInfo
+ state.userInfo = userInfo;
+ state.agencyId = userInfo.agencyId;
+ state.realNameFlag = userInfo.realName;
},
SET_APP_ID(state, appId) {
state.appId = appId
@@ -19,9 +23,8 @@ const actions = {
if (Object.keys(state.userInfo).length) {
resolve(state.userInfo)
}
- getUserWechatByUserId({
- token: localStorage.getItem('token')
- })
+ console.log(state.userInfo);
+ getUserWechatByUserId(localStorage.getItem('userId'))
.then(res => {
commit('SET_USER_INFO', res)
resolve(res)
diff --git a/src/views/home/index.less b/src/views/home/index.less
index c727845..2244433 100644
--- a/src/views/home/index.less
+++ b/src/views/home/index.less
@@ -65,3 +65,8 @@
border-bottom: none;
}
}
+
+.tip{
+ // background-image: url('@/assets/dialog_bg.png');
+ // background-size: 100% 100%;
+}
\ No newline at end of file
diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index 55bb04e..24834f1 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -5,13 +5,15 @@

-
社区
+
{{ this.$store.state.app.userInfo.agencyName || '--' }}
+ style="width: 170px;"
+ @search="$router.push({ path: '/search', query: { searchKey: searchKey } })" />

+ @click="$router.push({ path: '/mine', query: { searchKey: searchKey } })" class="img_20 "
+ alt="">
@@ -24,16 +26,17 @@
-

+
- 这个vant真的好好好用强烈推!!!!!!!!
+
+
05-06
更多
-
+
{{ item.title }}
@@ -66,7 +69,8 @@
报名人数: {{ item.resiNum }}/
{{ item.total }}人
-
报名
+
报名
@@ -93,10 +97,12 @@
+
+
+
\ No newline at end of file
diff --git a/src/views/mine/index.vue b/src/views/mine/index.vue
index 92c8c21..b5acbfd 100644
--- a/src/views/mine/index.vue
+++ b/src/views/mine/index.vue
@@ -11,7 +11,7 @@
{{ userInfo.realName ? userInfo.realName : userInfo.nickname }}
- {{ userInfo.gridName }}
+ {{ userInfo.agencyName }}
@@ -21,7 +21,6 @@
-
@@ -29,12 +28,27 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
diff --git a/src/views/register/index.vue b/src/views/register/index.vue
index 03450d6..297244e 100644
--- a/src/views/register/index.vue
+++ b/src/views/register/index.vue
@@ -15,7 +15,7 @@
-
+
@@ -32,7 +32,7 @@