diff --git a/composer.json b/composer.json index b0754d0..5ac36bd 100644 --- a/composer.json +++ b/composer.json @@ -9,12 +9,11 @@ "barryvdh/laravel-cors": "^0.10", "dingo/api": "2.0.0-alpha1", "fideloper/proxy": "~3.3", - "ibrand/backend": "2.0.2", + "ibrand/backend": "~3.0", "ibrand/laravel-miniprogram-poster": "^1.1", "ibrand/laravel-shopping-cart": "^1.3", "ibrand/laravel-sms": "~1.0", "ibrand/laravel-ueditor": "^1.0", - "encore/laravel-admin": "dev-ibrand as 1.6.7", "ibrand/setting": "^1.1", "lavary/laravel-menu": "~1.7", "laravelcollective/html": "^5.5", @@ -106,10 +105,6 @@ { "type": "composer", "url": "https://packagist.laravel-china.org" - }, - { - "type": "vcs", - "url": "https://github.com/ibrandcc/laravel-admin" } ] } diff --git a/composer.lock b/composer.lock index 1686996..8ec1efb 100644 --- a/composer.lock +++ b/composer.lock @@ -1,10 +1,10 @@ { "_readme": [ "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "content-hash": "b5062b2e85aeb71dfa129a1a7f128318", + "content-hash": "f71902c12bf725d0ac0f45f5bfea7557", "packages": [ { "name": "anam/phantomjs-linux-x86-binary", @@ -654,16 +654,16 @@ }, { "name": "doctrine/dbal", - "version": "v2.9.0", + "version": "v2.9.1", "source": { "type": "git", "url": "https://github.com/doctrine/dbal.git", - "reference": "21fdabe2fc01e004e1966f200d900554876bc63c" + "reference": "ec74d6e300d78fbc896669c3ca57ef9719adc9c6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/dbal/zipball/21fdabe2fc01e004e1966f200d900554876bc63c", - "reference": "21fdabe2fc01e004e1966f200d900554876bc63c", + "url": "https://api.github.com/repos/doctrine/dbal/zipball/ec74d6e300d78fbc896669c3ca57ef9719adc9c6", + "reference": "ec74d6e300d78fbc896669c3ca57ef9719adc9c6", "shasum": "", "mirrors": [ { @@ -738,7 +738,7 @@ "php", "queryobject" ], - "time": "2018-12-04T04:39:48+00:00" + "time": "2018-12-14T04:51:13+00:00" }, { "name": "doctrine/event-manager", @@ -1068,23 +1068,29 @@ }, { "name": "encore/laravel-admin", - "version": "dev-ibrand", + "version": "v1.5.19", "source": { "type": "git", - "url": "https://github.com/ibrandcc/laravel-admin.git", - "reference": "1dbd9a8ce0a7173fd999fe1854bef10b5f59076e" + "url": "https://github.com/z-song/laravel-admin.git", + "reference": "9841d34ca028cb151c54aa9988bb3f783839fa2a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ibrandcc/laravel-admin/zipball/1dbd9a8ce0a7173fd999fe1854bef10b5f59076e", - "reference": "1dbd9a8ce0a7173fd999fe1854bef10b5f59076e", - "shasum": "" + "url": "https://api.github.com/repos/z-song/laravel-admin/zipball/9841d34ca028cb151c54aa9988bb3f783839fa2a", + "reference": "9841d34ca028cb151c54aa9988bb3f783839fa2a", + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] }, "require": { "doctrine/dbal": "2.*", "laravel/framework": "~5.5", "php": ">=7.0.0", - "symfony/dom-crawler": "~3.1|~4.0" + "symfony/dom-crawler": "~3.1" }, "require-dev": { "fzaninotto/faker": "~1.4", @@ -1117,20 +1123,7 @@ "src/helpers.php" ] }, - "autoload-dev": { - "psr-4": { - "Tests\\Models\\": "tests/models", - "Tests\\Controllers\\": "tests/controllers" - }, - "classmap": [ - "tests/TestCase.php" - ] - }, - "scripts": { - "test": [ - "./vendor/bin/phpunit" - ] - }, + "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], @@ -1148,10 +1141,7 @@ "grid", "laravel" ], - "support": { - "source": "https://github.com/ibrandcc/laravel-admin/tree/ibrand" - }, - "time": "2018-12-11T11:34:41+00:00" + "time": "2018-08-22T11:27:57+00:00" }, { "name": "erusev/parsedown", @@ -1661,16 +1651,16 @@ }, { "name": "ibrand/backend", - "version": "v2.0.2", + "version": "v3.0.1", "source": { "type": "git", "url": "https://github.com/ibrandcc/backend.git", - "reference": "e0a0f537b091def325ba5c83f1bacc545ecce0ed" + "reference": "cacef6751515680eb605bc027503f2a0ce74204b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ibrandcc/backend/zipball/e0a0f537b091def325ba5c83f1bacc545ecce0ed", - "reference": "e0a0f537b091def325ba5c83f1bacc545ecce0ed", + "url": "https://api.github.com/repos/ibrandcc/backend/zipball/cacef6751515680eb605bc027503f2a0ce74204b", + "reference": "cacef6751515680eb605bc027503f2a0ce74204b", "shasum": "", "mirrors": [ { @@ -1680,13 +1670,14 @@ ] }, "require": { - "encore/laravel-admin": "dev-ibrand as 1.6.7", + "encore/laravel-admin": "1.5.19", "ibrand/laravel-sms": "~1.0", - "laravel-admin-ext/backup": "~1.0", - "laravel-admin-ext/helpers": "~1.0", - "laravel-admin-ext/log-viewer": "~1.0", - "laravel-admin-ext/redis-manager": "~1.0", - "laravel-admin-ext/scheduling": "~1.0", + "ibrand/setting": "~1.0", + "laravel-admin-ext/backup": "1.0.2", + "laravel-admin-ext/helpers": "1.0.2", + "laravel-admin-ext/log-viewer": "1.0.2", + "laravel-admin-ext/redis-manager": "1.0.1", + "laravel-admin-ext/scheduling": "1.0.1", "maatwebsite/excel": "~2.1.23", "php": ">=7.0.0" }, @@ -1728,7 +1719,7 @@ "grid", "laravel" ], - "time": "2018-12-11T12:29:29+00:00" + "time": "2018-12-20T13:35:50+00:00" }, { "name": "ibrand/laravel-active", @@ -2130,16 +2121,16 @@ }, { "name": "ibrand/setting", - "version": "v1.1.2", + "version": "v1.2.1", "source": { "type": "git", "url": "https://github.com/ibrandcc/setting.git", - "reference": "054be4872eac2969931c4a0c3d82f700abdd37b1" + "reference": "e922c2a7bb680d836af7a6def9507f39bbce1ee9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ibrandcc/setting/zipball/054be4872eac2969931c4a0c3d82f700abdd37b1", - "reference": "054be4872eac2969931c4a0c3d82f700abdd37b1", + "url": "https://api.github.com/repos/ibrandcc/setting/zipball/e922c2a7bb680d836af7a6def9507f39bbce1ee9", + "reference": "e922c2a7bb680d836af7a6def9507f39bbce1ee9", "shasum": "", "mirrors": [ { @@ -2189,7 +2180,7 @@ "ibrand", "setting" ], - "time": "2018-10-16T06:50:30+00:00" + "time": "2018-12-19T05:56:45+00:00" }, { "name": "intervention/image", @@ -2369,16 +2360,16 @@ }, { "name": "jaybizzle/crawler-detect", - "version": "v1.2.75", + "version": "v1.2.76", "source": { "type": "git", "url": "https://github.com/JayBizzle/Crawler-Detect.git", - "reference": "50e06c81bea8a9c443708be496868ccb55bdd396" + "reference": "728dd7f210819ccafbf008a6ef7956f4f3c3571c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/JayBizzle/Crawler-Detect/zipball/50e06c81bea8a9c443708be496868ccb55bdd396", - "reference": "50e06c81bea8a9c443708be496868ccb55bdd396", + "url": "https://api.github.com/repos/JayBizzle/Crawler-Detect/zipball/728dd7f210819ccafbf008a6ef7956f4f3c3571c", + "reference": "728dd7f210819ccafbf008a6ef7956f4f3c3571c", "shasum": "", "mirrors": [ { @@ -2420,7 +2411,7 @@ "crawlerdetect", "php crawler detect" ], - "time": "2018-12-10T19:38:45+00:00" + "time": "2018-12-18T08:52:44+00:00" }, { "name": "jenssegers/agent", @@ -2735,16 +2726,16 @@ }, { "name": "laravel-admin-ext/helpers", - "version": "v1.1.1", + "version": "v1.0.2", "source": { "type": "git", "url": "https://github.com/laravel-admin-extensions/helpers.git", - "reference": "67b2573029f90ca1873e1598a2d46ae8d9acca66" + "reference": "c670d85e827bf2347d2ff0c26161ab1497f7a5ed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel-admin-extensions/helpers/zipball/67b2573029f90ca1873e1598a2d46ae8d9acca66", - "reference": "67b2573029f90ca1873e1598a2d46ae8d9acca66", + "url": "https://api.github.com/repos/laravel-admin-extensions/helpers/zipball/c670d85e827bf2347d2ff0c26161ab1497f7a5ed", + "reference": "c670d85e827bf2347d2ff0c26161ab1497f7a5ed", "shasum": "", "mirrors": [ { @@ -2754,10 +2745,12 @@ ] }, "require": { - "encore/laravel-admin": "~1.6", + "encore/laravel-admin": "1.5.*", + "laravel/framework": "~5.5", "php": ">=7.0.0" }, "require-dev": { + "laravel/laravel": "~5.5", "phpunit/phpunit": "~6.0" }, "type": "library", @@ -2789,20 +2782,20 @@ "helpers", "laravel-admin" ], - "time": "2018-10-24T15:21:11+00:00" + "time": "2018-04-24T09:35:32+00:00" }, { "name": "laravel-admin-ext/log-viewer", - "version": "v1.0.3", + "version": "v1.0.2", "source": { "type": "git", "url": "https://github.com/laravel-admin-extensions/log-viewer.git", - "reference": "742a2550746c9346d463249ba16b8fba9ac9cf97" + "reference": "19c78d7b81b0f062d4a1a61fb0c0310305b097c2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel-admin-extensions/log-viewer/zipball/742a2550746c9346d463249ba16b8fba9ac9cf97", - "reference": "742a2550746c9346d463249ba16b8fba9ac9cf97", + "url": "https://api.github.com/repos/laravel-admin-extensions/log-viewer/zipball/19c78d7b81b0f062d4a1a61fb0c0310305b097c2", + "reference": "19c78d7b81b0f062d4a1a61fb0c0310305b097c2", "shasum": "", "mirrors": [ { @@ -2812,10 +2805,12 @@ ] }, "require": { - "encore/laravel-admin": "~1.6", + "encore/laravel-admin": "~1.5", + "laravel/framework": "~5.5", "php": ">=7.0.0" }, "require-dev": { + "laravel/laravel": "~5.5", "phpunit/phpunit": "~6.0" }, "type": "library", @@ -2848,20 +2843,20 @@ "laravel-admin", "log" ], - "time": "2018-11-13T17:17:36+00:00" + "time": "2018-04-25T06:14:03+00:00" }, { "name": "laravel-admin-ext/redis-manager", - "version": "v1.0.2", + "version": "v1.0.1", "source": { "type": "git", "url": "https://github.com/laravel-admin-extensions/redis-manager.git", - "reference": "bada3f797320ad8f9b5a541ce77bdf2bcc6ecfe8" + "reference": "391d683fc7fa27535142c20de5a70aa9f94ef23c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel-admin-extensions/redis-manager/zipball/bada3f797320ad8f9b5a541ce77bdf2bcc6ecfe8", - "reference": "bada3f797320ad8f9b5a541ce77bdf2bcc6ecfe8", + "url": "https://api.github.com/repos/laravel-admin-extensions/redis-manager/zipball/391d683fc7fa27535142c20de5a70aa9f94ef23c", + "reference": "391d683fc7fa27535142c20de5a70aa9f94ef23c", "shasum": "", "mirrors": [ { @@ -2910,7 +2905,7 @@ "manager", "redis" ], - "time": "2018-11-26T06:09:04+00:00" + "time": "2018-05-03T07:59:06+00:00" }, { "name": "laravel-admin-ext/scheduling", @@ -4815,16 +4810,16 @@ }, { "name": "phpseclib/phpseclib", - "version": "2.0.12", + "version": "2.0.13", "source": { "type": "git", "url": "https://github.com/phpseclib/phpseclib.git", - "reference": "8814dc7841db159daed0b32c2b08fb7e03c6afe7" + "reference": "42603ce3f42a27f7e14e54feab95db7b680ad473" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/8814dc7841db159daed0b32c2b08fb7e03c6afe7", - "reference": "8814dc7841db159daed0b32c2b08fb7e03c6afe7", + "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/42603ce3f42a27f7e14e54feab95db7b680ad473", + "reference": "42603ce3f42a27f7e14e54feab95db7b680ad473", "shasum": "", "mirrors": [ { @@ -4909,7 +4904,7 @@ "x.509", "x509" ], - "time": "2018-11-04T05:45:48+00:00" + "time": "2018-12-16T17:45:25+00:00" }, { "name": "pimple/pimple", @@ -6338,16 +6333,16 @@ }, { "name": "symfony/dom-crawler", - "version": "v4.2.1", + "version": "v3.4.20", "source": { "type": "git", "url": "https://github.com/symfony/dom-crawler.git", - "reference": "7438a32108fdd555295f443605d6de2cce473159" + "reference": "b6e94248eb4f8602a5825301b0bea1eb8cc82cfa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/7438a32108fdd555295f443605d6de2cce473159", - "reference": "7438a32108fdd555295f443605d6de2cce473159", + "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/b6e94248eb4f8602a5825301b0bea1eb8cc82cfa", + "reference": "b6e94248eb4f8602a5825301b0bea1eb8cc82cfa", "shasum": "", "mirrors": [ { @@ -6357,12 +6352,12 @@ ] }, "require": { - "php": "^7.1.3", + "php": "^5.5.9|>=7.0.8", "symfony/polyfill-ctype": "~1.8", "symfony/polyfill-mbstring": "~1.0" }, "require-dev": { - "symfony/css-selector": "~3.4|~4.0" + "symfony/css-selector": "~2.8|~3.0|~4.0" }, "suggest": { "symfony/css-selector": "" @@ -6370,7 +6365,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.2-dev" + "dev-master": "3.4-dev" } }, "autoload": { @@ -6397,7 +6392,7 @@ ], "description": "Symfony DomCrawler Component", "homepage": "https://symfony.com", - "time": "2018-11-26T10:55:26+00:00" + "time": "2018-11-26T10:17:44+00:00" }, { "name": "symfony/event-dispatcher", @@ -7608,16 +7603,16 @@ }, { "name": "webmozart/assert", - "version": "1.3.0", + "version": "1.4.0", "source": { "type": "git", "url": "https://github.com/webmozart/assert.git", - "reference": "0df1908962e7a3071564e857d86874dad1ef204a" + "reference": "83e253c8e0be5b0257b881e1827274667c5c17a9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozart/assert/zipball/0df1908962e7a3071564e857d86874dad1ef204a", - "reference": "0df1908962e7a3071564e857d86874dad1ef204a", + "url": "https://api.github.com/repos/webmozart/assert/zipball/83e253c8e0be5b0257b881e1827274667c5c17a9", + "reference": "83e253c8e0be5b0257b881e1827274667c5c17a9", "shasum": "", "mirrors": [ { @@ -7627,7 +7622,8 @@ ] }, "require": { - "php": "^5.3.3 || ^7.0" + "php": "^5.3.3 || ^7.0", + "symfony/polyfill-ctype": "^1.8" }, "require-dev": { "phpunit/phpunit": "^4.6", @@ -7660,7 +7656,7 @@ "check", "validate" ], - "time": "2018-01-29T19:49:41+00:00" + "time": "2018-12-25T11:19:39+00:00" }, { "name": "wikimedia/composer-merge-plugin", @@ -7719,16 +7715,16 @@ }, { "name": "yansongda/pay", - "version": "v2.5.9", + "version": "v2.6.0", "source": { "type": "git", "url": "https://github.com/yansongda/pay.git", - "reference": "1130dfbfdd7c3f91b5d1921a03ad129555ddd89e" + "reference": "7f69785bfec6e24be1cf331f0108af65c0f7748c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/yansongda/pay/zipball/1130dfbfdd7c3f91b5d1921a03ad129555ddd89e", - "reference": "1130dfbfdd7c3f91b5d1921a03ad129555ddd89e", + "url": "https://api.github.com/repos/yansongda/pay/zipball/7f69785bfec6e24be1cf331f0108af65c0f7748c", + "reference": "7f69785bfec6e24be1cf331f0108af65c0f7748c", "shasum": "", "mirrors": [ { @@ -7742,6 +7738,7 @@ "ext-simplexml": "*", "monolog/monolog": "^1.23", "php": ">=7.0", + "symfony/event-dispatcher": "^3.0|^4.0", "symfony/http-foundation": "^3.0|^4.0", "yansongda/supports": "^1.8" }, @@ -7771,7 +7768,7 @@ "pay", "wechat" ], - "time": "2018-11-29T13:27:14+00:00" + "time": "2018-12-25T01:31:10+00:00" }, { "name": "yansongda/supports", @@ -7954,16 +7951,16 @@ }, { "name": "barryvdh/laravel-ide-helper", - "version": "v2.5.2", + "version": "v2.5.3", "source": { "type": "git", "url": "https://github.com/barryvdh/laravel-ide-helper.git", - "reference": "981ff45b43e0cf808af0a5a5f40f6369e0e29499" + "reference": "3d7f1240896a075aa23b13f82dfcbe165dadeef2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/barryvdh/laravel-ide-helper/zipball/981ff45b43e0cf808af0a5a5f40f6369e0e29499", - "reference": "981ff45b43e0cf808af0a5a5f40f6369e0e29499", + "url": "https://api.github.com/repos/barryvdh/laravel-ide-helper/zipball/3d7f1240896a075aa23b13f82dfcbe165dadeef2", + "reference": "3d7f1240896a075aa23b13f82dfcbe165dadeef2", "shasum": "", "mirrors": [ { @@ -7973,7 +7970,7 @@ ] }, "require": { - "barryvdh/reflection-docblock": "^2.0.4", + "barryvdh/reflection-docblock": "^2.0.6", "composer/composer": "^1.6", "illuminate/console": "^5.5,<5.8", "illuminate/filesystem": "^5.5,<5.8", @@ -8030,20 +8027,20 @@ "phpstorm", "sublime" ], - "time": "2018-10-06T09:35:51+00:00" + "time": "2018-12-19T12:12:05+00:00" }, { "name": "barryvdh/reflection-docblock", - "version": "v2.0.5", + "version": "v2.0.6", "source": { "type": "git", "url": "https://github.com/barryvdh/ReflectionDocBlock.git", - "reference": "64165bd4ba9a550d11ea57569463b7c722dc6b0a" + "reference": "6b69015d83d3daf9004a71a89f26e27d27ef6a16" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/barryvdh/ReflectionDocBlock/zipball/64165bd4ba9a550d11ea57569463b7c722dc6b0a", - "reference": "64165bd4ba9a550d11ea57569463b7c722dc6b0a", + "url": "https://api.github.com/repos/barryvdh/ReflectionDocBlock/zipball/6b69015d83d3daf9004a71a89f26e27d27ef6a16", + "reference": "6b69015d83d3daf9004a71a89f26e27d27ef6a16", "shasum": "", "mirrors": [ { @@ -8085,7 +8082,7 @@ "email": "mike.vanriel@naenius.com" } ], - "time": "2018-10-25T19:09:52+00:00" + "time": "2018-12-13T10:34:14+00:00" }, { "name": "composer/ca-bundle", @@ -10614,18 +10611,10 @@ "time": "2017-04-07T12:08:54+00:00" } ], - "aliases": [ - { - "alias": "1.6.7", - "alias_normalized": "1.6.7.0", - "version": "dev-ibrand", - "package": "encore/laravel-admin" - } - ], + "aliases": [], "minimum-stability": "stable", "stability-flags": { - "dingo/api": 15, - "encore/laravel-admin": 20 + "dingo/api": 15 }, "prefer-stable": false, "prefer-lowest": false, diff --git a/modules/EC.Open.Backend/Store/resources/views/model/script.blade.php b/modules/EC.Open.Backend/Store/resources/views/model/script.blade.php index 4d0da28..c8b20d2 100644 --- a/modules/EC.Open.Backend/Store/resources/views/model/script.blade.php +++ b/modules/EC.Open.Backend/Store/resources/views/model/script.blade.php @@ -1,5 +1,3 @@ -{{--@section('after-scripts-end')--}} - - -{{--@stop--}} \ No newline at end of file + \ No newline at end of file diff --git a/modules/EC.Open.Backend/Store/resources/views/promotion/coupon/show.blade.php b/modules/EC.Open.Backend/Store/resources/views/promotion/coupon/show.blade.php index 7a7fb0d..359f89e 100644 --- a/modules/EC.Open.Backend/Store/resources/views/promotion/coupon/show.blade.php +++ b/modules/EC.Open.Backend/Store/resources/views/promotion/coupon/show.blade.php @@ -1,172 +1,149 @@ -{{--@extends('store-backend::dashboard') - -@section ('title','优惠券明细表') - -@section('breadcrumbs') -

优惠券明细表

- -@endsection - -@section('after-styles-end')--}} - {!! Html::style(env("APP_URL").'/assets/backend/libs/datepicker/bootstrap-datetimepicker.min.css') !!} -{{--@stop - -@section('content')--}} - -
-
- {!! Form::open( [ 'route' => ['admin.promotion.coupon.show'], 'method' => 'get', 'id' => 'recordSearch-form','class'=>'form-horizontal'] ) !!} -
-
-
-
+{!! Html::style(env("APP_URL").'/assets/backend/libs/datepicker/bootstrap-datetimepicker.min.css') !!} + +
+
+ {!! Form::open( [ 'route' => ['admin.promotion.coupon.show'], 'method' => 'get', 'id' => 'recordSearch-form','class'=>'form-horizontal'] ) !!} +
+
+
+
  领取时间 - - -
