Your Name 12 months ago
parent fc1c871959
commit 1ca08bbe55
  1. 28
      addons/shopro/controller/Category.php
  2. 3
      addons/shopro/controller/order/Order.php
  3. 0
      application/admin/controller/Epay.php
  4. 4
      application/common.php
  5. 0
      public/assets/addons/epay/css/common.css
  6. 0
      public/assets/addons/epay/images/alipay.png
  7. 0
      public/assets/addons/epay/images/expired.png
  8. 0
      public/assets/addons/epay/images/logo-alipay.png
  9. 0
      public/assets/addons/epay/images/logo-wechat.png
  10. 0
      public/assets/addons/epay/images/paid.png
  11. 0
      public/assets/addons/epay/images/scan.png
  12. 0
      public/assets/addons/epay/images/screenshot-alipay.png
  13. 0
      public/assets/addons/epay/images/screenshot-wechat.png
  14. 0
      public/assets/addons/epay/images/wechat.png
  15. 0
      public/assets/addons/epay/js/common.js
  16. 0
      public/assets/addons/epay/js/jquery.qrcode.min.js
  17. 0
      public/assets/addons/epay/less/common.less
  18. BIN
      public/assets/addons/shopro/uniapp/order/all_order.png
  19. BIN
      public/assets/addons/shopro/uniapp/order/all_order1.png
  20. BIN
      public/assets/addons/shopro/uniapp/order/completed.png
  21. BIN
      public/assets/addons/shopro/uniapp/order/no_pay.png
  22. BIN
      public/assets/addons/shopro/uniapp/order/no_pay1.png
  23. BIN
      public/assets/addons/shopro/uniapp/order/no_sumbit.png
  24. BIN
      public/assets/addons/shopro/uniapp/order/no_take.png
  25. BIN
      public/assets/addons/shopro/uniapp/order/no_take1.png

@ -3,6 +3,7 @@
namespace addons\shopro\controller;
use app\admin\model\shopro\Category as CategoryModel;
use app\admin\model\shopro\goods\Goods;
class Category extends Common
{
@ -28,4 +29,31 @@ class Category extends Common
$this->success('商城分类', $categories);
}
/**
* 商城列表
* @return
*/
public function goodsList() {
$category = CategoryModel::where('parent_id', 0)->normal()->order('weigh', 'desc')->order('id', 'desc')->select();
$category_ids = [];
foreach ($category as $item) {
$categories = CategoryModel::where('parent_id', $item['id'])->column('id');
$category_ids = array_merge($category_ids, $categories);
}
$category = CategoryModel::where('id', 'in', $category_ids)->normal()->order('weigh', 'desc')->order('id', 'desc')->select();
foreach ($category as &$row) {
$row['image'] = formatImage($row['image']);
$row['goods_list'] = Goods::where('category_ids', 'in', $row['id'])->show()->select();
foreach ($row['goods_list'] as $v) {
$v->image = formatImage($v->image);
$v->images = array_map('formatImage', $v->images);
}
}
$this->success('商城分类', $category);
}
}

@ -37,6 +37,9 @@ class Order extends Common
case 'nocomment':
$orders = $orders->paid()->nocomment();
break;
case 'completed':
$orders = $orders->paid()->completed();
break;
}
$orders = $orders->order('id', 'desc')->paginate(request()->param('list_rows', 10))->toArray();

@ -560,3 +560,7 @@ EOT;
return $icon;
}
}
function formatImage($url) {
return request()->domain().$url;
}

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Before

Width:  |  Height:  |  Size: 922 B

After

Width:  |  Height:  |  Size: 922 B

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 65 KiB

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 710 B

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 710 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Loading…
Cancel
Save