xxxrrrdddd il y a 3 ans
Parent
commit
c40d3989ad

+ 3 - 3
application/sub/controller/Order.php

@@ -18,9 +18,9 @@ class Order extends SubCommon
     protected $noNeedRight="*";
 
     public function mobile(){
-        $list=Mobile::
-            //where('s_id',$this->auth->id)
-            order('id','desc')
+        $list=Mobile::with(['info'])
+            ->where('s_id',$this->auth->id)
+            ->order('id','desc')
             ->paginate();
         $this->assign('list',$list);
         return view();

+ 13 - 17
application/sub/view/order/mobile.html

@@ -22,25 +22,14 @@
 </blockquote>
 <div class="layui-form news_list">
     <table class="layui-table">
-        <colgroup>
-            <col>
-            <col>
-            <col>
-            <col>
-            <col>
-            <col>
-            <col>
-            <col>
-        </colgroup>
         <thead>
         <tr>
-            <th><input type="checkbox" lay-skin="primary" lay-filter="allChoose" id="allChoose"></th>
-            <th>ID</th>
-            <th>手机号</th>
-            <th>审核状态</th>
-            <th>浏览权限</th>
-            <th>是否展示</th>
-            <th>发布时间</th>
+            <th width="10"><input type="checkbox" lay-skin="primary" lay-filter="allChoose" id="allChoose"></th>
+            <th width="20">ID</th>
+            <th width="100">手机号</th>
+            <th>网络</th>
+            <th>归属地</th>
+            <th width="100">套餐</th>
             <th>操作</th>
         </tr>
         </thead>
@@ -50,6 +39,13 @@
             <th><input type="checkbox" lay-skin="primary" lay-filter="allChoose" id="id-{$a.id}"></th>
             <td>{$a.id}</td>
             <td>{$a.no}</td>
+            <td>{$a.network}</td>
+            <td>{$a.province}/{$a.city}</td>
+            <td>{$a.info.describe}</td>
+            <td>
+                <a class="layui-btn layui-btn-mini"><i class="iconfont icon-edit"></i> 编辑</a>
+                <a class="layui-btn layui-btn-danger layui-btn-mini news_del"><i class="layui-icon">&#xe640;</i> 删除</a>
+            </td>
         </tr>
         {/foreach}
         </tbody>

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
public/assets/sub/layui/css/layui.css


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff