添加广告位初始化,银行卡选项
parent
66ec472a73
commit
9db9c2cab7
|
|
@ -8,6 +8,27 @@ use Illuminate\Http\Request;
|
||||||
|
|
||||||
class UserBankController extends Controller
|
class UserBankController extends Controller
|
||||||
{
|
{
|
||||||
|
public function options(Request $request)
|
||||||
|
{
|
||||||
|
return response()->json([
|
||||||
|
'banks' => [
|
||||||
|
'中国建设银行',
|
||||||
|
'中国农业银行',
|
||||||
|
'中国工商银行',
|
||||||
|
'中国银行',
|
||||||
|
'交通银行',
|
||||||
|
'招商银行',
|
||||||
|
'民生银行',
|
||||||
|
'兴业银行',
|
||||||
|
'中信实业银行',
|
||||||
|
'上海浦东发展银行',
|
||||||
|
'光大银行',
|
||||||
|
'邮政储蓄银行',
|
||||||
|
'平安银行',
|
||||||
|
],
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户银行卡信息
|
* 用户银行卡信息
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,7 @@ Route::group([
|
||||||
//银行卡
|
//银行卡
|
||||||
Route::get('user-bank', [UserBankController::class, 'show']);
|
Route::get('user-bank', [UserBankController::class, 'show']);
|
||||||
Route::put('user-bank', [UserBankController::class, 'update']);
|
Route::put('user-bank', [UserBankController::class, 'update']);
|
||||||
|
Route::get('banks-options', [UserBankController::class, 'options']);
|
||||||
|
|
||||||
// 收藏商品
|
// 收藏商品
|
||||||
Route::post('product/products/{product}/collect', [ProductSkuController::class, 'collect']);
|
Route::post('product/products/{product}/collect', [ProductSkuController::class, 'collect']);
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,57 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Database\Seeders;
|
||||||
|
|
||||||
|
use App\Models\AdAddress;
|
||||||
|
use Illuminate\Database\Seeder;
|
||||||
|
|
||||||
|
class AdAddressSeeder extends Seeder
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the database seeds.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function run()
|
||||||
|
{
|
||||||
|
foreach ([
|
||||||
|
'top_navigation_banner' => [
|
||||||
|
'name' => '首页顶部导航',
|
||||||
|
'dimensions'=> '50*50',
|
||||||
|
'is_show' => true,
|
||||||
|
],
|
||||||
|
'floor_banner' => [
|
||||||
|
'name' => '首页楼层广告位',
|
||||||
|
'dimensions'=> '710*220',
|
||||||
|
'is_show' => true,
|
||||||
|
],
|
||||||
|
'recommend_banner' => [
|
||||||
|
'name' => '首页精品推荐广告位',
|
||||||
|
'dimensions'=> '670*260',
|
||||||
|
'is_show' => true,
|
||||||
|
],
|
||||||
|
'top_banner' => [
|
||||||
|
'name' => '首页顶部广告位',
|
||||||
|
'dimensions'=> '750*450',
|
||||||
|
'is_show' => true,
|
||||||
|
],
|
||||||
|
'vip_banner' => [
|
||||||
|
'name' => 'VIP会员积分权益',
|
||||||
|
'dimensions'=> '710*196',
|
||||||
|
'is_show' => true,
|
||||||
|
],
|
||||||
|
'vip_award_banner' => [
|
||||||
|
'name' => 'VIP会员推广奖励',
|
||||||
|
'dimensions'=> '226*289',
|
||||||
|
'is_show' => true,
|
||||||
|
],
|
||||||
|
'vip_car_banner' => [
|
||||||
|
'name' => 'VIP直通车广告位',
|
||||||
|
'dimensions'=> '375*200',
|
||||||
|
'is_show' => true,
|
||||||
|
],
|
||||||
|
] as $key => $values) {
|
||||||
|
AdAddress::firstOrCreate(['key' => $key], $values);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -19,6 +19,7 @@ class DatabaseSeeder extends Seeder
|
||||||
AdminMenuSeeder::class,
|
AdminMenuSeeder::class,
|
||||||
AdminPermissionSeeder::class,
|
AdminPermissionSeeder::class,
|
||||||
ProductPartSeeder::class,
|
ProductPartSeeder::class,
|
||||||
|
AdAddressSeeder::class,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue