hookehuyr

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

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