hookehuyr

我的页面新增陪伴用户的提醒

<!--
* @Date: 2022-09-21 14:51:44
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-11-03 18:14:22
* @LastEditTime: 2022-11-12 00:01:52
* @FilePath: /swx/src/pages/my/index.vue
* @Description: 我的页面
-->
......@@ -45,7 +45,7 @@
<view @tap="followUser" style="flex: 1; line-height: 60rpx;">
<view style="position: relative;">
<van-icon :name="icon_user" size="3rem" color="" style="vertical-align: sub;" />
<view style="width: 0.5rem; height: 0.5rem; background-color: red; border-radius: 50%; position: absolute; top: 0; right: 25%;"></view>
<view v-if="no_partner_note_count" style="width: 0.5rem; height: 0.5rem; background-color: red; border-radius: 50%; position: absolute; top: 0; right: 25%;"></view>
</view>
<view>
<text style="font-size: 1rem; color: #222;">陪伴的用户</text>
......@@ -123,6 +123,7 @@ export default {
activity_list: [],
host_id: '',
join_hosts: '',
no_partner_note_count: '',
}
},
async onShow () {
......@@ -137,6 +138,7 @@ export default {
item.activity_time = formatDate(item.activity_time);
})
this.activity_list = data.activity_list;
this.no_partner_note_count = data.no_partner_note_count;
this.nickname = data.user.nickname;
this.avatar = data.user.avatar ? data.user.avatar : 'http://gyzs.onwall.cn/tou%402x.png';
}
......