切换导航条
此项目
正在载入...
登录
root
/
jyht
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
sgj
6 years ago
提交
92af61597b5ff2f0ad38150d89b9a3038d0ce2d6
1 个父辈
ca5b6a59
1 个管道 的构建
通过
耗费 1 秒
调整评论顺序
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
23 行增加
和
0 行删除
app/portal/controller/FriendsController.php
public/themes/simpleboot3/portal/friends/friendlist.html
app/portal/controller/FriendsController.php
查看文件 @
92af615
...
...
@@ -41,6 +41,17 @@ class FriendsController extends WeChatBaseController
* @throws \think\exception\DbException
*/
public
function
friendList
(){
$config
=
config
(
'wechat_config'
);
$Wechat
=
new
Application
(
$config
);
$js
=
$Wechat
->
js
;
$api
[]
=
'chooseImage'
;
$api
[]
=
'previewImage'
;
$api
[]
=
'uploadImage'
;
$api
[]
=
'downloadImage'
;
$sdk
=
$js
->
config
(
$api
,
true
);
$group_id
=
input
(
'id'
);
/*检查权限*/
$user_id
=
cmf_get_current_user_id
();
...
...
@@ -58,6 +69,7 @@ class FriendsController extends WeChatBaseController
foreach
(
$article
as
$k
=>
$v
){
$article
[
$k
][
'pic'
]
=
cmf_get_image_url
(
json_decode
(
$v
[
'amore'
],
true
)[
'thumbnail'
]);
}
$this
->
assign
(
'sdk'
,
$sdk
);
$this
->
assign
(
'silence'
,
$silence
);
$this
->
assign
(
'info'
,
$info
);
$this
->
assign
(
'userinfo'
,
$user
[
'0'
]);
...
...
public/themes/simpleboot3/portal/friends/friendlist.html
查看文件 @
92af615
...
...
@@ -10,6 +10,7 @@
<link
rel=
"stylesheet"
href=
"__TMPL__/public/assets/css/diseaseColumn.css"
>
<link
rel=
"stylesheet"
href=
"__TMPL__/public/assets/css/ChatCircle.css"
>
<link
rel=
"stylesheet"
href=
"__TMPL__/public/assets/css/chat.css"
>
<script
src=
"http://res.wx.qq.com/open/js/jweixin-1.4.0.js"
></script>
</head>
<body>
<div>
...
...
@@ -250,5 +251,15 @@
})
</script>
<script
type=
"application/javascript"
>
wx
.
config
({
$sdk
});
$
(
'.list_img_box'
).
onclick
(
function
(
res
)
{
alert
(
'1111'
);
})
wx
.
previewImage
({
current
:
''
,
// 当前显示图片的http链接
urls
:
[]
// 需要预览的图片http链接列表
});
</script>
</body>
</html>
\ No newline at end of file
...
...
请
注册
或
登录
后发表评论