dever 4 năm trước cách đây
mục cha
commit
7d3ddacb67
4 tập tin đã thay đổi với 89 bổ sung1 xóa
  1. 69 0
      assets/manage/html/model.html
  2. 5 0
      database/model.php
  3. 1 1
      database/template.php
  4. 14 0
      template/manage/model.php

+ 69 - 0
assets/manage/html/model.html

@@ -0,0 +1,69 @@
+<style>
+.layui-col-md2
+{
+    height: 250px;
+    border:1px solid #bababa;
+    margin:5px;
+}
+.layui-table-cell
+{
+    padding: 0px 0px;
+}
+.layui-col-md2 .img
+{
+    text-align: center;overflow: hidden;text-align: center;
+}
+.price
+{
+    margin-top: -3px;
+    margin-bottom: -11px;
+}
+</style>
+<div class="layui-fluid layadmin-cmdlist-fluid">
+<!--
+  <ul class="layui-row layui-col-space30" id="sortable">
+    <li class="layui-col-md2 layui-col-sm4" id="data" style="">
+        <div class="cmdlist-container">
+            <div href="javascript:;" class="img" style="height: 154px;">
+              <img src="../../layuiadmin/style/res/template/portrait.png">
+            </div>
+            <a href="javascript:;" class="edit">
+              <div class="cmdlist-text" style="text-align:center;">
+                <p class="info">2018春夏季新款港味短款白色T恤+网纱中长款chic半身裙套装两件套</p>
+                <div class="price">
+                    <b></b>
+                </div>
+
+                <div class="text"></div>
+                
+
+                <div style="margin-top:10px;text-align:center;">
+                <div class="layui-table-cell"><a href="javascript:;" class="data_edit" onclick=""><button type="button" class="btn btn-info btn-rounded waves-effect waves-light m-b-5 layui-btn layui-btn-xs">内容</button></a>&nbsp;&nbsp;<a href="#" class="oper_delete"><button type="button" class="btn btn-info btn-rounded waves-effect waves-light m-b-5 layui-btn layui-btn-danger layui-btn-xs"><span class="am-icon-trash-o"></span>删除</button></a>&nbsp;&nbsp;</div>
+                </div>
+              </div>
+            </a>
+        </div>
+    </li>
+  </ul>
+-->
+</div>
+
+<script id="url">var url = ""</script>
+<script>
+  $( function() {
+    var sort = $( "#sortable" ).sortable({
+        opacity: 0.7,
+        stop:function(){
+          var arr = $( "#sortable" ).sortable('toArray');
+          arr = arr.join(',');
+          /*
+          $.post(url, {data:arr}, function()
+          {
+
+          })
+          */
+        }
+    });
+    $( "#sortable" ).disableSelection();
+  } );
+  </script>

+ 5 - 0
database/model.php

@@ -245,4 +245,9 @@ return array
 			'list'		=> 'date("Y-m-d H:i:s", {cdate})',
 		),
 	),
+
+	'manage' => array
+    (
+        'page_list_table' => 'model',
+    ),
 );

+ 1 - 1
database/template.php

@@ -174,7 +174,7 @@ return array
 		# 列表
 		'list_button' => array
 		(
-			'list' => array('模块', '"model&project=poster&search_option_template_id={id}&oper_parent=template&oper_project=poster"'),
+			'list' => array('模块', '"model&project=poster&search_option_template_id={id}&oper_parent=template&oper_project=poster&page_type=1"'),
 		),
 	),
 

+ 14 - 0
template/manage/model.php

@@ -0,0 +1,14 @@
+<?php
+
+/*
+|--------------------------------------------------------------------------
+| home
+|--------------------------------------------------------------------------
+ */
+$view
+
+->fetch('.layui-fluid@test', '公告')
+
+
+# display
+->display();