Files
im/pages/find/index/index.vue
T

71 lines
2.5 KiB
Vue
Raw Normal View History

2025-11-07 09:56:20 +08:00
<template>
2025-12-11 22:33:31 +08:00
<view class="workbench_page">
<uni-nav-bar
title="发现"
statusBar
fixed
background-color="transparent"></uni-nav-bar>
2025-11-27 07:40:32 +08:00
<uni-list>
<uni-list-item title="朋友圈"
2025-12-24 04:12:56 +08:00
thumb="/static/images/find/01.png"
2025-11-27 07:40:32 +08:00
:thumbSize="thumbSize"
showArrow
2025-12-24 04:12:56 +08:00
to="/pages/find/friend-circle/friend-circle">
2026-01-11 13:51:16 +08:00
<view slot="footer" v-if="storeCircleTopUnreadItems.length>0">
<view class="avatargroup">
<MyAvatar :src="item.user.avatar" shape="circle" size="32" v-for="(item,index) in storeCircleTopUnreadItems" :key="index"></MyAvatar>
<u-avatar :text="'+'+storeCircleUnreadCount" size="32" bg-color="#353432" shape="circle"></u-avatar>
</view>
2025-11-27 07:40:32 +08:00
</view>
</uni-list-item>
</uni-list>
<u-gap :height="10"></u-gap>
<uni-list>
2025-12-24 04:12:56 +08:00
<uni-list-item title="扫一扫" thumb="/static/images/find/03.png" :thumbSize="thumbSize" @click="scan" clickable showArrow></uni-list-item>
<uni-list-item v-if="1==2" title="摇一摇" thumb="/static/images/find/05.png" :thumbSize="thumbSize" to="/pages/find/friend-circle/friend-circle" showArrow></uni-list-item>
<uni-list-item v-if="1==2" title="看一看" thumb="/static/images/find/06.png" :thumbSize="thumbSize" to="/pages/find/friend-circle/friend-circle" showArrow></uni-list-item>
<uni-list-item v-if="1==2" title="听一听" thumb="/static/images/find/06.png" :thumbSize="thumbSize" to="/pages/find/friend-circle/friend-circle" showArrow></uni-list-item>
<uni-list-item v-if="config.near_user_open == '1'" title="附近" thumb="/static/images/find/08.png" :thumbSize="thumbSize" to="/pages/find/near/near" showArrow></uni-list-item>
2026-01-09 09:15:59 +08:00
<uni-list-item v-if="1===2" title="购物" thumb="/static/images/find/09.png" :thumbSize="thumbSize" :to="'/pages/common/webview?url='+encodeURI('http://pinduoduo.com')" showArrow></uni-list-item>
2025-11-27 07:40:32 +08:00
</uni-list>
2025-11-25 05:36:02 +08:00
</view>
2025-11-07 09:56:20 +08:00
</template>
<script>
2025-12-24 04:12:56 +08:00
import { mapGetters } from "vuex";
2026-01-11 13:51:16 +08:00
import MyAvatar from "@/components/MyAvatar/index.vue";
2026-01-09 09:15:59 +08:00
import util from "@/util";
2025-11-25 05:36:02 +08:00
export default {
2026-01-11 13:51:16 +08:00
components:{MyAvatar},
2025-11-25 05:36:02 +08:00
data() {
return {
2025-12-23 00:18:46 +08:00
thumbSize:"base"
2025-11-25 05:36:02 +08:00
};
},
2025-12-02 03:05:52 +08:00
computed:{
2026-01-11 13:51:16 +08:00
...mapGetters(["config",'storeCircleUnreadCount','storeCircleTopUnreadItems']),
2025-12-02 03:05:52 +08:00
},
2025-11-25 05:36:02 +08:00
onShow: function() {
2025-11-27 07:40:32 +08:00
let unreadCount= 1;
2025-12-02 03:05:52 +08:00
this.$store.dispatch('circle/getFriendCircleInfo');
2025-11-25 05:36:02 +08:00
},
2026-01-09 09:15:59 +08:00
methods: {
scan:util.scan
2025-11-25 05:36:02 +08:00
}
};
2025-11-07 09:56:20 +08:00
</script>
2025-11-25 05:36:02 +08:00
<style lang="scss" scoped>
2025-12-11 22:33:31 +08:00
.workbench_page {
2025-11-27 07:40:32 +08:00
background-color: #ececec !important;
2025-11-25 05:36:02 +08:00
}
2026-01-11 13:51:16 +08:00
.avatargroup{
display: flex;
.u-avatar {
position: relative;
margin-left: -16px;
//border: 1px solid #333;
}
}
2025-11-25 05:36:02 +08:00
</style>