wip
This commit is contained in:
parent
dd650e4fdc
commit
42ba3a0236
|
|
@ -32,7 +32,7 @@ class CheckoutService
|
|||
'addresses' => $addresses,
|
||||
'shipments' => $shipments,
|
||||
'country_id' => setting('country_id'),
|
||||
'customer_id' => $customer->id,
|
||||
'customer_id' => $customer->id ?? null,
|
||||
'countries' => CountryRepo::all(),
|
||||
'payments' => $payments,
|
||||
'carts' => $carts
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
@section('title', '顾客管理')
|
||||
|
||||
@section('content')
|
||||
<div id="customer-app-form" class="card">
|
||||
<div id="customer-app-form" class="card" v-cloak>
|
||||
<div class="card-body">
|
||||
<el-form :model="form" :rules="rules" ref="form" label-width="100px">
|
||||
<el-tabs v-model="customerTab">
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
@section('content')
|
||||
|
||||
<div id="plugins-app" class="card">
|
||||
<div id="plugins-app" class="card" v-cloak>
|
||||
<div class="card-body">
|
||||
<a href="{{ admin_route('categories.create') }}" class="btn btn-primary">创建插件</a>
|
||||
<div class="mt-4" style="">
|
||||
|
|
@ -19,31 +19,29 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($plugins as $plugin)
|
||||
<tr v-for="plugin, index in plugins" :key="index" v-if="plugins.length">
|
||||
<td>{{ $plugin->code }}</td>
|
||||
<td>{{ $plugin->type }}</td>
|
||||
<td>
|
||||
<div class="plugin-describe d-flex align-items-center">
|
||||
<div class="me-2" style="width: 50px;"><img src="{{ $plugin->icon }}" class="img-fluid"></div>
|
||||
<div>
|
||||
<h6>{{ $plugin->name }}</h6>
|
||||
<div class="">{!! $plugin->description !!}</div>
|
||||
</div>
|
||||
<tr v-for="plugin, index in plugins" :key="index" v-if="plugins.length">
|
||||
<td>@{{ plugin->code }}</td>
|
||||
<td>@{{ plugin->type }}</td>
|
||||
<td>
|
||||
<div class="plugin-describe d-flex align-items-center">
|
||||
<div class="me-2" style="width: 50px;"><img src="@{{ plugin->icon }}" class="img-fluid"></div>
|
||||
<div>
|
||||
<h6>@{{ plugin->name }}</h6>
|
||||
<div class="" v-html="plugin->description"></div>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-check form-switch">
|
||||
<input class="form-check-input" type="checkbox" role="switch" id="switch-1"
|
||||
{{ $plugin->getEnabled() ? 'checked' : '' }} data-code="{{ $plugin->code }}">
|
||||
<label class="form-check-label" for="switch-1"></label>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<a class="btn btn-outline-secondary btn-sm" href="{{ $plugin->getEditUrl() }}">编辑</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
{{-- <div class="form-check form-switch">
|
||||
<input class="form-check-input" type="checkbox" role="switch" id="switch-1"
|
||||
@{{ plugin->getEnabled() ? 'checked' : '' }} data-code="@{{ plugin->code }}">
|
||||
<label class="form-check-label" for="switch-1"></label>
|
||||
</div> --}}
|
||||
</td>
|
||||
<td>
|
||||
<a class="btn btn-outline-secondary btn-sm" href="">编辑</a>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -207,6 +207,7 @@
|
|||
})
|
||||
}
|
||||
|
||||
this.countryChange(this.dialogAddress.form.country_id);
|
||||
this.dialogAddress.show = true
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue