songxingwei 3 年之前
父节点
当前提交
79ebda40f5

+ 0 - 255
application/store/controller/Order.php

@@ -1,255 +0,0 @@
-<?php
-
-// +----------------------------------------------------------------------
-// | ThinkAdmin
-// +----------------------------------------------------------------------
-// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
-// +----------------------------------------------------------------------
-// | 官方网站: http://demo.thinkadmin.top
-// +----------------------------------------------------------------------
-// | 开源协议 ( https://mit-license.org )
-// +----------------------------------------------------------------------
-// | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
-// | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
-// +----------------------------------------------------------------------
-
-namespace app\store\controller;
-
-use app\common\library\Common;
-use library\Controller;
-use library\tools\Express;
-use think\Db;
-
-/**
- * 订单记录管理
- * Class Order
- * @package app\store\controller
- */
-class Order extends Controller
-{
-    /**
-     * 绑定数据表
-     * @var string
-     */
-    protected $table = 'q_order';
-
-    /**
-     * 订单记录管理
-     * @auth true
-     * @menu true
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    public function index()
-    {
-        $this->title = '订单记录管理';
-        $query = $this->_query($this->table);
-        $array = $this->statistical_order_info();
-        $this->assign('a',$array);
-        if (isset($_GET['order_no']) && $_GET['order_no']){
-            $query->where('a.order_no',$_GET['order_no']);
-        }
-        if (isset($_GET['status']) && $_GET['status']!=''){
-            $query->where('a.status',$_GET['status']);
-        }
-        if (isset($_GET['pay_type']) && $_GET['pay_type']){
-            $query->where('a.pay_type',$_GET['pay_type']);
-        }
-        if (isset($_GET['name']) && $_GET['name']){
-            $query->where('a.name','like','%'.$_GET['name'].'%');
-        }
-        if (isset($_GET['phone']) && $_GET['phone']){
-            $query->where('a.phone','like','%'.$_GET['phone'].'%');
-        }
-        if (isset($_GET['user_info']) && $_GET['user_info']){
-            $query->where('b.nickname|b.phone|a.user_id','like','%'.$_GET['user_info'].'%');
-        }
-        if (isset($_GET['de_info']) && $_GET['de_info']){
-            $query->where('c.name|a.designer_id','like','%'.$_GET['de_info'].'%');
-        }
-        if (isset($_GET['create_at']) && $_GET['create_at']){
-            $time = explode(' - ',$_GET['create_at']);
-            $start_date_time = $time[0].' 00:00:00';
-            $end_date_time = $time[1].' 23:59:59';
-            $query->whereBetweenTime('a.create_at',$start_date_time,$end_date_time);
-        }
-        if (isset($_GET['pay_at']) && $_GET['pay_at']){
-            $time = explode(' - ',$_GET['pay_at']);
-            $start_time = strtotime("$time[0] 00:00:00");
-            $end_time =  strtotime("$time[1] 23:59:59");
-            $query->whereBetweenTime('a.pay_time',$start_time,$end_time);
-        }
-        $query->alias('a')
-            ->join('q_user b','a.user_id=b.id')
-            ->join('q_user c','a.designer_id=c.id')
-            ->field('a.*,b.nickname,b.phone,c.name as designer_name,c.phone as designer_phone')
-            ->order('a.id desc')
-            ->page();
-    }
-
-
-    public function statistical_order_info(){
-        $array = array();
-        $array['all_order'] = $this->byWhere()->count();
-        $array['all_price'] = $this->byWhere()->where('a.status','not in',array('0','4'))->sum('a.price');
-        $array['weixin_all_price'] = $this->byWhere()->where('a.status','not in',array('0','4'))->where('a.pay_type','weixin')->sum('a.price');
-        $array['zfb_all_price'] = $this->byWhere()->where('a.status','not in',array('0','4'))->where('a.pay_type','zfb')->sum('a.price');
-        return $array;
-    }
-
-    public function byWhere(){
-        $model = Db::name($this->table)->alias('a')
-            ->join('q_user b','a.user_id=b.id')
-            ->join('q_user c','a.designer_id=c.id');
-        if (isset($_GET['order_no']) && $_GET['order_no']){
-            $model->where('a.order_no',$_GET['order_no']);
-        }
-        if (isset($_GET['status']) && $_GET['status']!=''){
-            $model->where('a.status',$_GET['status']);
-        }
-        if (isset($_GET['pay_type']) && $_GET['pay_type']){
-            $model->where('a.pay_type',$_GET['pay_type']);
-        }
-        if (isset($_GET['name']) && $_GET['name']){
-            $model->where('a.name','like','%'.$_GET['name'].'%');
-        }
-        if (isset($_GET['phone']) && $_GET['phone']){
-            $model->where('a.phone','like','%'.$_GET['phone'].'%');
-        }
-        if (isset($_GET['user_info']) && $_GET['user_info']){
-            $model->where('b.nickname|b.phone|a.user_id','like','%'.$_GET['user_info'].'%');
-        }
-        if (isset($_GET['de_info']) && $_GET['de_info']){
-            $model->where('c.name|a.designer_id','like','%'.$_GET['de_info'].'%');
-        }
-        if (isset($_GET['create_at']) && $_GET['create_at']){
-            $time = explode(' - ',$_GET['create_at']);
-            $start_date_time = $time[0].' 00:00:00';
-            $end_date_time = $time[1].' 23:59:59';
-            $model->whereBetweenTime('a.create_at',$start_date_time,$end_date_time);
-        }
-        if (isset($_GET['pay_at']) && $_GET['pay_at']){
-            $time = explode(' - ',$_GET['pay_at']);
-            $start_time = strtotime("$time[0] 00:00:00");
-            $end_time =  strtotime("$time[1] 23:59:59");
-            $model->whereBetweenTime('a.pay_time',$start_time,$end_time);
-        }
-        return $model;
-    }
-
-    /**
-     * 订单列表处理
-     * @param array $data
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     */
-    protected function _index_page_filter(array &$data)
-    {
-
-    }
-
-
-    /**
-     * 订单详情页
-     */
-    public function order_detail(){
-        $this->_form($this->table, 'order_detail');
-    }
-
-    /**
-     * 订单修改
-     */
-    public function order_edit(){
-        $this->title = '编辑信息';
-        $this->_form($this->table, 'edit');
-    }
-
-    /**
-     * 表单数据处理
-     * @param array $data
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    protected function _form_filter(&$data)
-    {
-        if ($this->request->isGet()) {
-
-            $serv = explode('-',$data['servicing_time']);
-            $data['servicing_time'] = $serv['0'].' - '.$serv[1];
-            $this->data = $data;
-            //订单记录
-            $order_status = Db::name('q_order_status')->where('oid',$data['id'])->order('change_time asc')->select();
-            $this->orderstatus = $order_status;
-
-            //省
-            $province = Db::name('q_area')->where('level',1)->select();
-            $this->province = $province;
-            //市
-            $pid = Db::name('q_area')->where('name',$data['province'])->value('id');
-            $city = Db::name('q_area')->where('level',2)->where('pid',$pid)->select();
-            $this->city = $city;
-            //区
-            $pid2 = Db::name('q_area')->where('name',$data['city'])->value('id');
-            $area = Db::name('q_area')->where('level',3)->where('pid',$pid2)->select();
-            $this->area = $area;
-        }elseif ($this->request->isPost()) {
-            if (isset($data['province'])){
-                $data['province'] = Db::name('q_area')->where('id',$data['province'])->value('name');
-            }
-            if (isset($data['city'])){
-                $data['city'] = Db::name('q_area')->where('id',$data['city'])->value('name');
-            }
-            if (isset($data['area'])){
-                $data['area'] = Db::name('q_area')->where('id',$data['area'])->value('name');
-            }
-            $serv = explode(' - ',$data['servicing_time']);
-            $data['servicing_time'] = $serv[0].'-'.$serv[1];
-            if ($data['pay_price1']!=$data['pay_price']){
-                Common::order_status($data['id'],'后台修改支付金额'.$data['pay_price1'].'为'.$data['pay_price']);
-            }
-            unset($data['price1']);
-        }
-    }
-
-    /**
-     * 订单记录
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\db\exception\DataNotFoundException
-     * @throws \think\db\exception\ModelNotFoundException
-     * @throws \think\exception\DbException
-     * @throws \think\exception\PDOException
-     */
-    public function order_status()
-    {
-        $id = $this->app->request->get('id');
-        $this->assign('id',$id);
-        $post = $this->app->request->post();
-        if (isset($post['id']) && $post['id']){
-            Db::name($this->table)->where('id',$post['id'])->update(['remark'=>$post['remark']]);
-            $this->success('编辑成功!');
-        }else{
-            $this->_form($this->table, 'order_status');
-        }
-
-    }
-
-    /**
-     * 取消订单
-     * @auth true
-     * @throws \think\Exception
-     * @throws \think\exception\PDOException
-     */
-    public function cancel_order()
-    {
-        $this->_save($this->table, ['status' => '5','cancel_reason'=>'后台取消订单']);
-    }
-
-}

