fix(member/index.vue): 会员头像和是否默认地址不显示问题修复

This commit is contained in:
郝先瑞
2022-01-13 00:04:34 +08:00
parent 5e4708e32f
commit 7f5dd0f259

View File

@@ -43,7 +43,7 @@
</el-table-column> </el-table-column>
<el-table-column align="center" label="邮编" prop="zipCode"/> <el-table-column align="center" label="邮编" prop="zipCode"/>
<el-table-column align="center" label="是否默认"> <el-table-column align="center" label="是否默认">
<template slot-scope="scope"> <template #default="scope">
<el-tag v-if="scope.row.defaulted==1" type="success"></el-tag> <el-tag v-if="scope.row.defaulted==1" type="success"></el-tag>
<el-tag v-if="scope.row.defaulted==0" type="info"></el-tag> <el-tag v-if="scope.row.defaulted==0" type="info"></el-tag>
</template> </template>
@@ -65,10 +65,12 @@
<template #default="scope"> <template #default="scope">
<el-popover <el-popover
placement="right" placement="right"
:width="400"
trigger="hover"> trigger="hover">
<img :src="scope.row.avatarUrl"/> <img :src="scope.row.avatarUrl" width="400" height="400"/>
<img slot="reference" :src="scope.row.avatarUrl" :alt="scope.row.avatarUrl" <template #reference>
style="max-height: 60px;max-width: 60px"> <img :src="scope.row.avatarUrl" style="max-height: 60px;max-width: 60px"/>
</template>
</el-popover> </el-popover>
</template> </template>
</el-table-column> </el-table-column>
@@ -83,7 +85,7 @@
<el-table-column prop="gmtCreate" label="注册时间"/> <el-table-column prop="gmtCreate" label="注册时间"/>
<el-table-column label="账户余额" width="80"> <el-table-column label="账户余额">
<template #default="scope"> <template #default="scope">
{{ scope.row.balance / 100 }} {{ scope.row.balance / 100 }}
</template> </template>