diff --git a/resources/beike/admin/views/pages/design/builder/component/link_selector.blade.php b/resources/beike/admin/views/pages/design/builder/component/link_selector.blade.php
index 80d412a7..d2c07d47 100644
--- a/resources/beike/admin/views/pages/design/builder/component/link_selector.blade.php
+++ b/resources/beike/admin/views/pages/design/builder/component/link_selector.blade.php
@@ -17,7 +17,7 @@
:close-on-click-modal="false"
@open="linkDialogOpen"
@closed="linkDialogClose"
- width="460px">
+ :width="link.type == 'product' ? '800px' : '460px'">
+
@@ -142,7 +169,7 @@
{type: 'page', label: '{{ __('admin/builder.text_information') }}'},
{type: 'page_category', label: '{{ __('admin/builder.page_category') }}'},
{type: 'brand', label: '{{ __('admin/builder.text_manufacturer') }}'},
- {type: 'static',label: '{{ __('admin/builder.text_static') }}'},
+ {{--{type: 'static',label: '{{ __('admin/builder.text_static') }}'},--}}
{type: 'custom',label: '{{ __('admin/builder.text_custom') }}'}
],
static: [
@@ -186,11 +213,15 @@
computed: {
dialogTitle: function () {
- return this.types.find(e => e.type == this.link.type).label;
+ let first = this.types.find(e => e.type == this.link.type) ?? {};
+
+ return first.label ?? '';
},
selectorTitle() {
- return this.types.find(e => e.type == this.value.type).label;
+ let first = this.types.find(e => e.type == this.value.type) ?? {};
+
+ return first.label ?? '';
},
linkTypeAdmin: function () {
diff --git a/resources/lang/en/product.php b/resources/lang/en/product.php
index 4eb3644b..5acf3e94 100644
--- a/resources/lang/en/product.php
+++ b/resources/lang/en/product.php
@@ -43,4 +43,5 @@ return [
'multiple_error' => 'The purchase quantity must be a multiple of :num',
'quantity_error_mini' => 'Purchase quantity error, the total purchase quantity of [:goods_name] must be greater than or equal to [:num]',
'quantity_error_multiple' => 'Purchase quantity error, the total purchase quantity of [:goods_name] must be a multiple of [:num]',
+ 'product_type' => 'Product type',
];
diff --git a/resources/lang/zh_cn/product.php b/resources/lang/zh_cn/product.php
index 082c1226..1d1c6528 100644
--- a/resources/lang/zh_cn/product.php
+++ b/resources/lang/zh_cn/product.php
@@ -44,7 +44,7 @@ return [
'multiple_error' => '采购数量必须是:num的倍数',
'quantity_error_mini' => '采购数量错误,【:goods_name】的采购总数量必须大于等于【:num】',
'quantity_error_multiple' => '采购数量错误,【:goods_name】的采购总数量必须是【:num】的倍数',
-
+ 'product_type' => '产品类型',