+ 0 - 315
application/store/view/order/edit.html

@@ -1,315 +0,0 @@
-{extend name='admin@main'}
-
-{block name="content"}
-
-<form onsubmit="return false;" id="GoodsForm" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">
-
-    <div class="layui-card-body think-box-shadow padding-left-40">
-
-        <div class="layui-form-item layui-row layui-col-space15">
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">订单号</span>
-                <input name="nickname" required readonly class="layui-input" placeholder="请输入昵称" value="{$vo.order_no|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">服务人姓名</span>
-                <input name="name" required class="layui-input" placeholder="请输入姓名" value="{$vo.name|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">服务人手机号</span>
-                <input name="phone" required class="layui-input" placeholder="请输入手机号" value="{$vo.phone|default=''}">
-            </label>
-        </div>
-
-        <div class="layui-form-item layui-row layui-col-space15">
-            <div class="layui-form-item layui-row layui-col-space15">
-                <label class="layui-col-xs12 relative">
-                    <span class="color-green"></span>
-                    <div class="layui-input-inline">
-                        <select name="province" class="province-selector" id="province"  lay-filter="province" data-value="">
-                            <option value="">请选择省</option>
-                            {foreach $province as $k=>$v}
-                            {if $v.name eq $vo.province}
-                            <option selected value="{$v.id}">{$v.name}</option>
-                            {else}
-                            <option value="{$v.id}">{$v.name}</option>
-                            {/if}
-                            {/foreach}
-                        </select>
-                    </div>
-                    <div class="layui-input-inline" style="width: 200px;">
-                        <select name="city" class="city-selector" data-value="" id="city"  lay-filter="city">
-                            <option value="">请选择市</option>
-                            {foreach $city as $k=>$v}
-                            {if $v.name eq $vo.city}
-                            <option selected value="{$v.id}">{$v.name}</option>
-                            {else}
-                            <option value="{$v.id}">{$v.name}</option>
-                            {/if}
-                            {/foreach}
-                        </select>
-                    </div>
-                    <div class="layui-input-inline" style="width: 200px;">
-                        <select name="area" class="county-selector" data-value="" id="area"  lay-filter="area">
-                            <option value="">请选择区</option>
-                            {foreach $area as $k=>$v}
-                            {if $v.name eq $vo.area}
-                            <option selected value="{$v.id}">{$v.name}</option>
-                            {else}
-                            <option value="{$v.id}">{$v.name}</option>
-                            {/if}
-                            {/foreach}
-                        </select>
-                    </div>
-                </label>
-            </div>
-        </div>
-
-
-        <div class="layui-form-item layui-row layui-col-space15">
-            <input name="pay_price1" type="hidden" class="layui-input"  value="{$vo.pay_price|default=''}">
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">支付金额</span>
-                <input name="pay_price" required class="layui-input" placeholder="请输入支付金额" value="{$vo.pay_price|default=''}">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">服务日期</span>
-                <input name="yy_date" type="text" class="layui-input" value="{$vo.yy_date|default=''}" id="test1" placeholder="yyyy-MM-dd">
-            </label>
-            <label class="layui-col-xs3 relative">
-                <span class="color-green">服务时间</span>
-                <input name="servicing_time" type="text" class="layui-input" value="{$vo.servicing_time}" id="test9" placeholder=" - ">
-            </label>
-        </div>
-
-        <div class="layui-form-item layui-row layui-col-space15">
-
-            <div class="layui-form-item">
-                <label class="layui-form-label label-required">详细地址</label>
-
-                <div class="layui-input-block" style="margin-bottom: 10px">
-                    <div class="layui-input-inline" style='width:300px'>
-                        <input placeholder="根据地址搜索坐标" required name="address"  value='{$vo.address|default=""}' id="keyword" type="text"   class="layui-input">
-                    </div>
-                    <button class="layui-btn" style="background: #139ff7" id="se" type='button'>搜索</button>
-                    <button class="layui-btn" style="background: #FFB800" id="del_marks" type='button'>删除所有标记</button>
-                    </span>
-                </div>
-                <div class="layui-input-block" style="width: 600px;height: 400px;" id="container">
-
-                </div>
-            </div>
-            <div class="layui-form-item">
-                <label class="layui-form-label label-required">经度</label>
-                <div class="layui-input-inline">
-                    <input name="address_jd" id="jd" required value='{$vo.address_jd|default="118.35642483695985"}'  class="layui-input" style="width:200px;">
-                </div>
-                <label class="layui-form-label label-required">纬度</label>
-                <div class="layui-input-inline">
-
-                    <input name="address_wd" id="wd" required value='{$vo.address_wd|default="35.10373610237465"}'  class="layui-input" style="width:200px;">
-
-                </div>
-            </div>
-        </div>
-
-
-        <div class="layui-form-item text-center">
-            {notempty name='vo.id'}<input type="hidden" name="id" value="{$vo.id}">{/notempty}
-            <button class="layui-btn layui-btn-danger" ng-click="hsitoryBack()" type="button">取消编辑</button>
-            <button class="layui-btn" type="submit">保存</button>
-        </div>
-
-    </div>
-</form>
-{/block}
-
-{block name='script'}
-<script>
-    layui.form.render();
-    layui.use(['form', 'layedit', 'laydate'], function(){
-        var form = layui.form
-            ,layer = layui.layer
-            ,layedit = layui.layedit
-            ,laydate = layui.laydate;
-
-        form.render();
-        //日期
-        laydate.render({
-            elem: '#date'
-        });
-        laydate.render({
-            elem: '#date1'
-        });
-        laydate.render({
-            elem: '#test1'
-        });
-        //时间范围
-        laydate.render({
-            elem: '#test9'
-            ,type: 'time'
-            ,range: true
-            ,format: 'HH:mm'
-        });
-
-        form.on('select(province)', function (data) {
-            var val = data.value;
-            // console.log(val)
-            $.ajax({
-                type:"get",
-                url:"{:url('member/get_city')}",  //数据传输的控制器方法
-                data: {id:val},//这里data传递过去的是序列化以后的字符串
-                success:function(data){
-                   // console.log(data)
-                    var arr = data.data;
-                    //console.log(arr)
-                    if (arr.length>0){
-                        //$("#tow").attr("style","display:block;");//显示div
-                        var options='<option value="">请选择市</option>';
-                        for (var i = 0; i < arr.length; i++) {
-                            var tag = arr[i];
-                            options+=' <option value="'+tag.id+'">'+tag.name+'</option>';
-                        }
-                        $("select[name='city']").html(options)
-                        form.render('select');
-                    }else {
-                        var options='<option value="">请选择市</option>';
-                        $("select[name='city']").html(options)
-                        form.render('select');
-                    }
-                }
-            });
-        });
-
-        form.on('select(city)', function (data) {
-            var val = data.value;
-            // console.log(val)
-            $.ajax({
-                type:"get",
-                url:"{:url('member/get_area')}",  //数据传输的控制器方法
-                data: {id:val},//这里data传递过去的是序列化以后的字符串
-                success:function(data){
-                    //console.log(data)
-                    var arr = data.data;
-                   // console.log(arr)
-                    if (arr.length>0){
-                        var options='<option value="">请选择区</option>';
-                        for (var i = 0; i < arr.length; i++) {
-                            var tag = arr[i];
-                            options+=' <option value="'+tag.id+'">'+tag.name+'</option>';
-                        }
-                        $("select[name='area']").html(options)
-                        form.render('select');
-                    }else {
-                        var options='<option value="">请选择区</option>';
-                        $("select[name='area']").html(options)
-                        form.render('select');
-                    }
-                }
-            });
-        });
-
-
-
-    });
-</script>
-<script>
-    $(function(){
-
-        var searchService,map,markers = [];
-        var init = function() {
-            var wd = $("#wd").val();
-            var jd = $("#jd").val();
-            var center = new qq.maps.LatLng(wd,jd);
-            map = new qq.maps.Map(document.getElementById('container'),{
-                center: center,
-                zoom: 17
-            });
-
-            var latlngBounds = new qq.maps.LatLngBounds();
-            //查询poi类信息
-            searchService = new qq.maps.SearchService({
-                complete : function(results){
-                    var pois = results.detail.pois;
-                    for(var i = 0,l = pois.length;i < l; i++){
-                        var poi = pois[i];
-                        latlngBounds.extend(poi.latLng);
-
-                        var marker = new qq.maps.Marker({
-                            map:map,
-                            position: poi.latLng
-                        });
-
-                        marker.setTitle(i+1);
-
-                        markers.push(marker);
-                    }
-                    document.getElementById("jd").value=(poi.latLng.lng)
-                    document.getElementById("wd").value=(poi.latLng.lat)
-                    map.fitBounds(latlngBounds);
-                }
-            });
-
-            qq.maps.event.addDomListener(map, 'click', function(event) {
-
-                var marker=new qq.maps.Marker({
-
-                    position:event.latLng,
-
-                    map:map
-
-                });
-                markers.push(marker);
-                document.getElementById("jd").value=(event.latLng.getLng())
-                document.getElementById("wd").value=(event.latLng.getLat())
-
-
-
-            });
-
-        }
-
-
-
-        $('#se').click(function(){
-            var keyword = document.getElementById("keyword").value;
-
-            searchService.setLocation('临沂');             //设置默认检索范围(默认为全国),类型可以是坐标或指定的城市名称。
-
-            searchService.search(keyword);
-        });
-
-
-        $('#del_marks').click(function(){
-            console.log(markers);
-            if (markers) {
-                for (i in markers) {
-                    markers[i].setMap(null);
-                }
-                markers.length = 0;
-            }
-        });
-
-
-        init();
-
-    })
-
-
-
-</script>
-<style>
-    /*不显示秒*/
-  .layui-laydate-content>.layui-laydate-list {
-    padding-bottom: 0px;
-    overflow: hidden;
-    }
-    .layui-laydate-content>.layui-laydate-list>li{
-        width:50%
-        }
-
-    .merge-box .scrollbox .merge-list {
-        padding-bottom: 5px;
-        }
-</style>
-{/block}

