diff --git a/src/pages/news/friendRequest.wpy b/src/pages/news/friendRequest.wpy
index 068425b..81ccf83 100644
--- a/src/pages/news/friendRequest.wpy
+++ b/src/pages/news/friendRequest.wpy
@@ -368,7 +368,7 @@ page {
-
+
@@ -376,10 +376,10 @@ page {
{{item.user.nickname }}
-
-
-
- {{ item.create_time }}
+
+
+
+ {{ item.update_time }}
@@ -387,7 +387,7 @@ page {
0
- {{ item.user.age }}
+ {{ item.profile.age }}
@@ -528,7 +528,8 @@ wepy.page({
vm.$get({url: url, data}).then(({code, data}) => {
if (code === 0) {
data.data.forEach((item) => {
- item.create_time = item.create_time.split(' ', 1)
+ item.update_time = item.update_time.split(' ', 1)
+ item.refuse_tag = item.refuse_tag ? JSON.parse(item.refuse_tag) : []
})
if (vm.list.length === 0 || vm.page === 1) {
vm.list = data.data
@@ -540,21 +541,21 @@ wepy.page({
if (vm.list.length < 15 || data.data.length < 15) {
vm.no_more = true
}
- let obj = {}
- let peon = []
+ // let obj = {}
+ // let peon = []
// 去除重复数据保留最后一条
- if (vm.tabBarIndex == 0) {
- peon = vm.list.reduce((cur, next) => {
- obj[next.user_linking_id] ? '' : obj[next.user_linking_id] = true && cur.push(next)
- return cur
- }, [])
- } else {
- peon = vm.list.reduce((cur, next) => {
- obj[next.user_id] ? '' : obj[next.user_id] = true && cur.push(next)
- return cur
- }, [])
- }
- vm.list = peon
+ // if (vm.tabBarIndex == 0) {
+ // peon = vm.list.reduce((cur, next) => {
+ // obj[next.user_linking_id] ? '' : obj[next.user_linking_id] = true && cur.push(next)
+ // return cur
+ // }, [])
+ // } else {
+ // peon = vm.list.reduce((cur, next) => {
+ // obj[next.user_id] ? '' : obj[next.user_id] = true && cur.push(next)
+ // return cur
+ // }, [])
+ // }
+ // vm.list = peon
setTimeout(() => {
vm.loading = true
}, 500)
diff --git a/src/pages/tabBar/home.wpy b/src/pages/tabBar/home.wpy
index 15d1503..101f698 100644
--- a/src/pages/tabBar/home.wpy
+++ b/src/pages/tabBar/home.wpy
@@ -303,71 +303,73 @@ page {
{{item.title}}
-
- 为你推荐
-
-
-
-
-
-
-
- 福恋会在每天 12 点为你推荐 7 个用户
-
-
- 下次推荐时间
+
+
+ 为你推荐
+
+
+
+
+
+
+
+ 福恋会在每天 12 点为你推荐 7 个用户
+
+
+ 下次推荐时间
+
+
+ {{ countdown.h}}:{{ countdown.m}}:{{ countdown.s}}
+
+
+
+
+ 手动更新每日推荐
+
+
+
+
+
+ 回看今日推荐
+
+
+
+ 点击查看更多优质单身
-
- {{ countdown.h}}:{{ countdown.m}}:{{ countdown.s}}
+
+
+
+
-
-
-
- 手动更新每日推荐
+
+
+
+
+
+
+ {{ item.nickname }}{{cardCur}}
+
+
+
+
+
+
+
+ {{ item.city }}
+
-
-
-
-
- 回看今日推荐
+
+ {{ item.year + ' · ' }}{{item.stature + ' · '}}{{ item.degree ? item.degree + ' · ' : '' }}{{ item.industry_sub ? item.industry_sub : '' }}
-
-
- 点击查看更多优质单身
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.nickname }}{{cardCur}}
-
-
-
-
-
-
-
- {{ item.city }}
+
+ {{ item.introduction || '介绍:未填写' }}
-
- {{ item.year + ' · ' }}{{item.stature + ' · '}}{{ item.degree ? item.degree + ' · ' : '' }}{{ item.industry_sub ? item.industry_sub : '' }}
-
-
- {{ item.introduction || '介绍:未填写' }}
-
-
-
-
-
-
+
+
+
+
+
单身广场
diff --git a/src/pages/tabBar/news.wpy b/src/pages/tabBar/news.wpy
index 21483d5..75e31f2 100644
--- a/src/pages/tabBar/news.wpy
+++ b/src/pages/tabBar/news.wpy
@@ -326,7 +326,7 @@ wepy.page({
})
} else {
wx.removeTabBarBadge({
- index: 0
+ index: 2
})
}
}
diff --git a/src/utils/im.js b/src/utils/im.js
index f520344..075cb7c 100644
--- a/src/utils/im.js
+++ b/src/utils/im.js
@@ -153,7 +153,7 @@ const IM = (account, token) => {
})
} else {
wx.removeTabBarBadge({
- index: 0
+ index: 2
})
}
}