123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- <template>
- <view class="interactive-center flex-common-css">
- <Nav :titleColor="'#000'" :title="'互动中心'"></Nav>
- <scroll-view :scroll-y="true" class="list-scroll" @scroll="scroll" @scrolltolower="scrolltolower">
- <view class="info-list-box" v-for="(item,index) in dataList" :key="index">
- <view class="info-name">
- <view class="info-name-left">
- <image class="info-name-left-img sys-radius-round" :src="item.img" mode="">
- </image>
- <view class="info-name-text">
- <view class="sys-size-32 sys-weight-600 sys-color-black">
- {{item.name}}
- </view>
- <view class="sys-size-24 sys-color-gray-9">
- 点赞了你的动态
- </view>
- </view>
- </view>
- <view class="sys-size-28 sys-weight-600 sys-radius-200" @click="selectLike"
- :class="item.likeStyle == 1?'info-name-right sys-color-black':'info-name-right-two sys-color-gray-9'">
- {{item.likeStyle == 1?'喜欢Ta':'已喜欢'}}
- </view>
- </view>
- <view class="info-text sys-size-28 sys-color-black">
- {{item.text}}
- </view>
- <view class="info-time">
- <view class="info-time-left">
- <image class="info-time-left-img sys-radius-4" :src="item.imgTwo" mode=""></image>
- <view class="sys-color-gray-9 sys-size-24">
- 你发布的动态
- </view>
- </view>
- <view class="info-time-right sys-color-gray-9 sys-size-24">
- {{item.time}}
- </view>
- </view>
- </view>
- </scroll-view>
- </view>
- </template>
- <script>
- export default {
- components: {},
- data() {
- return {
- dataList: [{
- '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': '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',
- }, {
- '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',
- }, {
- '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() {},
- selectLike() {},
- },
- }
- </script>
- <style lang="scss" scoped>
- .interactive-center {
- .list-scroll {
- width: 100%;
- flex: 1;
- overflow: auto;
- padding: 44rpx 32rpx 0;
- box-sizing: border-box;
- .info-list-box {
- width: 100%;
- height: auto;
- display: flex;
- flex-direction: column;
- padding: 0 0 32rpx 0;
- border-bottom: 1rpx solid #F2F2F2;
- margin: 0 0 32rpx 0;
- .info-name {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin: 0 0 34rpx 0;
- .info-name-left {
- display: flex;
- align-items: center;
- .info-name-left-img {
- width: 80rpx;
- height: 80rpx;
- margin: 0 20rpx 0 0;
- }
- .info-name-text {
- .user-name {
- margin: 0 0 8rpx 0;
- }
- }
- }
- .info-name-right {
- padding: 6rpx 16rpx;
- border: 2rpx solid #141414;
- }
- .info-name-right-two {
- padding: 6rpx 16rpx;
- border: 2rpx solid #999;
- }
- }
- .info-text {
- margin: 0 0 32rpx 0;
- }
- .info-time {
- display: flex;
- align-items: center;
- justify-content: space-between;
- .info-time-left {
- display: flex;
- align-items: center;
- .info-time-left-img {
- width: 48rpx;
- height: 48rpx;
- margin: 0 12rpx 0 0;
- }
- }
- }
- }
- }
- }
- </style>
|