+ 0 - 89
application/store/view/order/express.html

@@ -1,89 +0,0 @@
-<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
-    <div class="layui-card-body" style="padding-left:40px">
-
-        <fieldset>
-            <legend>收货信息</legend>
-            <div class="layui-form-item">
-                <label style='width:50px' class="layui-form-label">收货姓名</label>
-                <div class="layui-input-block" style="margin-left:80px">
-                    <input name="express_name" required value='{$vo.express_name|default=""}' placeholder="请输入收货姓名" class="layui-input">
-                </div>
-            </div>
-
-            <div class="layui-form-item">
-                <label style='width:50px' class="layui-form-label">收货手机</label>
-                <div class="layui-input-block" style="margin-left:80px">
-                    <input name="express_phone" required value='{$vo.express_phone|default=""}' placeholder="请输入收货手机" class="layui-input">
-                </div>
-            </div>
-
-            <div class="layui-form-item">
-                <label style='width:50px' class="layui-form-label label-required">收货区域</label>
-                <div class="layui-input-block" style="margin-left:80px">
-                    <div class="color-blue" style="line-height:38px;">{$vo.express_province|default='--'} {$vo.express_city|default=''} {$vo.express_area|default=''}</div>
-                    <div class="layui-row">
-                        <div class="layui-col-xs4"><select class="layui-select block full-width" lay-ignore name="form_province"></select></div>
-                        <div class="layui-col-xs4"><select class="layui-select block full-width" lay-ignore name="form_city"></select></div>
-                        <div class="layui-col-xs4"><select class="layui-select block full-width" lay-ignore name="form_area"></select></div>
-                    </div>
-                </div>
-            </div>
-
-            <div class="layui-form-item">
-                <label style='width:50px' class="layui-form-label">收货地址</label>
-                <div class="layui-input-block" style="margin-left:80px">
-                    <input name="express_address" required value='{$vo.express_address|default=""}' placeholder="请输入收货地址" class="layui-input">
-                </div>
-            </div>
-        </fieldset>
-
-        <fieldset class="margin-top-20">
-            <legend>快递信息</legend>
-            <div class="layui-form-item">
-                <label style='width:50px' class="layui-form-label label-required">快递公司</label>
-                <div class="layui-input-block" style="margin-left:80px">
-                    <select class="layui-select" name="express_company_code" lay-search>
-                        {foreach $expressList as $express}
-                        {if $vo.express_company_code eq $express.express_code}
-                        <option selected value="{$express.express_code}">{$express.express_title}</option>
-                        {else}
-                        <option value="{$express.express_code}">{$express.express_title}</option>
-                        {/if}
-                        {/foreach}
-                    </select>
-                </div>
-            </div>
-
-            <div class="layui-form-item">
-                <label style='width:50px' class="layui-form-label">快递单号</label>
-                <div class="layui-input-block" style="margin-left:80px">
-                    <input name="express_send_no" required value='{$vo.express_send_no|default=""}' placeholder="请输入快递单号" class="layui-input">
-                </div>
-            </div>
-
-            <div class="layui-form-item">
-                <label style='width:50px' class="layui-form-label">订单描述</label>
-                <div class="layui-input-block" style="margin-left:80px">
-                    <textarea placeholder="请输入订单描述" class="layui-textarea" name="express_desc">{$vo.express_desc|default=""}</textarea>
-                </div>
-            </div>
-
-        </fieldset>
-    </div>
-
-    <div class="hr-line-dashed"></div>
-
-    <div class="layui-form-item text-center">
-        <!--{notempty name='vo.id'}-->
-        <input type='hidden' value='{$vo.id}' name='id'>
-        <!--{/notempty}-->
-        <button class="layui-btn" type='submit'>保存数据</button>
-        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗?" data-close>取消编辑</button>
-    </div>
-    <script>
-        require(['pcasunzips'], function () {
-            new PCAS("form_province", "form_city", "form_area", '{$vo.express_province|default=""}', '{$vo.express_city|default=""}', '{$vo.express_area|default=""}');
-            window.form.render();
-        });
-    </script>
-</form>

