Commit 86d6b8f7 authored by chenwei's avatar chenwei

Merge branch 'feature' into 'dev'

分享统计重复请求

See merge request !17
parents d6588788 331bc609
...@@ -62,20 +62,19 @@ export default { ...@@ -62,20 +62,19 @@ export default {
}, },
// 复制按钮 // 复制按钮
handleCopyBtn(item, e) { handleCopyBtn(item, e) {
shareRecordCreate({ memberId: this.$store.getters.id,
ruleId: item.id }).then(res => {
const clipboard = new ClipboardJS(`.copyBtn${item.id}`) const clipboard = new ClipboardJS(`.copyBtn${item.id}`)
this.$nextTick(() => {
clipboard.on('success', () => { clipboard.on('success', () => {
shareRecordCreate({ memberId: this.$store.getters.id,
ruleId: item.id }).then(res => {
this.$message.success(this.$t('复制成功')) this.$message.success(this.$t('复制成功'))
})
clipboard.destroy() clipboard.destroy()
}) })
clipboard.on('error', () => { clipboard.on('error', () => {
this.$message.error(this.$t('复制失败')) this.$message.error(this.$t('复制失败'))
clipboard.destroy() clipboard.destroy()
}) })
})
})
}, },
// 获取活动列表 // 获取活动列表
async getIntegralList() { async getIntegralList() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment