Sfoglia il codice sorgente

兑换订单列表和显示

phperli 3 anni fa
parent
commit
45c3b245fa

+ 34 - 0
app/Admin/Actions/SendOrder.php

xqd
@@ -0,0 +1,34 @@
+<?php
+
+namespace App\Admin\Actions;
+
+use Dcat\Admin\Form\AbstractTool;
+use Dcat\Admin\Widgets\Modal;
+
+class SendOrder extends AbstractTool
+{
+    /**
+     * @return string
+     */
+    protected $title = '发货';
+
+    protected $model;
+
+    public function __construct(string $model = null, $id = 0)
+    {
+        $this->model = $model;
+        $this->title = '<i class="feather icon-check-square"></i> ' . $this->title;
+        $this->id = $id;
+    }
+
+    public function render()
+    {
+        $form = SendOrderForm::make()->payload(['id' => $this->id]);
+        return Modal::make()
+            ->lg()
+            ->title($this->title)
+            ->body($form)
+            ->button($this->title);
+    }
+
+}

+ 41 - 0
app/Admin/Actions/SendOrderForm.php

xqd
@@ -0,0 +1,41 @@
+<?php
+
+namespace App\Admin\Actions;
+
+use App\Models\Order;
+use Dcat\Admin\Contracts\LazyRenderable;
+use Dcat\Admin\Traits\LazyWidget;
+use Dcat\Admin\Widgets\Form;
+
+class SendOrderForm extends Form implements LazyRenderable
+{
+    use LazyWidget;  //0审核中, 1进行中,2不通过, 3已完成
+
+    //弹窗表单
+    public function form()
+    {
+        $id = isset($this->payload['id']) ? $this->payload['id'] : 0;
+        $this->hidden('id')->value($id);
+        $this->radio('is_send', '')->options([
+            1=>'发货'
+        ])->default(1);
+    }
+
+    //点击表单处理
+    public function handle(array $input)
+    {
+        $is_send = $input['is_send'];
+        try {
+            $order = Order::find($input['id']);
+            if ($is_send > 0) {
+                $order->is_send = $is_send;
+                $order->save();
+            }
+        } catch (\Exception $exception) {
+            return $this->response()->error($exception->getMessage());
+        }
+        return $this->response()->success('success')->refresh();
+    }
+
+
+}

+ 169 - 0
app/Admin/Controllers/OrderController.php

xqd
@@ -0,0 +1,169 @@
+<?php
+
+namespace App\Admin\Controllers;
+
+use App\Admin\Actions\SendOrder;
+use App\Models\Order;
+use Dcat\Admin\Form;
+use Dcat\Admin\Grid;
+use Dcat\Admin\Show;
+use Dcat\Admin\Http\Controllers\AdminController;
+
+class OrderController extends AdminController
+{
+    /**
+     * Make a grid builder.
+     *
+     * @return Grid
+     */
+    protected function grid()
+    {
+        return Grid::make(new Order(), function (Grid $grid) {
+            $grid->model()->with(['users:id,name,avatar,mobile', 'goods:id,img,name', 'goods_attr:id,title,integral'])->orderByDesc('id');
+            $grid->column('id')->sortable();
+            $grid->column('user_id');
+            $grid->column('user_id')->display(function () {
+                $str = "";
+                if($this->users){
+                    $str .= "<div style='margin-right:10px;display: flex;align-items: center'>";
+                    $str .= '<img data-action="preview-img" src="' . $this->users->avatar . '" style="height:50px;width:50px;cursor:pointer;margin-right:10px;" class="img img-thumbnail">';
+                    $str .= '<div>';
+                    $str .= '<p style="margin-bottom: 5px">用户名:' . $this->users->name . '</p>';
+                    $str .= '<p style="margin-bottom: 0px">手机号:' . $this->users->mobile . '</p>';
+                    $str .= "</div>";
+                    $str .= "</div>";
+                }
+                return $str;
+            });
+            $grid->column('order_no');
+            $grid->column('integral');
+            $grid->column('goods_id')->display(function (){
+                $str = "";
+                if($this->goods){
+                    $str .= "<div style='margin-right:10px;display: flex;align-items: center'>";
+                    $str .= '<img data-action="preview-img" src="' . $this->goods->img . '" style="height:50px;width:50px;cursor:pointer;margin-right:10px;" class="img img-thumbnail">';
+                    $str .= '<div>';
+                    $str .= '<p style="margin-bottom: 5px">商品名:' . $this->goods->name . '</p>';
+                    $str .= "</div>";
+                    $str .= "</div>";
+                }
+                return $str;
+            });
+            $grid->column('goods_attr_id')->display(function (){
+                $str = "";
+                if($this->goods_attr){
+                    $str .= "<div style='margin-right:10px;display: flex;align-items: center'>";
+                    $str .= '<p style="margin-bottom: 5px">' . $this->goods_attr->title . '</p>';
+                    $str .= '<p style="margin-bottom: 0px">:' . $this->goods_attr->integral . '</p>';
+                    $str .= "</div>";
+                }else{
+                    $str .= '无';
+                }
+                return $str;
+            });
+
+            $grid->column('num');
+            $grid->column('express_price');
+            $grid->column('is_send')->using(Order::SEND_STATUS)->label([0=>'yellow', 1=>'success']);
+            $grid->column('created_at')->sortable();
+
+            $grid->filter(function (Grid\Filter $filter) {
+                $filter->panel();
+                $filter->equal('id')->width(4);
+                $filter->like('users.name', '用户')->width(4);
+                $filter->like('order_no', '订单号')->width(4);
+                $filter->like('goods.name', '商品名')->width(4);
+                $filter->between('created_at')->date()->width(4);
+            });
+
+            //操作管理
+            $grid->actions(function (Grid\Displayers\Actions $actions) {
+                if ($actions->row->is_send == 0) {
+                    $actions->append(new SendOrder(Order::class, $actions->row->id));
+                }
+            });
+
+            $grid->disableEditButton();
+            $grid->disableCreateButton();
+        });
+    }
+
+    /**
+     * Make a show builder.
+     *
+     * @param mixed $id
+     *
+     * @return Show
+     */
+    protected function detail($id)
+    {
+        $order = Order::query()->where('id', $id)->first()->toArray();
+
+        return Show::make($id, Order::with(['users', 'goods']), function (Show $show) use ($order) {
+            $show->row(function (Show\Row $show) use ($order) {
+                //下单人
+                $show->width(12)->user_id->unescape()->as(function () {
+                    $user = $this->users;
+                    $user['name'] = $user['name'] ?: '未知';
+                    $html = '';
+                    $html .= '<div style="text-align:left">';
+                    $html .= '<img data-action="preview-img" src="' . $user['avatar'] . '" style="height:50px;width:50px;cursor:pointer;margin-right:10px;" class="img img-thumbnail">';
+                    $html .= '<div style="margin-top:5px">姓名:' . $user['name'] . '</div>';
+                    $html .= '<div style="margin-top:5px">电话:' . $user['mobile'] . '</div>';
+                    $html .= '</div>';
+                    return $html;
+                });
+
+                //商品信息
+                $show->width(12)->goods_info->unescape()->as(function () {
+                    $goods = $this->goods;
+                    $html = '';
+                    $html .= '<div style="text-align:left">';
+                    $html .= '<img data-action="preview-img" src="' . $goods['img'] . '" style="height:50px;width:50px;cursor:pointer;margin-right:10px;" class="img img-thumbnail">';
+                    $html .= '<div style="margin-top:5px">商品:' . $goods['name'] . '</div>';
+                    $html .= '<div style="margin-top:5px">详情:' . '<a href=http://' . $_SERVER['HTTP_HOST'] . '/admin/goods/' . $goods->id . '/edit' . '>查看更多>></a></div>';
+                    $html .= '</div>';
+                    return $html;
+                });
+
+                //收件信息
+                $show->width(12)->name->unescape()->as(function () {
+                    $html = '';
+                    $html .= '<div style="text-align:left">';
+                    $html .= '<div style="margin-top:5px">姓名:' . $this->receiver_name . '</div>';
+                    $html .= '<div style="margin-top:5px">电话:' . $this->receiver_mobile . '</div>';
+                    $html .= '<div style="margin-top:5px">地址:' . $this->receiver_address . '</div>';
+                    $html .= '</div>';
+                    return $html;
+                });
+
+                //订单信息
+                $show->width(12)->order_info->unescape()->as(function () {
+                    $html = '';
+                    $html .= '<div style="text-align:left">';
+                    $html .= '<div style="margin-top:5px">订单单号:' . $this->order_no . '</div>';
+                    $html .= '<div style="margin-top:5px">兑换积分:' . $this->unit_price . '</div>';
+                    $html .= '<div style="margin-top:5px">商品数量:' . $this->num . '</div>';
+                    $html .= '<div style="margin-top:5px">订单状态:' . Order::STATUS[$this->status] . '</div>';
+                    $html .= '<div style="margin-top:5px">发货状态:' . Order::SEND_STATUS[$this->is_send] . '</div>';
+                    $html .= '<div style="margin-top:5px">下单时间:' . $this->created_at . '</div>';
+                    $html .= '<div style="margin-top:5px">更新时间:' . $this->updated_at . '</div>';
+                    $html .= '</div>';
+                    return $html;
+                });
+
+                //物流信息
+                $show->width(12)->express_info->unescape()->as(function () {
+                    $html = '';
+                    $html .= '<div style="text-align:left">';
+                    $html .= '<div style="margin-top:5px">单号:' . $this->order_no . '</div>';
+                    $html .= '<div style="margin-top:5px">运费:' . $this->express_price . '</div>';
+                    $html .= '</div>';
+                    return $html;
+                });
+            });
+
+            $show->disableEditButton();
+        });
+    }
+}

