Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
starsw001
ShopXO
提交
8eaabadd
ShopXO
项目概览
starsw001
/
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 搜索 >>
提交
8eaabadd
编写于
2月 24, 2021
作者:
D
Devil
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
应用在线安装优化
上级
fc64f124
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
52 addition
and
13 deletion
+52
-13
application/index/view/default/goods/index.html
application/index/view/default/goods/index.html
+1
-1
application/service/AppMiniService.php
application/service/AppMiniService.php
+19
-4
application/service/PackageInstallService.php
application/service/PackageInstallService.php
+7
-3
public/static/common/lib/amazeui-dialog/amazeui.dialog.js
public/static/common/lib/amazeui-dialog/amazeui.dialog.js
+21
-5
public/static/index/default/css/goods.css
public/static/index/default/css/goods.css
+4
-0
未找到文件。
application/index/view/default/goods/index.html
浏览文件 @
8eaabadd
...
...
@@ -434,7 +434,7 @@
{{/if}}
<!-- 购买导航 -->
<div
class=
"buy-nav"
>
<div
class=
"buy-nav
{{if $goods['is_exist_many_spec'] eq 0}}buy-nav-not-many-spec{{/if}}
"
>
<div
class=
"buy-nav-opt {{if !empty($buy_button) and isset($buy_button['count'])}}buy-nav-opt-button-number-{{$buy_button.count}}{{/if}}"
>
<!-- 商品页面基础信息购买小导航内部前面钩子 开始 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}}
...
...
application/service/AppMiniService.php
浏览文件 @
8eaabadd
...
...
@@ -162,9 +162,6 @@ class AppMiniService
*/
public
static
function
ThemeUpload
(
$params
=
[])
{
// 初始化
self
::
Init
(
$params
);
// 文件上传校验
$error
=
FileUploadError
(
'theme'
);
if
(
$error
!==
true
)
...
...
@@ -179,6 +176,24 @@ class AppMiniService
return
DataReturn
(
'文件格式有误,请上传zip压缩包'
,
-
2
);
}
// 上传处理
return
self
::
ThemeUploadHandle
(
$_FILES
[
'file'
][
'tmp_name'
],
$params
);
}
/**
* 模板上传处理
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @datetime 2018-12-19T00:53:45+0800
* @param [string] $package_file [软件包地址]
* @param [array] $params [输入参数]
*/
public
static
function
ThemeUploadHandle
(
$package_file
,
$params
=
[])
{
// 初始化
self
::
Init
(
$params
);
// 主题目录
$dir
=
self
::
$old_path
.
DS
;
...
...
@@ -189,7 +204,7 @@ class AppMiniService
}
// 开始解压文件
$resource
=
zip_open
(
$
_FILES
[
'theme'
][
'tmp_name'
]
);
$resource
=
zip_open
(
$
package_file
);
while
((
$temp_resource
=
zip_read
(
$resource
))
!==
false
)
{
if
(
zip_entry_open
(
$resource
,
$temp_resource
))
...
...
application/service/PackageInstallService.php
浏览文件 @
8eaabadd
...
...
@@ -14,6 +14,7 @@ use think\Db;
use
app\service\PluginsAdminService
;
use
app\service\PaymentService
;
use
app\service\ThemeService
;
use
app\service\AppMiniService
;
/**
* 软件安装服务层
...
...
@@ -163,9 +164,12 @@ class PackageInstallService
// 小程序主题
case
'minitheme'
:
echo
'<pre>'
;
print_r
(
$res
);
print_r
(
$params
);
die
;
if
(
empty
(
$params
[
'terminal'
]))
{
return
DataReturn
(
'未指定小程序终端类型'
,
-
1
);
}
$params
[
'application_name'
]
=
$params
[
'terminal'
];
$ret
=
AppMiniService
::
ThemeUploadHandle
(
$res
[
'url'
],
$params
);
break
;
// 默认
...
...
public/static/common/lib/amazeui-dialog/amazeui.dialog.js
浏览文件 @
8eaabadd
...
...
@@ -14,25 +14,41 @@ var dialog = dialog || {};
dialog
.
alert
=
function
(
options
)
{
options
=
options
||
{};
options
.
class_name
=
options
.
class_name
||
''
;
options
.
title
=
options
.
title
||
null
;
options
.
content
=
options
.
content
||
'
提示内容
'
;
options
.
isClose
=
options
.
isClose
||
false
;
options
.
isBtn
=
options
.
isBtn
||
false
;
options
.
config
=
options
.
config
||
{};
options
.
onConfirm
=
options
.
onConfirm
||
function
()
{
};
var
html
=
[];
html
.
push
(
'
<div class="am-modal am-modal-alert" tabindex="-1">
'
);
html
.
push
(
'
<div class="am-modal am-modal-alert
'
+
options
.
class_name
+
'
" tabindex="-1">
'
);
html
.
push
(
'
<div class="am-modal-dialog">
'
);
if
(
options
.
title
!==
null
)
if
(
options
.
title
!==
null
||
options
.
isClose
===
true
)
{
html
.
push
(
'
<div class="am-modal-hd">
'
+
options
.
title
+
'
</div>
'
);
html
.
push
(
'
<div class="am-modal-hd">
'
);
if
(
options
.
title
!==
null
)
{
html
.
push
(
'
<span>
'
+
options
.
title
+
'
</span>
'
);
}
if
(
options
.
isClose
===
true
)
{
html
.
push
(
'
<a href="javascript: void(0)" class="am-close" data-am-modal-close>×</a>
'
);
}
html
.
push
(
'
</div>
'
);
}
html
.
push
(
'
<div class="am-modal-bd">
'
+
options
.
content
+
'
</div>
'
);
html
.
push
(
'
<div class="am-modal-footer"><span class="am-modal-btn">确定</span></div>
'
);
if
(
options
.
isBtn
)
{
html
.
push
(
'
<div class="am-modal-footer"><span class="am-modal-btn">确定</span></div>
'
);
}
html
.
push
(
'
</div>
'
);
html
.
push
(
'
</div>
'
);
return
$
(
html
.
join
(
''
))
.
appendTo
(
'
body
'
)
.
modal
()
.
modal
(
options
.
config
)
.
on
(
'
closed.modal.amui
'
,
function
()
{
options
.
onConfirm
();
var
$this
=
$
(
this
);
...
...
public/static/index/default/css/goods.css
浏览文件 @
8eaabadd
...
...
@@ -306,6 +306,10 @@ flex: 1 1 0%;line-height: 16px;cursor: pointer;}
padding-left
:
65px
;
margin-top
:
10px
!important
;
}
.buy-nav-not-many-spec
{
padding-left
:
0px
!important
;
margin-top
:
20px
!important
;
}
}
@media
only
screen
and
(
max-width
:
641px
)
{
.buy-nav
.buy-submit-container
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录