+ 0 - 17
application/store/view/order/express_query.html

@@ -1,17 +0,0 @@
-<div class="padding-25" style="max-height:450px;overflow:auto">
-    {empty name='result.data'}
-    <div>还没有快递记录哦!</div>
-    {else}
-    <ul class="layui-timeline">
-        {foreach $result.data as $key=>$vo}
-        <li class="layui-timeline-item">
-            <i class="layui-icon layui-timeline-axis">{if $key eq 0 }&#xe756;{else}&#xe63f;{/if}</i>
-            <div class="layui-timeline-content layui-text">
-                <strong class="layui-timeline-title">{$vo.time|format_datetime|default='--'}</strong>
-                <p>{$vo.context|default='--'}</p>
-            </div>
-        </li>
-        {/foreach}
-    </ul>
-    {/empty}
-</div>

+ 0 - 140
application/store/view/order/index.html

@@ -1,140 +0,0 @@
-{extend name='admin@main'}
-
-{block name="content"}
-<div class="think-box-shadow">
-    {include file='order/index_search'}
-    <div class="layui-row layui-col-space15">
-        <div class="layui-col-md2">
-            <div class="layui-card">
-                <div class="layui-card-header">订单数量</div>
-                <div class="layui-card-body">
-                    <h2>{$a.all_order|default='0'}&nbsp;个</h2>
-                </div>
-            </div>
-        </div>
-        <div class="layui-col-md2">
-            <div class="layui-card">
-                <div class="layui-card-header">订单总金额</div>
-                <div class="layui-card-body">
-                    <h2>{$a.all_price|default='0'}&nbsp;元</h2>
-                </div>
-            </div>
-        </div>
-
-        <div class="layui-col-md2">
-            <div class="layui-card">
-                <div class="layui-card-header">微信支付金额</div>
-                <div class="layui-card-body">
-                    <h2>{$a.weixin_all_price|default='0'}&nbsp;元</h2>
-                </div>
-            </div>
-        </div>
-        <div class="layui-col-md2">
-            <div class="layui-card">
-                <div class="layui-card-header">支付宝支付金额</div>
-                <div class="layui-card-body">
-                    <h2>{$a.zfb_all_price|default='0'}&nbsp;元</h2>
-                </div>
-            </div>
-        </div>
-
-    </div>
-    <table class="layui-table margin-top-10" lay-skin="line">
-        {notempty name='list'}
-        <thead>
-        <tr>
-            <!--<th class='list-table-check-td think-checkbox'>-->
-            <!--<input data-auto-none data-check-target='.list-check-box' type='checkbox'>-->
-            <!--</th>-->
-            <th class="text-left nowrap">会员信息</th>
-            <th class='text-left nowrap'>订单信息</th>
-            <th class='text-left nowrap'>信息</th>
-            <th class='text-left nowrap'></th>
-        </tr>
-        </thead>
-        {/notempty}
-        <tbody>
-        {foreach $list as $key=>$vo}
-        <tr>
-            <!--<td class='list-table-check-td think-checkbox'><input class="list-check-box" value='{$vo.id}' type='checkbox'></td>-->
-            <td class="text-left nowrap relative">
-                {notempty name='vo.member.headimg'}
-                <img data-tips-image style="width:80px;height:80px" src="{$vo.member.headimg|default=''}" class="margin-right-5 text-top">
-                {/notempty}
-                <div class="inline-block">
-                    会员昵称:{$vo.nickname|default='--'}&nbsp;(ID:{$vo.user_id})<br>
-                    会员手机:{$vo.phone|default='--'}<br>
-                </div>
-            </td>
-            <td class='text-left nowrap'>
-                订单单号:<span class="color-blue">{$vo.order_no|default=''}</span>
-                {eq name='vo.status' value='0'}<span class="layui-badge layui-bg-red margin-left-5">待付款</span>{/eq}
-                {eq name='vo.status' value='1'}<span class="layui-badge layui-bg-orange margin-left-5">待服务</span>{/eq}
-                {eq name='vo.status' value='2'}<span class="layui-badge layui-bg-black margin-left-5">进行中</span>{/eq}
-                {eq name='vo.status' value='3'}<span class="layui-badge layui-bg-green margin-left-5">已完成,待评价</span>{/eq}
-                {eq name='vo.status' value='4'}<span class="layui-badge layui-bg-blue margin-left-5">已评价</span>{/eq}
-                {eq name='vo.status' value='5'}<span class="layui-badge layui-bg-blue margin-left-5">取消订单</span>{/eq}
-                {eq name='vo.status' value='-1'}<span class="layui-badge layui-bg-red margin-left-5">申请退款</span>{/eq}
-                {eq name='vo.status' value='-2'}<span class="layui-badge layui-bg-blue margin-left-5">已退款</span>{/eq}
-                {eq name='vo.status' value='-3'}<span class="layui-badge layui-bg-red margin-left-5">拒绝退款</span>{/eq}
-                {if $vo.status neq 0}
-                {eq name='vo.pay_type' value='weixin'}<span class="layui-badge layui-bg-blue margin-left-5">微信支付</span>{/eq}
-                {eq name='vo.pay_type' value='zfb'}<span class="layui-badge layui-bg-blue margin-left-5">支付宝支付</span>{/eq}
-                {/if}
-                <br>
-                订单金额:<strong class="color-blue">{$vo.price|default='0'}</strong> 元
-                优惠券金额 <strong class="color-blue">{$vo.coupon_price|default='0'}</strong> 元
-                实际支付金额 <strong class="color-blue">{$vo.pay_price|default='0'}</strong> 元
-                <br>
-                下单时间:{$vo.create_at|format_datetime}<br>
-                支付时间:{$vo.pay_time|format_datetime|default='--'}<br>
-            </td>
-            <td class="text-left nowrap">
-                设计师姓名:{$vo.designer_name|default='--'} (ID:{$vo.designer_id|default='0'})
-                <br>
-                服务人姓名:{$vo.name|default='--'}
-                <br>
-                服务人手机号:{$vo.phone|default='--'}
-                <br>
-                服务地址:{$vo.province|default='--'}{$vo.city|default='--'}{$vo.area|default='--'}{$vo.address|default='--'}
-                <br>
-                服务日期:{$vo.yy_date|default='--'}&nbsp;{$vo.servicing_time|default='--'}
-                <br>
-            </td>
-            <td class="nowrap">
-                {if $vo.status eq 1 || $vo.status eq 2 || $vo.status eq 0}
-                {if auth("store/order/order_edit")}
-                <a data-dbclick class="layui-btn layui-btn-sm" data-open='{:url("order_edit")}?id={$vo.id}'>编 辑</a>
-                {/if}
-                {/if}
-                {if auth("store/order/order_detail")}
-                <a data-title="订单详情" class="layui-btn layui-btn-sm" data-modal='{:url("order_detail")}?id={$vo.id}'>订单详情</a>
-                {/if}
-
-                {if auth("store/order/order_status")}
-                <a data-title="订单记录" class="layui-btn layui-btn-sm" data-modal='{:url("order_status")}?id={$vo.id}'>订单记录</a>
-                {/if}
-                {if $vo.status eq 0 || $vo.status eq 1}
-                {if auth("store/order/cancel_order")}
-                <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要取消订单吗?" data-action="{:url('cancel_order')}" data-value="id#{$vo.id}">取消订单</a>
-                {/if}
-                {/if}
-                <br />
-                {if $vo.status eq -1}
-                {if auth("store/order/order_rufund")}
-                <a data-title="立即退款" class="layui-btn layui-btn-sm layui-bg-orange margin-top-5" data-modal='{:url("order_rufund")}?id={$vo.id}'>立即退款</a>
-                {/if}
-                {if auth("store/order/order_no_rufund")}
-                <a data-title="不退款" class="layui-btn layui-btn-sm layui-bg-red margin-top-5" data-modal='{:url("order_no_rufund")}?id={$vo.id}'>不退款</a>
-                {/if}
-                {/if}
-            </td>
-        </tr>
-        {/foreach}
-        </tbody>
-    </table>
-
-    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
-
-</div>
-{/block}

