|
@@ -101,7 +101,7 @@ const toEditActivity = (groupActivityId) => () => {
|
101
|
101
|
{row.activityStatus === 0 &&
|
102
|
102
|
<AuthButton name="admin.SignList.get" noRight={null}>
|
103
|
103
|
|
104
|
|
- <span style={{ color: '#1990FF', cursor: 'pointer' }} onClick={ getSignList.bind(this, row.groupActicityId)}>拼团记录<Icon type="snippets" className={styles.shoppingCart} /></span>
|
|
104
|
+ <span style={{ color: '#1990FF', cursor: 'pointer' }} onClick={ getSignList.bind(this, row.groupActivityId)}>拼团记录<Icon type="snippets" className={styles.shoppingCart} /></span>
|
105
|
105
|
<span style={{ color: '#1990FF', cursor: 'pointer' }} onClick={endGroupActivity(row)}>结束活动<Icon type="poweroff" className={styles.edit} /></span>
|
106
|
106
|
<span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={topGroupActivity(row, row.weight)}>{ row.weight === 1 ? '取消置顶' : '置顶' }<Icon type="vertical-align-top" className={styles.edit} /></span>
|
107
|
107
|
<span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={recommendGroupActivity(row)}>{ row.sort === true ? '取消推荐首页' : '推荐首页' }<Icon type="vertical-align-top" className={styles.edit} /></span>
|
|
@@ -109,7 +109,7 @@ const toEditActivity = (groupActivityId) => () => {
|
109
|
109
|
|
110
|
110
|
{row.activityStatus === 1 &&
|
111
|
111
|
<AuthButton name="admin.buildingDynamic.finish.put" noRight={null}>
|
112
|
|
- <span style={{ color: '#FF925C', cursor: 'pointer' }} onClick={toEditActivity(row.groupActicityId)}>编辑<Icon type="form" className={styles.edit} /></span>
|
|
112
|
+ <span style={{ color: '#FF925C', cursor: 'pointer' }} onClick={toEditActivity(row.groupActivityId)}>编辑<Icon type="form" className={styles.edit} /></span>
|
113
|
113
|
<span style={{ color: '#1990FF', cursor: 'pointer' }} onClick={endGroupActivity(row)}>结束活动<Icon type="poweroff" className={styles.edit} /></span>
|
114
|
114
|
<span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={topGroupActivity(row, row.weight)}>{ row.weight === 1 ? '取消置顶' : '置顶' }<Icon type="vertical-align-top" className={styles.edit} /></span>
|
115
|
115
|
<span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={recommendGroupActivity(row)}>{ row.sort === true ? '取消推荐首页' : '推荐首页' }<Icon type="vertical-align-top" className={styles.edit} /></span>
|
|
@@ -118,7 +118,7 @@ const toEditActivity = (groupActivityId) => () => {
|
118
|
118
|
|
119
|
119
|
{row.activityStatus === 2 &&
|
120
|
120
|
<AuthButton name="admin.buildingDynamic.finish.put" noRight={null}>
|
121
|
|
- <span style={{ color: '#1990FF', cursor: 'pointer' }} onClick={ getSignList.bind(this, row.groupActicityId)}>拼团记录<Icon type="snippets" className={styles.shoppingCart} /></span>
|
|
121
|
+ <span style={{ color: '#1990FF', cursor: 'pointer' }} onClick={ getSignList.bind(this, row.groupActivityId)}>拼团记录<Icon type="snippets" className={styles.shoppingCart} /></span>
|
122
|
122
|
<span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={topGroupActivity(row, row.weight)}>{ row.weight === 1 ? '取消置顶' : '置顶' }<Icon type="vertical-align-top" className={styles.edit} /></span>
|
123
|
123
|
<span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={recommendGroupActivity(row)}>{ row.sort === true ? '取消推荐首页' : '推荐首页' }<Icon type="vertical-align-top" className={styles.edit} /></span>
|
124
|
124
|
</AuthButton>
|
|
@@ -156,7 +156,7 @@ const toEditActivity = (groupActivityId) => () => {
|
156
|
156
|
|
157
|
157
|
//结束活动
|
158
|
158
|
const endGroupActivity = (row) => () => {
|
159
|
|
- request({ ...apis.groupActivity.finish, urlData: { id: row.groupActicityId} }).then((data) => {
|
|
159
|
+ request({ ...apis.groupActivity.finish, urlData: { id: row.groupActivityId} }).then((data) => {
|
160
|
160
|
console.log(data)
|
161
|
161
|
message.info('操作成功!')
|
162
|
162
|
getList({ pageNum: 1, pageSize: 10 })
|
|
@@ -168,7 +168,7 @@ const toEditActivity = (groupActivityId) => () => {
|
168
|
168
|
|
169
|
169
|
//置顶
|
170
|
170
|
const topGroupActivity = (row, weight) => () => {
|
171
|
|
- request({ ...apis.groupActivity.top, data: { groupActicityId: row.groupActicityId, weight: weight } }).then((data) => {
|
|
171
|
+ request({ ...apis.groupActivity.top, data: { groupActivityId: row.groupActivityId, weight: weight } }).then((data) => {
|
172
|
172
|
console.log(data)
|
173
|
173
|
message.info('操作成功!')
|
174
|
174
|
getList({ pageNum: 1, pageSize: 10 })
|
|
@@ -180,7 +180,7 @@ const toEditActivity = (groupActivityId) => () => {
|
180
|
180
|
|
181
|
181
|
//首页推荐
|
182
|
182
|
const recommendGroupActivity = (row, code) => () => {
|
183
|
|
- request({ ...apis.groupActivity.top, data: { groupActicityId: row.groupActicityId, sort: row.sort } }).then((data) => {
|
|
183
|
+ request({ ...apis.groupActivity.top, data: { groupActivityId: row.groupActivityId, sort: row.sort } }).then((data) => {
|
184
|
184
|
console.log(data)
|
185
|
185
|
message.info('操作成功!')
|
186
|
186
|
getList({ pageNum: 1, pageSize: 10 })
|