作者 郭盛
1 个管道 的构建 通过 耗费 10 秒

添加家政订单管理,以及判断用户身份接口

... ... @@ -2,12 +2,11 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="0011664b-87e9-41bd-9f37-18792fb15777" name="Default" comment="">
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/public/themes/admin_simpleboot3/admin/shoporder/edit.html" />
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/app/admin/controller/SubhomeController.php" />
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/public/themes/admin_simpleboot3/admin/subhome/index.html" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/admin/controller/ShoporderController.php" afterPath="$PROJECT_DIR$/app/admin/controller/ShoporderController.php" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/public/themes/admin_simpleboot3/admin/shoporder/index.html" afterPath="$PROJECT_DIR$/public/themes/admin_simpleboot3/admin/shoporder/index.html" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/public/themes/admin_simpleboot3/admin/subscribe/detail.html" afterPath="$PROJECT_DIR$/public/themes/admin_simpleboot3/admin/subscribe/detail.html" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/public/themes/admin_simpleboot3/admin/subscribe/index.html" afterPath="$PROJECT_DIR$/public/themes/admin_simpleboot3/admin/subscribe/index.html" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/api/index/controller/UserController.php" afterPath="$PROJECT_DIR$/api/index/controller/UserController.php" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/data/lang/zh-cn/admin_menu.php" afterPath="$PROJECT_DIR$/data/lang/zh-cn/admin_menu.php" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="TRACKING_ENABLED" value="true" />
... ... @@ -28,7 +27,47 @@
<select />
</component>
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300" />
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file leaf-file-name="UserController.php" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/api/index/controller/UserController.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="258">
<caret line="140" column="0" lean-forward="true" selection-start-line="140" selection-start-column="0" selection-end-line="140" selection-end-column="0" />
<folding>
<element signature="e#345#694#0#PHP" expanded="false" />
<element signature="e#699#1464#0#PHP" expanded="false" />
<element signature="e#1470#1699#0#PHP" expanded="false" />
<element signature="e#1704#3337#0#PHP" expanded="false" />
<element signature="e#3343#3576#0#PHP" expanded="false" />
<element signature="e#3581#3829#0#PHP" expanded="false" />
<element signature="e#3835#4182#0#PHP" expanded="false" />
<element signature="e#4187#4633#0#PHP" expanded="false" />
<element signature="e#4639#4899#0#PHP" expanded="false" />
<element signature="e#4904#5105#0#PHP" expanded="false" />
<element signature="e#5111#5373#0#PHP" expanded="false" />
<element signature="e#5378#5583#0#PHP" expanded="false" />
<element signature="e#5589#6031#0#PHP" expanded="false" />
<element signature="e#6036#7264#0#PHP" expanded="false" />
<element signature="e#7287#7832#0#PHP" expanded="false" />
<element signature="e#7838#8119#0#PHP" expanded="false" />
<element signature="e#8124#8516#0#PHP" expanded="false" />
<element signature="e#8522#9074#0#PHP" expanded="false" />
<element signature="e#9079#10437#0#PHP" expanded="false" />
<element signature="e#10443#10900#0#PHP" expanded="false" />
<element signature="e#10905#12168#0#PHP" expanded="false" />
<element signature="e#12191#12543#0#PHP" expanded="false" />
<element signature="e#12549#13233#0#PHP" expanded="false" />
<element signature="e#13238#14497#0#PHP" expanded="false" />
<element signature="e#14503#14965#0#PHP" expanded="false" />
<element signature="e#14970#17175#0#PHP" expanded="false" />
<element signature="e#17181#17790#0#PHP" expanded="false" />
<element signature="e#17795#19128#0#PHP" expanded="false" />
</folding>
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES">
... ... @@ -48,8 +87,6 @@
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/app/index/controller/RecycleController.php" />
<option value="$PROJECT_DIR$/app/index/controller/ShopgoodsController.php" />
<option value="$PROJECT_DIR$/public/themes/simpleboot3/index/user/login.html" />
<option value="$PROJECT_DIR$/app/index/controller/UserController.php" />
<option value="$PROJECT_DIR$/public/themes/admin_simpleboot3/admin/project/addlist.html" />
... ... @@ -88,7 +125,6 @@
<option value="$PROJECT_DIR$/api/index/controller/HomeController.php" />
<option value="$PROJECT_DIR$/simplewind/cmf/controller/RestBaseController.php" />
<option value="$PROJECT_DIR$/api/index/controller/SubscribeController.php" />
<option value="$PROJECT_DIR$/api/index/controller/UserController.php" />
<option value="$PROJECT_DIR$/app/user/controller/AdminIndexController.php" />
<option value="$PROJECT_DIR$/public/themes/admin_simpleboot3/user/admin_index/index.html" />
<option value="$PROJECT_DIR$/app/admin/controller/UserController.php" />
... ... @@ -99,6 +135,9 @@
<option value="$PROJECT_DIR$/public/themes/admin_simpleboot3/admin/subscribe/index.html" />
<option value="$PROJECT_DIR$/app/admin/controller/SubscribeController.php" />
<option value="$PROJECT_DIR$/public/themes/admin_simpleboot3/admin/subscribe/detail.html" />
<option value="$PROJECT_DIR$/app/admin/controller/SubhomeController.php" />
<option value="$PROJECT_DIR$/public/themes/admin_simpleboot3/admin/subhome/index.html" />
<option value="$PROJECT_DIR$/api/index/controller/UserController.php" />
</list>
</option>
</component>
... ... @@ -117,10 +156,10 @@
</component>
<component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />
<component name="ProjectFrameBounds">
<option name="x" value="374" />
<option name="y" value="105" />
<option name="x" value="344" />
<option name="y" value="130" />
<option name="width" value="1582" />
<option name="height" value="972" />
<option name="height" value="969" />
</component>
<component name="ProjectView">
<navigator currentView="ProjectPane" proportions="" version="1">
... ... @@ -149,47 +188,21 @@
<path>
<item name="scrap" type="b2602c69:ProjectViewProjectNode" />
<item name="scrap" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="app" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="api" type="2a2b976b:PhpTreeStructureProvider$1" />
</path>
<path>
<item name="scrap" type="b2602c69:ProjectViewProjectNode" />
<item name="scrap" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="app" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="admin" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="api" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="index" type="2a2b976b:PhpTreeStructureProvider$1" />
</path>
<path>
<item name="scrap" type="b2602c69:ProjectViewProjectNode" />
<item name="scrap" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="app" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="admin" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="api" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="index" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="controller" type="2a2b976b:PhpTreeStructureProvider$1" />
</path>
<path>
<item name="scrap" type="b2602c69:ProjectViewProjectNode" />
<item name="scrap" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="public" type="2a2b976b:PhpTreeStructureProvider$1" />
</path>
<path>
<item name="scrap" type="b2602c69:ProjectViewProjectNode" />
<item name="scrap" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="public" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="themes" type="2a2b976b:PhpTreeStructureProvider$1" />
</path>
<path>
<item name="scrap" type="b2602c69:ProjectViewProjectNode" />
<item name="scrap" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="public" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="themes" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="admin_simpleboot3" type="2a2b976b:PhpTreeStructureProvider$1" />
</path>
<path>
<item name="scrap" type="b2602c69:ProjectViewProjectNode" />
<item name="scrap" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="public" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="themes" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="admin_simpleboot3" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="admin" type="2a2b976b:PhpTreeStructureProvider$1" />
</path>
</expand>
<select />
</subPane>
... ... @@ -284,17 +297,18 @@
<workItem from="1574930017327" duration="7716000" />
<workItem from="1574986868818" duration="22318000" />
<workItem from="1575016153150" duration="3315000" />
<workItem from="1575246616478" duration="12412000" />
<workItem from="1575246616478" duration="17099000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="393753000" />
<option name="totallyTimeSpent" value="398440000" />
</component>
<component name="ToolWindowManager">
<frame x="374" y="105" width="1582" height="972" extended-state="0" />
<frame x="344" y="130" width="1582" height="969" extended-state="0" />
<editor active="true" />
<layout>
<window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.19250986" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.19250986" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32982457" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
... ... @@ -340,26 +354,11 @@
</component>
<component name="XDebuggerManager">
<breakpoint-manager>
<option name="time" value="9" />
<option name="time" value="10" />
</breakpoint-manager>
<watches-manager />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/public/index.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/public/info.php" />
<entry file="file://$PROJECT_DIR$/public/plugins/qiniu/QiniuPlugin.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-234">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/public/plugins/qiniu/lib/Qiniu.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
... ... @@ -500,13 +499,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/api/index/controller/OrderController.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="242">
<caret line="34" column="7" lean-forward="false" selection-start-line="34" selection-start-column="7" selection-end-line="34" selection-end-column="7" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/api/index/controller/PayController.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="117">
... ... @@ -632,13 +624,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/api/index/controller/UserController.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="450">
<caret line="84" column="0" lean-forward="false" selection-start-line="84" selection-start-column="0" selection-end-line="85" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/api/index/controller/RecycleController.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="579">
... ... @@ -686,25 +671,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/admin/controller/ShoporderController.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="325">
<caret line="99" column="5" lean-forward="true" selection-start-line="99" selection-start-column="5" selection-end-line="99" selection-end-column="5" />
<folding>
<element signature="e#265#1638#0#PHP" expanded="false" />
<element signature="e#1655#3595#0#PHP" expanded="false" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/public/themes/admin_simpleboot3/admin/shoporder/index.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="514">
<caret line="55" column="36" lean-forward="false" selection-start-line="55" selection-start-column="36" selection-end-line="55" selection-end-column="36" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/public/themes/admin_simpleboot3/admin/shoporder/edit.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="639">
... ... @@ -748,5 +714,96 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/admin/controller/HomePicController.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/admin/controller/ShoporderController.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="250">
<caret line="17" column="4" lean-forward="true" selection-start-line="17" selection-start-column="4" selection-end-line="99" selection-end-column="5" />
<folding>
<element signature="e#265#1638#0#PHP" expanded="false" />
<element signature="e#1655#3595#0#PHP" expanded="false" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/public/themes/admin_simpleboot3/admin/shoporder/index.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="289">
<caret line="46" column="38" lean-forward="true" selection-start-line="0" selection-start-column="0" selection-end-line="69" selection-end-column="7" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/public/themes/admin_simpleboot3/admin/subhome/index.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="100">
<caret line="43" column="44" lean-forward="true" selection-start-line="43" selection-start-column="44" selection-end-line="43" selection-end-column="44" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/admin/controller/SubhomeController.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="332">
<caret line="37" column="49" lean-forward="false" selection-start-line="37" selection-start-column="39" selection-end-line="37" selection-end-column="49" />
<folding>
<element signature="e#130#169#0#PHP" expanded="true" />
<element signature="e#1669#3609#0#PHP" expanded="false" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/api/index/controller/OrderController.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="375">
<caret line="23" column="33" lean-forward="true" selection-start-line="23" selection-start-column="33" selection-end-line="23" selection-end-column="33" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/api/index/controller/UserController.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="258">
<caret line="140" column="0" lean-forward="true" selection-start-line="140" selection-start-column="0" selection-end-line="140" selection-end-column="0" />
<folding>
<element signature="e#345#694#0#PHP" expanded="false" />
<element signature="e#699#1464#0#PHP" expanded="false" />
<element signature="e#1470#1699#0#PHP" expanded="false" />
<element signature="e#1704#3337#0#PHP" expanded="false" />
<element signature="e#3343#3576#0#PHP" expanded="false" />
<element signature="e#3581#3829#0#PHP" expanded="false" />
<element signature="e#3835#4182#0#PHP" expanded="false" />
<element signature="e#4187#4633#0#PHP" expanded="false" />
<element signature="e#4639#4899#0#PHP" expanded="false" />
<element signature="e#4904#5105#0#PHP" expanded="false" />
<element signature="e#5111#5373#0#PHP" expanded="false" />
<element signature="e#5378#5583#0#PHP" expanded="false" />
<element signature="e#5589#6031#0#PHP" expanded="false" />
<element signature="e#6036#7264#0#PHP" expanded="false" />
<element signature="e#7287#7832#0#PHP" expanded="false" />
<element signature="e#7838#8119#0#PHP" expanded="false" />
<element signature="e#8124#8516#0#PHP" expanded="false" />
<element signature="e#8522#9074#0#PHP" expanded="false" />
<element signature="e#9079#10437#0#PHP" expanded="false" />
<element signature="e#10443#10900#0#PHP" expanded="false" />
<element signature="e#10905#12168#0#PHP" expanded="false" />
<element signature="e#12191#12543#0#PHP" expanded="false" />
<element signature="e#12549#13233#0#PHP" expanded="false" />
<element signature="e#13238#14497#0#PHP" expanded="false" />
<element signature="e#14503#14965#0#PHP" expanded="false" />
<element signature="e#14970#17175#0#PHP" expanded="false" />
<element signature="e#17181#17790#0#PHP" expanded="false" />
<element signature="e#17795#19128#0#PHP" expanded="false" />
</folding>
</state>
</provider>
</entry>
</component>
</project>
\ No newline at end of file
... ...
... ... @@ -119,6 +119,27 @@ class UserController extends RestBaseController
}
/**
* @title 判断用户身份
* @description 接口说明
* @author Guosheng
* @url /index/User/judge
* @method POST
*
* @header name:XX-Token require:1 default: desc:token
*
* @return is_set:0否 1是
*/
public function judge()
{
$user_id = $this->getUserId();
$data = Db::name('user')
->where('id',$user_id)
->field('id,is_set')
->find();
$this->success('success',$data['is_set']);
}
/**
* @title 我的首页
* @description 接口说明
* @author Guosheng
... ... @@ -585,4 +606,6 @@ class UserController extends RestBaseController
}
\ No newline at end of file
... ...
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2019/12/2
* Time: 14:58
*/
namespace app\admin\controller;
use cmf\controller\AdminBaseController;
use think\Db;
class SubhomeController extends AdminBaseController
{
public function index()
{
$where['a.delete_time'] = ['eq',0];
$param = $this->request->param();
$startTime = empty($param['start_time']) ? '' : strtotime($param['start_time']);
$endTime = empty($param['end_time']) ? '' : (strtotime($param['end_time']));
if (!empty($startTime) && !empty($endTime)) {
$where['a.create_time'] = [['>= time', $startTime], ['<= time', $endTime]];
} else {
if (!empty($startTime)) {
$where['a.create_time'] = ['>= time', $startTime];
}
if (!empty($endTime)) {
$where['a.create_time'] = ['<= time', $endTime];
}
}
$data = Db::name('subhome')
->alias('a')
->join('home r','a.home_id = r.id')
->join('user u','a.user_id = u.id')
->join('service s','a.service_id = s.id')
->field('a.*,r.home_name,s.sever_name,u.user_nickname')
->where($where)
->order('a.id desc')
->paginate(10);
$list=$data->items();
$this->assign('start_time', isset($param['start_time']) ? $param['start_time'] : '');
$this->assign('end_time', isset($param['end_time']) ? $param['end_time'] : '');
$this->assign([
'data'=>$list,
'page'=>$data->render(),
]);
return $this->fetch();
}
//订单详情
public function edit()
{
$id = $this->request->param('id');
if($this->request->isPost()){
$param = $this->request->param();
if($param['status'] == 2){
if(empty($param['express_num'])){
$this->error('请填写快递单号');
}
}
if(!empty($param['express_num'])){
if(empty($param['status'] == 1)){
$this->error('请正确填写发货状态');
}
}
if($param['status'] == 2 && empty($param['express_num'])){
Db::name('shoporder')
->where('id',$id)
->update($param);
Db::name('shoporder')
->where('id',$id)
->update(['orderstatus'=>2]);
$this->success('更新成功!');
}else{
Db::name('shoporder')
->where('id',$id)
->update($param);
$this->success('更新成功!');
}
}else{
$param = $this->request->param();
$data = Db::name('shoporder')
->alias('a')
->join('shopgoods r','a.shopgoods_id = r.id')
->join('user u','a.user_id = u.id')
->field('a.*,r.goods_name,r.price,r.freight,u.user_nickname')
->where('a.id',$id)
->find();
$address = Db::name('shoprecycle')->where('id',$data['recycle_id'])->find();
$data['name'] = $address['name'];
$data['phone'] = $address['phone'];
$data['address'] = $address['address'];
$this->assign('start_time', isset($param['start_time']) ? $param['start_time'] : '');
$this->assign('end_time', isset($param['end_time']) ? $param['end_time'] : '');
$this->assign('data',$data);
return $this->fetch();
}
}
}
\ No newline at end of file
... ...
... ... @@ -116,6 +116,7 @@ return array (
'ADMIN_SLIDEITEM_LISTORDER' => '幻灯片页面排序',
'ADMIN_STORAGE_INDEX' => '文件存储',
'ADMIN_STORAGE_SETTINGPOST' => '文件存储设置提交',
'ADMIN_SUBHOME_INDEX' => '家政预约订单列表',
'ADMIN_SUBSCRIBE_INDEX' => '回收预约订单列表',
'ADMIN_THEME_ACTIVE' => '启用模板',
'ADMIN_THEME_DATASOURCE' => '模板文件设置数据源',
... ...
<include file="public@header" />
</head>
<style>
th,td{
text-align: center;
}
</style>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="{:url('subhome/index')}">家政预约订单列表</a></li>
</ul>
<form class="well form-inline margin-top-20" method="post" action="{:url('subhome/index')}">
时间:
<input type="text" class="form-control js-bootstrap-date" name="start_time"
value="{$start_time|default=''}"
style="width: 140px;" autocomplete="off">-
<input type="text" class="form-control js-bootstrap-date" name="end_time"
value="{$end_time|default=''}"
style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
<input type="submit" class="btn btn-primary" value="搜索" />
<a class="btn btn-danger" href="{:url('subhome/index')}">清空</a>
</form>
<form class="js-ajax-form" action="" method="post">
<table class="table table-hover table-bordered">
<thead>
<tr>
<th>ID</th>
<th>下单人</th>
<th>订单号</th>
<th>家政公司名称</th>
<th>预约的服务类目名称</th>
<th>预约时间</th>
<th>订单状态</th>
<!--<th>操作</th>-->
</tr>
</thead>
<tbody>
<foreach name="data" item="vo">
<tr>
<td>{$vo.id}</td>
<td>{$vo.user_nickname}</td>
<td>{$vo.num}</td>
<td>{$vo.home_name}</td>
<td>{$vo.sever_name}</td>
<td>{$vo.sub_time}</td>
<if condition="$vo.status eq 1">
<td>已下单</td>
<elseif condition="$vo.status eq 2"/>
<td>订单进行中</td>
<elseif condition="$vo.status eq 3"/>
<td>已完成</td>
<else />
<td>已取消</td>
</if>
<!--<td>-->
<!--<a href='{:url("subhome/edit",array("id"=>$vo["id"],"start_time"=>$start_time,"end_time"=>$end_time))}'>查看详情</a>-->
<!--</td>-->
</tr>
</foreach>
</tbody>
</table>
<div class="pagination">{$page}</div>
</form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>
\ No newline at end of file
... ...