Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
纵之格
ShopXO
提交
dbb04ab2
ShopXO
项目概览
纵之格
/
ShopXO
通知
394
Star
16
Fork
11
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
dbb04ab2
编写于
4月 20, 2019
作者:
G
gongfuxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
share
上级
195965a7
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
24 addition
and
12 deletion
+24
-12
application/plugins/view/share/index/content.html
application/plugins/view/share/index/content.html
+5
-0
public/static/common/js/common.js
public/static/common/js/common.js
+2
-9
public/static/plugins/css/share/style.css
public/static/plugins/css/share/style.css
+14
-0
public/static/plugins/images/share/weixin-layer.png
public/static/plugins/images/share/weixin-layer.png
+0
-0
public/static/plugins/js/share/style.js
public/static/plugins/js/share/style.js
+3
-3
未找到文件。
application/plugins/view/share/index/content.html
浏览文件 @
dbb04ab2
...
...
@@ -32,6 +32,11 @@
</div>
</div>
<!-- 微信环境中提示分享 -->
<div
id=
"plugins-share-weixin-layer"
>
<img
src=
"{{$attachment_host}}/static/plugins/images/share/weixin-layer.png"
/>
</div>
<!-- url复制 -->
<div
class=
"am-modal am-modal-no-btn"
tabindex=
"-1"
id=
"plugins-share-url-modal"
>
<div
class=
"am-modal-dialog"
>
...
...
public/static/common/js/common.js
浏览文件 @
dbb04ab2
...
...
@@ -1141,14 +1141,14 @@ function UrlFieldReplace(field, value, url)
}
/**
* 当前环境
* 当前
手机浏览器
环境
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @datetime 2019-04-20T19:48:59+0800
* @return {string} [weixin,weibo,qq]
*/
function
Is
Environment
()
function
MobileBrowser
Environment
()
{
var
ua
=
navigator
.
userAgent
.
toLowerCase
();
if
(
ua
.
match
(
/MicroMessenger/i
)
==
'
micromessenger
'
)
...
...
@@ -1168,13 +1168,6 @@ function IsEnvironment()
return
null
;
}
function
IsWeixinss
()
{
var
ua
=
navigator
.
userAgent
.
toLowerCase
();
return
(
ua
.
match
(
/MicroMessenger/i
)
==
"
micromessenger
"
);
}
// 公共数据操作
$
(
function
()
{
...
...
public/static/plugins/css/share/style.css
浏览文件 @
dbb04ab2
...
...
@@ -49,6 +49,20 @@
#plugins-share-weixin-modal
.weixin-qrcode
{
margin-top
:
10px
;
}
#plugins-share-weixin-layer
{
position
:
fixed
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
background
:
rgba
(
0
,
0
,
0
,
0.6
);
z-index
:
10000
;
text-align
:
center
;
display
:
none
;
}
#plugins-share-weixin-layer
img
{
max-width
:
90%
;
}
/**
* url
...
...
public/static/plugins/images/share/weixin-layer.png
0 → 100644
浏览文件 @
dbb04ab2
23.7 KB
public/static/plugins/js/share/style.js
浏览文件 @
dbb04ab2
...
...
@@ -47,11 +47,11 @@ $(function()
// 微信
case
'
weixin
'
:
// 是否微信环境中
alert
(
IsEnvironment
())
if
(
IsEnvironment
()
==
'
weixin
'
)
if
(
MobileBrowserEnvironment
()
==
'
weixin
'
)
{
$
(
'
#plugins-share-weixin-layer
'
).
show
();
}
else
{
$
(
'
#plugins-share-weixin-layer
'
).
hide
();
var
$modal
=
$
(
'
#plugins-share-weixin-modal
'
);
$modal
.
find
(
'
.weixin-qrcode
'
).
empty
().
qrcode
({
text
:
decodeURIComponent
(
url
),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录