+ 0 - 84
application/store/view/order/index_search.html

@@ -1,84 +0,0 @@
-<fieldset>
-    <legend>条件搜索</legend>
-    <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">订单单号</label>
-            <div class="layui-input-inline">
-                <input name="order_no" value="{$Think.get.order_no|default=''}" placeholder="请输入订单单号" class="layui-input">
-            </div>
-        </div>
-
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">订单状态</label>
-            <div class="layui-input-inline">
-                <select class="layui-select" name="status">
-                    {foreach [''=>'- 全部订单 -','0'=>'待付款','1'=>'待服务','2'=>'进行中','3'=>'待评价','4'=>'已评价','5'=>'取消订单'] as $k=>$v}
-                    <!--{eq name='Think.get.status' value='$k.""'}-->
-                    <option selected value="{$k}">{$v}</option>
-                    <!--{else}-->
-                    <option value="{$k}">{$v}</option>
-                    <!--{/eq}-->
-                    {/foreach}
-                </select>
-            </div>
-        </div>
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">支付方式</label>
-            <div class="layui-input-inline">
-                <select class="layui-select" name="pay_type">
-                    {foreach [''=>'- 全部方式 -','weixin'=>'微信支付','zfb'=>'支付宝支付'] as $k=>$v}
-                    <!--{eq name='Think.get.pay_type' value='$k.""'}-->
-                    <option selected value="{$k}">{$v}</option>
-                    <!--{else}-->
-                    <option value="{$k}">{$v}</option>
-                    <!--{/eq}-->
-                    {/foreach}
-                </select>
-            </div>
-        </div>
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">下单时间</label>
-            <div class="layui-input-inline">
-                <input data-date-range name="create_at" value="{$Think.get.create_at|default=''}" placeholder="请选择下单时间" class="layui-input">
-            </div>
-        </div>
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">会员信息</label>
-            <div class="layui-input-inline">
-                <input name="user_info" value="{$Think.get.user_info|default=''}" placeholder="请输入会员ID、昵称、手机号" class="layui-input">
-            </div>
-        </div>
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">设计师信息</label>
-            <div class="layui-input-inline">
-                <input name="de_info" value="{$Think.get.de_info|default=''}" placeholder="请输入设计师ID、名称" class="layui-input">
-            </div>
-        </div>
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">支付时间</label>
-            <div class="layui-input-inline">
-                <input data-date-range name="pay_at" value="{$Think.get.pay_at|default=''}" placeholder="请选择支付时间" class="layui-input">
-            </div>
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">收货姓名</label>
-            <div class="layui-input-inline">
-                <input name="name" value="{$Think.get.name|default=''}" placeholder="请输入收货姓名" class="layui-input">
-            </div>
-        </div>
-        <div class="layui-form-item layui-inline">
-            <label class="layui-form-label">收货手机</label>
-            <div class="layui-input-inline">
-                <input name="phone" value="{$Think.get.phone|default=''}" placeholder="请输入收货手机" class="layui-input">
-            </div>
-        </div>
-        <div class="layui-form-item layui-inline">
-            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
-        </div>
-    </form>
-    <script>
-        window.form.render();
-        $('[data-export-list]').on('click', function () {
-            window.location.href = '{:url("@")}?s=store/order/index&' + $(this).parents('form').serialize() + '&action=export'
-        });
-    </script>
-</fieldset>

