| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- <template>
- <view class="content">
- <view class="main" v-for="(list, index) in lists" :key="index">
- <view class="main-userInfo">
- <view class="avatar">
- <image src="../../static/icon/fire.png" mode=""></image>
- </view>
- <view class="main-user-info">
- <view class="main-userName">{{list.nicheng}}</view>
- <view class="main-user-time">{{list.time}}</view>
- </view>
- <view class="fenxiang flex">
- <image class="img-lj" src="../../static/icon/lj.png"></image>
- <view class="wen-lj">{{list.zf}}</view>
- </view>
- </view>
- <view class="text">
- <view>{{list.content}}</view>
- </view>
- <view class="fh-im">
- <image v-for="item in 8" class="fh-img" src="../../static/img/sp.png" mode=""></image>
- </view>
- <view class="bot flex">
- <image class="del" src="../../static/icon/del.png" mode=""></image>
- <view @click="dele(index)" class="sc">删除</view>
- </view>
- </view>
- <navigator url="/pages/user/sucai">
- <button class="rele">发布素材</button>
- </navigator>
- <u-tabbar activeColor="#01A6A8" inactive-color='#666666' :list="tabbar"></u-tabbar>
- </view>
-
- </template>
- <script>
- import {
- article
- } from '@/api/user.js';
- import {
- reply_list
- } from '@/api/product.js';
- import {
- article_good,
- reply_good
- } from '@/api/activity.js';
- import {
- tabbar1
- } from '@/utils/tabbar.js'; //底部导航栏
- export default {
- data() {
- return {
- lists: [
- {nicheng: 'cccc', time: '202311.21', zf: '456212', content: '风平乐樱桃姜黄复合肽压片糖果套盒,轻松饱腹降'},
- {nicheng: 'bbbb', time: '202311.21', zf: '4562', content: '风平乐樱桃姜黄复合肽压片糖果套盒,轻松饱腹降'},
- {nicheng: 'aaaa', time: '202311.21', zf: '4562', content: '风平乐樱桃姜黄复合肽压片糖果套盒,轻松饱腹降'}
- ],
- tabbar: tabbar1,
- };
- },
- onLoad() {
-
- },
- onShow() {
- },
- onReachBottom() {},
-
- methods: {
- dele(index) {
- this.lists.splice(index, 1)
- },
- navTo(url) {
- uni.navigateTo({
- url
- });
- },
- }
- };
- </script>
- <style lang="scss">
- page,
- .content {
- min-height: 100%;
- height: auto;
- }
-
- .main {
- margin: 20rpx;
- padding: 35rpx 20rpx 24rpx;
- background: #ffffff;
- width: 702rpx;
- border-radius: 30rpx;
- image {
- width: 100%;
- height: 100%;
- }
- .main-userInfo {
- display: flex;
- align-items: center;
- .avatar {
- width: 80rpx;
- height: 80rpx;
- background: #ffffff;
- border-radius: 50%;
- }
- .main-user-info {
- margin-left: 14rpx;
- line-height: 1;
- .main-userName {
- font-size: 28rpx;
- font-weight: bold;
- color: #000000;
- }
- .main-user-time {
- margin-top: 14rpx;
- font-size: 21rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #666666;
- }
- }
- .fenxiang {
- padding-left: 310rpx;
- .img-lj {
- width: 28rpx;
- height: 28rpx;
- }
- .wen-lj {
- font-size: 28rpx;
- color: #FF6F0F;
- padding-left: 10rpx;
- }
- }
- }
- .text {
- word-wrap: break-word;
- word-break: normal;
- margin: 20rpx 0rpx;
- font-size: 28rpx;
- font-weight: 500;
- color: #666666;
- }
- .fh-im {
- .fh-img {
- // margin: auto 10rpx;
- margin: 10rpx 21rpx 0rpx 0rpx ;
- width: 200rpx;
- height: 200rpx;
- // padding: 10rpx;
- }
- }
- .bot {
- .del {
- margin-left: 540rpx;
- width: 24rpx;
- height: 28rpx;
- }
- .sc {
- padding-right: 40rpx;
- font-size: 24rpx;
- font-weight: 500;
- color: #FF4C4C;
- }
- }
- }
- .rele {
- width: 625rpx;
- height: 89rpx;
- background-color: #FF6F0F;
- color: #ffffff;
- border-radius: 15rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- margin: 40rpx auto;
- }
- </style>
|