瀏覽代碼

一些功能

Kirin 3 年之前
父節點
當前提交
ffcfa481af
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 3 0
      app/admin/view/order/store_order/exchange_order.php
  2. 1 0
      app/models/store/StoreExchangeOrder.php

+ 3 - 0
app/admin/view/order/store_order/exchange_order.php

@@ -112,6 +112,9 @@
                     <script type="text/html" id="userinfo">
                         {{d.nickname==null ? '暂无信息':d.nickname}}/{{d.uid}}
                     </script>
+                    <script type="text/html" id="giftuserinfo">
+                        {{d.giftnickname==null ? '暂无信息':d.giftnickname}}/{{d.gift_uid}}
+                    </script>
                     <!--订单状态-->
                     <script type="text/html" id="status">
                         {{d.status_name}}

+ 1 - 0
app/models/store/StoreExchangeOrder.php

@@ -54,6 +54,7 @@ class StoreExchangeOrder extends BaseModel
         $data = ($data = $model->page((int)$where['page'], (int)$where['limit'])->select()) && count($data) ? $data->toArray() : [];
         foreach ($data as &$v) {
             $v['nickname'] = User::where('uid', $v['uid'])->value('nickname');
+            $v['giftnickname'] = User::where('uid', $v['gift_uid'])->value('nickname');
             $v['status_name'] = $v['status'] == 1 ? "已使用" : "未使用";
             $_info = StoreOrderCartInfo::where('cart_id', $v['cart_id'])->field('cart_info')->select();
             $_info = count($_info) ? $_info->toArray() : [];