From c630773b02e0503205804f3c5f9b7c17fafbc61a Mon Sep 17 00:00:00 2001 From: devil Date: Thu, 2 Jul 2020 22:42:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Goods.php | 5 ++++ application/admin/form/Admin.php | 10 +++++--- application/admin/form/Appcenternav.php | 10 +++++--- application/admin/form/Apphomenav.php | 10 +++++--- application/admin/form/Goods.php | 15 +++++++++++ application/admin/form/Goodscomments.php | 5 ++-- application/admin/form/Integrallog.php | 5 ++-- application/admin/form/Message.php | 15 ++++++----- application/admin/form/Navigation.php | 5 ++-- application/admin/form/Order.php | 10 +++++--- application/admin/form/Orderaftersale.php | 15 ++++++----- application/admin/form/Paylog.php | 5 ++-- application/admin/form/Refundlog.php | 5 ++-- application/admin/form/Slide.php | 10 +++++--- application/admin/form/User.php | 10 +++++--- .../admin/view/default/config/index.html | 3 +++ .../admin/view/default/goods/save_info.html | 16 ++++++++++++ .../view/default/public/module/detail.html | 25 ++++++++++++++++--- .../default/public/module/form_table.html | 16 +++++++++--- application/index/form/Message.php | 15 ++++++----- application/index/form/Orderaftersale.php | 15 ++++++----- application/index/form/Userintegral.php | 5 ++-- .../view/default/public/module/detail.html | 25 ++++++++++++++++--- .../default/public/module/form_table.html | 14 +++++++++-- application/lang/zh-cn.php | 3 ++- application/service/AdminService.php | 4 +-- application/service/GoodsService.php | 10 +++++++- changelog.txt | 1 + sourcecode/baidu/app.json | 3 +-- sourcecode/baidu/sitemap.json | 7 ------ sourcecode/qq/app.json | 3 +-- sourcecode/weixin/app.json | 3 +-- 32 files changed, 215 insertions(+), 88 deletions(-) delete mode 100644 sourcecode/baidu/sitemap.json diff --git a/application/admin/controller/Goods.php b/application/admin/controller/Goods.php index 5a5d1d391..58aae0e84 100755 --- a/application/admin/controller/Goods.php +++ b/application/admin/controller/Goods.php @@ -168,6 +168,11 @@ class Goods extends Common $goods_spec_extends = GoodsService::GoodsSpecificationsExtends($params); $this->assign('goods_specifications_extends', $goods_spec_extends['data']); + // 站点类型 + $this->assign('common_site_type_list', lang('common_site_type_list')); + // 当前系统设置的站点类型 + $this->assign('common_site_type', MyC('common_site_type', 0, true)); + // 商品编辑页面钩子 $hook_name = 'plugins_view_admin_goods_save'; $this->assign($hook_name.'_data', Hook::listen($hook_name, diff --git a/application/admin/form/Admin.php b/application/admin/form/Admin.php index 30754c388..a798d6382 100644 --- a/application/admin/form/Admin.php +++ b/application/admin/form/Admin.php @@ -70,10 +70,11 @@ class Admin [ 'label' => '状态', 'view_type' => 'field', - 'view_key' => 'status_text', + 'view_key' => 'status', + 'view_data_key' => 'name', + 'view_data' => lang('common_admin_status_list'), 'search_config' => [ 'form_type' => 'select', - 'form_name' => 'status', 'where_type' => 'in', 'data' => lang('common_admin_status_list'), 'data_key' => 'value', @@ -84,10 +85,11 @@ class Admin [ 'label' => '性别', 'view_type' => 'field', - 'view_key' => 'gender_text', + 'view_key' => 'gender', + 'view_data_key' => 'name', + 'view_data' => lang('common_gender_list'), 'search_config' => [ 'form_type' => 'select', - 'form_name' => 'gender', 'where_type' => 'in', 'data' => lang('common_gender_list'), 'data_key' => 'id', diff --git a/application/admin/form/Appcenternav.php b/application/admin/form/Appcenternav.php index 38432b2e2..6df154227 100644 --- a/application/admin/form/Appcenternav.php +++ b/application/admin/form/Appcenternav.php @@ -67,10 +67,11 @@ class Appcenternav [ 'label' => '所属平台', 'view_type' => 'field', - 'view_key' => 'platform_text', + 'view_key' => 'platform', + 'view_data_key' => 'name', + 'view_data' => lang('common_platform_type'), 'search_config' => [ 'form_type' => 'select', - 'form_name' => 'platform', 'where_type' => 'in', 'data' => lang('common_platform_type'), 'data_key' => 'value', @@ -87,11 +88,12 @@ class Appcenternav [ 'label' => '事件类型', 'view_type' => 'field', - 'view_key' => 'event_type_text', + 'view_key' => 'event_type', + 'view_data_key' => 'name', + 'view_data' => lang('common_app_event_type'), 'grid_size' => 'sm', 'search_config' => [ 'form_type' => 'select', - 'form_name' => 'event_type', 'where_type' => 'in', 'data' => lang('common_app_event_type'), 'data_key' => 'value', diff --git a/application/admin/form/Apphomenav.php b/application/admin/form/Apphomenav.php index 3052efb2a..b118ccd73 100644 --- a/application/admin/form/Apphomenav.php +++ b/application/admin/form/Apphomenav.php @@ -67,10 +67,11 @@ class Apphomenav [ 'label' => '所属平台', 'view_type' => 'field', - 'view_key' => 'platform_text', + 'view_key' => 'platform', + 'view_data_key' => 'name', + 'view_data' => lang('common_platform_type'), 'search_config' => [ 'form_type' => 'select', - 'form_name' => 'platform', 'where_type' => 'in', 'data' => lang('common_platform_type'), 'data_key' => 'value', @@ -87,11 +88,12 @@ class Apphomenav [ 'label' => '事件类型', 'view_type' => 'field', - 'view_key' => 'event_type_text', + 'view_key' => 'event_type', + 'view_data_key' => 'name', + 'view_data' => lang('common_app_event_type'), 'grid_size' => 'sm', 'search_config' => [ 'form_type' => 'select', - 'form_name' => 'event_type', 'where_type' => 'in', 'data' => lang('common_app_event_type'), 'data_key' => 'value', diff --git a/application/admin/form/Goods.php b/application/admin/form/Goods.php index eba8a3c5b..2e3f8c808 100644 --- a/application/admin/form/Goods.php +++ b/application/admin/form/Goods.php @@ -85,6 +85,21 @@ class Goods 'placeholder' => '请输入商品名称/简述/SEO信息' ], ], + [ + 'label' => '商品类型', + 'view_type' => 'field', + 'view_key' => 'site_type', + 'view_data_key' => 'name', + 'view_data' => lang('common_site_type_list'), + 'search_config' => [ + 'form_type' => 'select', + 'where_type' => 'in', + 'data' => lang('common_site_type_list'), + 'data_key' => 'value', + 'data_name' => 'name', + 'is_multiple' => 1, + ], + ], [ 'label' => '销售价格(元)', 'view_type' => 'field', diff --git a/application/admin/form/Goodscomments.php b/application/admin/form/Goodscomments.php index 55b3564c2..37a8bc62f 100644 --- a/application/admin/form/Goodscomments.php +++ b/application/admin/form/Goodscomments.php @@ -88,11 +88,12 @@ class Goodscomments [ 'label' => '业务类型', 'view_type' => 'field', - 'view_key' => 'business_type_text', + 'view_key' => 'business_type', + 'view_data_key' => 'name', + 'view_data' => lang('common_goods_comments_business_type_list'), 'width' => 120, 'search_config' => [ 'form_type' => 'select', - 'form_name' => 'business_type', 'where_type' => 'in', 'data' => lang('common_goods_comments_business_type_list'), 'data_key' => 'value', diff --git a/application/admin/form/Integrallog.php b/application/admin/form/Integrallog.php index cd8e2b3cf..ea4ddd11b 100644 --- a/application/admin/form/Integrallog.php +++ b/application/admin/form/Integrallog.php @@ -62,10 +62,11 @@ class Integrallog [ 'label' => '操作类型', 'view_type' => 'field', - 'view_key' => 'type_text', + 'view_key' => 'type', + 'view_data_key' => 'name', + 'view_data' => lang('common_integral_log_type_list'), 'search_config' => [ 'form_type' => 'select', - 'form_name' => 'type', 'where_type' => 'in', 'data' => lang('common_integral_log_type_list'), 'data_key' => 'id', diff --git a/application/admin/form/Message.php b/application/admin/form/Message.php index 575f16f6f..f58921f47 100644 --- a/application/admin/form/Message.php +++ b/application/admin/form/Message.php @@ -75,10 +75,11 @@ class Message [ 'label' => '消息类型', 'view_type' => 'field', - 'view_key' => 'type_text', + 'view_key' => 'type', + 'view_data_key' => 'name', + 'view_data' => lang('common_message_type_list'), 'search_config' => [ 'form_type' => 'select', - 'form_name' => 'type', 'where_type' => 'in', 'data' => lang('common_message_type_list'), 'data_key' => 'id', @@ -89,10 +90,11 @@ class Message [ 'label' => '业务类型', 'view_type' => 'field', - 'view_key' => 'business_type_text', + 'view_key' => 'business_type', + 'view_data_key' => 'name', + 'view_data' => lang('common_business_type_list'), 'search_config' => [ 'form_type' => 'select', - 'form_name' => 'business_type', 'where_type' => 'in', 'data' => lang('common_business_type_list'), 'data_key' => 'id', @@ -122,10 +124,11 @@ class Message [ 'label' => '是否已读', 'view_type' => 'field', - 'view_key' => 'is_read_text', + 'view_key' => 'is_read', + 'view_data_key' => 'name', + 'view_data' => lang('common_is_read_list'), 'search_config' => [ 'form_type' => 'select', - 'form_name' => 'is_read', 'where_type' => 'in', 'data' => lang('common_is_read_list'), 'data_key' => 'id', diff --git a/application/admin/form/Navigation.php b/application/admin/form/Navigation.php index 24d6da77b..35f1bcfa6 100644 --- a/application/admin/form/Navigation.php +++ b/application/admin/form/Navigation.php @@ -73,10 +73,11 @@ class Navigation [ 'label' => '导航数据类型', 'view_type' => 'field', - 'view_key' => 'data_type_text', + 'view_key' => 'data_type', + 'view_data_key' => 'name', + 'view_data' => lang('common_nav_type_list'), 'search_config' => [ 'form_type' => 'select', - 'form_name' => 'data_type', 'where_type' => 'in', 'data' => lang('common_nav_type_list'), 'data_key' => 'value', diff --git a/application/admin/form/Order.php b/application/admin/form/Order.php index 85eeef799..21a1d103c 100644 --- a/application/admin/form/Order.php +++ b/application/admin/form/Order.php @@ -160,11 +160,12 @@ class Order [ 'label' => '订单模式', 'view_type' => 'field', - 'view_key' => 'order_model_name', + 'view_key' => 'order_model', + 'view_data_key' => 'name', + 'view_data' => lang('common_site_type_list'), 'width' => 120, 'search_config' => [ 'form_type' => 'select', - 'form_name' => 'order_model', 'where_type' => 'in', 'data' => lang('common_site_type_list'), 'data_key' => 'value', @@ -175,11 +176,12 @@ class Order [ 'label' => '来源', 'view_type' => 'field', - 'view_key' => 'client_type_name', + 'view_key' => 'client_type', + 'view_data_key' => 'name', + 'view_data' => lang('common_platform_type'), 'width' => 120, 'search_config' => [ 'form_type' => 'select', - 'form_name' => 'client_type', 'where_type' => 'in', 'data' => lang('common_platform_type'), 'data_key' => 'value', diff --git a/application/admin/form/Orderaftersale.php b/application/admin/form/Orderaftersale.php index da66856b2..5fbfee354 100644 --- a/application/admin/form/Orderaftersale.php +++ b/application/admin/form/Orderaftersale.php @@ -86,11 +86,12 @@ class Orderaftersale [ 'label' => '状态', 'view_type' => 'field', - 'view_key' => 'status_text', + 'view_key' => 'status', + 'view_data_key' => 'name', + 'view_data' => lang('common_order_aftersale_status_list'), 'width' => 120, 'search_config' => [ 'form_type' => 'select', - 'form_name' => 'status', 'where_type' => 'in', 'data' => lang('common_order_aftersale_status_list'), 'data_key' => 'value', @@ -101,11 +102,12 @@ class Orderaftersale [ 'label' => '申请类型', 'view_type' => 'field', - 'view_key' => 'type_text', + 'view_key' => 'type', + 'view_data_key' => 'name', + 'view_data' => lang('common_order_aftersale_type_list'), 'width' => 120, 'search_config' => [ 'form_type' => 'select', - 'form_name' => 'type', 'where_type' => 'in', 'data' => lang('common_order_aftersale_type_list'), 'data_key' => 'value', @@ -152,11 +154,12 @@ class Orderaftersale [ 'label' => '退款类型', 'view_type' => 'field', - 'view_key' => 'refundment_text', + 'view_key' => 'refundment', + 'view_data_key' => 'name', + 'view_data' => lang('common_order_aftersale_refundment_list'), 'width' => 120, 'search_config' => [ 'form_type' => 'select', - 'form_name' => 'refundment', 'where_type' => 'in', 'data' => lang('common_order_aftersale_refundment_list'), 'data_key' => 'value', diff --git a/application/admin/form/Paylog.php b/application/admin/form/Paylog.php index e6814fe19..01d36dbaa 100644 --- a/application/admin/form/Paylog.php +++ b/application/admin/form/Paylog.php @@ -77,10 +77,11 @@ class Paylog [ 'label' => '业务类型', 'view_type' => 'field', - 'view_key' => 'business_type_text', + 'view_key' => 'business_type', + 'view_data_key' => 'name', + 'view_data' => lang('common_business_type_list'), 'search_config' => [ 'form_type' => 'select', - 'form_name' => 'business_type', 'where_type' => 'in', 'data' => lang('common_business_type_list'), 'data_key' => 'id', diff --git a/application/admin/form/Refundlog.php b/application/admin/form/Refundlog.php index 6dacecf43..3f1ec2648 100644 --- a/application/admin/form/Refundlog.php +++ b/application/admin/form/Refundlog.php @@ -77,10 +77,11 @@ class Refundlog [ 'label' => '业务类型', 'view_type' => 'field', - 'view_key' => 'business_type_text', + 'view_key' => 'business_type', + 'view_data_key' => 'name', + 'view_data' => lang('common_business_type_list'), 'search_config' => [ 'form_type' => 'select', - 'form_name' => 'business_type', 'where_type' => 'in', 'data' => lang('common_business_type_list'), 'data_key' => 'id', diff --git a/application/admin/form/Slide.php b/application/admin/form/Slide.php index c27e298cc..c785a6ef9 100644 --- a/application/admin/form/Slide.php +++ b/application/admin/form/Slide.php @@ -67,10 +67,11 @@ class Slide [ 'label' => '所属平台', 'view_type' => 'field', - 'view_key' => 'platform_text', + 'view_key' => 'platform', + 'view_data_key' => 'name', + 'view_data' => lang('common_platform_type'), 'search_config' => [ 'form_type' => 'select', - 'form_name' => 'platform', 'where_type' => 'in', 'data' => lang('common_platform_type'), 'data_key' => 'value', @@ -87,10 +88,11 @@ class Slide [ 'label' => '事件类型', 'view_type' => 'field', - 'view_key' => 'event_type_text', + 'view_key' => 'event_type', + 'view_data_key' => 'name', + 'view_data' => lang('common_app_event_type'), 'search_config' => [ 'form_type' => 'select', - 'form_name' => 'event_type', 'where_type' => 'in', 'data' => lang('common_app_event_type'), 'data_key' => 'value', diff --git a/application/admin/form/User.php b/application/admin/form/User.php index 9be8c2058..eec0ce411 100644 --- a/application/admin/form/User.php +++ b/application/admin/form/User.php @@ -109,10 +109,11 @@ class User [ 'label' => '性别', 'view_type' => 'field', - 'view_key' => 'gender_text', + 'view_key' => 'gender', + 'view_data_key' => 'name', + 'view_data' => lang('common_gender_list'), 'search_config' => [ 'form_type' => 'select', - 'form_name' => 'gender', 'where_type' => 'in', 'data' => lang('common_gender_list'), 'data_key' => 'id', @@ -123,10 +124,11 @@ class User [ 'label' => '状态', 'view_type' => 'field', - 'view_key' => 'status_text', + 'view_key' => 'status', + 'view_data_key' => 'name', + 'view_data' => lang('common_user_status_list'), 'search_config' => [ 'form_type' => 'select', - 'form_name' => 'status', 'where_type' => 'in', 'data' => lang('common_user_status_list'), 'data_key' => 'id', diff --git a/application/admin/view/default/config/index.html b/application/admin/view/default/config/index.html index c7895eca3..c975a503c 100755 --- a/application/admin/view/default/config/index.html +++ b/application/admin/view/default/config/index.html @@ -38,6 +38,9 @@
+
+ 请到百度地图开放平台申请,查看配置教程 +
diff --git a/application/admin/view/default/goods/save_info.html b/application/admin/view/default/goods/save_info.html index 13572a4d4..167c4c4f8 100755 --- a/application/admin/view/default/goods/save_info.html +++ b/application/admin/view/default/goods/save_info.html @@ -146,6 +146,22 @@
+
+ +
+

1. 当前系统配置的站点类型为[ {{$common_site_type_list[$common_site_type]['name']}} ]

+

2. 如果商品类型未配置则跟随系统配置的站点类型

+

3. 当设置的商品类型不在系统设置的站点类型包含的时候,商品加入购物车功能将失效

+
+ +