+ 16 - 16
app/Admin/Forms/AdminSetting.php

xqd
@@ -53,25 +53,25 @@ class AdminSetting extends Form implements LazyRenderable
      */
     public function form()
     {
-        $this->text('name')->required()->help(trans('site-setting.Website_name'));
-        $this->text('logo')->required()->help(trans('site-setting.logo'));
-        $this->text('logo-mini', 'Logo mini')->required();
+//        $this->text('name')->required()->help(trans('site-setting.Website_name'));
+//        $this->text('logo')->required()->help(trans('site-setting.logo'));
+//        $this->text('logo-mini', 'Logo mini')->required();
         $this->radio('lang', trans('site-setting.language'))->required()->options(['en' => 'English', 'zh' => '简体中文']);
-        $this->radio('layout.color', trans('site-setting.theme'))
-            ->required()
-            ->help(trans('site-setting.theme_color'))
-            ->options($this->colors);
+//        $this->radio('layout.color', trans('site-setting.theme'))
+//            ->required()
+//            ->help(trans('site-setting.theme_color'))
+//            ->options($this->colors);
 
-        $this->radio('layout.sidebar_style', trans('site-setting.menu_style'))
-            ->options(['light' => 'Light', 'primary' => 'Primary'])
-            ->help(trans('site-setting.t_menu_style'));
+//        $this->radio('layout.sidebar_style', trans('site-setting.menu_style'))
+//            ->options(['light' => 'Light', 'primary' => 'Primary'])
+//            ->help(trans('site-setting.t_menu_style'));
 
-        $this->checkbox('layout.body_class', trans('site-setting.Menu_layout'))
-            ->options([
-                'horizontal_menu' => 'Horizontal',
-                'sidebar-separate' => 'sidebar-separate',
-            ])
-            ->help(trans('site-setting.Switch_menu_layout'));
+//        $this->checkbox('layout.body_class', trans('site-setting.Menu_layout'))
+//            ->options([
+//                'horizontal_menu' => 'Horizontal',
+//                'sidebar-separate' => 'sidebar-separate',
+//            ])
+//            ->help(trans('site-setting.Switch_menu_layout'));
 //        $this->switch('https', '启用HTTPS');
         $this->switch('helpers.enable', trans('site-setting.development_tool'));
     }

