Fix the error in the function of deleting products in the tab-product module
Plug-in optimization wip wip wip
This commit is contained in:
parent
bf5ef979c0
commit
265eb68f22
|
|
@ -108,11 +108,12 @@ Vue.component('module-editor-tab-product', {
|
|||
tabsValueProductData() {
|
||||
var that = this;
|
||||
|
||||
if (!this.module.tabs[0].products.length) return;
|
||||
if (!this.module.tabs[this.editableTabsValue].products.length) return;
|
||||
this.loading = true;
|
||||
|
||||
$http.get('products/names?product_ids='+this.module.tabs[this.editableTabsValue].products.join(','), {hload: true}).then((res) => {
|
||||
this.loading = false;
|
||||
this.module.tabs[this.editableTabsValue].products = res.data.map(e => e.id);
|
||||
that.productData = res.data;
|
||||
})
|
||||
},
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
<td>@{{ plugin.type_format }}</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 class="me-2" style="flex: 0 0 50px;"><img :src="plugin.icon" class="img-fluid border"></div>
|
||||
<div>
|
||||
<h6>@{{ plugin.name }}</h6>
|
||||
<div class="" v-html="plugin.description"></div>
|
||||
|
|
@ -41,7 +41,9 @@
|
|||
</td>
|
||||
<td>
|
||||
<div v-if="plugin.installed">
|
||||
<a class="btn btn-outline-secondary btn-sm" :href="plugin.edit_url">{{ __('admin/common.edit') }}</a>
|
||||
<span :style="!plugin.status ? 'cursor: not-allowed':''">
|
||||
<a :class="['btn btn-outline-secondary btn-sm', !plugin.status ? 'disabled' : '' ]" :href="plugin.edit_url">{{ __('admin/common.edit') }}</a>
|
||||
</span>
|
||||
<a class="btn btn-outline-danger btn-sm" @click="installedPlugin(plugin.code, 'uninstall', index)">{{ __('admin/common.uninstall') }}</a>
|
||||
</div>
|
||||
<div v-else>
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ body.page-checkout {
|
|||
.radio {
|
||||
position: relative;
|
||||
width: 18px;
|
||||
flex: 0 0 18px;
|
||||
height: 18px;
|
||||
border: 1px solid #d4d4d4;
|
||||
border-radius: 50%;
|
||||
|
|
@ -62,6 +63,7 @@ body.page-checkout {
|
|||
margin-right: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex: 0 0 88px;
|
||||
|
||||
img {
|
||||
width: 60px;
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
<span class="radio"></span>
|
||||
<img src="{{ $payment['icon'] }}" class="img-fluid">
|
||||
</div>
|
||||
<div class="right ms-3">
|
||||
<div class="right ms-2">
|
||||
<div class="title">{{ $payment['name'] }}</div>
|
||||
<div class="sub-title">{!! $payment['description'] !!}</div>
|
||||
</div>
|
||||
|
|
@ -52,7 +52,7 @@
|
|||
<span class="radio"></span>
|
||||
<img src="{{ $shipping['icon'] }}" class="img-fluid">
|
||||
</div>
|
||||
<div class="right ms-3">
|
||||
<div class="right ms-2">
|
||||
<div class="title">{{ $shipping['name'] }}</div>
|
||||
<div class="sub-title">{!! $shipping['description'] !!}</div>
|
||||
<div class="mt-2">{!! $shipping['html'] ?? '' !!}</div>
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
</div>
|
||||
<div class="right">
|
||||
<h3 class="order-title">{{ __('shop/checkout.payment.please_pay') }}</h3>
|
||||
<div class="order-info">
|
||||
<div class="order-info mb-4">
|
||||
<table class="table table-borderless">
|
||||
<tbody>
|
||||
<tr>
|
||||
|
|
|
|||
Loading…
Reference in New Issue