v6:名册联系信息对齐 vCard + 头像与裁剪四项修正
- ① 头像上传失败(超限/非图片)不再挡保存,改为 flash 提示「已加进名册。头像没有保存:…」 ——这是「添加不了」的真根因(错误被塞进 errors.avatar 把整条新增打回) - ② 表单顺序:生日整块下移(身份证能读出生日时无需常改) - ③ 裁剪缩放语义反转:框在屏幕上的位置与大小不动、动它底下的图; 落库归一化矩形随倍率缩小(放大=同一块区域看得更清楚) - ④ 取消应用层 5MB 兆数上限;按像素动态上调 memory_limit(px*6+64M,封顶 768M); 头像输出恒为 512x512 - ⑤ 成员信息对齐 vCard:person_contacts 表(phone/email/address/url 可多行, value 加密落库)+ persons.org(工作单位)/title(职务职称);均可留空 Schema v5→v6:person_contacts 建表 + persons.org/title 加列
This commit is contained in:
@@ -157,6 +157,12 @@ $shortKind = ['id' => '身份证生日', 'solar' => '阳历生日', 'lunar' =
|
||||
<dt>手机号</dt>
|
||||
<dd class="mono"><?= e(\App\Crypto::maskPhone((string)($p['phone_encrypted'] ?? ''))) ?></dd>
|
||||
</div>
|
||||
<?php foreach (($contacts['phone'] ?? []) as $r): ?>
|
||||
<div class="kv-row">
|
||||
<dt>电话<?= (string)$r['label'] !== '' ? '(' . e((string)$r['label']) . ')' : '' ?></dt>
|
||||
<dd class="mono"><?= e(\App\Crypto::maskPhone((string)$r['value'])) ?></dd>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<div class="kv-row">
|
||||
<dt>身份证号</dt>
|
||||
<dd class="mono"><?= e(\App\Crypto::maskIdCard((string)($p['id_card_encrypted'] ?? ''))) ?></dd>
|
||||
@@ -164,9 +170,33 @@ $shortKind = ['id' => '身份证生日', 'solar' => '阳历生日', 'lunar' =
|
||||
<?php if (!empty($p['email'])): ?>
|
||||
<div class="kv-row"><dt>邮箱</dt><dd><?= e($p['email']) ?></dd></div>
|
||||
<?php endif; ?>
|
||||
<?php foreach (($contacts['email'] ?? []) as $r): ?>
|
||||
<div class="kv-row">
|
||||
<dt>邮箱<?= (string)$r['label'] !== '' ? '(' . e((string)$r['label']) . ')' : '' ?></dt>
|
||||
<dd><?= e((string)$r['value']) ?></dd>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php if (!empty($p['org']) || !empty($p['title'])): ?>
|
||||
<div class="kv-row">
|
||||
<dt>工作</dt>
|
||||
<dd><?= e(trim((string)$p['org'] . (($p['org'] ?? '') !== '' && ($p['title'] ?? '') !== '' ? ' · ' : '') . (string)$p['title'])) ?></dd>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($p['address'])): ?>
|
||||
<div class="kv-row"><dt>住址</dt><dd><?= e($p['address']) ?></dd></div>
|
||||
<?php endif; ?>
|
||||
<?php foreach (($contacts['address'] ?? []) as $r): ?>
|
||||
<div class="kv-row">
|
||||
<dt>地址<?= (string)$r['label'] !== '' ? '(' . e((string)$r['label']) . ')' : '' ?></dt>
|
||||
<dd><?= e((string)$r['value']) ?></dd>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php foreach (($contacts['url'] ?? []) as $r): ?>
|
||||
<div class="kv-row">
|
||||
<dt>网址<?= (string)$r['label'] !== '' ? '(' . e((string)$r['label']) . ')' : '' ?></dt>
|
||||
<dd class="mono"><?= e((string)$r['value']) ?></dd>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php if (!empty($p['note'])): ?>
|
||||
<div class="kv-row"><dt>备注</dt><dd><?= nl2br(e($p['note'])) ?></dd></div>
|
||||
<?php endif; ?>
|
||||
|
||||
Reference in New Issue
Block a user