+ 0 - 36
application/store/view/order/order_detail.html

@@ -1,36 +0,0 @@
-<div style="padding: 20px; background-color: #F2F2F2;">
-    <div class="layui-row layui-col-space15">
-        <div class="layui-col-md12">
-            <div class="layui-card">
-                <div class="layui-card-header">订单信息</div>
-                <div class="layui-card-body">
-                    <div class="layui-col-md6">订单号:{$data['order_no']}</div>
-                    <div class="layui-col-md6">订单状态:
-                        {eq name='$data.status' value='0'}<span class="layui-badge layui-bg-red margin-left-5">待付款</span>{/eq}
-                        {eq name='$data.status' value='1'}<span class="layui-badge layui-bg-orange margin-left-5">待服务</span>{/eq}
-                        {eq name='$data.status' value='2'}<span class="layui-badge layui-bg-black margin-left-5">进行中</span>{/eq}
-                        {eq name='$data.status' value='3'}<span class="layui-badge layui-bg-green margin-left-5">已完成,待评价</span>{/eq}
-                        {eq name='$data.status' value='4'}<span class="layui-badge layui-bg-blue margin-left-5">已评价</span>{/eq}
-                        {eq name='$data.status' value='5'}<span class="layui-badge layui-bg-blue margin-left-5">取消订单</span>{/eq}
-                        {eq name='$data.status' value='-1'}<span class="layui-badge layui-bg-red margin-left-5">申请退款</span>{/eq}
-                        {eq name='$data.status' value='-2'}<span class="layui-badge layui-bg-blue margin-left-5">已退款</span>{/eq}
-                        {eq name='$data.status' value='-3'}<span class="layui-badge layui-bg-red margin-left-5">拒绝退款</span>{/eq}
-                    </div><hr />
-                    <div class="layui-col-md6">商品总价:{$data['price']|default='0'}</div>
-                    <div class="layui-col-md6">优惠券抵扣:{$data.coupon_price|default='0'}</div><hr />
-                    <div class="layui-col-md6">实际支付金额:{$data.pay_price|default='0'}</div>
-                    <hr />
-                    <div class="layui-col-md6">支付方式:
-                        {eq name='$data.pay_type' value='weixin'}<span class="layui-badge layui-bg-blue margin-left-5">微信支付</span>{/eq}
-                        {eq name='$data.pay_type' value='zfb'}<span class="layui-badge layui-bg-blue margin-left-5">支付宝支付</span>{/eq}
-                    </div><hr />
-                    <div class="layui-col-md6">下单时间:{$data.create_at|format_datetime}</div>
-                    <div class="layui-col-md6">
-                        支付时间:{$data.pay_time|format_datetime|default='--'}</div><hr />
-
-                </div>
-            </div>
-        </div>
-
-    </div>
-</div>

+ 0 - 29
application/store/view/order/order_status.html

@@ -1,29 +0,0 @@
-<div style="padding: 20px; background-color: #F2F2F2;">
-    <div class="layui-tab layui-tab-card">
-        <table class="layui-table margin-top-10" lay-skin="line">
-            {notempty name='orderstatus'}
-            <thead>
-            <tr>
-                <th class='text-left nowrap'>订单编号</th>
-                <th class='text-left nowrap'>操作记录</th>
-                <th class='text-left nowrap'>时间</th>
-            </tr>
-            </thead>
-            {/notempty}
-            <tbody>
-            {foreach $orderstatus as $key=>$vo}
-            <tr>
-                <td class='text-left nowrap'>
-                    <div class="inline-block">{$vo.oid}</div>
-                </td>
-                <td class='text-left'>{$vo.change_message}</td>
-                <td class='text-left'>
-                    {$vo.change_time|format_datetime|default='--'}
-                </td>
-            </tr>
-            {/foreach}
-            </tbody>
-        </table>
-        {empty name='orderstatus'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
-    </div>
-</div>