Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
starsw001
ShopXO
提交
81e587fb
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 搜索 >>
提交
81e587fb
编写于
2月 21, 2022
作者:
G
gongfuxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
去除微信圈子组件
上级
4572b649
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
2 addition
and
53 deletion
+2
-53
app/admin/view/default/appmini/config.html
app/admin/view/default/appmini/config.html
+0
-19
app/service/AppMiniService.php
app/service/AppMiniService.php
+0
-31
app/service/SystemBaseService.php
app/service/SystemBaseService.php
+0
-1
public/static/common/lib/ueditor/dialogs/map/map.html
public/static/common/lib/ueditor/dialogs/map/map.html
+1
-1
public/static/common/lib/ueditor/dialogs/map/show.html
public/static/common/lib/ueditor/dialogs/map/show.html
+1
-1
未找到文件。
app/admin/view/default/appmini/config.html
浏览文件 @
81e587fb
...
...
@@ -50,25 +50,6 @@
<h3
class=
"am-panel-title"
>
扩展插件配置
</h3>
</div>
<div
class=
"am-panel-bd"
>
<div
class=
"am-form-group"
>
<label>
{{$data.common_app_is_good_thing.name}}
<span
class=
"am-form-group-label-tips"
>
{{$data.common_app_is_good_thing.describe}}
</span></label>
<select
name=
"{{$data.common_app_is_good_thing.only_tag}}"
class=
"am-radius chosen-select"
data-validation-message=
"{{$data.common_app_is_good_thing.error_tips}}"
required
>
{{foreach $common_is_text_list as $v}}
<option
value=
"{{$v.id}}"
{{
if
isset
($
data
['
common_app_is_good_thing
']['
value
'])
and
$
data
['
common_app_is_good_thing
']['
value
']
eq
$
v
['
id
']}}
selected
{{/
if
}}
>
{{$v.name}}
</option>
{{/foreach}}
</select>
</div>
<div
class=
"am-form-group"
>
<label>
{{$data.common_app_is_good_thing_ver.name}}
</label>
<div
class=
"am-alert am-alert-warning"
>
<p>
1. 获取最新组件版本号,默认[ 4.0.1 ]
</p>
<p>
2. 好物推荐组件权限操作[ 添加插件 ]按钮后等待审核通过方可使用
</p>
<p>
3. 点击左侧导航[ 使用插件 ],找到 json 代码串[ plugins->goodsSharePlugin ]参数下的[ version ]的值填入
</p>
<a
href=
"https://mp.weixin.qq.com/wxopen/plugindevdoc?appid=wx56c8f077de74b07c&token=1011820682&lang=zh_CN"
target=
"_blank"
>
去申请权限并获取组件版本号
<i
class=
"am-icon-external-link"
></i></a>
</div>
<input
type=
"text"
name=
"{{$data.common_app_is_good_thing_ver.only_tag}}"
placeholder=
"{{$data.common_app_is_good_thing_ver.name}}"
data-validation-message=
"{{$data.common_app_is_good_thing_ver.error_tips}}"
class=
"am-radius am-margin-top-xs"
{{
if
!
empty
($
data
)}}
value=
"{{$data.common_app_is_good_thing_ver.value}}"
{{/
if
}}
/>
</div>
<div
class=
"am-form-group"
>
<label>
{{$data.common_app_weixin_liveplayer.name}}
<span
class=
"am-form-group-label-tips"
>
{{$data.common_app_weixin_liveplayer.describe}}
</span></label>
<select
name=
"{{$data.common_app_weixin_liveplayer.only_tag}}"
class=
"am-radius chosen-select"
data-validation-message=
"{{$data.common_app_weixin_liveplayer.error_tips}}"
required
>
...
...
app/service/AppMiniService.php
浏览文件 @
81e587fb
...
...
@@ -696,37 +696,6 @@ class AppMiniService
*/
private
static
function
ExtendHandleWeixin
(
$new_dir
)
{
// 启用好物推荐
if
(
MyC
(
'common_app_is_good_thing'
,
0
)
==
1
)
{
// app.json
$file
=
$new_dir
.
DS
.
'app.json'
;
$config
=
json_decode
(
file_get_contents
(
$file
),
true
);
if
(
is_array
(
$config
)
&&
isset
(
$config
[
'plugins'
]))
{
$config
[
'plugins'
][
'goodsSharePlugin'
]
=
[
'version'
=>
MyC
(
'common_app_is_good_thing_ver'
,
'4.0.1'
,
true
),
'provider'
=>
'wx56c8f077de74b07c'
,
];
if
(
file_put_contents
(
$file
,
JsonFormat
(
$config
))
===
false
)
{
return
DataReturn
(
'好物推荐主配置失败'
,
-
50
);
}
}
// goods-detail.json
$file
=
$new_dir
.
DS
.
'pages'
.
DS
.
'goods-detail'
.
DS
.
'goods-detail.json'
;
$config
=
json_decode
(
file_get_contents
(
$file
),
true
);
if
(
is_array
(
$config
)
&&
isset
(
$config
[
'usingComponents'
]))
{
$config
[
'usingComponents'
][
'share-button'
]
=
'plugin://goodsSharePlugin/share-button'
;
if
(
file_put_contents
(
$file
,
JsonFormat
(
$config
))
===
false
)
{
return
DataReturn
(
'好物推荐商品配置失败'
,
-
51
);
}
}
}
// 启用直播
if
(
MyC
(
'common_app_weixin_liveplayer'
,
0
)
==
1
)
{
...
...
app/service/SystemBaseService.php
浏览文件 @
81e587fb
...
...
@@ -154,7 +154,6 @@ class SystemBaseService
// 商品相关
'common_app_is_use_mobile_detail'
=>
(
int
)
MyC
(
'common_app_is_use_mobile_detail'
),
'common_app_is_good_thing'
=>
(
int
)
MyC
(
'common_app_is_good_thing'
),
'common_is_show_goods_comments'
=>
(
int
)
MyC
(
'common_is_show_goods_comments'
,
1
),
'common_is_goods_detail_show_photo'
=>
(
int
)
MyC
(
'common_is_goods_detail_show_photo'
,
0
,
true
),
'common_is_exhibition_mode_btn_text'
=>
MyC
(
'common_is_exhibition_mode_btn_text'
,
'立即咨询'
,
true
),
...
...
public/static/common/lib/ueditor/dialogs/map/map.html
浏览文件 @
81e587fb
...
...
@@ -4,7 +4,7 @@
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<title></title>
<script
type=
"text/javascript"
src=
"../internal.js"
></script>
<script
type=
"text/javascript"
src=
"https://api.map.baidu.com/api?v=2.0&ak=
{{common_baidu_map_ak}}
"
></script>
<script
type=
"text/javascript"
src=
"https://api.map.baidu.com/api?v=2.0&ak=
XSdiGjfg3wOHiKjpYEMG6CYA
"
></script>
<style
type=
"text/css"
>
.content
{
width
:
530px
;
height
:
350px
;
margin
:
10px
auto
;}
.content
table
{
width
:
100%
}
...
...
public/static/common/lib/ueditor/dialogs/map/show.html
浏览文件 @
81e587fb
...
...
@@ -14,7 +14,7 @@
overflow
:
hidden
;
}
</style>
<script
type=
"text/javascript"
src=
"https://api.map.baidu.com/api?v=2.0&ak=
{{common_baidu_map_ak}}
"
></script>
<script
type=
"text/javascript"
src=
"https://api.map.baidu.com/api?v=2.0&ak=
XSdiGjfg3wOHiKjpYEMG6CYA
"
></script>
</head>
<body
onload=
"initMap();"
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录