-
1.gitignore
-
46app/Admin/Common/Images.php
-
122app/Admin/Common/StoreQRCode.php
-
94app/Admin/Controllers/BannerController.php
-
34app/Admin/Controllers/CategoryController.php
-
9app/Admin/Controllers/GoodsController.php
-
21app/Admin/Controllers/GoodsTypeController.php
-
56app/Admin/Controllers/StoreController.php
-
12app/Admin/Controllers/StoreTypeController.php
-
16app/Admin/Repositories/Banner.php
-
4app/Admin/routes.php
-
16app/Models/Banner.php
-
23app/Models/Category.php
-
8app/Models/GoodsType.php
-
2app/Models/ImsCjdcMarket.php
-
35app/Models/ImsCjdcUser.php
-
2app/Models/LanzuMmInfo.php
-
1app/Models/Store.php
-
9app/Models/StoreType.php
-
1composer.json
-
88composer.lock
-
42database/migrations/2020_09_03_192404_create_lanzu_banners_table.php
-
522dcat_admin_ide_helper.php
-
2public/vendors/dcat-admin/adminlte/adminlte-blue-dark.css
-
2public/vendors/dcat-admin/adminlte/adminlte-blue-light.css
-
2public/vendors/dcat-admin/adminlte/adminlte-blue.css
-
2public/vendors/dcat-admin/adminlte/adminlte-green.css
-
2public/vendors/dcat-admin/adminlte/adminlte.css
-
2public/vendors/dcat-admin/adminlte/adminlte.js
-
2public/vendors/dcat-admin/adminlte/adminlte.js.map
-
2public/vendors/dcat-admin/dcat/css/dcat-app-blue-dark.css
-
2public/vendors/dcat-admin/dcat/css/dcat-app-blue-light.css
-
2public/vendors/dcat-admin/dcat/css/dcat-app-blue.css
-
2public/vendors/dcat-admin/dcat/css/dcat-app-green.css
-
2public/vendors/dcat-admin/dcat/css/dcat-app.css
-
2public/vendors/dcat-admin/dcat/extra/action.js
-
2public/vendors/dcat-admin/dcat/extra/action.js.map
-
2public/vendors/dcat-admin/dcat/extra/grid-extend.js
-
2public/vendors/dcat-admin/dcat/extra/grid-extend.js.map
-
2public/vendors/dcat-admin/dcat/extra/upload-blue-dark.css
-
2public/vendors/dcat-admin/dcat/extra/upload-blue-light.css
-
2public/vendors/dcat-admin/dcat/extra/upload-blue.css
-
2public/vendors/dcat-admin/dcat/extra/upload-green.css
-
2public/vendors/dcat-admin/dcat/extra/upload.css
-
2public/vendors/dcat-admin/dcat/extra/upload.js
-
2public/vendors/dcat-admin/dcat/extra/upload.js.map
-
2public/vendors/dcat-admin/dcat/js/dcat-app.js
-
2public/vendors/dcat-admin/dcat/js/dcat-app.js.map
-
BINpublic/vendors/dcat-admin/images/default-avatar.jpg
-
BINpublic/vendors/dcat-admin/images/logo.png
-
21resources/lang/zh-CN/banner.php
-
9resources/lang/zh-CN/global.php
-
2resources/lang/zh-CN/goods-type.php
-
4resources/lang/zh-CN/store.php
@ -0,0 +1,122 @@ |
|||
<?php |
|||
|
|||
namespace App\Admin\Common; |
|||
|
|||
use Dcat\Admin\Controllers\AdminController; |
|||
use EasyWeChat\Factory; |
|||
use Intervention\Image\ImageManager; |
|||
|
|||
class StoreQRCode extends AdminController |
|||
{ |
|||
protected $images; |
|||
protected $imageManager; |
|||
|
|||
public function __construct() |
|||
{ |
|||
$this->images = new Images(); |
|||
// $this->imageManager = new ImageManager();
|
|||
} |
|||
|
|||
/** |
|||
* 生成小程序码 永久 还没完成 |
|||
* @param $scene 参数 |
|||
* @param $optional |
|||
*/ |
|||
public function getUnlimited(string $scene, array $optional = []) |
|||
{ |
|||
$wxCode = Factory::payment(config('wechat.mini_program.default')); |
|||
$res = $wxCode->app_code->getUnlimited($scene,$optional); |
|||
|
|||
} |
|||
|
|||
/** |
|||
* 生成店铺的微信小程序码 |
|||
*/ |
|||
public function SetStoreWeChatCode($id) |
|||
{ |
|||
$codeStore = $this->images->createQrCode($id,'zh_cjdianc/pages/takeout/takeoutindex'); |
|||
$storeImgPath = 'QR_code/code_store_img/wx_store_'.$id.'.jpg'; |
|||
$res = $this->images->uploadOss($codeStore,$storeImgPath); |
|||
if($res){ |
|||
return ['status' => true ,'path' => $storeImgPath]; |
|||
}else{ |
|||
return ['status' => false ,'path' => '']; |
|||
} |
|||
} |
|||
/** |
|||
* 生成店铺收银的微信二维码 |
|||
*/ |
|||
public function SetPayWeChatCode($id) |
|||
{ |
|||
$isCREATE = env('IS_CREATE_WECHAT_MINI_QR_CODE',1); |
|||
if($isCREATE == 0){ |
|||
$codeStore = $this->images->createQrCode($id,'zh_cjdianc/pages/seller/fukuan'); |
|||
$storeImgPath = 'QR_code/code_minipay_img/wx_minipay_'.$id.'.jpg'; |
|||
}else{ |
|||
$codeStore = $this->images->createWeChatQrCode('?scene='.$id,'zh_cjdianc/pages/seller/fukuan'); |
|||
$storeImgPath = 'QR_code/code_pay_img/wx_pay_'.$id.'.jpg'; |
|||
// 裁剪
|
|||
|
|||
} |
|||
|
|||
// 裁剪测试
|
|||
// $this->imageManager->make()->resize(270,270)->insert($codeStore);
|
|||
|
|||
$res = $this->images->uploadOss($codeStore,$storeImgPath); |
|||
if($res){ |
|||
return ['status' => true ,'path' => $storeImgPath]; |
|||
}else{ |
|||
return ['status' => false ,'path' => '']; |
|||
} |
|||
} |
|||
|
|||
/** |
|||
* 店铺收银码裁剪 |
|||
*/ |
|||
public function setStoreCodeImg($file_path,$storeId){ |
|||
|
|||
$save_path = './QR_code/wx_store_pay_cut/wx_pay_'.$storeId.'.jpg'; |
|||
|
|||
if(!file_exists($save_path)){ |
|||
//将图片进行裁剪
|
|||
if(file_exists($file_path)){ |
|||
$save_width = 270; |
|||
$start_spot_x = 5; |
|||
$start_spot_y = 5; |
|||
$width = 270; |
|||
$height = 270; |
|||
|
|||
$this->tailoringImg($save_path,$file_path,$save_width,$start_spot_x,$start_spot_y,$width,$height,1); |
|||
}else{ |
|||
return ''; |
|||
} |
|||
} |
|||
return $save_path; |
|||
} |
|||
|
|||
/** |
|||
* 裁剪图片 |
|||
*/ |
|||
public function tailoringImg($save_path,$file_path,$save_width,$start_spot_x,$start_spot_y,$width,$height,$display=1) |
|||
{ |
|||
if(file_exists($file_path) && is_readable($file_path)){ |
|||
//从字符串中的图像流新建一图像
|
|||
$src = imagecreatefromstring(file_get_contents($file_path)); |
|||
|
|||
//保存图片的高
|
|||
$save_height = round($save_width*$height/$width); |
|||
|
|||
//根据要保存的宽和高创建图片
|
|||
$new_image = imagecreatetruecolor($save_width, $save_height); |
|||
|
|||
//生成最后的图片
|
|||
imagecopyresampled($new_image, $src, 0, 0, $start_spot_x, $start_spot_y, $save_width, $save_height, $width, $height); |
|||
|
|||
// header('Content-Type: image/jpeg');
|
|||
imagejpeg($new_image,$save_path); |
|||
imagedestroy($src); |
|||
imagedestroy($new_image); |
|||
} |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,94 @@ |
|||
<?php |
|||
|
|||
namespace App\Admin\Controllers; |
|||
|
|||
use App\Admin\Repositories\Banner; |
|||
use Dcat\Admin\Form; |
|||
use Dcat\Admin\Grid; |
|||
use Dcat\Admin\Show; |
|||
use Dcat\Admin\Controllers\AdminController; |
|||
use App\Models\ImsCjdcMarket as MarketModel; |
|||
|
|||
class BannerController extends AdminController |
|||
{ |
|||
/** |
|||
* Make a grid builder. |
|||
* |
|||
* @return Grid |
|||
*/ |
|||
protected function grid() |
|||
{ |
|||
return Grid::make(new Banner(), function (Grid $grid) { |
|||
$grid->column('id')->sortable(); |
|||
$grid->column('market_id'); |
|||
$grid->column('title'); |
|||
$grid->column('sub_title'); |
|||
$grid->column('cover')->image(50); |
|||
$grid->column('cover_type'); |
|||
$grid->column('path'); |
|||
$grid->column('path_type'); |
|||
$grid->column('sort'); |
|||
$grid->column('status'); |
|||
$grid->column('type'); |
|||
$grid->column('created_at'); |
|||
$grid->column('updated_at')->sortable(); |
|||
|
|||
$grid->filter(function (Grid\Filter $filter) { |
|||
$filter->equal('id'); |
|||
|
|||
}); |
|||
}); |
|||
} |
|||
|
|||
/** |
|||
* Make a show builder. |
|||
* |
|||
* @param mixed $id |
|||
* |
|||
* @return Show |
|||
*/ |
|||
protected function detail($id) |
|||
{ |
|||
return Show::make($id, new Banner(), function (Show $show) { |
|||
$show->field('id'); |
|||
$show->field('market_id'); |
|||
$show->field('title'); |
|||
$show->field('sub_title'); |
|||
$show->field('cover'); |
|||
$show->field('cover_type'); |
|||
$show->field('path'); |
|||
$show->field('path_type'); |
|||
$show->field('sort'); |
|||
$show->field('status'); |
|||
$show->field('type'); |
|||
$show->field('created_at'); |
|||
$show->field('updated_at'); |
|||
}); |
|||
} |
|||
|
|||
/** |
|||
* Make a form builder. |
|||
* |
|||
* @return Form |
|||
*/ |
|||
protected function form() |
|||
{ |
|||
return Form::make(new Banner(), function (Form $form) { |
|||
$form->display('id'); |
|||
// 市场
|
|||
$marketList = MarketModel::getMarket(); |
|||
$form->select('market_id')->width(4)->options($marketList); |
|||
$form->text('title'); |
|||
$form->text('sub_title'); |
|||
$form->image('cover')->width(2); |
|||
$form->select('cover_type')->options([1=>'图片', 2=>'视频']); |
|||
$form->text('path'); |
|||
$form->select('path_type')->options(['page'=>'page','webview'=>'webview','applet'=>'applet']); |
|||
$form->text('sort'); |
|||
$form->select('type')->options([1=>'首页banner']); |
|||
|
|||
$form->display('created_at'); |
|||
$form->display('updated_at'); |
|||
}); |
|||
} |
|||
} |
|||
@ -0,0 +1,34 @@ |
|||
<?php |
|||
|
|||
namespace App\Admin\Controllers; |
|||
|
|||
use App\Models\Category; |
|||
use Dcat\Admin\Form; |
|||
use Dcat\Admin\Layout\Row; |
|||
use Dcat\Admin\Layout\Content; |
|||
use Dcat\Admin\Tree; |
|||
use Dcat\Admin\Controllers\AdminController; |
|||
|
|||
class CategoryController extends AdminController |
|||
{ |
|||
public function index(Content $content) |
|||
{ |
|||
return $content->header('树状模型') |
|||
->body(function (Row $row) { |
|||
$tree = new Tree(new Category); |
|||
|
|||
$row->column(12, $tree); |
|||
}); |
|||
} |
|||
|
|||
public function form() |
|||
{ |
|||
return Form::make(new Category(),function (Form $form){ |
|||
$form->text('title'); |
|||
$form->number('sort'); |
|||
// 只查一级
|
|||
$form->select('parent_id')->default(51); |
|||
$form->image('cover_img'); |
|||
}); |
|||
} |
|||
} |
|||
@ -0,0 +1,16 @@ |
|||
<?php |
|||
|
|||
namespace App\Admin\Repositories; |
|||
|
|||
use App\Models\Banner as Model; |
|||
use Dcat\Admin\Repositories\EloquentRepository; |
|||
|
|||
class Banner extends EloquentRepository |
|||
{ |
|||
/** |
|||
* Model. |
|||
* |
|||
* @var string |
|||
*/ |
|||
protected $eloquentClass = Model::class; |
|||
} |
|||
@ -0,0 +1,16 @@ |
|||
<?php |
|||
|
|||
namespace App\Models; |
|||
|
|||
use Dcat\Admin\Traits\HasDateTimeFormatter; |
|||
use Illuminate\Database\Eloquent\SoftDeletes; |
|||
use Illuminate\Database\Eloquent\Model; |
|||
|
|||
class Banner extends Model |
|||
{ |
|||
use HasDateTimeFormatter; |
|||
use SoftDeletes; |
|||
|
|||
protected $table = 'lanzu_banners'; |
|||
protected $dateFormat = 'U'; |
|||
} |
|||
@ -0,0 +1,23 @@ |
|||
<?php |
|||
|
|||
namespace App\Models; |
|||
|
|||
use Dcat\Admin\Traits\ModelTree; |
|||
use Illuminate\Database\Eloquent\Model; |
|||
|
|||
class Category extends Model |
|||
{ |
|||
use ModelTree; |
|||
|
|||
protected $table = 'lanzu_category'; |
|||
protected $dateFormat = 'U'; |
|||
|
|||
// 父级ID字段名称,默认值为 parent_id
|
|||
// protected $parentColumn = 'pid';
|
|||
|
|||
// 排序字段名称,默认值为 order
|
|||
protected $orderColumn = 'sort'; |
|||
|
|||
// 标题字段名称,默认值为 title
|
|||
// protected $titleColumn = 'name';
|
|||
} |
|||
@ -0,0 +1,42 @@ |
|||
<?php |
|||
|
|||
use Illuminate\Support\Facades\Schema; |
|||
use Illuminate\Database\Schema\Blueprint; |
|||
use Illuminate\Database\Migrations\Migration; |
|||
|
|||
class CreateLanzuBannersTable extends Migration |
|||
{ |
|||
/** |
|||
* Run the migrations. |
|||
* |
|||
* @return void |
|||
*/ |
|||
public function up() |
|||
{ |
|||
Schema::create('lanzu_banners', function (Blueprint $table) { |
|||
$table->increments('id'); |
|||
$table->bigInteger('market_id')->default('0')->comment('市场'); |
|||
$table->string('title')->default('')->comment('标题'); |
|||
$table->string('sub_title')->default('')->comment('副标题'); |
|||
$table->string('cover')->default('')->comment('封面'); |
|||
$table->integer('cover_type')->default('1')->comment('封面类型'); |
|||
$table->string('path')->default('')->comment('链接'); |
|||
$table->char('path_type')->comment('链接类型'); |
|||
$table->integer('sort')->default('0')->comment('排序'); |
|||
$table->integer('status')->default('1')->comment('状态'); |
|||
$table->integer('type')->default('0')->comment('位置'); |
|||
$table->timestamps(); |
|||
$table->softDeletes(); |
|||
}); |
|||
} |
|||
|
|||
/** |
|||
* Reverse the migrations. |
|||
* |
|||
* @return void |
|||
*/ |
|||
public function down() |
|||
{ |
|||
Schema::dropIfExists('lanzu_banners'); |
|||
} |
|||
} |
|||
522
dcat_admin_ide_helper.php
File diff suppressed because it is too large
View File
2
public/vendors/dcat-admin/adminlte/adminlte-blue-dark.css
File diff suppressed because it is too large
View File
2
public/vendors/dcat-admin/adminlte/adminlte-blue-light.css
File diff suppressed because it is too large
View File
2
public/vendors/dcat-admin/adminlte/adminlte-blue.css
File diff suppressed because it is too large
View File
2
public/vendors/dcat-admin/adminlte/adminlte-green.css
File diff suppressed because it is too large
View File
2
public/vendors/dcat-admin/adminlte/adminlte.css
File diff suppressed because it is too large
View File
2
public/vendors/dcat-admin/adminlte/adminlte.js
File diff suppressed because it is too large
View File
2
public/vendors/dcat-admin/adminlte/adminlte.js.map
File diff suppressed because it is too large
View File
2
public/vendors/dcat-admin/dcat/css/dcat-app-blue-dark.css
File diff suppressed because it is too large
View File
2
public/vendors/dcat-admin/dcat/css/dcat-app-blue-light.css
File diff suppressed because it is too large
View File
2
public/vendors/dcat-admin/dcat/css/dcat-app-blue.css
File diff suppressed because it is too large
View File
2
public/vendors/dcat-admin/dcat/css/dcat-app-green.css
File diff suppressed because it is too large
View File
2
public/vendors/dcat-admin/dcat/css/dcat-app.css
File diff suppressed because it is too large
View File
@ -1,2 +1,2 @@ |
|||
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=6)}({6:function(e,t,n){e.exports=n(7)},7:function(module,exports){function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}!function(Dcat){var Action=function(){function Action(e){_classCallCheck(this,Action),this.options=$.extend({selector:null,event:"click",method:"POST",key:null,url:null,data:{},confirm:null,calledClass:null,before:function(e,t){},html:function(e,t,n){e.html(t)},success:function(e,t){},error:function(e,t){}},e),this._bind()}return _createClass(Action,[{key:"_bind",value:function(){var e=this,t=e.options;$(t.selector).off(t.event).on(t.event,(function(n){var o=$(this).data(),r=$(this);if(!(r.attr("loading")>0)&&!1!==t.before(o,r,e)){var a=t.confirm;a?Dcat.confirm(a[0],a[1],i):i()}function i(){r.attr("loading",1),Object.assign(o,t.data),e._buildActionPromise(r,o).then(e._resolver()).catch(e._reject())}}))}},{key:"_resolver",value:function _resolver(){var _this=this,options=_this.options;return function(result){var response=result[0],target=result[1];if(!1!==options.success(target,response)){if("object"!==_typeof(response))return Dcat.error({type:"error",title:"Oops!"});var then=function then(_then){switch(_then.action){case"refresh":Dcat.reload();break;case"download":window.open(_then.value,"_blank");break;case"redirect":Dcat.reload(_then.value);break;case"location":window.location=_then.value;break;case"script":!function(){eval(_then.value)}()}};"string"==typeof response.html&&response.html&&options.html(target,response.html,response),"string"==typeof response.data.message&&response.data.type&&Dcat[response.data.type](response.data.message),response.data.then&&then(response.data.then)}}}},{key:"_reject",value:function(){var e=this.options;return function(t){var n=t[0],o=t[1];!1!==e.success(o,n)&&(n&&"object"===_typeof(n.responseJSON)&&Dcat.error(n.responseJSON.message),console.error(n))}}},{key:"_buildActionPromise",value:function(e,t){var n=this.options;return new Promise((function(o,r){Object.assign(t,{_token:Dcat.token,_action:n.calledClass,_key:n.key}),Dcat.NP.start(),$.ajax({method:n.method,url:n.url,data:t,success:function(t){e.attr("loading",0),Dcat.NP.done(),o([t,e])},error:function(t){e.attr("loading",0),Dcat.NP.done(),r([t,e])}})}))}}]),Action}();Dcat.Action=function(e){return new Action(e)}}(Dcat)}}); |
|||
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=6)}({6:function(e,t,n){e.exports=n(7)},7:function(module,exports){function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}!function(Dcat){var Action=function(){function Action(e){_classCallCheck(this,Action),this.options=$.extend({selector:null,event:"click",method:"POST",key:null,url:null,data:{},confirm:null,calledClass:null,before:function(e,t){},html:function(e,t,n){e.html(t)},success:function(e,t){},error:function(e,t){}},e),this.init()}return _createClass(Action,[{key:"init",value:function(){var e=this,t=e.options;$(t.selector).off(t.event).on(t.event,(function(n){var o=$(this).data(),r=$(this);if(!(r.attr("loading")>0)&&!1!==t.before(o,r,e)){var a=t.confirm;a?Dcat.confirm(a[0],a[1],s):s()}function s(){r.attr("loading",1),Object.assign(o,t.data),e.promise(r,o).then(e.resolve()).catch(e.reject())}}))}},{key:"resolve",value:function resolve(){var _this=this,options=_this.options;return function(result){var response=result[0],target=result[1];if(!1!==options.success(target,response)){if("object"!==_typeof(response))return Dcat.error({type:"error",title:"Oops!"});var then=function then(_then){switch(_then.action){case"refresh":Dcat.reload();break;case"download":window.open(_then.value,"_blank");break;case"redirect":Dcat.reload(_then.value);break;case"location":window.location=_then.value;break;case"script":!function(){eval(_then.value)}()}};"string"==typeof response.html&&response.html&&options.html(target,response.html,response),"string"==typeof response.data.message&&response.data.type&&Dcat[response.data.type](response.data.message),response.data.then&&then(response.data.then)}}}},{key:"reject",value:function(){var e=this.options;return function(t){var n=t[0],o=t[1];!1!==e.success(o,n)&&(n&&"object"===_typeof(n.responseJSON)&&Dcat.error(n.responseJSON.message),console.error(n))}}},{key:"promise",value:function(e,t){var n=this.options;return new Promise((function(o,r){Object.assign(t,{_action:n.calledClass,_key:n.key}),Dcat.NP.start(),$.ajax({method:n.method,url:n.url,data:t,success:function(t){e.attr("loading",0),Dcat.NP.done(),o([t,e])},error:function(t){e.attr("loading",0),Dcat.NP.done(),r([t,e])}})}))}}]),Action}();Dcat.Action=function(e){return new Action(e)}}(Dcat)}}); |
|||
//# sourceMappingURL=action.js.map
|
|||
2
public/vendors/dcat-admin/dcat/extra/action.js.map
File diff suppressed because it is too large
View File
2
public/vendors/dcat-admin/dcat/extra/grid-extend.js
File diff suppressed because it is too large
View File
2
public/vendors/dcat-admin/dcat/extra/grid-extend.js.map
File diff suppressed because it is too large
View File
2
public/vendors/dcat-admin/dcat/extra/upload-blue-dark.css
File diff suppressed because it is too large
View File
2
public/vendors/dcat-admin/dcat/extra/upload-blue-light.css
File diff suppressed because it is too large
View File
2
public/vendors/dcat-admin/dcat/extra/upload-blue.css
File diff suppressed because it is too large
View File
2
public/vendors/dcat-admin/dcat/extra/upload-green.css
File diff suppressed because it is too large
View File
2
public/vendors/dcat-admin/dcat/extra/upload.css
File diff suppressed because it is too large
View File
2
public/vendors/dcat-admin/dcat/extra/upload.js
File diff suppressed because it is too large
View File
2
public/vendors/dcat-admin/dcat/extra/upload.js.map
File diff suppressed because it is too large
View File
2
public/vendors/dcat-admin/dcat/js/dcat-app.js
File diff suppressed because it is too large
View File
2
public/vendors/dcat-admin/dcat/js/dcat-app.js.map
File diff suppressed because it is too large
View File
|
Before Width: 70 | Height: 70 | Size: 3.8 KiB After Width: 200 | Height: 200 | Size: 6.8 KiB |
|
Before Width: 120 | Height: 120 | Size: 6.3 KiB After Width: 225 | Height: 225 | Size: 7.8 KiB |
@ -0,0 +1,21 @@ |
|||
<?php |
|||
return [ |
|||
'labels' => [ |
|||
'Banner' => '横幅管理', |
|||
'banner' => '横幅管理', |
|||
], |
|||
'fields' => [ |
|||
'market_id' => '市场', |
|||
'title' => '标题', |
|||
'sub_title' => '副标题', |
|||
'cover' => '封面', |
|||
'cover_type' => '封面类型', |
|||
'path' => '链接', |
|||
'path_type' => '链接类型', |
|||
'sort' => '排序', |
|||
'status' => '状态', |
|||
'type' => '位置', |
|||
], |
|||
'options' => [ |
|||
], |
|||
]; |
|||