|
@@ -0,0 +1,178 @@
|
|
|
+<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: '4562', 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-top: 20rpx;
|
|
|
+ padding: 35rpx 20rpx 24rpx;
|
|
|
+ background: #ffffff;
|
|
|
+
|
|
|
+ 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 55rpx 20rpx 55rpx;
|
|
|
+ font-size: 28rpx;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #666666;
|
|
|
+ }
|
|
|
+ .fh-im {
|
|
|
+ margin: auto 42rpx;
|
|
|
+ .fh-img {
|
|
|
+ width: 200rpx;
|
|
|
+ height: 200rpx;
|
|
|
+ padding: 10rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .bot {
|
|
|
+ .del {
|
|
|
+ margin-left: 590rpx;
|
|
|
+ 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>
|