Commit 97c43c70 authored by liwei's avatar liwei

修改了查看个人动态列表的样式

parent 4ae30353
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
<script> <script>
import {setUserProfile} from '../../api/login/index' import {setUserProfile} from '../../api/login/index'
import {noReadMessageAllCount, userDetail} from "../../api/user"; import {noReadMessageAllCount, userDetail} from "../../api/user";
import {articleList, getOssUrl} from "../../api/article"; import {articleList, getOssUrl, userArticleList} from "../../api/article";
export default { export default {
data() { data() {
return { return {
...@@ -290,7 +290,7 @@ import {articleList, getOssUrl} from "../../api/article"; ...@@ -290,7 +290,7 @@ import {articleList, getOssUrl} from "../../api/article";
page: 1, page: 1,
rows:1 rows:1
} }
articleList(params).then( res =>{ userArticleList(params).then( res =>{
if (res.data.data.length > 0){ if (res.data.data.length > 0){
this.articleInfo = res.data.data[0] this.articleInfo = res.data.data[0]
//处理图片 //处理图片
......
...@@ -86,18 +86,23 @@ ...@@ -86,18 +86,23 @@
</view> </view>
<view class="right"> <view class="right">
<!-- 右上角的三个点--> <u-tag v-if="info.examStatus === '0'" plain plainFill text="未审核" type="info"/>
<view v-if="info.isDelete" @click="showSelect(info)"> <u-tag v-if="info.examStatus === '1'" plain plainFill text="审核通过" type="success"/>
<text></text> <u-tag v-if="info.examStatus === '2' || info.examStatus === '3'" plain plainFill text="未通过" type="error"/>
<text></text>
<text></text>
</view>
</view> </view>
<!-- <view class="right">-->
<!-- 右上角的三个点-->
<!-- <view v-if="info.isDelete" @click="showSelect(info)">-->
<!-- <text></text>-->
<!-- <text></text>-->
<!-- <text></text>-->
<!-- </view>-->
<!-- </view>-->
<!-- 右上角三个点的选项--> <!-- 右上角三个点的选项-->
<u-action-sheet :actions="list" :closeOnClickOverlay="true" :safeAreaInsetBottom="true" cancelText="取消" <!-- <u-action-sheet :actions="list" :closeOnClickOverlay="true" :safeAreaInsetBottom="true" cancelText="取消"-->
@select="selectClick" @close="show = false" :show="show"></u-action-sheet> <!-- @select="selectClick" @close="show = false" :show="show"></u-action-sheet>-->
<!-- 登录弹窗--> <!-- 登录弹窗-->
<login @change="getToLogin" :isLoginPop="isLoginPop" class="my-select"></login> <!-- <login @change="getToLogin" :isLoginPop="isLoginPop" class="my-select"></login>-->
</view> </view>
</template> </template>
...@@ -392,19 +397,21 @@ ...@@ -392,19 +397,21 @@
} }
.right { .right {
view { position: absolute;
display: flex; right: 30rpx;
height: 30rpx; //view {
padding-top: 14rpx; // display: flex;
// height: 30rpx;
text { // padding-top: 14rpx;
width: 8rpx; //
height: 8rpx; // text {
background-color: #333; // width: 8rpx;
border-radius: 50%; // height: 8rpx;
margin-right: 6rpx; // background-color: #333;
} // border-radius: 50%;
} // margin-right: 6rpx;
// }
//}
} }
} }
......
<template> <template>
<view> <!-- z-paging是一个分页组件-->
<view style="height: 100%">
<u-navbar @leftClick="backbar" bgColor="#F4F5F9" :title="title"> </u-navbar> <u-navbar @leftClick="backbar" bgColor="#F4F5F9" :title="title"> </u-navbar>
<!-- z-paging是一个分页组件--> <z-paging ref="paging" v-model="dataList" @query="queryList" :fixed="true">
<view :style="{'top':navHeight+'px','height': '100vh','position': 'relative'}"> <view :style="{'margin-top':navHeight+'px'}">
<z-paging ref="paging" v-model="dataList" @query="queryList" :fixed="false">
<view v-for="(item,index) in dataList" :key="item.id"> <view v-for="(item,index) in dataList" :key="item.id">
<ItemVue :info="item" @praise="praise"/> <ItemVue :info="item" @praise="praise"/>
</view> </view>
</z-paging> </view>
</view> </z-paging>
</view> </view>
</template> </template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment