feat(common): 新增师傅头像URL处理类统一生成头像地址
- 新增MasterAvatar类统一处理师傅头像URL生成逻辑 - 替换所有分散的cdnurl调用为统一类方法 - 优化后台师傅详情页表格响应式布局 - 更新应用版本号至1.0.92
这个提交包含在:
@@ -272,7 +272,8 @@
|
||||
<div class="od-card-body">
|
||||
{if $row.master_id && $row.master}
|
||||
<div style="display:flex; align-items:center; gap:14px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #f1f5f9;">
|
||||
<img src="{$row.master.avatar|default='/assets/img/avatar.png'|htmlentities}" onerror="this.src='/assets/img/avatar.png'" style="width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #fed7aa;" />
|
||||
<?php $orderMasterAvatarUrl = \app\common\library\MasterAvatar::url($row['master']['avatar']); ?>
|
||||
<img src="{$orderMasterAvatarUrl|default='/assets/img/avatar.png'|htmlentities}" onerror="this.src='/assets/img/avatar.png'" style="width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #fed7aa;" />
|
||||
<div>
|
||||
<div style="font-size: 15px; font-weight: 700; color: #1e293b; display:flex; align-items:center; gap:8px;">
|
||||
<span>{$row.master.realname|htmlentities}</span>
|
||||
|
||||
在新工单中引用
屏蔽一个用户