feat: tg/ws
This commit is contained in:
@@ -54,6 +54,18 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">WS/TG</label>
|
||||
<div class="layui-input-block">
|
||||
<select name="has_im">
|
||||
<option value="">全部</option>
|
||||
<option value="yes">有</option>
|
||||
<option value="whatsapp">有 WS</option>
|
||||
<option value="telegram">有 TG</option>
|
||||
<option value="none">无</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
<label class="layui-form-label">安装时间</label>
|
||||
<div class="layui-input-block">
|
||||
@@ -138,6 +150,12 @@ layui.use(['table', 'form', 'laydate', 'layer'], function () {
|
||||
}).join(' ');
|
||||
return '<span style="color:#d97706;font-weight:600;">有</span>' + (tags ? ' ' + tags : '');
|
||||
} },
|
||||
{ field: 'im_names', title: 'WS/TG', width: 140, templet: function (d) {
|
||||
var tags = [];
|
||||
if (Number(d.has_whatsapp) === 1) tags.push('<span class="tag-im tag-im-ws">WS</span>');
|
||||
if (Number(d.has_telegram) === 1) tags.push('<span class="tag-im tag-im-tg">TG</span>');
|
||||
return tags.length ? tags.join(' ') : '<span style="color:#94a3b8;">—</span>';
|
||||
} },
|
||||
{ field: 'album_storage', title: '相册存储', width: 110, templet: function (d) {
|
||||
var on = Number(d.album_storage) === 1;
|
||||
return '<input type="checkbox" lay-skin="switch" lay-text="开|关" lay-filter="LAY-device-album-list"' +
|
||||
@@ -200,6 +218,7 @@ layui.use(['table', 'form', 'laydate', 'layer'], function () {
|
||||
ip: '',
|
||||
ios: '',
|
||||
has_wallet: '',
|
||||
has_im: '',
|
||||
installed_from: '',
|
||||
installed_to: ''
|
||||
},
|
||||
|
||||
@@ -53,6 +53,21 @@
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>WS/TG</th>
|
||||
<td colspan="3">
|
||||
@if ($device->hasWhatsApp() || $device->hasTelegram())
|
||||
@if ($device->hasWhatsApp())
|
||||
<span class="tag-im tag-im-ws">WS</span>
|
||||
@endif
|
||||
@if ($device->hasTelegram())
|
||||
<span class="tag-im tag-im-tg">TG</span>
|
||||
@endif
|
||||
@else
|
||||
—
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>相册存储</th>
|
||||
<td colspan="3">
|
||||
|
||||
Reference in New Issue
Block a user