feat: config新增默认用户头像以及默认背景配置,修复查看订单报错无权限bug

This commit is contained in:
lemon橪
2023-01-12 18:12:35 +08:00
parent 2c494ac0d1
commit c919b1463c
8 changed files with 31 additions and 12 deletions

View File

@@ -4,7 +4,7 @@
<view v-if="assembleOrder.length != 0">
<view class="group-item" v-for="(order, index) in assembleOrder" :key="index">
<view class="group-item-user">
<u-image shape="circle" width="40px" height="40px" :src="order.face"></u-image>
<u-image shape="circle" width="40px" height="40px" :src="order.face || userImage"></u-image>
<span class="group-item-name">{{ order.nickName | noPassByName }}</span>
</view>
<view>
@@ -25,9 +25,13 @@
<script>
import * as API_Promotions from "@/api/promotions";
import configs from '@/config/config'
export default {
data() {
return {
configs,
userImage:configs.defaultUserPhoto,
customStyle: {
background: this.$lightColor,
color: "#fff",