+ 7 - 1
app/Admin/menu.php

xqd
@@ -192,7 +192,13 @@ return [
         'uri' => 'goods',
         'parent_id' => 30
     ],
-
+    [
+        'id' => 32,
+        'title' => trans('menu.Order', [], $lang),
+        'icon' => '',
+        'uri' => 'order',
+        'parent_id' => 30
+    ],
 
     /**
      * 系统配置

+ 1 - 0
app/Admin/routes.php

xqd
@@ -33,5 +33,6 @@ Route::group([
     $router->resource('/course_user', 'CourseUserController');
 
     $router->resource('/goods', 'GoodsController');
+    $router->resource('/order', 'OrderController');
 
 });

+ 43 - 0
app/Models/Order.php

xqd
@@ -0,0 +1,43 @@
+<?php
+
+namespace App\Models;
+
+use Illuminate\Database\Eloquent\Factories\HasFactory;
+
+class Order extends BaseModel
+{
+    use HasFactory;
+
+    const PAY_TYPE    = [0 => '未支付', 1 => '香港支付宝', 2 => '内地支付宝', 3 => '余额', 4 => '银联'];
+    const SEND_STATUS = [0 => '未发货', 1 => '已发货'];
+    const STATUS      = [0 => '待付款', 1 => '待卖家发货', 2 => '待审核', 3 => '待平台发货', 4=>'待收货', 5=>'待评价', 6=>'存平台'];
+
+    public function users()
+    {
+        return $this->belongsTo(User::class, 'user_id', 'id');
+    }
+
+    public function goods()
+    {
+        return $this->belongsTo(Goods::class, 'goods_id', 'id');
+    }
+
+    public function goods_attr()
+    {
+        return $this->belongsTo(GoodsAttr::class, 'goods_attr_id', 'id');
+    }
+
+    public static function getPayTypeText($value)
+    {
+        return self::PAY_TYPE[$value];
+    }
+
+    public function getFeedbackAttribute($value)
+    {
+        if (is_array($value)) {
+            return $value;
+        }
+        return json_decode($value, true);
+    }
+
+}

+ 56 - 8
dcat_admin_ide_helper.php

xqd xqd xqd xqd xqd xqd xqd xqd
@@ -141,16 +141,27 @@ namespace Dcat\Admin {
      * @property Grid\Column|Collection cat_id
      * @property Grid\Column|Collection integral
      * @property Grid\Column|Collection stock
-     * @property Grid\Column|Collection tag
-     * @property Grid\Column|Collection notice
+     * @property Grid\Column|Collection specific_list
      * @property Grid\Column|Collection introduce
      * @property Grid\Column|Collection is_recommend
+     * @property Grid\Column|Collection goods_id
      * @property Grid\Column|Collection pic_url
      * @property Grid\Column|Collection remark
      * @property Grid\Column|Collection zh_country
      * @property Grid\Column|Collection en_country
      * @property Grid\Column|Collection prefix
      * @property Grid\Column|Collection area
+     * @property Grid\Column|Collection goods_attr_id
+     * @property Grid\Column|Collection order_no
+     * @property Grid\Column|Collection num
+     * @property Grid\Column|Collection express_price
+     * @property Grid\Column|Collection is_send
+     * @property Grid\Column|Collection send_time
+     * @property Grid\Column|Collection express
+     * @property Grid\Column|Collection express_no
+     * @property Grid\Column|Collection receiver
+     * @property Grid\Column|Collection receiver_mobile
+     * @property Grid\Column|Collection receiver_address
      * @property Grid\Column|Collection token
      * @property Grid\Column|Collection tokenable_type
      * @property Grid\Column|Collection tokenable_id
@@ -174,6 +185,7 @@ namespace Dcat\Admin {
      * @property Grid\Column|Collection allow_join
      * @property Grid\Column|Collection set_date
      * @property Grid\Column|Collection cover_img
+     * @property Grid\Column|Collection notice
      * @property Grid\Column|Collection notice_time
      * @property Grid\Column|Collection black_id
      * @property Grid\Column|Collection likes_count
@@ -346,16 +358,27 @@ namespace Dcat\Admin {
      * @method Grid\Column|Collection cat_id(string $label = null)
      * @method Grid\Column|Collection integral(string $label = null)
      * @method Grid\Column|Collection stock(string $label = null)
-     * @method Grid\Column|Collection tag(string $label = null)
-     * @method Grid\Column|Collection notice(string $label = null)
+     * @method Grid\Column|Collection specific_list(string $label = null)
      * @method Grid\Column|Collection introduce(string $label = null)
      * @method Grid\Column|Collection is_recommend(string $label = null)
+     * @method Grid\Column|Collection goods_id(string $label = null)
      * @method Grid\Column|Collection pic_url(string $label = null)
      * @method Grid\Column|Collection remark(string $label = null)
      * @method Grid\Column|Collection zh_country(string $label = null)
      * @method Grid\Column|Collection en_country(string $label = null)
      * @method Grid\Column|Collection prefix(string $label = null)
      * @method Grid\Column|Collection area(string $label = null)
+     * @method Grid\Column|Collection goods_attr_id(string $label = null)
+     * @method Grid\Column|Collection order_no(string $label = null)
+     * @method Grid\Column|Collection num(string $label = null)
+     * @method Grid\Column|Collection express_price(string $label = null)
+     * @method Grid\Column|Collection is_send(string $label = null)
+     * @method Grid\Column|Collection send_time(string $label = null)
+     * @method Grid\Column|Collection express(string $label = null)
+     * @method Grid\Column|Collection express_no(string $label = null)
+     * @method Grid\Column|Collection receiver(string $label = null)
+     * @method Grid\Column|Collection receiver_mobile(string $label = null)
+     * @method Grid\Column|Collection receiver_address(string $label = null)
      * @method Grid\Column|Collection token(string $label = null)
      * @method Grid\Column|Collection tokenable_type(string $label = null)
      * @method Grid\Column|Collection tokenable_id(string $label = null)
@@ -379,6 +402,7 @@ namespace Dcat\Admin {
      * @method Grid\Column|Collection allow_join(string $label = null)
      * @method Grid\Column|Collection set_date(string $label = null)
      * @method Grid\Column|Collection cover_img(string $label = null)
+     * @method Grid\Column|Collection notice(string $label = null)
      * @method Grid\Column|Collection notice_time(string $label = null)
      * @method Grid\Column|Collection black_id(string $label = null)
      * @method Grid\Column|Collection likes_count(string $label = null)
@@ -556,16 +580,27 @@ namespace Dcat\Admin {
      * @property Show\Field|Collection cat_id
      * @property Show\Field|Collection integral
      * @property Show\Field|Collection stock
-     * @property Show\Field|Collection tag
-     * @property Show\Field|Collection notice
+     * @property Show\Field|Collection specific_list
      * @property Show\Field|Collection introduce
      * @property Show\Field|Collection is_recommend
+     * @property Show\Field|Collection goods_id
      * @property Show\Field|Collection pic_url
      * @property Show\Field|Collection remark
      * @property Show\Field|Collection zh_country
      * @property Show\Field|Collection en_country
      * @property Show\Field|Collection prefix
      * @property Show\Field|Collection area
+     * @property Show\Field|Collection goods_attr_id
+     * @property Show\Field|Collection order_no
+     * @property Show\Field|Collection num
+     * @property Show\Field|Collection express_price
+     * @property Show\Field|Collection is_send
+     * @property Show\Field|Collection send_time
+     * @property Show\Field|Collection express
+     * @property Show\Field|Collection express_no
+     * @property Show\Field|Collection receiver
+     * @property Show\Field|Collection receiver_mobile
+     * @property Show\Field|Collection receiver_address
      * @property Show\Field|Collection token
      * @property Show\Field|Collection tokenable_type
      * @property Show\Field|Collection tokenable_id
@@ -589,6 +624,7 @@ namespace Dcat\Admin {
      * @property Show\Field|Collection allow_join
      * @property Show\Field|Collection set_date
      * @property Show\Field|Collection cover_img
+     * @property Show\Field|Collection notice
      * @property Show\Field|Collection notice_time
      * @property Show\Field|Collection black_id
      * @property Show\Field|Collection likes_count
@@ -761,16 +797,27 @@ namespace Dcat\Admin {
      * @method Show\Field|Collection cat_id(string $label = null)
      * @method Show\Field|Collection integral(string $label = null)
      * @method Show\Field|Collection stock(string $label = null)
-     * @method Show\Field|Collection tag(string $label = null)
-     * @method Show\Field|Collection notice(string $label = null)
+     * @method Show\Field|Collection specific_list(string $label = null)
      * @method Show\Field|Collection introduce(string $label = null)
      * @method Show\Field|Collection is_recommend(string $label = null)
+     * @method Show\Field|Collection goods_id(string $label = null)
      * @method Show\Field|Collection pic_url(string $label = null)
      * @method Show\Field|Collection remark(string $label = null)
      * @method Show\Field|Collection zh_country(string $label = null)
      * @method Show\Field|Collection en_country(string $label = null)
      * @method Show\Field|Collection prefix(string $label = null)
      * @method Show\Field|Collection area(string $label = null)
+     * @method Show\Field|Collection goods_attr_id(string $label = null)
+     * @method Show\Field|Collection order_no(string $label = null)
+     * @method Show\Field|Collection num(string $label = null)
+     * @method Show\Field|Collection express_price(string $label = null)
+     * @method Show\Field|Collection is_send(string $label = null)
+     * @method Show\Field|Collection send_time(string $label = null)
+     * @method Show\Field|Collection express(string $label = null)
+     * @method Show\Field|Collection express_no(string $label = null)
+     * @method Show\Field|Collection receiver(string $label = null)
+     * @method Show\Field|Collection receiver_mobile(string $label = null)
+     * @method Show\Field|Collection receiver_address(string $label = null)
      * @method Show\Field|Collection token(string $label = null)
      * @method Show\Field|Collection tokenable_type(string $label = null)
      * @method Show\Field|Collection tokenable_id(string $label = null)
@@ -794,6 +841,7 @@ namespace Dcat\Admin {
      * @method Show\Field|Collection allow_join(string $label = null)
      * @method Show\Field|Collection set_date(string $label = null)
      * @method Show\Field|Collection cover_img(string $label = null)
+     * @method Show\Field|Collection notice(string $label = null)
      * @method Show\Field|Collection notice_time(string $label = null)
      * @method Show\Field|Collection black_id(string $label = null)
      * @method Show\Field|Collection likes_count(string $label = null)

+ 73 - 0
public/request.log

xqd
@@ -1108,3 +1108,76 @@
 2022-06-24 15:41:59---language-handle-
 2022-06-24 15:42:31---language-handle-
 2022-06-24 15:42:32---language-handle-
+2022-06-24 15:49:35---language-handle-
+2022-06-24 15:49:37---language-handle-
+2022-06-24 16:34:52---language-handle-
+2022-06-24 16:35:13---language-handle-
+2022-06-24 16:35:22---language-handle-
+2022-06-24 16:35:23---language-handle-
+2022-06-24 16:45:16---language-handle-
+2022-06-24 16:45:23---language-handle-
+2022-06-24 16:45:23---language-handle-
+2022-06-24 16:46:26---language-handle-
+2022-06-24 16:46:29---language-handle-
+2022-06-24 16:49:39---language-handle-
+2022-06-24 16:49:43---language-handle-
+2022-06-24 16:50:36---language-handle-
+2022-06-24 16:53:23---language-handle-
+2022-06-24 16:53:58---language-handle-
+2022-06-24 17:00:15---language-handle-
+2022-06-24 17:00:57---language-handle-
+2022-06-24 17:01:44---language-handle-
+2022-06-24 17:02:08---language-handle-
+2022-06-24 17:06:55---language-handle-
+2022-06-24 17:08:15---language-handle-
+2022-06-24 17:08:49---language-handle-
+2022-06-24 17:09:10---language-handle-
+2022-06-24 17:10:07---language-handle-
+2022-06-24 17:10:24---language-handle-
+2022-06-24 17:13:07---language-handle-
+2022-06-24 17:13:38---language-handle-
+2022-06-24 17:13:55---language-handle-
+2022-06-24 17:21:33---language-handle-
+2022-06-24 17:29:59---language-handle-
+2022-06-24 17:30:17---language-handle-
+2022-06-24 17:32:15---language-handle-
+2022-06-24 17:33:18---language-handle-
+2022-06-24 17:33:29---language-handle-
+2022-06-24 17:33:32---language-handle-
+2022-06-24 17:33:38---language-handle-
+2022-06-24 17:34:53---language-handle-
+2022-06-24 17:34:58---language-handle-
+2022-06-24 17:35:11---language-handle-
+2022-06-24 17:35:15---language-handle-
+2022-06-24 17:35:26---language-handle-
+2022-06-24 17:35:27---language-handle-
+2022-06-24 17:36:33---language-handle-
+2022-06-24 17:36:37---language-handle-
+2022-06-24 17:36:39---language-handle-
+2022-06-24 17:36:46---language-handle-
+2022-06-24 17:37:06---language-handle-
+2022-06-24 17:37:11---language-handle-
+2022-06-24 17:38:09---language-handle-
+2022-06-24 17:38:16---language-handle-
+2022-06-24 17:51:20---language-handle-
+2022-06-24 17:51:57---language-handle-
+2022-06-24 17:52:00---language-handle-
+2022-06-24 17:52:06---language-handle-
+2022-06-24 17:52:07---language-handle-
+2022-06-24 17:52:37---language-handle-
+2022-06-24 17:53:57---language-handle-
+2022-06-24 17:55:42---language-handle-
+2022-06-24 17:55:53---language-handle-
+2022-06-24 17:55:58---language-handle-
+2022-06-24 17:56:52---language-handle-
+2022-06-24 17:58:03---language-handle-
+2022-06-24 17:58:39---language-handle-
+2022-06-24 17:59:14---language-handle-
+2022-06-24 17:59:21---language-handle-
+2022-06-24 17:59:27---language-handle-
+2022-06-24 17:59:35---language-handle-
+2022-06-24 17:59:37---language-handle-
+2022-06-24 18:04:11---language-handle-
+2022-06-24 18:06:24---language-handle-
+2022-06-24 18:06:58---language-handle-
+2022-06-24 18:07:16---language-handle-

+ 1 - 0
resources/lang/zh/menu.php

xqd
@@ -41,6 +41,7 @@ return [
     'Setting'=>'系统配置',
     'Goods'=>'积分商品',
     'Goods_list'=>'商品列表',
+    'Order'=>'兑换订单',
 
     'Site_settings'=>'网站设置',
 ];

+ 28 - 0
resources/lang/zh/order.php

xqd
@@ -0,0 +1,28 @@
+<?php 
+return [
+    'labels' => [
+        'Order' => '兑换订单',
+        'order' => '兑换订单',
+    ],
+    'fields' => [
+        'user_id' => '兑换用户',
+        'goods_id' => '商品ID',
+        'goods_attr_id' => '规格',
+        'order_no' => '订单号',
+        'integral' => '积分',
+        'num' => '数量',
+        'express_price' => '运费',
+        'is_send' => '发货?',
+        'send_time' => '发货时间',
+        'express' => '快递',
+        'express_no' => '快递单号',
+        'receiver' => '收货人',
+        'receiver_mobile' => '收货电话',
+        'receiver_address' => '收货地址',
+        'goods_info' => '商品信息',
+        'order_info' => '订单信息',
+        'express_info' => '快递信息',
+    ],
+    'options' => [
+    ],
+];