实名匿名

This commit is contained in:
花有清香月有阴
2022-01-07 19:05:11 +08:00
parent da16f39f4e
commit c241a5f995
3 changed files with 14 additions and 6 deletions

View File

@@ -1,12 +1,14 @@
<template>
<div class="userList">
<div v-if="data.votes && data.votes.length > 0">
<div v-if="data.votes && data.votes.length">
<div class="datas" v-for="(item, index) in data.votes" :key="index">
<div class="avatLeft">{{ item.userName.substring(item.userName.length, item.userName.length - 2) }}</div>
<div class="avatLeft" v-if="anonymous == 0">{{ item.userName.substring(item.userName.length, item.userName.length - 2) }}</div>
<img class="avatLeft" src="./img/user-img.png" alt="" />
<div class="right">
<div class="top">
<span class="names" v-if="anonymous && anonymous == 1">{{ item.userName }}</span>
<span class="names" v-if="anonymous && anonymous == 0">{{ item.userName }}</span>
<span v-else>匿名用户</span>
<span class="times">{{ item.createTime }}</span>