This commit is contained in:
toogee 2020-04-06 18:01:17 +08:00
parent 4005962590
commit 30dc7d629f
6 changed files with 10 additions and 15 deletions

View File

@ -7,11 +7,8 @@ use think\model\concern\SoftDelete;
class Message extends Model
{
use SoftDelete;
protected $pk = 'id'; //主键
protected $autoWriteTimestamp = true; //开启自动时间戳
protected $createTime = 'create_time';
protected $updateTime = 'update_time';
protected $deleteTime = 'delete_time';
protected $defaultSoftDelete = 0;
//用户关联评论
public function user()

View File

@ -7,11 +7,9 @@ use think\Db;
class MessageTo extends Model
{
protected $pk = 'id'; //主键
protected $autoWriteTimestamp = true; //开启自动时间戳
protected $createTime = 'create_time';
protected $updateTime = 'update_time';
use SoftDelete;
protected $deleteTime = 'delete_time';
protected $defaultSoftDelete = 0;
//用户关联评论
public function user()
{

View File

@ -213,7 +213,7 @@ layui.use('form', function(){
});
</script>
<script>
layui.cache.page = '';
layui.cache.page = 'jie';
layui.cache.user = {
username: '游客'
,uid: -1
@ -227,5 +227,6 @@ layui.use('form', function(){
}).extend({
fly: 'index'
}).use('fly');
});
</script>
{/block}

View File

@ -1,10 +1,8 @@
{extend name="public/base" /}
{block name="title"}{$article.title}-{$sysInfo.webname}{/block}
{block name="keywords"}{$article.title},{$article.tags}{/block}
{block name="description"}{$article.title},{:getArtContent($article.content)}{/block}
{block name="column"}{include file="/public/column" /}{/block}
{block name="column"}<div class="layui-hide-xs">{include file="/public/column" /}</div>{/block}
{block name="content"}
<div class="layui-container">
<div class="layui-row layui-col-space15">

View File

@ -226,7 +226,7 @@ layui.use('form', function(){
</script>
<script>
layui.cache.page = '';
layui.cache.page = 'jie';
layui.cache.user = {
username: '游客'
,uid: -1
@ -240,5 +240,6 @@ layui.use('form', function(){
}).extend({
fly: 'index'
}).use('fly');
});
</script>
{/block}

View File

@ -55,7 +55,7 @@
layer.open({
type: 1,
skin: 'layui-layer-rim', //加上边框
area: ['500px', '350px'], //宽高
area: ['400px', '350px'], //宽高
content: '<div class="layui-form" style="padding: 10px 20px 0 20px;"> '+ res.content +'</div>'
}),
othis.next().html('已读');