wupengfei 2 years ago
parent
commit
ba031b7811
2 changed files with 4 additions and 5 deletions
  1. 1 2
      .idea/workspace.xml
  2. 3 3
      application/operate/view/press_comment/index.html

+ 1 - 2
.idea/workspace.xml

@@ -3,7 +3,6 @@
   <component name="ChangeListManager">
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/operate/controller/PressComment.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/controller/PressComment.php" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/application/operate/view/press_comment/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/view/press_comment/index.html" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
@@ -216,7 +215,7 @@
       <workItem from="1673052319155" duration="16867000" />
       <workItem from="1673226266250" duration="24113000" />
       <workItem from="1673312216057" duration="9503000" />
-      <workItem from="1673399011843" duration="8796000" />
+      <workItem from="1673399011843" duration="8846000" />
     </task>
     <servers />
   </component>

+ 3 - 3
application/operate/view/press_comment/index.html

@@ -27,10 +27,10 @@
             <td class='text-left '>{$vo.content|default=''}</td>
             <td class='text-left nowrap'>{$vo.create_at|default=''}</td>
             <td class='text-left' style="width: 20%">
-                {if isset($vo.status) and $vo.status eq 1}
-                <a class="layui-btn layui-btn-sm" data-action="{:url('stick')}" data-value="id#{$vo.id};is_top#0">取消置顶</a>
+                {if isset($vo.is_top) and $vo.is_top eq 1}
+                <a class="layui-btn layui-btn-xs" data-action="{:url('stick')}" data-value="id#{$vo.id};is_top#0">取消置顶</a>
                 {else}
-                <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('stick')}" data-value="id#{$vo.id};is_top#1">置 顶</a>
+                <a class="layui-btn layui-btn-xs layui-btn-warm" data-action="{:url('stick')}" data-value="id#{$vo.id};is_top#1">置 顶</a>
                 {/if}
                 <a data-title="回 复" class="layui-btn layui-btn-xs" data-modal='{:url("reply")}?id={$vo.id}'>回 复</a>
                 <span class="layui-btn layui-btn-xs layui-btn-danger" onclick="btn_confirm('删除','del','{$vo.id}');">删 除</span>