首页问答样式

This commit is contained in:
zhaofang
2022-11-10 10:54:06 +08:00
parent 6f961650d2
commit c2d28bea3b
3 changed files with 68 additions and 31 deletions

View File

@@ -1,8 +1,8 @@
<template>
<view class="item-author" style="display: flex;">
<view>
<u-avatar shape="circle" v-if="data.avatar && data.avatar!=''" :size="25" :src="data.avatar"></u-avatar>
<view v-else :size="25" :sex="data.sex" random-bg-color >
<u-avatar shape="circle" v-if="data.avatar && data.avatar!=''" :size="20" :src="data.avatar"></u-avatar>
<view v-else :size="20" :sex="data.sex" random-bg-color >
<view v-if="data.sex == null" class="peo"></view>
<view v-else>
<view class="peo" v-if="data.sex === 1 "><image src="../../static/images/man.png" alt=""></view>
@@ -13,7 +13,7 @@
<!-- <view v-else class="uavatar"><view class="uavatar-scale"> {{avatarText}}</view></view> -->
<!-- <u-avatar v-else :size="25" icon="account" shape="square"></u-avatar> -->
</view>
<view style="padding-left:10upx;padding-top: 4upx;font-size: 26upx;color: #666666;">{{data.name || data.sysCreateBy}}</view>
<view style="padding-left:10upx;padding-top: 4upx;font-size: 28upx;color: #666666;">{{data.name || data.sysCreateBy}}</view>
<!-- <view v-if="showCode && data.code!=''" style="padding-left: 10upx;padding-top: 10upx;">({{data.code}})</view> -->
</view>
</template>