Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-web-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
lanbaoming
jiedao-web-master
Commits
ae93e64f
Commit
ae93e64f
authored
Sep 13, 2024
by
chenwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
创建统计记录
parent
924d5f5c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
13 deletions
+25
-13
integral.js
src/api/integral.js
+11
-2
IntegralActivity.vue
src/views/jiedao/profile/components/IntegralActivity.vue
+14
-11
No files found.
src/api/integral.js
View file @
ae93e64f
...
...
@@ -54,7 +54,7 @@ export function integralActivityDetail(data) {
});
}
//兑换发送验证码
//
兑换发送验证码
export
function
exchangeSMSCode
(
data
)
{
return
request
({
url
:
"
/app-api/reward/redeem/send-sms-code
"
,
...
...
@@ -63,7 +63,7 @@ export function exchangeSMSCode(data) {
});
}
//兑换礼品
//
兑换礼品
export
function
redeemSingleReward
(
data
)
{
return
request
({
url
:
"
/app-api/reward/redeem/single
"
,
...
...
@@ -71,3 +71,12 @@ export function redeemSingleReward(data) {
data
,
});
}
// 创建复制记录
export
function
shareRecordCreate
(
data
)
{
return
request
({
url
:
"
/app-api/member/score-rule/share-record/create
"
,
method
:
"
post
"
,
data
,
});
}
src/views/jiedao/profile/components/IntegralActivity.vue
View file @
ae93e64f
...
...
@@ -34,7 +34,7 @@
</
template
>
<
script
>
import
{
integralActivityList
}
from
'
@/api/integral
'
import
{
integralActivityList
,
shareRecordCreate
}
from
'
@/api/integral
'
import
ClipboardJS
from
'
clipboard
'
export
default
{
name
:
'
IntegralActivity
'
,
...
...
@@ -56,21 +56,24 @@ export default {
if
(
item
.
type
==
3
)
{
return
`
${
this
.
locale
===
'
zh_CN
'
?
item
.
extraRecommend
.
shareContentZh
:
item
.
extraRecommend
.
shareContentEn
}
${
item
.
recommendUrl
}
`
}
else
if
(
item
.
type
==
4
)
{
return
`
${
this
.
locale
===
'
zh
'
?
item
.
titleZh
return
`
${
this
.
locale
===
'
zh
_CN
'
?
item
.
titleZh
:
item
.
titleEn
}
${
item
.
extraShare
.
activityUrl
}
?id=
${
item
.
id
}
&memberId=
${
this
.
$store
.
getters
.
id
}
&language=
${
this
.
locale
==
'
zh_CN
'
?
'
zh
'
:
'
en
'
}
`
}
},
// 复制按钮
handleCopyBtn
(
item
,
e
)
{
const
clipboard
=
new
ClipboardJS
(
`.copyBtn
${
item
.
id
}
`
)
this
.
$nextTick
(()
=>
{
clipboard
.
on
(
'
success
'
,
()
=>
{
this
.
$message
.
success
(
this
.
$t
(
'
复制成功
'
))
clipboard
.
destroy
()
})
clipboard
.
on
(
'
error
'
,
()
=>
{
this
.
$message
.
error
(
this
.
$t
(
'
复制失败
'
))
clipboard
.
destroy
()
shareRecordCreate
({
memberId
:
this
.
$store
.
getters
.
id
,
ruleId
:
item
.
id
}).
then
(
res
=>
{
const
clipboard
=
new
ClipboardJS
(
`.copyBtn
${
item
.
id
}
`
)
this
.
$nextTick
(()
=>
{
clipboard
.
on
(
'
success
'
,
()
=>
{
this
.
$message
.
success
(
this
.
$t
(
'
复制成功
'
))
clipboard
.
destroy
()
})
clipboard
.
on
(
'
error
'
,
()
=>
{
this
.
$message
.
error
(
this
.
$t
(
'
复制失败
'
))
clipboard
.
destroy
()
})
})
})
},
...
...
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