This commit is contained in:
toom1996
2025-07-30 18:53:12 +08:00
parent 7299dcb272
commit c8ca10660d
3 changed files with 26 additions and 30 deletions

View File

@ -1,3 +1,8 @@
<?php
$platforms = call_user_func(function () {
return json_encode(\App\Model\AppWebsiteConfig::query()->where('is_delete', 0)->get()->groupBy('id')->toArray());
});
?>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
@ -115,6 +120,7 @@
let $ = layui.$;
let common = layui.common;
let util = layui.util;
let platform = JSON.parse('<?= $platforms ?>')
// 表头参数
let cols = [
@ -123,6 +129,11 @@
}, {
title: "文章标题",
field: "title",
templet: function(d){
let domain = platform[d.platform][0]['app_domain']
console.log(domain)
return `<a href='//${domain}/news/${d.id}' target="_blank">` + d.title + '</a>';
},
}, {
field:'is_record', title: '是否收录', templet: function(d){
if(d.is_record == '0'){