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
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
lanbaoming
jiedao-web-master
Commits
d6588788
Commit
d6588788
authored
Sep 13, 2024
by
chenwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature' into 'dev'
创建统计记录 See merge request
!15
parents
5e059c3c
ae93e64f
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 @
d6588788
...
...
@@ -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 @
d6588788
...
...
@@ -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