From 650184d86086802aa558b66910ceaac1ebd6b154 Mon Sep 17 00:00:00 2001
From: wuhui_zzw <1760308791@qq.com>
Date: Fri, 22 Sep 2023 09:48:12 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E8=AE=BE=E8=AE=A1?=
=?UTF-8?q?=20-=20=E5=AF=BC=E8=88=AA=E6=A0=8F=E4=BC=98=E5=8C=96=E3=80=82?=
=?UTF-8?q?=E9=9D=9E=E7=9B=B4=E6=8E=A5=E4=B8=8B=E5=8D=95=E5=95=86=E5=93=81?=
=?UTF-8?q?=E4=B9=9F=E5=8F=AF=E4=BB=A5=E9=80=89=E4=B8=AD=EF=BC=8C=E5=8F=96?=
=?UTF-8?q?=E6=B6=88=E5=9B=BA=E5=AE=9A=E8=BF=9E=E6=8E=A5=E3=80=82=E5=95=86?=
=?UTF-8?q?=E5=93=81=E9=80=89=E6=8B=A9=E8=A1=A8=E6=A0=BC=E5=86=85=E5=AE=B9?=
=?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../builder/component/link_selector.blade.php | 39 +++++++++++++++++--
resources/lang/en/product.php | 1 +
resources/lang/zh_cn/product.php | 2 +-
3 files changed, 37 insertions(+), 5 deletions(-)
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' => '产品类型',