|
|
@@ -18,6 +18,7 @@ const progress = computed(() => {
|
|
|
const followCount = ref(0)
|
|
|
const helpCount = ref(0)
|
|
|
const activityCount = ref(0)
|
|
|
+const friendApplyCount = ref(0)
|
|
|
|
|
|
function onActivityScan() {
|
|
|
uni.scanCode({
|
|
|
@@ -62,6 +63,9 @@ function loadData() {
|
|
|
helpCount.value = res.helpCount
|
|
|
activityCount.value = res.activityCount
|
|
|
})
|
|
|
+ apis.amActivity.friendApi.getApplyCount().then((res: any) => {
|
|
|
+ friendApplyCount.value = res
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
function init() {
|
|
|
@@ -148,10 +152,16 @@ onMounted(init)
|
|
|
<vb-cell
|
|
|
icon="people"
|
|
|
icon-class="text-warning"
|
|
|
- title="好友请求"
|
|
|
is-link
|
|
|
@click="route.navigate('friendApply', { id: user.amId })"
|
|
|
- ></vb-cell>
|
|
|
+ >
|
|
|
+ <template #title>
|
|
|
+ <text class="me-10">好友申请</text>
|
|
|
+ <text v-if="friendApplyCount > 0" class="bg-danger text-white text-center br-15 px-5 py-1 fs-10">
|
|
|
+ {{ friendApplyCount }}
|
|
|
+ </text>
|
|
|
+ </template>
|
|
|
+ </vb-cell>
|
|
|
</vb-cell-group>
|
|
|
<vb-cell-group inset>
|
|
|
<vb-cell
|