Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
飞鱼0526
ShopXO
提交
036c980b
ShopXO
项目概览
飞鱼0526
/
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,发现更多精彩内容 >>
提交
036c980b
编写于
6月 18, 2020
作者:
D
devil
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
轮播列表优化
上级
1af85b7a
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
278 addition
and
341 deletion
+278
-341
application/admin/controller/Slide.php
application/admin/controller/Slide.php
+58
-54
application/admin/form/Slide.php
application/admin/form/Slide.php
+158
-0
application/admin/view/default/slide/detail.html
application/admin/view/default/slide/detail.html
+2
-0
application/admin/view/default/slide/index.html
application/admin/view/default/slide/index.html
+9
-211
application/admin/view/default/slide/module/images.html
application/admin/view/default/slide/module/images.html
+10
-0
application/admin/view/default/slide/module/operate.html
application/admin/view/default/slide/module/operate.html
+13
-0
application/service/SlideService.php
application/service/SlideService.php
+20
-68
config/shopxo.sql
config/shopxo.sql
+7
-7
sourcecode/weixin/pages/plugins/weixinliveplayer/detail/detail.js
...de/weixin/pages/plugins/weixinliveplayer/detail/detail.js
+1
-1
未找到文件。
application/admin/controller/Slide.php
浏览文件 @
036c980b
...
...
@@ -49,50 +49,61 @@ class Slide extends Common
*/
public
function
Index
()
{
// 参数
$params
=
input
();
// 分页
$number
=
MyC
(
'admin_page_number'
,
10
,
true
);
// 条件
$where
=
SlideService
::
SlideListWhere
(
$params
);
// 获取总数
$total
=
SlideService
::
SlideTotal
(
$where
);
// 总数
$total
=
SlideService
::
SlideTotal
(
$this
->
form_where
);
// 分页
$page_params
=
array
(
'number'
=>
$number
,
'total'
=>
$total
,
'where'
=>
$params
,
'page'
=>
isset
(
$params
[
'page'
])
?
intval
(
$params
[
'page'
])
:
1
,
'url'
=>
MyUrl
(
'admin/slide/index'
),
)
;
$page_params
=
[
'number'
=>
$this
->
page_size
,
'total'
=>
$total
,
'where'
=>
$this
->
data_request
,
'page'
=>
$this
->
page
,
'url'
=>
MyUrl
(
'admin/slide/index'
),
]
;
$page
=
new
\
base\Page
(
$page_params
);
$this
->
assign
(
'page_html'
,
$page
->
GetPageHtml
());
// 获取列表
$data_params
=
array
(
'm'
=>
$page
->
GetPageStarNumber
(),
'n'
=>
$number
,
'where'
=>
$where
,
'field'
=>
'*'
,
);
$data
=
SlideService
::
SlideList
(
$data_params
);
$this
->
assign
(
'data_list'
,
$data
[
'data'
]);
// 是否启用
$this
->
assign
(
'common_is_enable_list'
,
lang
(
'common_is_enable_list'
));
// 所属平台
$this
->
assign
(
'common_platform_type'
,
lang
(
'common_platform_type'
));
$data_params
=
[
'where'
=>
$this
->
form_where
,
'm'
=>
$page
->
GetPageStarNumber
(),
'n'
=>
$this
->
page_size
,
];
$ret
=
SlideService
::
SlideList
(
$data_params
);
// 基础参数赋值
$this
->
assign
(
'params'
,
$this
->
data_request
);
$this
->
assign
(
'page_html'
,
$page
->
GetPageHtml
());
$this
->
assign
(
'data_list'
,
$ret
[
'data'
]);
return
$this
->
fetch
();
}
// 事件类型
$this
->
assign
(
'common_app_event_type'
,
lang
(
'common_app_event_type'
));
/**
* 详情
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @datetime 2019-08-05T08:21:54+0800
*/
public
function
Detail
()
{
if
(
!
empty
(
$this
->
data_request
[
'id'
]))
{
// 条件
$where
=
[
[
'id'
,
'='
,
intval
(
$this
->
data_request
[
'id'
])],
];
// 参数
$this
->
assign
(
'params'
,
$params
);
// 获取列表
$data_params
=
[
'm'
=>
0
,
'n'
=>
1
,
'where'
=>
$where
,
'is_category'
=>
1
,
];
$ret
=
SlideService
::
SlideList
(
$data_params
);
$data
=
(
empty
(
$ret
[
'data'
])
||
empty
(
$ret
[
'data'
][
0
]))
?
[]
:
$ret
[
'data'
][
0
];
$this
->
assign
(
'data'
,
$data
);
}
return
$this
->
fetch
();
}
...
...
@@ -106,39 +117,32 @@ class Slide extends Common
public
function
SaveInfo
()
{
// 参数
$params
=
input
()
;
$params
=
$this
->
data_request
;
// 数据
$data
=
[];
if
(
!
empty
(
$params
[
'id'
]))
{
// 获取列表
$data_params
=
array
(
$data_params
=
[
'm'
=>
0
,
'n'
=>
1
,
'where'
=>
[
'id'
=>
intval
(
$params
[
'id'
])],
'field'
=>
'*'
,
)
;
]
;
$ret
=
SlideService
::
SlideList
(
$data_params
);
$data
=
empty
(
$ret
[
'data'
][
0
])
?
[]
:
$ret
[
'data'
][
0
];
}
$this
->
assign
(
'data'
,
$data
);
//
是否启用
//
静态资源
$this
->
assign
(
'common_is_enable_list'
,
lang
(
'common_is_enable_list'
));
// 所属平台
$this
->
assign
(
'common_platform_type'
,
lang
(
'common_platform_type'
));
// 事件类型
$this
->
assign
(
'common_app_event_type'
,
lang
(
'common_app_event_type'
));
// 参数
$this
->
assign
(
'params'
,
$params
);
// 编辑器文件存放地址
// 数据
$this
->
assign
(
'editor_path_type'
,
'slide'
);
$this
->
assign
(
'params'
,
$params
);
$this
->
assign
(
'data'
,
$data
);
return
$this
->
fetch
();
}
...
...
@@ -158,7 +162,7 @@ class Slide extends Common
}
// 开始处理
$params
=
input
()
;
$params
=
$this
->
data_request
;
return
SlideService
::
SlideSave
(
$params
);
}
...
...
@@ -178,7 +182,7 @@ class Slide extends Common
}
// 开始处理
$params
=
input
()
;
$params
=
$this
->
data_request
;
return
SlideService
::
SlideDelete
(
$params
);
}
...
...
@@ -198,7 +202,7 @@ class Slide extends Common
}
// 开始处理
$params
=
input
()
;
$params
=
$this
->
data_request
;
return
SlideService
::
SlideStatusUpdate
(
$params
);
}
}
...
...
application/admin/form/Slide.php
0 → 100644
浏览文件 @
036c980b
<?php
// +----------------------------------------------------------------------
// | ShopXO 国内领先企业级B2C免费开源电商系统
// +----------------------------------------------------------------------
// | Copyright (c) 2011~2019 http://shopxo.net All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Devil
// +----------------------------------------------------------------------
namespace
app\admin\form
;
/**
* 轮播动态表格
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @date 2020-06-18
* @desc description
*/
class
Slide
{
// 基础条件
public
$condition_base
=
[];
/**
* 入口
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @date 2020-06-18
* @desc description
* @param [array] $params [输入参数]
*/
public
function
Run
(
$params
=
[])
{
return
[
// 基础配置
'base'
=>
[
'key_field'
=>
'id'
,
'status_field'
=>
'is_enable'
,
'is_search'
=>
1
,
'search_url'
=>
MyUrl
(
'admin/slide/index'
),
'is_delete'
=>
1
,
'delete_url'
=>
MyUrl
(
'admin/slide/delete'
),
'delete_key'
=>
'ids'
,
],
// 表单配置
'form'
=>
[
[
'view_type'
=>
'checkbox'
,
'is_checked'
=>
0
,
'checked_text'
=>
'反选'
,
'not_checked_text'
=>
'全选'
,
'align'
=>
'center'
,
'width'
=>
80
,
],
[
'label'
=>
'名称'
,
'view_type'
=>
'field'
,
'view_key'
=>
'name'
,
'search_config'
=>
[
'form_type'
=>
'input'
,
'where_type'
=>
'like'
,
],
],
[
'label'
=>
'所属平台'
,
'view_type'
=>
'field'
,
'view_key'
=>
'platform_text'
,
'search_config'
=>
[
'form_type'
=>
'select'
,
'form_name'
=>
'platform'
,
'where_type'
=>
'in'
,
'data'
=>
lang
(
'common_platform_type'
),
'data_key'
=>
'value'
,
'data_name'
=>
'name'
,
'is_multiple'
=>
1
,
],
],
[
'label'
=>
'图片'
,
'view_type'
=>
'module'
,
'view_key'
=>
'slide/module/images'
,
'grid_size'
=>
'sm'
,
],
[
'label'
=>
'事件类型'
,
'view_type'
=>
'field'
,
'view_key'
=>
'event_type_text'
,
'search_config'
=>
[
'form_type'
=>
'select'
,
'form_name'
=>
'event_type'
,
'where_type'
=>
'in'
,
'data'
=>
lang
(
'common_app_event_type'
),
'data_key'
=>
'value'
,
'data_name'
=>
'name'
,
'is_multiple'
=>
1
,
],
],
[
'label'
=>
'事件值'
,
'view_type'
=>
'field'
,
'view_key'
=>
'event_value'
,
'search_config'
=>
[
'form_type'
=>
'input'
,
'where_type'
=>
'like'
,
],
],
[
'label'
=>
'是否启用'
,
'view_type'
=>
'status'
,
'view_key'
=>
'is_enable'
,
'post_url'
=>
MyUrl
(
'admin/slide/statusupdate'
),
'is_form_su'
=>
1
,
'align'
=>
'center'
,
'search_config'
=>
[
'form_type'
=>
'select'
,
'where_type'
=>
'in'
,
'data'
=>
lang
(
'common_is_enable_list'
),
'data_key'
=>
'id'
,
'data_name'
=>
'name'
,
'is_multiple'
=>
1
,
],
],
[
'label'
=>
'排序'
,
'view_type'
=>
'field'
,
'view_key'
=>
'sort'
,
],
[
'label'
=>
'创建时间'
,
'view_type'
=>
'field'
,
'view_key'
=>
'add_time'
,
'search_config'
=>
[
'form_type'
=>
'datetime'
,
],
],
[
'label'
=>
'更新时间'
,
'view_type'
=>
'field'
,
'view_key'
=>
'upd_time'
,
'search_config'
=>
[
'form_type'
=>
'datetime'
,
],
],
[
'label'
=>
'操作'
,
'view_type'
=>
'operate'
,
'view_key'
=>
'slide/module/operate'
,
'align'
=>
'center'
,
'fixed'
=>
'right'
,
],
],
];
}
}
?>
\ No newline at end of file
application/admin/view/default/slide/detail.html
0 → 100644
浏览文件 @
036c980b
<!-- 继承公共的 form -->
{{extend name="public/module/detail" /}}
\ No newline at end of file
application/admin/view/default/slide/index.html
浏览文件 @
036c980b
{{include file="public/header" /}}
<!-- right content start -->
<div
class=
"content-right"
>
<div
class=
"content"
>
<!-- form start -->
<form
class=
"am-form form-validation form-search"
method=
"post"
action=
"{{:MyUrl('admin/slide/index')}}"
request-type=
"form"
>
<div
class=
"thin"
>
<div
class=
"am-input-group am-input-group-sm am-fl so"
>
<input
type=
"text"
autocomplete=
"off"
name=
"keywords"
class=
"am-radius"
placeholder=
"名称"
value=
"{{if !empty($params.keywords)}}{{$params.keywords}}{{/if}}"
/>
<span
class=
"am-input-group-btn"
>
<button
class=
"am-btn am-btn-default am-radius"
type=
"submit"
data-am-loading=
"{spinner:'circle-o-notch', loadingText:'搜索中...'}"
>
搜索
</button>
</span>
</div>
<label
class=
"am-fl thin_sub more-submit"
>
更多筛选条件
{{if isset($params['is_more']) and $params['is_more'] eq 1}}
<input
type=
"checkbox"
name=
"is_more"
value=
"1"
id=
"is_more"
checked
/>
<i
class=
"am-icon-angle-up"
></i>
{{else /}}
<input
type=
"checkbox"
name=
"is_more"
value=
"1"
id=
"is_more"
/>
<i
class=
"am-icon-angle-down"
></i>
{{/if}}
</label>
</div>
<table
class=
"so-list more-where {{if !isset($params['is_more'])}}none{{/if}}"
>
<tbody>
<tr>
<td>
<span>
启用:
</span>
<select
name=
"is_enable"
class=
"chosen-select"
data-placeholder=
"是否启用..."
>
<option
value=
"-1"
>
是否启用...
</option>
{{foreach $common_is_enable_list as $v}}
<option
value=
"{{$v.id}}"
{{
if
isset
($
params
['
is_enable
'])
and
$
params
['
is_enable
']
eq
$
v
['
id
']}}
selected
{{/
if
}}
>
{{$v.name}}
</option>
{{/foreach}}
</select>
</td>
<td>
<span>
平台:
</span>
<select
name=
"platform"
class=
"chosen-select"
data-placeholder=
"所属平台..."
>
<option
value=
""
>
所属平台...
</option>
{{foreach $common_platform_type as $v}}
<option
value=
"{{$v.value}}"
{{
if
isset
($
params
['
platform
'])
and
$
params
['
platform
']
eq
$
v
['
value
']}}
selected
{{/
if
}}
>
{{$v.name}}
</option>
{{/foreach}}
</select>
</td>
</tr>
<tr>
<td>
<span>
类型:
</span>
<select
name=
"event_type"
class=
"chosen-select"
data-placeholder=
"事件类型..."
>
<option
value=
"-1"
>
事件类型...
</option>
{{foreach $common_app_event_type as $v}}
<option
value=
"{{$v.value}}"
{{
if
isset
($
params
['
event_type
'])
and
$
params
['
event_type
']
eq
$
v
['
value
']}}
selected
{{/
if
}}
>
{{$v.name}}
</option>
{{/foreach}}
</select>
</td>
<td
class=
"time"
>
<span>
时间:
</span>
<span>
<input
type=
"text"
autocomplete=
"off"
name=
"time_start"
class=
"am-form-field am-input-sm am-radius Wdate"
placeholder=
"起始时间"
value=
"{{if !empty($params.time_start)}}{{$params.time_start}}{{/if}}"
data-validation-message=
"日期格式有误"
onclick=
"WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd'})"
autocomplete=
"off"
/><i
class=
"am-icon-calendar"
></i>
</span>
<em
class=
"text-grey"
>
~
</em>
<span>
<input
type=
"text"
autocomplete=
"off"
name=
"time_end"
class=
"am-form-field am-input-sm am-radius Wdate"
placeholder=
"结束时间"
value=
"{{if !empty($params.time_end)}}{{$params.time_end}}{{/if}}"
pattern=
"^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
data-validation-message=
"日期格式有误"
onclick=
"WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd'})"
autocomplete=
"off"
/><i
class=
"am-icon-calendar"
></i>
</span>
</td>
</tr>
<tr>
<td
class=
"time"
></td>
<td>
<button
type=
"submit"
class=
"am-btn am-btn-primary am-radius am-btn-xs btn-loading-example"
data-am-loading=
"{spinner:'circle-o-notch', loadingText:'搜索中...'}"
>
搜索
</button>
<a
href=
"{{:MyUrl('admin/slide/index')}}"
class=
"am-btn am-btn-warning am-radius am-btn-sm reset-submit"
>
清除条件
</a>
</td>
</tr>
</tbody>
</table>
</form>
<!-- form end -->
<!-- operation start -->
<div
class=
"am-g am-margin-top-sm"
>
<a
href=
"{{:MyUrl('admin/slide/saveinfo')}}"
class=
"am-btn am-btn-secondary am-radius am-btn-xs am-icon-plus"
>
新增
</a>
</div>
<!-- operation end -->
<!-- list start -->
<div
class=
"am-scrollable-horizontal am-table-scrollable-horizontal am-margin-top-sm"
>
<table
class=
"am-table am-table-striped am-table-hover am-table-bordered am-text-nowrap am-table-td-fixed-last"
>
<thead>
<tr>
<th>
名称
</th>
<th>
所属平台
</th>
<th
class=
"am-grid-sm"
>
图片
</th>
<th
class=
"am-grid-lg"
>
事件值
</th>
<th
class=
"am-text-center"
>
是否启用
</th>
<th
class=
"am-text-center"
>
更多
</th>
<th
class=
"am-text-center"
>
操作
</th>
</tr>
</thead>
<tbody>
{{if !empty($data_list)}}
{{foreach $data_list as $v}}
<tr
id=
"data-list-{{$v.id}}"
{{
if
$
v
['
is_enable
']
eq
0}}
class=
"am-active"
{{/
if
}}
>
<td
class=
"am-text-middle"
>
{{$v.name}}
</td>
<td
class=
"am-text-middle"
>
{{$v.platform_text}}
</td>
<td
{{
if
!
empty
($
v
['
bg_color
'])}}
style=
"background-color:{{$v.bg_color}};"
{{/
if
}}
>
{{if !empty($v['images_url'])}}
<a
href=
"{{$v['images_url']}}"
target=
"_blank"
>
<img
src=
"{{$v['images_url']}}"
class=
"am-radius"
width=
"100"
height=
"60"
/>
</a>
{{else /}}
<span
class=
"cr-ddd"
>
暂无图片
</span>
{{/if}}
</td>
<td
class=
"am-text-middle am-nowrap-initial"
>
{{$v.event_value}}
{{if !empty($v['event_type_text'])}}
<br
/><span
class=
"am-badge am-badge-warning am-radius"
>
{{$v.event_type_text}}
</span>
{{/if}}
</td>
<td
class=
"am-text-middle am-text-center"
>
<a
href=
"javascript:;"
class=
"am-icon-btn am-icon-check submit-state {{if $v['is_enable'] eq 1}}am-success{{else /}}am-default{{/if}}"
data-url=
"{{:MyUrl('admin/slide/statusUpdate')}}"
data-id=
"{{$v.id}}"
data-state=
"{{$v['is_enable']}}"
data-is-update-status=
"1"
></a>
</td>
<td
class=
"am-text-middle"
>
<p
class=
"am-text-center xo-cursor-pr"
>
<i
class=
"am-icon-caret-down"
></i>
<span
data-am-modal=
"{target: '#my-popup{{$v.id}}'}"
>
查看更多
</span>
</p>
<div
class=
"am-popup am-radius"
id=
"my-popup{{$v.id}}"
>
<div
class=
"am-popup-inner"
>
<div
class=
"am-popup-hd"
>
<h4
class=
"am-popup-title"
>
详情内容
</h4>
<span
data-am-modal-close
class=
"am-close"
>
×
</span>
</div>
<div
class=
"am-popup-bd"
>
<dl
class=
"dl-content"
>
<dt>
名称
</dt>
<dd>
{{$v.name}}
</dd>
<dt>
所属平台
</dt>
<dd>
{{$v.platform_text}}
</dd>
<dt>
图片
</dt>
<dd>
{{if !empty($v['images_url'])}}
<a
href=
"{{$v['images_url']}}"
target=
"_blank"
>
<img
src=
"{{$v['images_url']}}"
class=
"am-radius"
width=
"100"
height=
"60"
/>
</a>
{{else /}}
<span
class=
"cr-ddd"
>
暂无图片
</span>
{{/if}}
</dd>
<dt>
事件值
</dt>
<dd
class=
"am-nowrap-initial"
>
{{$v.event_value}}
{{if !empty($v['event_type_text'])}}
<br
/><span
class=
"am-badge am-badge-warning am-radius"
>
{{$v.event_type_text}}
</span>
{{/if}}
</dd>
<dt>
启用
</dt>
<dd>
{{$v.is_enable_text}}
</dd>
<dt>
创建时间
</dt>
<dd>
{{$v.add_time_time}}
</dd>
<dt>
更新时间
</dt>
<dd>
{{$v.upd_time_time}}
</dd>
</dl>
</div>
</div>
</div>
</td>
<td
class=
"am-operate-grid"
>
<div
class=
"am-scrollable-vertical"
>
<a
class=
"am-btn am-btn-secondary am-btn-xs am-radius am-btn-block"
href=
"{{:MyUrl('admin/slide/saveinfo', array_merge($params, ['id'=>$v['id']]))}}"
>
<i
class=
"am-icon-edit"
></i>
<span>
编辑
</span>
</a>
<button
class=
"am-btn am-btn-danger am-btn-xs am-radius am-btn-block submit-delete"
data-url=
"{{:MyUrl('admin/slide/delete')}}"
data-id=
"{{$v.id}}"
>
<i
class=
"am-icon-trash-o"
></i>
<span>
删除
</span>
</button>
</div>
</td>
</tr>
{{/foreach}}
{{/if}}
</tbody>
</table>
{{if empty($data_list)}}
<div
class=
"table-no"
><i
class=
"am-icon-warning"
></i>
没有相关数据
</div>
{{/if}}
</div>
<!-- list end -->
<!-- page start -->
{{if !empty($data_list)}}
{{$page_html|raw}}
{{/if}}
<!-- page end -->
</div>
</div>
<!-- right content end -->
<!-- footer start -->
{{include file="public/footer" /}}
<!-- footer end -->
\ No newline at end of file
<!-- 继承公共的 form -->
{{extend name="public/module/form" /}}
<!-- 表单顶部操作栏 -->
{{block name="form_operate_top"}}
<a
href=
"{{:MyUrl('admin/slide/saveinfo')}}"
class=
"am-btn am-btn-secondary am-radius am-btn-xs am-icon-plus"
>
新增
</a>
<!-- 父级内容 -->
{__block__}
{{/block}}
\ No newline at end of file
application/admin/view/default/slide/module/images.html
0 → 100644
浏览文件 @
036c980b
<!-- 商品基础信息 -->
{{if !empty($module_data)}}
<div
{{
if
!
empty
($
module_data
['
bg_color
'])}}
style=
"background-color:{{$module_data.bg_color}};"
{{/
if
}}
>
{{if !empty($module_data['images_url'])}}
<a
href=
"{{$module_data['images_url']}}"
target=
"_blank"
>
<img
src=
"{{$module_data['images_url']}}"
class=
"am-radius"
width=
"100"
height=
"60"
/>
</a>
{{/if}}
</div>
{{/if}}
\ No newline at end of file
application/admin/view/default/slide/module/operate.html
0 → 100644
浏览文件 @
036c980b
<!-- 操作栏 -->
<button
type=
"button"
class=
"am-btn am-btn-default am-btn-xs am-radius am-btn-block submit-popup"
data-url=
"{{:MyUrl('admin/slide/detail', ['id'=>$module_data['id']])}}"
>
<i
class=
"am-icon-eye"
></i>
<span>
详情
</span>
</button>
<a
class=
"am-btn am-btn-secondary am-btn-xs am-radius am-btn-block"
href=
"{{:MyUrl('admin/slide/saveinfo', array('id'=>$module_data['id']))}}"
>
<i
class=
"am-icon-edit"
></i>
<span>
编辑
</span>
</a>
<button
type=
"button"
class=
"am-btn am-btn-danger am-btn-xs am-radius am-btn-block submit-delete"
data-url=
"{{:MyUrl('admin/slide/delete')}}"
data-id=
"{{$module_data.id}}"
data-key=
"ids"
>
<i
class=
"am-icon-trash-o"
></i>
<span>
删除
</span>
</button>
\ No newline at end of file
application/service/SlideService.php
浏览文件 @
036c980b
...
...
@@ -38,7 +38,7 @@ class SlideService
$m
=
isset
(
$params
[
'm'
])
?
intval
(
$params
[
'm'
])
:
0
;
$n
=
isset
(
$params
[
'n'
])
?
intval
(
$params
[
'n'
])
:
10
;
$data
=
Db
::
name
(
'Slide'
)
->
field
(
$field
)
->
where
(
$where
)
->
order
(
'sort asc'
)
->
limit
(
$m
,
$n
)
->
select
();
$data
=
Db
::
name
(
'Slide'
)
->
field
(
$field
)
->
where
(
$where
)
->
order
(
'
id desc,
sort asc'
)
->
limit
(
$m
,
$n
)
->
select
();
if
(
!
empty
(
$data
))
{
$common_platform_type
=
lang
(
'common_platform_type'
);
...
...
@@ -74,13 +74,11 @@ class SlideService
// 时间
if
(
isset
(
$v
[
'add_time'
]))
{
$v
[
'add_time_time'
]
=
date
(
'Y-m-d H:i:s'
,
$v
[
'add_time'
]);
$v
[
'add_time_date'
]
=
date
(
'Y-m-d'
,
$v
[
'add_time'
]);
$v
[
'add_time'
]
=
date
(
'Y-m-d H:i:s'
,
$v
[
'add_time'
]);
}
if
(
isset
(
$v
[
'upd_time'
]))
{
$v
[
'upd_time_time'
]
=
date
(
'Y-m-d H:i:s'
,
$v
[
'upd_time'
]);
$v
[
'upd_time_date'
]
=
date
(
'Y-m-d'
,
$v
[
'upd_time'
]);
$v
[
'upd_time'
]
=
empty
(
$v
[
'upd_time'
])
?
''
:
date
(
'Y-m-d H:i:s'
,
$v
[
'upd_time'
]);
}
}
}
...
...
@@ -101,54 +99,6 @@ class SlideService
return
(
int
)
Db
::
name
(
'Slide'
)
->
where
(
$where
)
->
count
();
}
/**
* 列表条件
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @date 2018-09-29
* @desc description
* @param [array] $params [输入参数]
*/
public
static
function
SlideListWhere
(
$params
=
[])
{
$where
=
[];
if
(
!
empty
(
$params
[
'keywords'
]))
{
$where
[]
=
[
'name'
,
'like'
,
'%'
.
$params
[
'keywords'
]
.
'%'
];
}
// 是否更多条件
if
(
isset
(
$params
[
'is_more'
])
&&
$params
[
'is_more'
]
==
1
)
{
// 等值
if
(
isset
(
$params
[
'is_enable'
])
&&
$params
[
'is_enable'
]
>
-
1
)
{
$where
[]
=
[
'is_enable'
,
'='
,
intval
(
$params
[
'is_enable'
])];
}
if
(
isset
(
$params
[
'event_type'
])
&&
$params
[
'event_type'
]
>
-
1
)
{
$where
[]
=
[
'event_type'
,
'='
,
intval
(
$params
[
'event_type'
])];
}
if
(
!
empty
(
$params
[
'platform'
]))
{
$where
[]
=
[
'platform'
,
'='
,
$params
[
'platform'
]];
}
if
(
!
empty
(
$params
[
'time_start'
]))
{
$where
[]
=
[
'add_time'
,
'>'
,
strtotime
(
$params
[
'time_start'
])];
}
if
(
!
empty
(
$params
[
'time_end'
]))
{
$where
[]
=
[
'add_time'
,
'<'
,
strtotime
(
$params
[
'time_end'
])];
}
}
return
$where
;
}
/**
* 数据保存
* @author Devil
...
...
@@ -251,27 +201,24 @@ class SlideService
*/
public
static
function
SlideDelete
(
$params
=
[])
{
// 请求参数
$p
=
[
[
'checked_type'
=>
'empty'
,
'key_name'
=>
'id'
,
'error_msg'
=>
'操作id有误'
,
],
];
$ret
=
ParamsChecked
(
$params
,
$p
);
if
(
$ret
!==
true
)
// 参数是否有误
if
(
empty
(
$params
[
'ids'
]))
{
return
DataReturn
(
$ret
,
-
1
);
return
DataReturn
(
'商品id有误'
,
-
1
);
}
// 是否数组
if
(
!
is_array
(
$params
[
'ids'
]))
{
$params
[
'ids'
]
=
explode
(
','
,
$params
[
'ids'
]);
}
// 删除操作
if
(
Db
::
name
(
'Slide'
)
->
where
([
'id'
=>
$params
[
'id'
]])
->
delete
())
if
(
Db
::
name
(
'Slide'
)
->
where
([
'id'
=>
$params
[
'id
s
'
]])
->
delete
())
{
return
DataReturn
(
'删除成功'
);
}
return
DataReturn
(
'删除失败
或资源不存在
'
,
-
100
);
return
DataReturn
(
'删除失败'
,
-
100
);
}
/**
...
...
@@ -291,6 +238,11 @@ class SlideService
'key_name'
=>
'id'
,
'error_msg'
=>
'操作id有误'
,
],
[
'checked_type'
=>
'empty'
,
'key_name'
=>
'field'
,
'error_msg'
=>
'未指定操作字段'
,
],
[
'checked_type'
=>
'in'
,
'key_name'
=>
'state'
,
...
...
@@ -305,11 +257,11 @@ class SlideService
}
// 数据更新
if
(
Db
::
name
(
'Slide'
)
->
where
([
'id'
=>
intval
(
$params
[
'id'
])])
->
update
([
'is_enable'
=>
intval
(
$params
[
'state'
]
)]))
if
(
Db
::
name
(
'Slide'
)
->
where
([
'id'
=>
intval
(
$params
[
'id'
])])
->
update
([
$params
[
'field'
]
=>
intval
(
$params
[
'state'
]),
'upd_time'
=>
time
(
)]))
{
return
DataReturn
(
'编辑成功'
);
}
return
DataReturn
(
'编辑失败
或数据未改变
'
,
-
100
);
return
DataReturn
(
'编辑失败'
,
-
100
);
}
}
?>
\ No newline at end of file
config/shopxo.sql
浏览文件 @
036c980b
...
...
@@ -11,7 +11,7 @@
Target Server Version : 50729
File Encoding : utf-8
Date: 06/1
6/2020 23:26:40 P
M
Date: 06/1
8/2020 01:07:28 A
M
*/
SET NAMES utf8mb4;
...
...
@@ -41,7 +41,7 @@ CREATE TABLE `s_admin` (
-- Records of `s_admin`
-- ----------------------------
BEGIN;
INSERT INTO `s_admin` VALUES ('1', 'admin', '
0d44275f28c66574b83d2cd7ae299539', '117105', '17688888888', '0', '0', '486', '1592147302
', '1', '1481350313', '1551341520'), ('4', 'shopxo', '29297307e33b6c4b4b1a218b2c5bd0af', '162258', '', '0', '1', '3', '1588067855', '13', '1580807200', '1591872155');
INSERT INTO `s_admin` VALUES ('1', 'admin', '
b7c1877dd74965b57f0c9b269634f5dd', '151388', '17688888888', '0', '0', '487', '1592411214
', '1', '1481350313', '1551341520'), ('4', 'shopxo', '29297307e33b6c4b4b1a218b2c5bd0af', '162258', '', '0', '1', '3', '1588067855', '13', '1580807200', '1591872155');
COMMIT;
-- ----------------------------
...
...
@@ -349,7 +349,7 @@ CREATE TABLE `s_custom_view` (
-- Records of `s_custom_view`
-- ----------------------------
BEGIN;
INSERT INTO `s_custom_view` VALUES ('1', '测试自定义页面22沙发上冬瓜豆腐东方红甘肃光合谷 vV 币 vv 小白菜 v 吧俄国人搞活动个人风格 VC 不超过吧都是', '<p><img src=\"/static/upload/images/customview/image/2018/08/09/1533779966550231.jpeg\" title=\"1533779966550231.jpeg\" alt=\"1.jpeg\"/></p><p><span style=\"color: rgb(255, 0, 0);\">ShopXO</span></p><p><span style=\"color: rgb(38, 38, 38); font-family: 微软雅黑, \">秀,身材苗条!</span></p><p><span style=\"color: rgb(38, 38, 38); font-family: 微软雅黑, \"></span></p><p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \">在欧美的排版业界中,使用 Arial 的作品意即是「不使用 Helvetica 的作品」,会被认為是设计师对字体的使用没有概念或是太容易妥协,基本上我大致也是同意。</p><p style=\"box-sizing: border-box; margin-top: 1.6rem; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \"><br/></p><p style=\"box-sizing: border-box; margin-top: 1.6rem; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \">因為 Helvetica 只有 Mac 上才有內建,Windows 用戶除非花錢買,不然是沒有 Helvetica 能用,所以使用 Arial 的設計師往往被看成是不願意對 Typography 花錢,專業素養不到家的人。除了在確保網頁相容性等絕對必需的情況外,幾乎可以說是不應該使用的字體。</p><p><span style=\"color: rgb(38, 38, 38); font-family: 微软雅黑, \"><br/></span></p><p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \">在欧美的排版业界中,使用 Arial 的作品意即是「不使用 Helvetica 的作品」,会被认為是设计师对字体的使用没有概念或是太容易妥协,基本上我大致也是同意。</p><p style=\"box-sizing: border-box; margin-top: 1.6rem; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \">因為 Helvetica 只有 Mac 上才有內建,Windows 用戶除非花錢買,不然是沒有 Helvetica 能用,所以使用 Arial 的設計師往往被看成是不願意對 Typography 花錢,專業素養不到家的人。除了在確保網頁相容性等絕對必需的情況外,幾乎可以說是不應該使用的字體。</p><p><span style=\"color: rgb(38, 38, 38); font-family: 微软雅黑, \"><br/></span></p><p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \">在欧美的排版业界中,使用 Arial 的作品意即是「不使用 Helvetica 的作品」,会被认為是设计师对字体的使用没有概念或是太容易妥协,基本上我大致也是同意。</p><p style=\"box-sizing: border-box; margin-top: 1.6rem; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \">因為 Helvetica 只有 Mac 上才有內建,Windows 用戶除非花錢買,不然是沒有 Helvetica 能用,所以使用 Arial 的設計師往往被看成是不願意對 Typography 花錢,專業素養不到家的人。除了在確保網頁相容性等絕對必需的情況外,幾乎可以說是不應該使用的字體。</p><p><span style=\"color: rgb(38, 38, 38); font-family: 微软雅黑, \"><br/></span></p><p><span style=\"color: rgb(38, 38, 38); font-family: 微软雅黑, \"><br/></span></p><p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \">在欧美的排版业界中,使用 Arial 的作品意即是「不使用 Helvetica 的作品」,会被认為是设计师对字体的使用没有概念或是太容易妥协,基本上我大致也是同意。</p><p style=\"box-sizing: border-box; margin-top: 1.6rem; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \">因為 Helvetica 只有 Mac 上才有內建,Windows 用戶除非花錢買,不然是沒有 Helvetica 能用,所以使用 Arial 的設計師往往被看成是不願意對 Typography 花錢,專業素養不到家的人。除了在確保網頁相容性等絕對必需的情況外,幾乎可以說是不應該使用的字體。</p><p><span style=\"color: rgb(38, 38, 38); font-family: 微软雅黑, \"><br/></span></p><p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \">在欧美的排版业界中,使用 Arial 的作品意即是「不使用 Helvetica 的作品」,会被认為是设计师对字体的使用没有概念或是太容易妥协,基本上我大致也是同意。</p><p style=\"box-sizing: border-box; margin-top: 1.6rem; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \">因為 Helvetica 只有 Mac 上才有內建,Windows 用戶除非花錢買,不然是沒有 Helvetica 能用,所以使用 Arial 的設計師往往被看成是不願意對 Typography 花錢,專業素養不到家的人。除了在確保網頁相容性等絕對必需的情況外,幾乎可以說是不應該使用的字體。</p><p><br/></p>', '1', '1', '1', '0', '[\"/static/upload/images/customview/image/2018/08/09/1533779966550231.jpeg\",\"/static/upload/images/customview/image/2018/08/09/1533779966550231.jpeg\",\"/static/upload/images/customview/image/2018/08/09/1533779966550231.jpeg\"]', '1', '92
2
', '1484965691', '1592300274');
INSERT INTO `s_custom_view` VALUES ('1', '测试自定义页面22沙发上冬瓜豆腐东方红甘肃光合谷 vV 币 vv 小白菜 v 吧俄国人搞活动个人风格 VC 不超过吧都是', '<p><img src=\"/static/upload/images/customview/image/2018/08/09/1533779966550231.jpeg\" title=\"1533779966550231.jpeg\" alt=\"1.jpeg\"/></p><p><span style=\"color: rgb(255, 0, 0);\">ShopXO</span></p><p><span style=\"color: rgb(38, 38, 38); font-family: 微软雅黑, \">秀,身材苗条!</span></p><p><span style=\"color: rgb(38, 38, 38); font-family: 微软雅黑, \"></span></p><p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \">在欧美的排版业界中,使用 Arial 的作品意即是「不使用 Helvetica 的作品」,会被认為是设计师对字体的使用没有概念或是太容易妥协,基本上我大致也是同意。</p><p style=\"box-sizing: border-box; margin-top: 1.6rem; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \"><br/></p><p style=\"box-sizing: border-box; margin-top: 1.6rem; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \">因為 Helvetica 只有 Mac 上才有內建,Windows 用戶除非花錢買,不然是沒有 Helvetica 能用,所以使用 Arial 的設計師往往被看成是不願意對 Typography 花錢,專業素養不到家的人。除了在確保網頁相容性等絕對必需的情況外,幾乎可以說是不應該使用的字體。</p><p><span style=\"color: rgb(38, 38, 38); font-family: 微软雅黑, \"><br/></span></p><p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \">在欧美的排版业界中,使用 Arial 的作品意即是「不使用 Helvetica 的作品」,会被认為是设计师对字体的使用没有概念或是太容易妥协,基本上我大致也是同意。</p><p style=\"box-sizing: border-box; margin-top: 1.6rem; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \">因為 Helvetica 只有 Mac 上才有內建,Windows 用戶除非花錢買,不然是沒有 Helvetica 能用,所以使用 Arial 的設計師往往被看成是不願意對 Typography 花錢,專業素養不到家的人。除了在確保網頁相容性等絕對必需的情況外,幾乎可以說是不應該使用的字體。</p><p><span style=\"color: rgb(38, 38, 38); font-family: 微软雅黑, \"><br/></span></p><p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \">在欧美的排版业界中,使用 Arial 的作品意即是「不使用 Helvetica 的作品」,会被认為是设计师对字体的使用没有概念或是太容易妥协,基本上我大致也是同意。</p><p style=\"box-sizing: border-box; margin-top: 1.6rem; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \">因為 Helvetica 只有 Mac 上才有內建,Windows 用戶除非花錢買,不然是沒有 Helvetica 能用,所以使用 Arial 的設計師往往被看成是不願意對 Typography 花錢,專業素養不到家的人。除了在確保網頁相容性等絕對必需的情況外,幾乎可以說是不應該使用的字體。</p><p><span style=\"color: rgb(38, 38, 38); font-family: 微软雅黑, \"><br/></span></p><p><span style=\"color: rgb(38, 38, 38); font-family: 微软雅黑, \"><br/></span></p><p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \">在欧美的排版业界中,使用 Arial 的作品意即是「不使用 Helvetica 的作品」,会被认為是设计师对字体的使用没有概念或是太容易妥协,基本上我大致也是同意。</p><p style=\"box-sizing: border-box; margin-top: 1.6rem; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \">因為 Helvetica 只有 Mac 上才有內建,Windows 用戶除非花錢買,不然是沒有 Helvetica 能用,所以使用 Arial 的設計師往往被看成是不願意對 Typography 花錢,專業素養不到家的人。除了在確保網頁相容性等絕對必需的情況外,幾乎可以說是不應該使用的字體。</p><p><span style=\"color: rgb(38, 38, 38); font-family: 微软雅黑, \"><br/></span></p><p style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \">在欧美的排版业界中,使用 Arial 的作品意即是「不使用 Helvetica 的作品」,会被认為是设计师对字体的使用没有概念或是太容易妥协,基本上我大致也是同意。</p><p style=\"box-sizing: border-box; margin-top: 1.6rem; margin-bottom: 1.6rem; color: rgb(51, 51, 51); font-family: \">因為 Helvetica 只有 Mac 上才有內建,Windows 用戶除非花錢買,不然是沒有 Helvetica 能用,所以使用 Arial 的設計師往往被看成是不願意對 Typography 花錢,專業素養不到家的人。除了在確保網頁相容性等絕對必需的情況外,幾乎可以說是不應該使用的字體。</p><p><br/></p>', '1', '1', '1', '0', '[\"/static/upload/images/customview/image/2018/08/09/1533779966550231.jpeg\",\"/static/upload/images/customview/image/2018/08/09/1533779966550231.jpeg\",\"/static/upload/images/customview/image/2018/08/09/1533779966550231.jpeg\"]', '1', '92
3
', '1484965691', '1592300274');
COMMIT;
-- ----------------------------
...
...
@@ -1342,13 +1342,13 @@ CREATE TABLE `s_power` (
`icon` char(60) NOT NULL DEFAULT '' COMMENT '图标class',
`add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=40
8
DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='权限';
) ENGINE=InnoDB AUTO_INCREMENT=40
9
DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='权限';
-- ----------------------------
-- Records of `s_power`
-- ----------------------------
BEGIN;
INSERT INTO `s_power` VALUES ('1', '0', '权限控制', 'Power', 'Index', '3', '1', 'icon-quanxian', '1481612301'), ('4', '1', '角色管理', 'Role', 'Index', '20', '1', '', '1481639037'), ('13', '1', '权限分配', 'Power', 'Index', '30', '1', '', '1482156143'), ('15', '1', '权限添加/编辑', 'Power', 'Save', '31', '0', '', '1482243750'), ('16', '1', '权限删除', 'Power', 'Delete', '32', '0', '', '1482243797'), ('17', '1', '角色组添加/编辑页面', 'Role', 'SaveInfo', '21', '0', '', '1482243855'), ('18', '1', '角色组添加/编辑', 'Role', 'Save', '22', '0', '', '1482243888'), ('19', '1', '管理员添加/编辑页面', 'Admin', 'SaveInfo', '2', '0', '', '1482244637'), ('20', '1', '管理员添加/编辑', 'Admin', 'Save', '3', '0', '', '1482244666'), ('21', '1', '管理员删除', 'Admin', 'Delete', '4', '0', '', '1482244688'), ('22', '1', '管理员列表', 'Admin', 'Index', '1', '1', '', '1482568868'), ('23', '1', '角色删除', 'Role', 'Delete', '23', '0', '', '1482569155'), ('38', '0', '商品管理', 'Goods', 'Index', '5', '1', 'icon-shangpin', '1483283430'), ('39', '38', '商品管理', 'Goods', 'Index', '1', '1', '', '1483283546'), ('41', '0', '系统设置', 'Config', 'Index', '1', '1', 'icon-peizhi', '1483362358'), ('42', '41', '配置保存', 'Config', 'Save', '10', '0', '', '1483432335'), ('57', '38', '商品添加/编辑页面', 'Goods', 'SaveInfo', '2', '0', '', '1483616439'), ('58', '38', '商品添加/编辑', 'Goods', 'Save', '3', '0', '', '1483616492'), ('59', '38', '商品删除', 'Goods', 'Delete', '4', '0', '', '1483616569'), ('81', '0', '站点配置', 'Site', 'Index', '2', '1', 'icon-zhandianpeizhi', '1486182943'), ('103', '81', '站点设置', 'Site', 'Index', '0', '1', '', '1486561470'), ('104', '81', '短信设置', 'Sms', 'Index', '10', '1', '', '1486561615'), ('105', '81', '站点设置编辑', 'Site', 'Save', '1', '0', '', '1486561780'), ('107', '81', '短信设置编辑', 'Sms', 'Save', '11', '0', '', '1486562011'), ('118', '0', '工具', 'Tool', 'Index', '50', '1', 'icon-tools', '1488108044'), ('119', '118', '缓存管理', 'Cache', 'Index', '1', '1', '', '1488108107'), ('120', '118', '站点缓存更新', 'Cache', 'StatusUpdate', '2', '0', '', '1488108235'), ('121', '118', '模板缓存更新', 'Cache', 'TemplateUpdate', '2', '0', '', '1488108390'), ('122', '118', '模块缓存更新', 'Cache', 'ModuleUpdate', '3', '0', '', '1488108436'), ('126', '0', '用户管理', 'User', 'Index', '4', '1', 'icon-yonghuguanli', '1490794162'), ('127', '126', '用户列表', 'User', 'Index', '0', '1', '', '1490794316'), ('128', '126', '用户编辑/添加页面', 'User', 'SaveInfo', '1', '0', '', '1490794458'), ('129', '126', '用户添加/编辑', 'User', 'Save', '2', '0', '', '1490794510'), ('130', '126', '用户删除', 'User', 'Delete', '3', '0', '', '1490794585'), ('146', '126', 'Excel导出', 'User', 'ExcelExport', '6', '0', '', '1522223773'), ('153', '222', '地区管理', 'Region', 'Index', '60', '1', '', '1526304473'), ('154', '222', '地区添加/编辑', 'Region', 'Save', '61', '0', '', '1526304503'), ('155', '222', '地区删除', 'Region', 'Delete', '62', '0', '', '1526304531'), ('156', '222', '快递管理', 'Express', 'Index', '70', '1', '', '1526304473'), ('157', '222', '快递添加/编辑', 'Express', 'Save', '71', '0', '', '1526304473'), ('158', '222', '快递删除', 'Express', 'Delete', '72', '0', '', '1526304473'), ('172', '222', '首页轮播', 'Slide', 'Index', '40', '1', '', '1527149117'), ('173', '222', '轮播添加/编辑页面', 'Slide', 'SaveInfo', '41', '0', '', '1527149152'), ('174', '222', '轮播添加/编辑', 'Slide', 'Save', '42', '0', '', '1527149186'), ('175', '222', '轮播状态更新', 'Slide', 'StatusUpdate', '43', '0', '', '1527156980'), ('176', '222', '轮播删除', 'Slide', 'Delete', '44', '0', '', '1527157260'), ('177', '0', '订单管理', 'Order', 'Index', '6', '1', 'icon-dingdan', '1522229870'), ('178', '177', '订单管理', 'Order', 'Index', '1', '1', '', '1522317898'), ('179', '177', '订单删除', 'Order', 'Delete', '2', '0', '', '1522317917'), ('180', '177', '订单取消', 'Order', 'Cancel', '3', '0', '', '1527497803'), ('181', '38', '商品状态更新', 'Goods', 'StatusUpdate', '5', '0', '', '1528080200'), ('182', '0', '数据管理', 'Data', 'Index', '22', '1', 'icon-shuju', '1528096661'), ('183', '182', '消息管理', 'Message', 'Index', '0', '1', '', '1528080200'), ('184', '182', '消息删除', 'Message', 'Delete', '1', '0', '', '1528080200'), ('185', '182', '支付日志', 'PayLog', 'Index', '10', '1', '', '1528080200'), ('186', '182', '积分日志', 'IntegralLog', 'Index', '30', '1', '', '1528103067'), ('193', '222', '筛选价格', 'ScreeningPrice', 'Index', '50', '1', '', '1528708578'), ('194', '222', '筛选价格添加/编辑', 'ScreeningPrice', 'Save', '51', '0', '', '1528708609'), ('199', '81', 'SEO设置', 'Seo', 'Index', '30', '1', '', '1528771081'), ('200', '81', 'SEO设置编辑', 'Seo', 'Save', '31', '0', '', '1528771105'), ('201', '38', '商品分类', 'GoodsCategory', 'Index', '10', '1', '', '1529041901'), ('202', '38', '商品分类添加/编辑', 'GoodsCategory', 'Save', '11', '0', '', '1529041928'), ('203', '38', '商品分类删除', 'GoodsCategory', 'Delete', '12', '0', '', '1529041949'), ('204', '0', '文章管理', 'Article', 'Index', '20', '1', 'icon-wenzhang', '1530360560'), ('205', '204', '文章管理', 'Article', 'Index', '0', '1', '', '1530360593'), ('206', '204', '文章添加/编辑页面', 'Article', 'SaveInfo', '1', '0', '', '1530360625'), ('207', '204', '文章添加/编辑', 'Article', 'Save', '2', '0', '', '1530360663'), ('208', '204', '文章删除', 'Article', 'Delete', '3', '0', '', '1530360692'), ('209', '204', '文章状态更新', 'Article', 'StatusUpdate', '4', '0', '', '1530360730'), ('210', '204', '文章分类', 'ArticleCategory', 'Index', '10', '1', '', '1530361071'), ('211', '204', '文章分类编辑/添加', 'ArticleCategory', 'Save', '11', '0', '', '1530361101'), ('212', '204', '文章分类删除', 'ArticleCategory', 'Delete', '12', '0', '', '1530361126'), ('213', '0', '问答留言', 'Answer', 'Index', '21', '1', 'icon-wenda', '1533112421'), ('214', '213', '问答留言', 'Answer', 'Index', '0', '1', '', '1533112443'), ('215', '213', '问答留言回复', 'Answer', 'Reply', '1', '0', '', '1533119660'), ('216', '213', '问答留言删除', 'Answer', 'Delete', '2', '0', '', '1533119680'), ('217', '213', '问答留言状态更新', 'Answer', 'StatusUpdate', '3', '0', '', '1533119704'), ('219', '81', '邮箱设置', 'Email', 'Index', '20', '1', '', '1533636067'), ('220', '81', '邮箱设置/编辑', 'Email', 'Save', '21', '0', '', '1533636109'), ('221', '81', '邮件发送测试', 'Email', 'EmailTest', '22', '0', '', '1533636157'), ('222', '0', '网站管理', 'Navigation', 'Index', '7', '1', 'icon-wangzhanguanli', '1533692051'), ('223', '222', '导航管理', 'Navigation', 'Index', '0', '1', '', '1486183114'), ('226', '222', '导航添加/编辑', 'Navigation', 'Save', '2', '0', '', '1486183367'), ('227', '222', '导航删除', 'Navigation', 'Delete', '3', '0', '', '1486183410'), ('228', '222', '导航状态更新', 'Navigation', 'StatusUpdate', '4', '0', '', '1486183462'), ('234', '222', '自定义页面', 'CustomView', 'Index', '11', '1', '', '1486193400'), ('235', '222', '自定义页面添加/编辑页面', 'CustomView', 'SaveInfo', '12', '0', '', '1486193449'), ('236', '222', '自定义页面添加/编辑', 'CustomView', 'Save', '13', '0', '', '1486193473'), ('237', '222', '自定义页面删除', 'CustomView', 'Delete', '14', '0', '', '1486193516'), ('238', '222', '自定义页面状态更新', 'CustomView', 'StatusUpdate', '15', '0', '', '1486193582'), ('239', '222', '友情链接', 'Link', 'Index', '21', '1', '', '1486194358'), ('240', '222', '友情链接添加/编辑页面', 'Link', 'SaveInfo', '22', '0', '', '1486194392'), ('241', '222', '友情链接添加/编辑', 'Link', 'Save', '23', '0', '', '1486194413'), ('242', '222', '友情链接删除', 'Link', 'Delete', '24', '0', '', '1486194435'), ('243', '222', '友情链接状态更新', 'Link', 'StatusUpdate', '25', '0', '', '1486194479'), ('244', '222', '主题管理', 'Theme', 'Index', '30', '1', '', '1494381693'), ('245', '222', '主题管理添加/编辑', 'Theme', 'Save', '31', '0', '', '1494398194'), ('246', '222', '主题上传安装', 'Theme', 'Upload', '32', '0', '', '1494405096'), ('247', '222', '主题删除', 'Theme', 'Delete', '33', '0', '', '1494410655'), ('248', '204', '文章详情', 'Article', 'Detail', '5', '0', '', '1534156400'), ('249', '252', '品牌管理', 'Brand', 'Index', '0', '1', '', '1535683271'), ('250', '252', '品牌添加/编辑', 'Brand', 'Save', '2', '0', '', '1535683310'), ('251', '252', '品牌删除', 'Brand', 'Delete', '4', '0', '', '1535683351'), ('252', '0', '品牌管理', 'Brand', 'Index', '8', '1', 'icon-ico-pinpaiguanli', '1535684308'), ('253', '252', '品牌分类', 'BrandCategory', 'Index', '10', '1', '', '1535684401'), ('254', '252', '品牌分类添加/编辑', 'BrandCategory', 'Save', '11', '0', '', '1535684424'), ('255', '252', '品牌分类删除', 'BrandCategory', 'Delete', '12', '0', '', '1535684444'), ('256', '252', '品牌添加/编辑页面', 'Brand', 'SaveInfo', '1', '0', '', '1535694837'), ('257', '252', '品牌状态更新', 'Brand', 'StatusUpdate', '3', '0', '', '1535694880'), ('258', '222', '筛选价格删除', 'ScreeningPrice', 'Delete', '52', '0', '', '1536227071'), ('259', '222', '支付方式', 'Payment', 'Index', '80', '1', '', '1537156351'), ('260', '222', '支付方式安装/编辑页面', 'Payment', 'SaveInfo', '81', '0', '', '1537156423'), ('261', '222', '支付方式安装/编辑', 'Payment', 'Save', '82', '0', '', '1537156463'), ('262', '222', '支付方式删除', 'Payment', 'Delete', '83', '0', '', '1537156502'), ('263', '222', '支付方式安装', 'Payment', 'Install', '84', '0', '', '1537166090'), ('264', '222', '支付方式状态更新', 'Payment', 'StatusUpdate', '85', '0', '', '1537166149'), ('265', '222', '支付方式卸载', 'Payment', 'Uninstall', '86', '0', '', '1537167814'), ('266', '222', '支付方式上传', 'Payment', 'Upload', '87', '0', '', '1537173653'), ('267', '177', '订单发货', 'Order', 'Delivery', '4', '0', '', '1538413499'), ('268', '177', '订单收货', 'Order', 'Collect', '5', '0', '', '1538414034'), ('269', '177', '订单支付', 'Order', 'Pay', '6', '0', '', '1538757043'), ('310', '177', '订单确认', 'Order', 'Confirm', '7', '0', '', '1542011799'), ('311', '1', '角色状态更新', 'Role', 'StatusUpdate', '24', '0', '', '1542102071'), ('312', '0', '支付宝小程序', 'AppMiniAlipay', 'Index', '10', '1', 'icon-xiaochengxu-alipay', '1542558274'), ('313', '312', '基础配置', 'AppMiniAlipayConfig', 'Index', '0', '1', '', '1542558297'), ('314', '319', '首页导航', 'AppHomeNav', 'Index', '10', '1', '', '1542558318'), ('315', '319', '首页导航添加/编辑页面', 'AppHomeNav', 'SaveInfo', '11', '0', '', '1542558686'), ('316', '319', '首页导航添加/编辑', 'AppHomeNav', 'Save', '12', '0', '', '1542558706'), ('317', '319', '首页导航状态更新', 'AppHomeNav', 'StatusUpdate', '13', '0', '', '1542558747'), ('318', '319', '首页导航删除', 'AppHomeNav', 'Delete', '14', '0', '', '1542558767'), ('319', '0', '手机端管理', 'App', 'Index', '9', '1', 'icon-shouji', '0'), ('325', '312', '基础配置保存', 'AppMiniAlipayConfig', 'Save', '1', '0', '', '1542596647'), ('326', '319', '基础配置', 'AppConfig', 'Index', '0', '1', '', '1543206359'), ('327', '319', '基础配置保存', 'AppConfig', 'Save', '1', '0', '', '1543206402'), ('328', '312', '小程序', 'AppMiniAlipayList', 'Index', '10', '1', '', '1543304094'), ('329', '312', '小程序生成', 'AppMiniAlipayList', 'Created', '11', '0', '', '1543305528'), ('330', '312', '小程序删除', 'AppMiniAlipayList', 'Delete', '12', '0', '', '1543305609'), ('331', '118', '日志删除', 'Cache', 'LogDelete', '4', '0', '', '1545642163'), ('332', '0', '微信小程序', 'AppMiniWeixin', 'Index', '11', '1', 'icon-xiaochengxu-wechat', '1546935020'), ('333', '332', '基础配置', 'AppMiniWeixinConfig', 'Index', '0', '1', '', '1546935090'), ('334', '332', '基础配置保存', 'AppMiniWeixinConfig', 'Save', '1', '0', '', '1546935118'), ('335', '332', '小程序', 'AppMiniWeixinList', 'Index', '10', '1', '', '1546935153'), ('336', '332', '小程序生成', 'AppMiniWeixinList', 'Created', '11', '0', '', '1546935187'), ('337', '332', '小程序删除', 'AppMiniWeixinList', 'Delete', '12', '0', '', '1546935212'), ('339', '41', '后台配置', 'Config', 'Index', '0', '1', '', '1549419752'), ('340', '0', '应用中心', 'Store', 'Index', '30', '1', 'icon-application', '1549496703'), ('341', '340', '应用管理', 'Pluginsadmin', 'Index', '1', '1', '', '1549497306'), ('342', '340', '应用状态更新', 'Pluginsadmin', 'StatusUpdate', '3', '0', '', '1549694138'), ('343', '340', '应用调用管理', 'Plugins', 'Index', '0', '0', '', '1549958187'), ('345', '340', '应用添加/编辑页面', 'Pluginsadmin', 'SaveInfo', '1', '0', '', '1549977925'), ('346', '340', '应用添加/编辑', 'Pluginsadmin', 'Save', '2', '0', '', '1549977958'), ('347', '340', '应用删除', 'Pluginsadmin', 'Delete', '4', '0', '', '1549977993'), ('348', '340', '应用上传', 'Pluginsadmin', 'Upload', '5', '0', '', '1550110821'), ('349', '118', 'SQL控制台', 'Sqlconsole', 'Index', '10', '1', '', '1550476002'), ('350', '118', 'SQL执行', 'Sqlconsole', 'Implement', '11', '0', '', '1550476023'), ('351', '340', '应用打包', 'Pluginsadmin', 'Download', '6', '0', '', '1553248727'), ('352', '213', '问答添加/编辑页面', 'Answer', 'SaveInfo', '4', '0', '', '1553964318'), ('353', '213', '问答添加/编辑', 'Answer', 'Save', '5', '0', '', '1553964354'), ('354', '41', '商店信息', 'Config', 'Store', '0', '1', '', '1554803430'), ('356', '38', '商品评论', 'Goodscomments', 'Index', '20', '1', '', '1533112443'), ('357', '38', '商品评论回复', 'Goodscomments', 'Reply', '21', '0', '', '1533119660'), ('358', '38', '商品评论删除', 'Goodscomments', 'Delete', '22', '0', '', '1533119680'), ('359', '38', '商品评论状态更新', 'Goodscomments', 'StatusUpdate', '23', '0', '', '1533119704'), ('360', '38', '商品评论添加/编辑页面', 'Goodscomments', 'SaveInfo', '24', '0', '', '1553964318'), ('361', '38', '商品评论添加/编辑', 'Goodscomments', 'Save', '25', '0', '', '1553964354'), ('362', '81', '协议管理', 'Agreement', 'Index', '40', '1', '', '1486561615'), ('363', '81', '协议设置编辑', 'Agreement', 'Save', '41', '0', '', '1486562011'), ('364', '177', '订单售后', 'Orderaftersale', 'Index', '10', '1', '', '1522317898'), ('365', '177', '订单售后删除', 'Orderaftersale', 'Delete', '11', '0', '', '1522317917'), ('366', '177', '订单售后取消', 'Orderaftersale', 'Cancel', '12', '0', '', '1527497803'), ('367', '177', '订单售后审核', 'Orderaftersale', 'Audit', '13', '0', '', '1538413499'), ('368', '177', '订单售后确认', 'Orderaftersale', 'Confirm', '14', '0', '', '1538414034'), ('369', '177', '订单售后拒绝', 'Orderaftersale', 'Refuse', '15', '0', '', '1538757043'), ('372', '182', '退款日志', 'RefundLog', 'Index', '20', '1', '', '1528080200'), ('373', '340', '应用商店', 'Store', 'Index', '10', '1', '', '1553248727'), ('374', '340', '应用安装', 'Pluginsadmin', 'Install', '6', '0', '', '1561369950'), ('375', '340', '应用卸载', 'Pluginsadmin', 'Uninstall', '7', '0', '', '1561370063'), ('376', '319', '用户中心导航', 'AppCenterNav', 'Index', '20', '1', '', '1542558318'), ('377', '319', '用户中心导航添加/编辑页面', 'AppCenterNav', 'SaveInfo', '21', '0', '', '1542558686'), ('378', '319', '用户中心导航添加/编辑', 'AppCenterNav', 'Save', '22', '0', '', '1542558706'), ('379', '319', '用户中心导航状态更新', 'AppCenterNav', 'StatusUpdate', '23', '0', '', '1542558747'), ('380', '319', '用户中心导航删除', 'AppCenterNav', 'Delete', '24', '0', '', '1542558767'), ('381', '0', '百度小程序', 'AppMiniBaidu', 'Index', '12', '1', 'icon-xiaochengxu-baidu', '1546935020'), ('382', '381', '基础配置', 'AppMiniBaiduConfig', 'Index', '0', '1', '', '1546935090'), ('383', '381', '基础配置保存', 'AppMiniBaiduConfig', 'Save', '1', '0', '', '1546935118'), ('384', '381', '小程序', 'AppMiniBaiduList', 'Index', '10', '1', '', '1546935153'), ('385', '381', '小程序生成', 'AppMiniBaiduList', 'Created', '11', '0', '', '1546935187'), ('386', '381', '小程序删除', 'AppMiniBaiduList', 'Delete', '12', '0', '', '1546935212'), ('387', '222', '主题下载', 'Theme', 'Download', '34', '0', '', '1494410699'), ('388', '0', '头条小程序', 'AppMiniToutiao', 'Index', '13', '1', 'icon-xiaochengxu-toutiao', '1546935020'), ('389', '388', '基础配置', 'AppMiniToutiaoConfig', 'Index', '0', '1', '', '1546935090'), ('390', '388', '基础配置保存', 'AppMiniToutiaoConfig', 'Save', '1', '0', '', '1546935118'), ('391', '388', '小程序', 'AppMiniToutiaoList', 'Index', '10', '1', '', '1546935153'), ('392', '388', '小程序生成', 'AppMiniToutiaoList', 'Created', '11', '0', '', '1546935187'), ('393', '388', '小程序删除', 'AppMiniToutiaoList', 'Delete', '12', '0', '', '1546935212'), ('394', '0', 'QQ小程序', 'AppMiniQQ', 'Index', '14', '1', 'icon-xiaochengxu-qq', '1546935020'), ('395', '394', '基础配置', 'AppMiniQQConfig', 'Index', '0', '1', '', '1546935090'), ('396', '394', '基础配置保存', 'AppMiniQQConfig', 'Save', '1', '0', '', '1546935118'), ('397', '394', '小程序', 'AppMiniQQList', 'Index', '10', '1', '', '1546935153'), ('398', '394', '小程序生成', 'AppMiniQQList', 'Created', '11', '0', '', '1546935187'), ('399', '394', '小程序删除', 'AppMiniQQList', 'Delete', '12', '0', '', '1546935212'), ('400', '177', '订单详情', 'Order', 'Detail', '8', '0', '', '1589534580'), ('401', '177', '订单售后详情', 'Orderaftersale', 'Detail', '16', '0', '', '1589538361'), ('402', '38', '商品详情', 'Goods', 'Detail', '6', '0', '', '1589539780'), ('403', '38', '商品评论详情', 'Goodscomments', 'Detail', '26', '0', '', '1591609904'), ('404', '126', '用户详情', 'User', 'Detail', '7', '0', '', '1591621569'), ('405', '1', '管理员详情', 'Admin', 'Detail', '5', '0', '', '1591951422'), ('406', '1', '角色详情', 'Role', 'Detail', '25', '0', '', '1542102071'), ('407', '222', '自定义页面详情', 'CustomView', 'Detail', '16', '0', '', '1592287822');
INSERT INTO `s_power` VALUES ('1', '0', '权限控制', 'Power', 'Index', '3', '1', 'icon-quanxian', '1481612301'), ('4', '1', '角色管理', 'Role', 'Index', '20', '1', '', '1481639037'), ('13', '1', '权限分配', 'Power', 'Index', '30', '1', '', '1482156143'), ('15', '1', '权限添加/编辑', 'Power', 'Save', '31', '0', '', '1482243750'), ('16', '1', '权限删除', 'Power', 'Delete', '32', '0', '', '1482243797'), ('17', '1', '角色组添加/编辑页面', 'Role', 'SaveInfo', '21', '0', '', '1482243855'), ('18', '1', '角色组添加/编辑', 'Role', 'Save', '22', '0', '', '1482243888'), ('19', '1', '管理员添加/编辑页面', 'Admin', 'SaveInfo', '2', '0', '', '1482244637'), ('20', '1', '管理员添加/编辑', 'Admin', 'Save', '3', '0', '', '1482244666'), ('21', '1', '管理员删除', 'Admin', 'Delete', '4', '0', '', '1482244688'), ('22', '1', '管理员列表', 'Admin', 'Index', '1', '1', '', '1482568868'), ('23', '1', '角色删除', 'Role', 'Delete', '23', '0', '', '1482569155'), ('38', '0', '商品管理', 'Goods', 'Index', '5', '1', 'icon-shangpin', '1483283430'), ('39', '38', '商品管理', 'Goods', 'Index', '1', '1', '', '1483283546'), ('41', '0', '系统设置', 'Config', 'Index', '1', '1', 'icon-peizhi', '1483362358'), ('42', '41', '配置保存', 'Config', 'Save', '10', '0', '', '1483432335'), ('57', '38', '商品添加/编辑页面', 'Goods', 'SaveInfo', '2', '0', '', '1483616439'), ('58', '38', '商品添加/编辑', 'Goods', 'Save', '3', '0', '', '1483616492'), ('59', '38', '商品删除', 'Goods', 'Delete', '4', '0', '', '1483616569'), ('81', '0', '站点配置', 'Site', 'Index', '2', '1', 'icon-zhandianpeizhi', '1486182943'), ('103', '81', '站点设置', 'Site', 'Index', '0', '1', '', '1486561470'), ('104', '81', '短信设置', 'Sms', 'Index', '10', '1', '', '1486561615'), ('105', '81', '站点设置编辑', 'Site', 'Save', '1', '0', '', '1486561780'), ('107', '81', '短信设置编辑', 'Sms', 'Save', '11', '0', '', '1486562011'), ('118', '0', '工具', 'Tool', 'Index', '50', '1', 'icon-tools', '1488108044'), ('119', '118', '缓存管理', 'Cache', 'Index', '1', '1', '', '1488108107'), ('120', '118', '站点缓存更新', 'Cache', 'StatusUpdate', '2', '0', '', '1488108235'), ('121', '118', '模板缓存更新', 'Cache', 'TemplateUpdate', '2', '0', '', '1488108390'), ('122', '118', '模块缓存更新', 'Cache', 'ModuleUpdate', '3', '0', '', '1488108436'), ('126', '0', '用户管理', 'User', 'Index', '4', '1', 'icon-yonghuguanli', '1490794162'), ('127', '126', '用户列表', 'User', 'Index', '0', '1', '', '1490794316'), ('128', '126', '用户编辑/添加页面', 'User', 'SaveInfo', '1', '0', '', '1490794458'), ('129', '126', '用户添加/编辑', 'User', 'Save', '2', '0', '', '1490794510'), ('130', '126', '用户删除', 'User', 'Delete', '3', '0', '', '1490794585'), ('146', '126', 'Excel导出', 'User', 'ExcelExport', '6', '0', '', '1522223773'), ('153', '222', '地区管理', 'Region', 'Index', '60', '1', '', '1526304473'), ('154', '222', '地区添加/编辑', 'Region', 'Save', '61', '0', '', '1526304503'), ('155', '222', '地区删除', 'Region', 'Delete', '62', '0', '', '1526304531'), ('156', '222', '快递管理', 'Express', 'Index', '70', '1', '', '1526304473'), ('157', '222', '快递添加/编辑', 'Express', 'Save', '71', '0', '', '1526304473'), ('158', '222', '快递删除', 'Express', 'Delete', '72', '0', '', '1526304473'), ('172', '222', '首页轮播', 'Slide', 'Index', '40', '1', '', '1527149117'), ('173', '222', '轮播添加/编辑页面', 'Slide', 'SaveInfo', '41', '0', '', '1527149152'), ('174', '222', '轮播添加/编辑', 'Slide', 'Save', '42', '0', '', '1527149186'), ('175', '222', '轮播状态更新', 'Slide', 'StatusUpdate', '43', '0', '', '1527156980'), ('176', '222', '轮播删除', 'Slide', 'Delete', '44', '0', '', '1527157260'), ('177', '0', '订单管理', 'Order', 'Index', '6', '1', 'icon-dingdan', '1522229870'), ('178', '177', '订单管理', 'Order', 'Index', '1', '1', '', '1522317898'), ('179', '177', '订单删除', 'Order', 'Delete', '2', '0', '', '1522317917'), ('180', '177', '订单取消', 'Order', 'Cancel', '3', '0', '', '1527497803'), ('181', '38', '商品状态更新', 'Goods', 'StatusUpdate', '5', '0', '', '1528080200'), ('182', '0', '数据管理', 'Data', 'Index', '22', '1', 'icon-shuju', '1528096661'), ('183', '182', '消息管理', 'Message', 'Index', '0', '1', '', '1528080200'), ('184', '182', '消息删除', 'Message', 'Delete', '1', '0', '', '1528080200'), ('185', '182', '支付日志', 'PayLog', 'Index', '10', '1', '', '1528080200'), ('186', '182', '积分日志', 'IntegralLog', 'Index', '30', '1', '', '1528103067'), ('193', '222', '筛选价格', 'ScreeningPrice', 'Index', '50', '1', '', '1528708578'), ('194', '222', '筛选价格添加/编辑', 'ScreeningPrice', 'Save', '51', '0', '', '1528708609'), ('199', '81', 'SEO设置', 'Seo', 'Index', '30', '1', '', '1528771081'), ('200', '81', 'SEO设置编辑', 'Seo', 'Save', '31', '0', '', '1528771105'), ('201', '38', '商品分类', 'GoodsCategory', 'Index', '10', '1', '', '1529041901'), ('202', '38', '商品分类添加/编辑', 'GoodsCategory', 'Save', '11', '0', '', '1529041928'), ('203', '38', '商品分类删除', 'GoodsCategory', 'Delete', '12', '0', '', '1529041949'), ('204', '0', '文章管理', 'Article', 'Index', '20', '1', 'icon-wenzhang', '1530360560'), ('205', '204', '文章管理', 'Article', 'Index', '0', '1', '', '1530360593'), ('206', '204', '文章添加/编辑页面', 'Article', 'SaveInfo', '1', '0', '', '1530360625'), ('207', '204', '文章添加/编辑', 'Article', 'Save', '2', '0', '', '1530360663'), ('208', '204', '文章删除', 'Article', 'Delete', '3', '0', '', '1530360692'), ('209', '204', '文章状态更新', 'Article', 'StatusUpdate', '4', '0', '', '1530360730'), ('210', '204', '文章分类', 'ArticleCategory', 'Index', '10', '1', '', '1530361071'), ('211', '204', '文章分类编辑/添加', 'ArticleCategory', 'Save', '11', '0', '', '1530361101'), ('212', '204', '文章分类删除', 'ArticleCategory', 'Delete', '12', '0', '', '1530361126'), ('213', '0', '问答留言', 'Answer', 'Index', '21', '1', 'icon-wenda', '1533112421'), ('214', '213', '问答留言', 'Answer', 'Index', '0', '1', '', '1533112443'), ('215', '213', '问答留言回复', 'Answer', 'Reply', '1', '0', '', '1533119660'), ('216', '213', '问答留言删除', 'Answer', 'Delete', '2', '0', '', '1533119680'), ('217', '213', '问答留言状态更新', 'Answer', 'StatusUpdate', '3', '0', '', '1533119704'), ('219', '81', '邮箱设置', 'Email', 'Index', '20', '1', '', '1533636067'), ('220', '81', '邮箱设置/编辑', 'Email', 'Save', '21', '0', '', '1533636109'), ('221', '81', '邮件发送测试', 'Email', 'EmailTest', '22', '0', '', '1533636157'), ('222', '0', '网站管理', 'Navigation', 'Index', '7', '1', 'icon-wangzhanguanli', '1533692051'), ('223', '222', '导航管理', 'Navigation', 'Index', '0', '1', '', '1486183114'), ('226', '222', '导航添加/编辑', 'Navigation', 'Save', '2', '0', '', '1486183367'), ('227', '222', '导航删除', 'Navigation', 'Delete', '3', '0', '', '1486183410'), ('228', '222', '导航状态更新', 'Navigation', 'StatusUpdate', '4', '0', '', '1486183462'), ('234', '222', '自定义页面', 'CustomView', 'Index', '11', '1', '', '1486193400'), ('235', '222', '自定义页面添加/编辑页面', 'CustomView', 'SaveInfo', '12', '0', '', '1486193449'), ('236', '222', '自定义页面添加/编辑', 'CustomView', 'Save', '13', '0', '', '1486193473'), ('237', '222', '自定义页面删除', 'CustomView', 'Delete', '14', '0', '', '1486193516'), ('238', '222', '自定义页面状态更新', 'CustomView', 'StatusUpdate', '15', '0', '', '1486193582'), ('239', '222', '友情链接', 'Link', 'Index', '21', '1', '', '1486194358'), ('240', '222', '友情链接添加/编辑页面', 'Link', 'SaveInfo', '22', '0', '', '1486194392'), ('241', '222', '友情链接添加/编辑', 'Link', 'Save', '23', '0', '', '1486194413'), ('242', '222', '友情链接删除', 'Link', 'Delete', '24', '0', '', '1486194435'), ('243', '222', '友情链接状态更新', 'Link', 'StatusUpdate', '25', '0', '', '1486194479'), ('244', '222', '主题管理', 'Theme', 'Index', '30', '1', '', '1494381693'), ('245', '222', '主题管理添加/编辑', 'Theme', 'Save', '31', '0', '', '1494398194'), ('246', '222', '主题上传安装', 'Theme', 'Upload', '32', '0', '', '1494405096'), ('247', '222', '主题删除', 'Theme', 'Delete', '33', '0', '', '1494410655'), ('248', '204', '文章详情', 'Article', 'Detail', '5', '0', '', '1534156400'), ('249', '252', '品牌管理', 'Brand', 'Index', '0', '1', '', '1535683271'), ('250', '252', '品牌添加/编辑', 'Brand', 'Save', '2', '0', '', '1535683310'), ('251', '252', '品牌删除', 'Brand', 'Delete', '4', '0', '', '1535683351'), ('252', '0', '品牌管理', 'Brand', 'Index', '8', '1', 'icon-ico-pinpaiguanli', '1535684308'), ('253', '252', '品牌分类', 'BrandCategory', 'Index', '10', '1', '', '1535684401'), ('254', '252', '品牌分类添加/编辑', 'BrandCategory', 'Save', '11', '0', '', '1535684424'), ('255', '252', '品牌分类删除', 'BrandCategory', 'Delete', '12', '0', '', '1535684444'), ('256', '252', '品牌添加/编辑页面', 'Brand', 'SaveInfo', '1', '0', '', '1535694837'), ('257', '252', '品牌状态更新', 'Brand', 'StatusUpdate', '3', '0', '', '1535694880'), ('258', '222', '筛选价格删除', 'ScreeningPrice', 'Delete', '52', '0', '', '1536227071'), ('259', '222', '支付方式', 'Payment', 'Index', '80', '1', '', '1537156351'), ('260', '222', '支付方式安装/编辑页面', 'Payment', 'SaveInfo', '81', '0', '', '1537156423'), ('261', '222', '支付方式安装/编辑', 'Payment', 'Save', '82', '0', '', '1537156463'), ('262', '222', '支付方式删除', 'Payment', 'Delete', '83', '0', '', '1537156502'), ('263', '222', '支付方式安装', 'Payment', 'Install', '84', '0', '', '1537166090'), ('264', '222', '支付方式状态更新', 'Payment', 'StatusUpdate', '85', '0', '', '1537166149'), ('265', '222', '支付方式卸载', 'Payment', 'Uninstall', '86', '0', '', '1537167814'), ('266', '222', '支付方式上传', 'Payment', 'Upload', '87', '0', '', '1537173653'), ('267', '177', '订单发货', 'Order', 'Delivery', '4', '0', '', '1538413499'), ('268', '177', '订单收货', 'Order', 'Collect', '5', '0', '', '1538414034'), ('269', '177', '订单支付', 'Order', 'Pay', '6', '0', '', '1538757043'), ('310', '177', '订单确认', 'Order', 'Confirm', '7', '0', '', '1542011799'), ('311', '1', '角色状态更新', 'Role', 'StatusUpdate', '24', '0', '', '1542102071'), ('312', '0', '支付宝小程序', 'AppMiniAlipay', 'Index', '10', '1', 'icon-xiaochengxu-alipay', '1542558274'), ('313', '312', '基础配置', 'AppMiniAlipayConfig', 'Index', '0', '1', '', '1542558297'), ('314', '319', '首页导航', 'AppHomeNav', 'Index', '10', '1', '', '1542558318'), ('315', '319', '首页导航添加/编辑页面', 'AppHomeNav', 'SaveInfo', '11', '0', '', '1542558686'), ('316', '319', '首页导航添加/编辑', 'AppHomeNav', 'Save', '12', '0', '', '1542558706'), ('317', '319', '首页导航状态更新', 'AppHomeNav', 'StatusUpdate', '13', '0', '', '1542558747'), ('318', '319', '首页导航删除', 'AppHomeNav', 'Delete', '14', '0', '', '1542558767'), ('319', '0', '手机端管理', 'App', 'Index', '9', '1', 'icon-shouji', '0'), ('325', '312', '基础配置保存', 'AppMiniAlipayConfig', 'Save', '1', '0', '', '1542596647'), ('326', '319', '基础配置', 'AppConfig', 'Index', '0', '1', '', '1543206359'), ('327', '319', '基础配置保存', 'AppConfig', 'Save', '1', '0', '', '1543206402'), ('328', '312', '小程序', 'AppMiniAlipayList', 'Index', '10', '1', '', '1543304094'), ('329', '312', '小程序生成', 'AppMiniAlipayList', 'Created', '11', '0', '', '1543305528'), ('330', '312', '小程序删除', 'AppMiniAlipayList', 'Delete', '12', '0', '', '1543305609'), ('331', '118', '日志删除', 'Cache', 'LogDelete', '4', '0', '', '1545642163'), ('332', '0', '微信小程序', 'AppMiniWeixin', 'Index', '11', '1', 'icon-xiaochengxu-wechat', '1546935020'), ('333', '332', '基础配置', 'AppMiniWeixinConfig', 'Index', '0', '1', '', '1546935090'), ('334', '332', '基础配置保存', 'AppMiniWeixinConfig', 'Save', '1', '0', '', '1546935118'), ('335', '332', '小程序', 'AppMiniWeixinList', 'Index', '10', '1', '', '1546935153'), ('336', '332', '小程序生成', 'AppMiniWeixinList', 'Created', '11', '0', '', '1546935187'), ('337', '332', '小程序删除', 'AppMiniWeixinList', 'Delete', '12', '0', '', '1546935212'), ('339', '41', '后台配置', 'Config', 'Index', '0', '1', '', '1549419752'), ('340', '0', '应用中心', 'Store', 'Index', '30', '1', 'icon-application', '1549496703'), ('341', '340', '应用管理', 'Pluginsadmin', 'Index', '1', '1', '', '1549497306'), ('342', '340', '应用状态更新', 'Pluginsadmin', 'StatusUpdate', '3', '0', '', '1549694138'), ('343', '340', '应用调用管理', 'Plugins', 'Index', '0', '0', '', '1549958187'), ('345', '340', '应用添加/编辑页面', 'Pluginsadmin', 'SaveInfo', '1', '0', '', '1549977925'), ('346', '340', '应用添加/编辑', 'Pluginsadmin', 'Save', '2', '0', '', '1549977958'), ('347', '340', '应用删除', 'Pluginsadmin', 'Delete', '4', '0', '', '1549977993'), ('348', '340', '应用上传', 'Pluginsadmin', 'Upload', '5', '0', '', '1550110821'), ('349', '118', 'SQL控制台', 'Sqlconsole', 'Index', '10', '1', '', '1550476002'), ('350', '118', 'SQL执行', 'Sqlconsole', 'Implement', '11', '0', '', '1550476023'), ('351', '340', '应用打包', 'Pluginsadmin', 'Download', '6', '0', '', '1553248727'), ('352', '213', '问答添加/编辑页面', 'Answer', 'SaveInfo', '4', '0', '', '1553964318'), ('353', '213', '问答添加/编辑', 'Answer', 'Save', '5', '0', '', '1553964354'), ('354', '41', '商店信息', 'Config', 'Store', '0', '1', '', '1554803430'), ('356', '38', '商品评论', 'Goodscomments', 'Index', '20', '1', '', '1533112443'), ('357', '38', '商品评论回复', 'Goodscomments', 'Reply', '21', '0', '', '1533119660'), ('358', '38', '商品评论删除', 'Goodscomments', 'Delete', '22', '0', '', '1533119680'), ('359', '38', '商品评论状态更新', 'Goodscomments', 'StatusUpdate', '23', '0', '', '1533119704'), ('360', '38', '商品评论添加/编辑页面', 'Goodscomments', 'SaveInfo', '24', '0', '', '1553964318'), ('361', '38', '商品评论添加/编辑', 'Goodscomments', 'Save', '25', '0', '', '1553964354'), ('362', '81', '协议管理', 'Agreement', 'Index', '40', '1', '', '1486561615'), ('363', '81', '协议设置编辑', 'Agreement', 'Save', '41', '0', '', '1486562011'), ('364', '177', '订单售后', 'Orderaftersale', 'Index', '10', '1', '', '1522317898'), ('365', '177', '订单售后删除', 'Orderaftersale', 'Delete', '11', '0', '', '1522317917'), ('366', '177', '订单售后取消', 'Orderaftersale', 'Cancel', '12', '0', '', '1527497803'), ('367', '177', '订单售后审核', 'Orderaftersale', 'Audit', '13', '0', '', '1538413499'), ('368', '177', '订单售后确认', 'Orderaftersale', 'Confirm', '14', '0', '', '1538414034'), ('369', '177', '订单售后拒绝', 'Orderaftersale', 'Refuse', '15', '0', '', '1538757043'), ('372', '182', '退款日志', 'RefundLog', 'Index', '20', '1', '', '1528080200'), ('373', '340', '应用商店', 'Store', 'Index', '10', '1', '', '1553248727'), ('374', '340', '应用安装', 'Pluginsadmin', 'Install', '6', '0', '', '1561369950'), ('375', '340', '应用卸载', 'Pluginsadmin', 'Uninstall', '7', '0', '', '1561370063'), ('376', '319', '用户中心导航', 'AppCenterNav', 'Index', '20', '1', '', '1542558318'), ('377', '319', '用户中心导航添加/编辑页面', 'AppCenterNav', 'SaveInfo', '21', '0', '', '1542558686'), ('378', '319', '用户中心导航添加/编辑', 'AppCenterNav', 'Save', '22', '0', '', '1542558706'), ('379', '319', '用户中心导航状态更新', 'AppCenterNav', 'StatusUpdate', '23', '0', '', '1542558747'), ('380', '319', '用户中心导航删除', 'AppCenterNav', 'Delete', '24', '0', '', '1542558767'), ('381', '0', '百度小程序', 'AppMiniBaidu', 'Index', '12', '1', 'icon-xiaochengxu-baidu', '1546935020'), ('382', '381', '基础配置', 'AppMiniBaiduConfig', 'Index', '0', '1', '', '1546935090'), ('383', '381', '基础配置保存', 'AppMiniBaiduConfig', 'Save', '1', '0', '', '1546935118'), ('384', '381', '小程序', 'AppMiniBaiduList', 'Index', '10', '1', '', '1546935153'), ('385', '381', '小程序生成', 'AppMiniBaiduList', 'Created', '11', '0', '', '1546935187'), ('386', '381', '小程序删除', 'AppMiniBaiduList', 'Delete', '12', '0', '', '1546935212'), ('387', '222', '主题下载', 'Theme', 'Download', '34', '0', '', '1494410699'), ('388', '0', '头条小程序', 'AppMiniToutiao', 'Index', '13', '1', 'icon-xiaochengxu-toutiao', '1546935020'), ('389', '388', '基础配置', 'AppMiniToutiaoConfig', 'Index', '0', '1', '', '1546935090'), ('390', '388', '基础配置保存', 'AppMiniToutiaoConfig', 'Save', '1', '0', '', '1546935118'), ('391', '388', '小程序', 'AppMiniToutiaoList', 'Index', '10', '1', '', '1546935153'), ('392', '388', '小程序生成', 'AppMiniToutiaoList', 'Created', '11', '0', '', '1546935187'), ('393', '388', '小程序删除', 'AppMiniToutiaoList', 'Delete', '12', '0', '', '1546935212'), ('394', '0', 'QQ小程序', 'AppMiniQQ', 'Index', '14', '1', 'icon-xiaochengxu-qq', '1546935020'), ('395', '394', '基础配置', 'AppMiniQQConfig', 'Index', '0', '1', '', '1546935090'), ('396', '394', '基础配置保存', 'AppMiniQQConfig', 'Save', '1', '0', '', '1546935118'), ('397', '394', '小程序', 'AppMiniQQList', 'Index', '10', '1', '', '1546935153'), ('398', '394', '小程序生成', 'AppMiniQQList', 'Created', '11', '0', '', '1546935187'), ('399', '394', '小程序删除', 'AppMiniQQList', 'Delete', '12', '0', '', '1546935212'), ('400', '177', '订单详情', 'Order', 'Detail', '8', '0', '', '1589534580'), ('401', '177', '订单售后详情', 'Orderaftersale', 'Detail', '16', '0', '', '1589538361'), ('402', '38', '商品详情', 'Goods', 'Detail', '6', '0', '', '1589539780'), ('403', '38', '商品评论详情', 'Goodscomments', 'Detail', '26', '0', '', '1591609904'), ('404', '126', '用户详情', 'User', 'Detail', '7', '0', '', '1591621569'), ('405', '1', '管理员详情', 'Admin', 'Detail', '5', '0', '', '1591951422'), ('406', '1', '角色详情', 'Role', 'Detail', '25', '0', '', '1542102071'), ('407', '222', '自定义页面详情', 'CustomView', 'Detail', '16', '0', '', '1592287822')
, ('408', '222', '轮播详情', 'Slide', 'Detail', '45', '0', '', '1592413297')
;
COMMIT;
-- ----------------------------
...
...
@@ -1558,13 +1558,13 @@ CREATE TABLE `s_slide` (
KEY `is_enable` (`is_enable`),
KEY `sort` (`sort`),
KEY `platform` (`platform`)
) ENGINE=InnoDB AUTO_INCREMENT=
19
DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='轮播图片';
) ENGINE=InnoDB AUTO_INCREMENT=
22
DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='轮播图片';
-- ----------------------------
-- Records of `s_slide`
-- ----------------------------
BEGIN;
INSERT INTO `s_slide` VALUES ('6', 'weixin', '1', '/pages/goods-search/goods-search?keywords=iphone', '/static/upload/images/slide/2018/08/20180810094402044087.jpeg', '浪漫七夕', '#080718', '1', '0', '1533865442', '15
6191249
2'), ('7', 'weixin', '1', '/pages/goods-detail/goods-detail?goods_id=12', '/static/upload/images/slide/2018/08/20180810095910423687.jpeg', '海洋的未来', '#016bcc', '1', '0', '1533866350', '1546281301'), ('8', 'alipay', '1', '/pages/goods-search/goods-search?keywords=iphone', '/static/upload/images/slide/2018/08/20180810100811853567.jpeg', '大闸蟹', '#f2efe6', '1', '0', '1533866891', '1542618684'), ('9', 'alipay', '1', '/pages/goods-detail/goods-detail?goods_id=1', '/static/upload/images/slide/2018/08/20180810101045451156.jpeg', '情定七夕', '#7ddcf3', '1', '0', '1533867045', '1563361583'), ('10', 'pc', '0', 'https://shopxo.net/', '/static/upload/images/slide/2018/08/20180810101106984022.jpeg', '美酒', '#f4bccb', '1', '0', '1533867066', '1547458393'), ('11', 'pc', '0', 'https://ask.shopxo.net/', '/static/upload/images/slide/2018/08/20180810101154662873.jpeg', '助力七夕', '#85c8c7', '1', '0', '1533867114', '1573648843'), ('12', 'h5', '0', 'https://shopxo.net', '/static/upload/images/slide/2018/08/20180810101224227323.jpeg', '爱在厨房', '#efc6c4', '1', '0', '1533867144', '1545290041'), ('13', 'baidu', '1', '/pages/goods-search/goods-search?keywords=iphone', '/static/upload/images/slide/2018/08/20180810101305611263.jpeg', '预享甜蜜', '#f6f6f4', '1', '0', '1533867185', '1545290030'), ('14', 'baidu', '1', '/pages/goods-detail/goods-detail?goods_id=12', '/static/upload/images/slide/2018/08/20180810095910423687.jpeg', '海洋的未来', '#016bcc', '1', '0', '1533866350', '1546281301'), ('15', 'toutiao', '1', '/pages/goods-search/goods-search?keywords=iphone', '/static/upload/images/slide/2018/08/20180810094402044087.jpeg', '浪漫七夕', '#080718', '1', '0', '1533865442', '1561912492'), ('16', 'toutiao', '1', '/pages/goods-detail/goods-detail?goods_id=12', '/static/upload/images/slide/2018/08/20180810095910423687.jpeg', '海洋的未来', '#016bcc', '1', '0', '1533866350', '1573648835'), ('17', 'qq', '1', '/pages/goods-search/goods-search?keywords=iphone', '/static/upload/images/slide/2018/08/20180810094402044087.jpeg', '浪漫七夕', '#080718', '1', '0', '1533865442', '1572867692'), ('18', 'qq', '1', '/pages/goods-detail/goods-detail?goods_id=12', '/static/upload/images/slide/2018/08/20180810095910423687.jpeg', '海洋的未来', '#016bcc', '1', '0', '1533866350', '1546281301');
INSERT INTO `s_slide` VALUES ('6', 'weixin', '1', '/pages/goods-search/goods-search?keywords=iphone', '/static/upload/images/slide/2018/08/20180810094402044087.jpeg', '浪漫七夕', '#080718', '1', '0', '1533865442', '15
9241336
2'), ('7', 'weixin', '1', '/pages/goods-detail/goods-detail?goods_id=12', '/static/upload/images/slide/2018/08/20180810095910423687.jpeg', '海洋的未来', '#016bcc', '1', '0', '1533866350', '1546281301'), ('8', 'alipay', '1', '/pages/goods-search/goods-search?keywords=iphone', '/static/upload/images/slide/2018/08/20180810100811853567.jpeg', '大闸蟹', '#f2efe6', '1', '0', '1533866891', '1542618684'), ('9', 'alipay', '1', '/pages/goods-detail/goods-detail?goods_id=1', '/static/upload/images/slide/2018/08/20180810101045451156.jpeg', '情定七夕', '#7ddcf3', '1', '0', '1533867045', '1563361583'), ('10', 'pc', '0', 'https://shopxo.net/', '/static/upload/images/slide/2018/08/20180810101106984022.jpeg', '美酒', '#f4bccb', '1', '0', '1533867066', '1547458393'), ('11', 'pc', '0', 'https://ask.shopxo.net/', '/static/upload/images/slide/2018/08/20180810101154662873.jpeg', '助力七夕', '#85c8c7', '1', '0', '1533867114', '1573648843'), ('12', 'h5', '0', 'https://shopxo.net', '/static/upload/images/slide/2018/08/20180810101224227323.jpeg', '爱在厨房', '#efc6c4', '1', '0', '1533867144', '1545290041'), ('13', 'baidu', '1', '/pages/goods-search/goods-search?keywords=iphone', '/static/upload/images/slide/2018/08/20180810101305611263.jpeg', '预享甜蜜', '#f6f6f4', '1', '0', '1533867185', '1545290030'), ('14', 'baidu', '1', '/pages/goods-detail/goods-detail?goods_id=12', '/static/upload/images/slide/2018/08/20180810095910423687.jpeg', '海洋的未来', '#016bcc', '1', '0', '1533866350', '1546281301'), ('15', 'toutiao', '1', '/pages/goods-search/goods-search?keywords=iphone', '/static/upload/images/slide/2018/08/20180810094402044087.jpeg', '浪漫七夕', '#080718', '1', '0', '1533865442', '1561912492'), ('16', 'toutiao', '1', '/pages/goods-detail/goods-detail?goods_id=12', '/static/upload/images/slide/2018/08/20180810095910423687.jpeg', '海洋的未来', '#016bcc', '1', '0', '1533866350', '1573648835'), ('17', 'qq', '1', '/pages/goods-search/goods-search?keywords=iphone', '/static/upload/images/slide/2018/08/20180810094402044087.jpeg', '浪漫七夕', '#080718', '1', '0', '1533865442', '1572867692'), ('18', 'qq', '1', '/pages/goods-detail/goods-detail?goods_id=12', '/static/upload/images/slide/2018/08/20180810095910423687.jpeg', '海洋的未来', '#016bcc', '1', '0', '1533866350', '1546281301');
COMMIT;
-- ----------------------------
sourcecode/weixin/pages/plugins/weixinliveplayer/detail/detail.js
浏览文件 @
036c980b
...
...
@@ -90,7 +90,7 @@ Page({
player_event
(
e
)
{
var
params
=
encodeURIComponent
(
JSON
.
stringify
({
type
:
'
detail
'
}));
wx
.
navigateTo
({
url
:
`plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=
${
this
.
data
.
detail
.
id
}
&custom_params=
${
params
}
`
url
:
`plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=
${
this
.
data
.
detail
.
room
id
}
&custom_params=
${
params
}
`
});
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录