+ +
-
-
+
+
+
- - -
+ +
+
-
-
- +
+
+
-
- -
- - {!! Form::close() !!} - -
- @if($coupons->count()>0) -
- - - + + + + {!! Form::close() !!} + +
+ + @if($coupons->count()>0) +
+
+ + + + + + + + + + + @foreach ($coupons as $coupon) - - - - - - {{----}} - - - @foreach ($coupons as $coupon) - - - - - - - - @endforeach - -
领取时间优惠券码领取用户是否使用使用时间
领取时间优惠券码领取用户是否使用使用时间操作
{{$coupon->created_at}}{{$coupon->code}}{{$coupon->user?($coupon->user->nick_name?$coupon->user->nick_name:$coupon->user->mobile):'/'}} - @if(!$coupon->used_at) - - @else - - @endif - {{$coupon->used_at}}
-
- -
-   共 {!! $coupons->total() !!} 条记录 -
- -
- {!! $coupons->appends(request()->except('page'))->render() !!} -
- @else -    当前无数据 - @endif + {{$coupon->created_at}} + {{$coupon->code}} + {{$coupon->user?$coupon->user->mobile:'/'}} + + @if(!$coupon->used_at) + + @else + + @endif + + {{$coupon->used_at}} + + @endforeach + + +
+ +
+   共 {!! $coupons->total() !!} 条记录 +
- + @else +    当前无数据 + @endif +
- -{{--@endsection - -@section('before-scripts-end')--}} - - {!! Html::script(env("APP_URL").'/assets/backend/libs/datepicker/bootstrap-datetimepicker.js') !!} - {!! Html::script(env("APP_URL").'/assets/backend/libs/datepicker/bootstrap-datetimepicker.zh-CN.js') !!} - {!! Html::script(env("APP_URL").'/assets/backend/libs/loader/jquery.loader.min.js') !!} - {!! Html::script(env("APP_URL").'/assets/backend/libs/jquery.el/el.common.js') !!} - -{{--@endsection--}} - +
+ + + +{!! Html::script(env("APP_URL").'/assets/backend/libs/datepicker/bootstrap-datetimepicker.js') !!} +{!! Html::script(env("APP_URL").'/assets/backend/libs/datepicker/bootstrap-datetimepicker.zh-CN.js') !!} +{!! Html::script(env("APP_URL").'/assets/backend/libs/loader/jquery.loader.min.js') !!} +{!! Html::script(env("APP_URL").'/assets/backend/libs/jquery.el/el.common.js') !!} + \ No newline at end of file diff --git a/modules/EC.Open.Backend/Store/resources/views/promotion/discount/index.blade.php b/modules/EC.Open.Backend/Store/resources/views/promotion/discount/index.blade.php index 7ddb313..d139de5 100644 --- a/modules/EC.Open.Backend/Store/resources/views/promotion/discount/index.blade.php +++ b/modules/EC.Open.Backend/Store/resources/views/promotion/discount/index.blade.php @@ -90,13 +90,4 @@ class="btn btn-xs btn-success" no-pjax>
- - {!! Html::script(env("APP_URL").'/assets/backend/libs/jquery.zclip/jquery.zclip.js') !!} - \ No newline at end of file + \ No newline at end of file diff --git a/modules/EC.Open.Backend/Store/resources/views/promotion/discount/use_record.blade.php b/modules/EC.Open.Backend/Store/resources/views/promotion/discount/use_record.blade.php index 4e0e2ca..5cb0aa1 100644 --- a/modules/EC.Open.Backend/Store/resources/views/promotion/discount/use_record.blade.php +++ b/modules/EC.Open.Backend/Store/resources/views/promotion/discount/use_record.blade.php @@ -1,22 +1,5 @@ -{{--@extends('store-backend::dashboard') - -@section ('title','促销活动使用记录') - -@section('breadcrumbs') -

促销活动使用记录

- -@endsection - -@section('after-styles-end')--}} {!! Html::style(env("APP_URL").'/assets/backend/admin/css/plugins/ladda/ladda-themeless.min.css') !!} {!! Html::style(env("APP_URL").'/assets/backend/libs/datepicker/bootstrap-datetimepicker.min.css') !!} -{{--@stop - - -@section('content')--}} @if(Session::has('message'))
@@ -106,69 +89,37 @@ class="caret"> - {{----}} - 促销说明 - {{--优惠券码--}} 订单编号 订单总金额 订单状态 会员名 使用时间 - {{--摘要--}} - @if($coupons->count()>0) + @if($discounts->count()>0) - @foreach ($coupons as $coupon) - - {{----}} - - {{$coupon->label}} - - {{$coupon->order->order_no}} - - {{$coupon->order->total}} - - @if($coupon->order->status==7) - 退款中 - @elseif($coupon->order->status==1) - 待付款 - @elseif($coupon->order->status==0) - 临时订单 - @elseif($coupon->order->status==2) - 待发货 - @elseif($coupon->order->status==3) - 配送中待收货 - @elseif($coupon->order->status==4) - 已收货待评价 - @elseif($coupon->order->status==5) - 已完成 - @elseif($coupon->order->status==6) - 已取消 - @elseif($coupon->order->status==9) - 已取消 - @elseif($coupon->order->status==8) - 已作废 - @endif - - {{--@endforeach--}} - {{--{!! ElementVip\Store\Backend\Model\User::find($coupon->order->user_id)->name!!}--}} - {{$coupon->order->user->name?$coupon->order->user->name:$coupon->order->user->mobile}} + @foreach ($discounts as $discount) + + {{$discount->label}} + + {{$discount->order->order_no}} + + {{$discount->order->total}} + {{$discount->order->status_text}} + {{$discount->order->user->mobile}} {{$coupon->created_at}} - {{--{{$coupon->note}}--}} @endforeach @endif
-   共 {!! $coupons->total() !!} 条记录 +   共 {!! $discounts->total() !!} 条记录
- {!! $coupons->appends(request()->except('page'))->render() !!} + {!! $discounts->appends(request()->except('page'))->render() !!}
@@ -181,19 +132,9 @@ class="caret">
-{{--@endsection -@section('before-scripts-end')--}} {!! Html::script(env("APP_URL").'/assets/backend/libs/datepicker/bootstrap-datetimepicker.js') !!} {!! Html::script(env("APP_URL").'/assets/backend/libs/datepicker/bootstrap-datetimepicker.zh-CN.js') !!} {!! Html::script(env("APP_URL").'/assets/backend/libs/loader/jquery.loader.min.js') !!} {!! Html::script(env("APP_URL").'/assets/backend/libs/jquery.el/el.common.js') !!} - @include('store-backend::promotion.public.discount_used_script') -{{--@endsection--}} - - - - - - - + @include('store-backend::promotion.public.discount_used_script') \ No newline at end of file diff --git a/modules/EC.Open.Backend/Store/src/Http/Controllers/CommodityController.php b/modules/EC.Open.Backend/Store/src/Http/Controllers/CommodityController.php index 9f0cb90..1d143a7 100644 --- a/modules/EC.Open.Backend/Store/src/Http/Controllers/CommodityController.php +++ b/modules/EC.Open.Backend/Store/src/Http/Controllers/CommodityController.php @@ -800,13 +800,8 @@ public function saveIsDel() foreach ($goodsIds as $id) { $goods = $this->goodsRepository->find($id); if ($status == 2) { //如果是下架操作 - $status = $this->goodsService->checkPromotionStatusByGoodsID($id); - if ($status) { - $goods->is_del = 2; - $goods->save(); - } else { - $error_list[] = '货号为:' . $goods->goods_no . ' 的商品正在参与促销活动,下架失败'; - } + $goods->is_del = 2; + $goods->save(); } else { $goods->is_del = 0; $goods->save(); diff --git a/modules/EC.Open.Backend/Store/src/Http/Controllers/Promotion/DiscountController.php b/modules/EC.Open.Backend/Store/src/Http/Controllers/Promotion/DiscountController.php index 022ac58..4ef2bd5 100644 --- a/modules/EC.Open.Backend/Store/src/Http/Controllers/Promotion/DiscountController.php +++ b/modules/EC.Open.Backend/Store/src/Http/Controllers/Promotion/DiscountController.php @@ -210,9 +210,9 @@ public function useRecord() $time = $condition[0]; $id = request('id'); - $coupons = $this->orderAdjustmentRepository->getOrderAdjustmentHistory($where, 20, $time); + $discounts = $this->orderAdjustmentRepository->getOrderAdjustmentHistory($where, 20, $time); - return LaravelAdmin::content(function (Content $content) use ($coupons, $id) { + return LaravelAdmin::content(function (Content $content) use ($discounts, $id) { $content->header('促销活动使用记录'); @@ -222,9 +222,8 @@ public function useRecord() ); - $content->body(view('store-backend::promotion.discount.use_record', compact('coupons', 'id'))); + $content->body(view('store-backend::promotion.discount.use_record', compact('discounts', 'id'))); }); -// return view('store-backend::promotion.discount.use_record', compact('coupons', 'id')); } diff --git a/modules/EC.Open.Backend/Store/src/Http/routes.php b/modules/EC.Open.Backend/Store/src/Http/routes.php index 1fed093..44d3d34 100644 --- a/modules/EC.Open.Backend/Store/src/Http/routes.php +++ b/modules/EC.Open.Backend/Store/src/Http/routes.php @@ -141,6 +141,15 @@ $router->get('getUsedExportData', 'CouponController@getUsedExportData')->name('admin.promotion.coupon.getUsedExportData'); $router->get('getCouponsExportData', 'CouponController@getCouponsExportData')->name('admin.promotion.coupon.getCouponsExportData'); }); + + $router->group(['prefix' => 'pubic', 'namespace' => 'Promotion'], function () use ($router) { + $router->get('getSpu', 'PublicController@getSpu')->name('admin.promotion.getSpu'); + $router->get('getWechatGroup', 'PublicController@getWechatGroup')->name('admin.promotion.getWechatGroup'); + $router->post('getSpuData', 'PublicController@getSpuData')->name('admin.promotion.getSpuData'); + $router->post('getWechatGroupData', 'PublicController@getWechatGroupData')->name('admin.promotion.getWechatGroupData'); + $router->post('export/excelExport', 'PublicController@excelExport')->name('admin.promotion.excelExport'); + $router->get('export/download/{url}', 'PublicController@download')->name('admin.promotion.download'); + }); }); diff --git a/modules/EC.Open.Backend/Store/src/Model/OrderAdjustment.php b/modules/EC.Open.Backend/Store/src/Model/OrderAdjustment.php index cebf82e..ea7bc4b 100644 --- a/modules/EC.Open.Backend/Store/src/Model/OrderAdjustment.php +++ b/modules/EC.Open.Backend/Store/src/Model/OrderAdjustment.php @@ -8,12 +8,16 @@ class OrderAdjustment extends Model implements Transformable { - use TransformableTrait; - - protected $table = 'el_order_adjustment'; + use TransformableTrait; protected $guarded = ['id']; + public function __construct(array $attributes = []) + { + parent::__construct($attributes); + $this->setTable(config('ibrand.app.database.prefix', 'ibrand_') . 'order_adjustment'); + } + public function discount() { return $this->hasOne('ElementVip\Component\Discount\Models\Discount', 'id', 'origin_id'); diff --git a/modules/EC.Open.Backend/Store/src/Repositories/DiscountCouponRepository.php b/modules/EC.Open.Backend/Store/src/Repositories/DiscountCouponRepository.php index b25ebb9..b13f6a1 100644 --- a/modules/EC.Open.Backend/Store/src/Repositories/DiscountCouponRepository.php +++ b/modules/EC.Open.Backend/Store/src/Repositories/DiscountCouponRepository.php @@ -39,7 +39,7 @@ public function getCouponsHistoryPaginated($where, $limit = 50, $time = []) if (count($where) > 0) { foreach ($where as $key => $value) { - if ($key != 'order_no' AND $key!='mobile') { + if ($key != 'order_no' AND $key != 'mobile') { if (is_array($value)) { list($operate, $va) = $value; $query = $query->where($key, $operate, $va); @@ -72,12 +72,12 @@ public function getCouponsHistoryPaginated($where, $limit = 50, $time = []) }); $query->whereHas('user', function ($query) use ($where) { - $query->where(function ($query) use ($where) { - if (isset($where['mobile'])) { - list($operate, $va) = $where['mobile']; - $query->where('el_user.mobile', $operate, $va); - } - }); + $query->where(function ($query) use ($where) { + if (isset($where['mobile'])) { + list($operate, $va) = $where['mobile']; + $query->where(config('ibrand.app.database.prefix', 'ibrand_') . 'user.mobile', $operate, $va); + } + }); }); $query = $query->with('order')->with('user'); @@ -90,43 +90,6 @@ public function getCouponsHistoryPaginated($where, $limit = 50, $time = []) } - /** - * 用户获取优惠券 - * @param $user_id - * @param $coupon_id - * @return bool - */ - public function userGetCoupons($user_id, $coupon_id, $type = 0) - { - $coupon = new ElDiscountCoupon(); - $input['user_id'] = $user_id; - $input['discount_id'] = $coupon_id; - if ($type == 1) { - $coupon_code = createOfflineCouponCode(); - $coupon_list = ElDiscountCoupon::where(['code' => $coupon_code])->first(); - if (count($coupon_list)) { - $coupon_code = createOfflineCouponCode(); - } - $input['code'] = $coupon_code; - $input['expires_at'] = Carbon::now()->addMonth(6); - - } else { - $input['code'] = build_order_no('C'); - } - $coupon = $coupon->create($input); - if ($coupon) { - $decrementDiscount = ElDiscount::where(['id' => $coupon_id])->decrement('usage_limit'); - $incrementDisount = ElDiscount::where(['id' => $coupon_id])->increment('used'); - if ($decrementDiscount && $incrementDisount) { - return true; - } else { - return false; - } - } else { - return false; - } - } - public function getExportDataPaginate($discount_id, $limit) { $coupons = ElDiscountCoupon::where('discount_id', $discount_id)->where('code', 'like', '%CT%')->paginate($limit); @@ -154,7 +117,7 @@ public function getCouponsPaginated($where, $limit = 50, $time = []) if (count($where) > 0) { foreach ($where as $key => $value) { - if ($key!='mobile') { + if ($key != 'mobile') { if (is_array($value)) { list($operate, $va) = $value; $query = $query->where($key, $operate, $va); @@ -174,13 +137,13 @@ public function getCouponsPaginated($where, $limit = 50, $time = []) $query = $query->where($key, $value); } } - } + } $query->whereHas('user', function ($query) use ($where) { $query->where(function ($query) use ($where) { if (isset($where['mobile'])) { list($operate, $va) = $where['mobile']; - $query->where('el_user.mobile', $operate, $va); + $query->where(config('ibrand.app.database.prefix', 'ibrand_').'user.mobile', $operate, $va); } }); }); diff --git a/modules/EC.Open.Backend/Store/src/Repositories/OrderAdjustmentRepository.php b/modules/EC.Open.Backend/Store/src/Repositories/OrderAdjustmentRepository.php index 401b98c..4abf886 100644 --- a/modules/EC.Open.Backend/Store/src/Repositories/OrderAdjustmentRepository.php +++ b/modules/EC.Open.Backend/Store/src/Repositories/OrderAdjustmentRepository.php @@ -34,8 +34,6 @@ public function boot() public function getOrderAdjustmentHistory($where, $limit = 50, $time = []) { - - if(isset($where['order_no'])){ $order_no=$where['order_no']; unset($where['order_no']); @@ -64,39 +62,7 @@ public function getOrderAdjustmentHistory($where, $limit = 50, $time = []) } } } - - /*$query = $this->whereHas('order', function ($query) use ($where,$time){ - $query = $query->whereNotIn('origin_type', ['coupon']); - - if (is_array($where)) { - foreach ($where as $key => $value) { - $query->where(function($query) use ($value,$key){ - $key = $key == 'created_at' ? $this->model->getTable().'.created_at' : $key; - if (is_array($value)) { - list($operate, $va) = $value; - $query = $query->where($key, $operate, $va); - } else { - $query = $query->where($key, $value); - } - return $query; - }); - } - } - - if(is_array($time)){ - foreach ($time as $key => $value) { - $key = $this->model->getTable().'.created_at'; - if (is_array($value)) { - list($operate, $va) = $value; - $query = $query->where($key, $operate, $va); - } else { - $query = $query->where($key, $value); - } - } - } - - });*/ - + if(isset($order_no[1])){ $query = $query ->whereHas('order', function ($query) use ($order_no) { @@ -114,6 +80,5 @@ public function getOrderAdjustmentHistory($where, $limit = 50, $time = []) return $query->paginate($limit); } - } } diff --git a/modules/EC.Open.Backend/Store/src/Service/DiscountService.php b/modules/EC.Open.Backend/Store/src/Service/DiscountService.php index 043dda3..8bccf70 100644 --- a/modules/EC.Open.Backend/Store/src/Service/DiscountService.php +++ b/modules/EC.Open.Backend/Store/src/Service/DiscountService.php @@ -1,16 +1,12 @@ suitRepository->getSuitByGoodsId($goods_id); - $seckill = $this->seckillItemRepositor->getSeckillItemByGoodsID($goods_id); - - if (count($suit) > 0 OR $seckill) { - return false; - }*/ - - $relation = PromotionGoodsRelation::where('goods_id', $goods_id)->first(); - if ($relation) return false; - - return true; - } + public function checkSellPrice($data) {