Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jcy2004x
ShopXO
提交
7f8ca297
ShopXO
项目概览
jcy2004x
/
ShopXO
与 Fork 源项目一致
Fork自
纵之格 / ShopXO
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
7f8ca297
编写于
11月 18, 2019
作者:
D
devil_gong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
订单列表新增钩子,插件优化
上级
0df51814
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
36 addition
and
22 deletion
+36
-22
application/index/controller/Common.php
application/index/controller/Common.php
+1
-1
application/index/view/default/order/detail.html
application/index/view/default/order/detail.html
+17
-10
application/index/view/default/order/index.html
application/index/view/default/order/index.html
+17
-10
config/shopxo.php
config/shopxo.php
+1
-1
public/static/upload/images/app_center_nav/2019/10/16/1571231187362091.png
...oad/images/app_center_nav/2019/10/16/1571231187362091.png
+0
-0
public/static/upload/images/app_center_nav/2019/11/05/1572932149956815.png
...oad/images/app_center_nav/2019/11/05/1572932149956815.png
+0
-0
public/static/upload/images/app_nav/2019/10/16/1571231655606153.png
...tic/upload/images/app_nav/2019/10/16/1571231655606153.png
+0
-0
未找到文件。
application/index/controller/Common.php
浏览文件 @
7f8ca297
...
...
@@ -226,7 +226,7 @@ class Common extends Controller
$default_theme
=
strtolower
(
MyC
(
'common_default_theme'
,
'default'
,
true
));
$this
->
assign
(
'default_theme'
,
$default_theme
);
// 当前操作名称, 兼容插件模块名称
// 当前操作名称, 兼容插件模块名称
$module_name
=
strtolower
(
request
()
->
module
());
$controller_name
=
strtolower
(
request
()
->
controller
());
$action_name
=
strtolower
(
request
()
->
action
());
...
...
application/index/view/default/order/detail.html
浏览文件 @
7f8ca297
...
...
@@ -218,19 +218,26 @@
<button
type=
"button"
class=
"am-btn am-btn-danger am-btn-xs am-radius am-icon-trash-o submit-delete"
data-url=
"{{:MyUrl('index/order/delete')}}"
data-id=
"{{$data.id}}"
data-view=
"jump"
data-value=
"{{:MyUrl('index/order/index')}}"
>
删除
</button>
{{/if}}
<!--
钩子订单操作
-->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
<!--
订单详情操作钩子
-->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true
and (!isset($is_footer) or $is_footer eq 1)
}}
<div
class=
"plugins-tag"
>
<span>
plugins_
service_order_handle_operation_html
</span>
<span>
plugins_
view_index_order_detail_operation
</span>
</div>
{{/if}}
{{if !empty($data['plugins_service_order_handle_operation_html']) and is_array($data['plugins_service_order_handle_operation_html'])}}
{{foreach $data.plugins_service_order_handle_operation_html as $hook}}
{{if is_string($hook) or is_int($hook)}}
{{$hook|raw}}
{{/if}}
{{/foreach}}
{{/if}}
{{php}}
$hook_name = 'plugins_view_index_order_detail_operation';
$hook_data = Hook::listen($hook_name, ['hook_name'=>$hook_name, 'is_backend'=>false, 'id'=>$data['id'], 'data'=>$data]);
if(!empty($hook_data)
&&
is_array($hook_data))
{
foreach($hook_data as $hook)
{
if(is_string($hook) || is_int($hook))
{
echo htmlspecialchars_decode($hook);
}
}
}
{{/php}}
</div>
{{if in_array($data['status'], [3,4])}}
<div
class=
"logistics"
>
...
...
application/index/view/default/order/index.html
浏览文件 @
7f8ca297
...
...
@@ -234,19 +234,26 @@
<button
type=
"button"
class=
"am-btn am-btn-danger am-btn-xs am-radius am-icon-trash-o am-btn-block submit-delete"
data-url=
"{{:MyUrl('index/order/delete')}}"
data-id=
"{{$order.id}}"
data-view=
"reload"
>
删除
</button>
{{/if}}
<!--
钩子订单操作
-->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
<!--
订单列表操作钩子
-->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true
and (!isset($is_footer) or $is_footer eq 1)
}}
<div
class=
"plugins-tag"
>
<span>
plugins_
service_order_handle_operation_html
</span>
<span>
plugins_
view_index_order_list_operation
</span>
</div>
{{/if}}
{{if !empty($order['plugins_service_order_handle_operation_html']) and is_array($order['plugins_service_order_handle_operation_html'])}}
{{foreach $order.plugins_service_order_handle_operation_html as $hook}}
{{if is_string($hook) or is_int($hook)}}
{{$hook|raw}}
{{/if}}
{{/foreach}}
{{/if}}
{{php}}
$hook_name = 'plugins_view_index_order_list_operation';
$hook_data = Hook::listen($hook_name, ['hook_name'=>$hook_name, 'is_backend'=>false, 'id'=>$order['id'], 'data'=>$order]);
if(!empty($hook_data)
&&
is_array($hook_data))
{
foreach($hook_data as $hook)
{
if(is_string($hook) || is_int($hook))
{
echo htmlspecialchars_decode($hook);
}
}
}
{{/php}}
</td>
{{/if}}
</tr>
...
...
config/shopxo.php
浏览文件 @
7f8ca297
...
...
@@ -15,7 +15,7 @@
return
[
// 开发模式
'is_develop'
=>
fals
e
,
'is_develop'
=>
tru
e
,
// 默认编码
'default_charset'
=>
'utf-8'
,
...
...
public/static/upload/images/app_center_nav/2019/10/16/1571231187362091.png
100644 → 100755
浏览文件 @
7f8ca297
文件模式从 100644 更改为 100755
public/static/upload/images/app_center_nav/2019/11/05/1572932149956815.png
100644 → 100755
浏览文件 @
7f8ca297
文件模式从 100644 更改为 100755
public/static/upload/images/app_nav/2019/10/16/1571231655606153.png
100644 → 100755
浏览文件 @
7f8ca297
文件模式从 100644 更改为 100755
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录