123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- <template>
- <view class="follow-topic flex-common-css">
- <Nav :titleColor="'#000'" :title="'关注的话题'"></Nav>
- <scroll-view :scroll-y="true" class="list-scroll" @scroll="scroll" @scrolltolower="scrolltolower">
- <view class="topic-list-box" v-for="(item,index) in dataList" :key="index">
- <view class="topic-list-left">
- <image class="topic-list-left-img sys-radius-12" :src="item.img" mode=""></image>
- <view class="topic-list-left-text">
- <view class="topic-list-left-name sys-size-32 sys-color-black">
- # {{item.name}}
- </view>
- <view class="topic-list-left-info sys-size-24 sys-color-gray-9">
- {{item.num}}条动态
- </view>
- </view>
- </view>
- <view class="topic-list-right sys-background-F2F2F2 sys-radius-round" @click="goToTopic(item.id)">
- <uni-icons type="right" size="15" color="#999999"></uni-icons>
- </view>
- </view>
- </scroll-view>
- </view>
- </template>
- <script>
- export default {
- components: {},
- data() {
- return {
- dataList: [{
- 'img': '/static/img/login/2.jpg',
- 'name': '嘿,我在我在我在我在我...',
- 'num': '1.5w',
- 'time': '04-13 06:03:56',
- 'id': '1',
- 'likeStyle': '1',
- }, {
- 'img': '/static/img/temporary/1.png',
- 'name': 'wwwwww',
- 'text': '今天手机好像撞邪了,拦都拦不住硬要给你打招呼~',
- 'imgTwo': '/static/img/temporary/1.png',
- 'time': '04-13 06:03:56',
- 'likeStyle': '1',
- }, {
- 'img': '/static/img/temporary/1.png',
- 'name': 'wwwwww',
- 'text': '今天手机好像撞邪了,拦都拦不住硬要给你打招呼~',
- 'imgTwo': '/static/img/temporary/1.png',
- 'time': '04-13 06:03:56',
- 'likeStyle': '2',
- }, {
- 'img': '/static/img/temporary/1.png',
- 'name': 'wwwwww',
- 'text': '今天手机好像撞邪了,拦都拦不住硬要给你打招呼~',
- 'imgTwo': '/static/img/temporary/1.png',
- 'time': '04-13 06:03:56',
- 'likeStyle': '2',
- }],
- };
- },
- mounted() {},
- methods: {
- scroll() {},
- scrolltolower() {},
- goToTopic(id) {
- console.log(id);
- uni.navigateTo({
- url: '/pages/circle/topic'
- });
- },
- },
- }
- </script>
- <style lang="scss" scoped>
- .follow-topic {
- .list-scroll {
- width: 100%;
- flex: 1;
- overflow: auto;
- padding: 32rpx 40rpx 0 32rpx;
- box-sizing: border-box;
- display: flex;
- flex-direction: column;
- .topic-list-box {
- width: 100%;
- height: auto;
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin: 0 0 40rpx 0;
- .topic-list-left {
- display: flex;
- align-items: center;
- .topic-list-left-img {
- width: 112rpx;
- height: 112rpx;
- margin: 0 20rpx 0 0;
- }
- .topic-list-left-text {
- .topic-list-left-name {
- margin: 0 0 8rpx 0;
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- word-break: break-all;
- }
- .topic-list-left-info {}
- }
- }
- .topic-list-right {
- width: 52rpx;
- height: 52rpx;
- display: flex;
- flex-direction: column;
- align-items: center;
- line-height: 52rpx;
- }
- }
- }
- }
- </style>
|