Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
biz.qingxiao.com
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxuelai
biz.qingxiao.com
Commits
8a66ef90
Commit
8a66ef90
authored
Apr 13, 2020
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'微信消息推送给'
parent
c007c73a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
10 deletions
+23
-10
push.png
image/menu/push.png
+0
-0
pushactive.png
image/menu/pushactive.png
+0
-0
menuconfig.js
src/common/menuconfig.js
+5
-5
index.js
src/pages/pushsetting/index.js
+18
-5
No files found.
image/menu/push.png
0 → 100644
View file @
8a66ef90
476 Bytes
image/menu/pushactive.png
0 → 100644
View file @
8a66ef90
497 Bytes
src/common/menuconfig.js
View file @
8a66ef90
...
...
@@ -226,15 +226,15 @@ export default {
// },
{
id
:
'80'
,
name
:
'公众号
消息
推送配置'
,
name
:
'公众号推送配置'
,
key
:
80
,
isFather
:
false
,
style
:
{
width
:
'
20
px'
,
height
:
'
20
px'
,
width
:
'
15
px'
,
height
:
'
15
px'
,
},
activeurl
:
`
${
__IMGCDN__
}
menu/
live
.png?v=1`
,
notactiveurl
:
`
${
__IMGCDN__
}
menu/
live
active.png`
,
activeurl
:
`
${
__IMGCDN__
}
menu/
push
.png?v=1`
,
notactiveurl
:
`
${
__IMGCDN__
}
menu/
push
active.png`
,
path
:
'/sjd/pushsetting'
,
relativePath
:
[
'/sjd/pushsetting'
],
},
...
...
src/pages/pushsetting/index.js
View file @
8a66ef90
import
React
from
'react'
;
import
{
connect
}
from
'dva'
;
import
qs
from
'qs'
;
import
{
List
,
Avatar
,
Empty
,
Button
}
from
'antd'
;
import
{
List
,
Avatar
,
Empty
,
Button
,
message
}
from
'antd'
;
import
ClipboardJS
from
'clipboard'
;
import
pageStyles
from
'./index.less'
;
import
disData
from
'../../common/dis.data'
;
import
{
LocalStorage
,
SessionStorage
,
pageIn
}
from
'../../utils/index'
;
import
{
LocalStorage
,
SessionStorage
,
pageIn
,
imagify
}
from
'../../utils/index'
;
class
PushSetting
extends
React
.
Component
{
constructor
(
props
)
{
super
(
props
);
...
...
@@ -13,6 +14,10 @@ class PushSetting extends React.Component {
}
componentDidMount
()
{
pageIn
(
'轻校-公众号消息推送配置'
);
this
.
clipboard
=
new
ClipboardJS
(
'#btnCopyLink'
);
// 点击按钮复制到粘贴板
this
.
clipboard
.
on
(
'success'
,
()
=>
{
message
.
success
(
'复制成功'
,
0.3
);
});
}
componentWillUnmount
()
{
}
...
...
@@ -26,6 +31,7 @@ class PushSetting extends React.Component {
const
{
isEmpty
,
wxInfo
,
sid
,
}
=
this
.
props
;
const
data
=
[
{
...
...
@@ -41,9 +47,15 @@ class PushSetting extends React.Component {
renderItem
=
{
item
=>
(
<
List
.
Item
>
<
List
.
Item
.
Meta
avatar
=
{
<
Avatar
src
=
"https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png"
/>
}
avatar
=
{
<
Avatar
src
=
{
imagify
(
item
.
head_img
)}
/>
}
title
=
{
<
span
>
{
item
.
title
}
<
/span>
}
description
=
{
`
${
item
.
created_at
}
绑定`
}
description
=
{
(
<
div
>
<
div
>
{
`
${
item
.
created_at
}
绑定`
}
<
/div
>
<
div
><
span
id
=
"linkcopy"
>
{
ENVIRONMENT
==
'pro'
?
`https://h5.qingxiao.online/qxbindpush.html?sid=
${
sid
}
`
:
`https://clock-h5.wp53.cn/qxbindpush.html?sid=
${
sid
}
`
}
<
/span><span style={{ paddingLeft: '10px' }} className="hreflink" data-clipboard-target="#linkcopy" id="btnCopyLink">复制</
span
><
/div
>
<
/div
>
)}
/
>
<
/List.Item
>
)}
...
...
@@ -77,10 +89,11 @@ function mapStateToProps(state) {
isEmpty
,
wxInfo
,
}
=
state
.
pushsetting
;
const
{
locationQuery
}
=
state
.
webapp
;
const
{
locationQuery
,
sid
}
=
state
.
webapp
;
return
{
isEmpty
,
wxInfo
,
sid
,
};
}
export
default
connect
(
mapStateToProps
)(
PushSetting
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment