Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
飞
飞鹤小程序
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
FH
飞鹤小程序
Commits
4a20918d
Commit
4a20918d
authored
Oct 29, 2025
by
王炽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
66666
parent
6d2e8a42
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
149 deletions
+60
-149
getSigninAndTaskInMock.json
mock/getSigninAndTaskInMock.json
+1
-131
index.vue
pages/index/index.vue
+57
-18
Brand.vue
views/Brand.vue
+2
-0
No files found.
mock/getSigninAndTaskInMock.json
View file @
4a20918d
{
{
"code"
:
"000000"
,
"data"
:{
"checkInTodo"
:{
"checkInExtra"
:{
"joinRecord"
:[{
"coefficient"
:
null
,
"credits"
:
"5"
,
"index"
:
"1"
,
"joined"
:
false
,
"today"
:
false
},{
"coefficient"
:
null
,
"credits"
:
"5"
,
"index"
:
"2"
,
"joined"
:
true
,
"today"
:
true
},{
"coefficient"
:
null
,
"credits"
:
"6"
,
"index"
:
"3"
,
"joined"
:
false
,
"today"
:
false
},{
"coefficient"
:
null
,
"credits"
:
"6"
,
"index"
:
"4"
,
"joined"
:
false
,
"today"
:
false
},{
"coefficient"
:
null
,
"credits"
:
"6"
,
"index"
:
"5"
,
"joined"
:
false
,
"today"
:
false
},{
"coefficient"
:
null
,
"credits"
:
"6"
,
"index"
:
"6"
,
"joined"
:
false
,
"today"
:
false
},{
"coefficient"
:
null
,
"credits"
:
"6"
,
"index"
:
"7"
,
"joined"
:
false
,
"today"
:
false
}],
"rule"
:
null
,
"taskCode"
:
null
,
"taskId"
:
"1115"
,
"type"
:
"CheckIn"
},
"id"
:
1115
,
"name"
:
"每日签到-修改"
},
"taskTodo"
:[{
"id"
:
1195
,
"name"
:
"小哇演示"
,
"taskTodoExtra"
:{
"credits"
:
"20"
,
"desc"
:
"小哇演示"
,
"extra"
:
"{
\"
type
\"
:
\"
GOODS
\"
,
\"
value
\"
:
\"
607028533731099656
\"
,
\"
label
\"
:
\"
飞鹤星飞帆1段婴儿配方奶粉一段700g(0-6月龄)JXH自营积分+现金1
\"
,
\"
url
\"
:
\"
#/goods/607028533731099656
\"
,
\"
skuId
\"
:
\"
607028533731099657
\"
}"
,
"icon"
:
"https://firmus-member-test-1253290912.cos.ap-beijing.myqcloud.com/xmh-mini-program/manager/image/2025/10/28/xmh-mini-program_1761636548928_c8b83a5e3c4a40b5b8971f3acbd83362.png"
,
"limit"
:
null
,
"sort"
:
"1"
,
"status"
:
"1"
,
"title"
:
"小哇演示"
,
"type"
:
"BROWSE_PAGE"
}},{
"id"
:
1120
,
"name"
:
"关注公众号"
,
"taskTodoExtra"
:{
"credits"
:
"10"
,
"desc"
:
"关注公众号"
,
"extra"
:
null
,
"icon"
:
"https://firmus-member-test-1253290912.cos.ap-beijing.myqcloud.com/xmh-mini-program/manager/image/2025/10/19/xmh-mini-program_1760883654444_2791e90272af46f29fa07bf4ae90dd53.png"
,
"limit"
:
null
,
"sort"
:
"4"
,
"status"
:
"1"
,
"title"
:
"关注公众号"
,
"type"
:
"FollowWx"
}},{
"id"
:
1207
,
"name"
:
"浏览test"
,
"taskTodoExtra"
:{
"credits"
:
"10"
,
"desc"
:
"浏览test"
,
"extra"
:
"{
\"
type
\"
:
\"
SELF_GOODS
\"
,
\"
value
\"
:82,
\"
label
\"
:
\"
飞鹤星飞帆1段婴儿配方奶粉xiaowa
\"
,
\"
url
\"
:
\"
#/goods/82
\"
}"
,
"icon"
:
"https://firmus-member-test-1253290912.cos.ap-beijing.myqcloud.com/xmh-mini-program/manager/image/2025/10/28/xmh-mini-program_1761652747376_75e68bd480a34eea9ec5b693a8de65f5.png"
,
"limit"
:
null
,
"sort"
:
"10"
,
"status"
:
"1"
,
"title"
:
"浏览test"
,
"type"
:
"BROWSE_PAGE"
}},{
"id"
:
1127
,
"name"
:
"消费任务消费任务消费任务"
,
"taskTodoExtra"
:{
"credits"
:
"100"
,
"desc"
:
"消费任务副标题"
,
"extra"
:
"[{
\"
itemFeaturesPayType
\"
:
\"
7
\"
,
\"
itemId
\"
:
\"
825847777614046618
\"
,
\"
pictUrl
\"
:
\"
https://fh01-dev-bucket.oss-cn-beijing.aliyuncs.com/xxyx-fn_bp_bs/item-img/c9a1a676-48ce-7e9a-e7d7d0f70faa009b.jpg
\"
,
\"
price
\"
:
\"
100
\"
,
\"
skuFeatures
\"
:
\"
1
\"
,
\"
skuId
\"
:
\"
825847777614046619
\"
,
\"
skuProperties
\"
:
\"
435315499745502188:700462790409131774;435315875667965138:183166545774596244;
\"
,
\"
skuStatus
\"
:1,
\"
status
\"
:1,
\"
storeName
\"
:
\"
xgren联营店铺001分店
\"
,
\"
title
\"
:
\"
任相阁-黑人牙刷30支联营
\"
}]"
,
"icon"
:
"https://firmus-member-test-1253290912.cos.ap-beijing.myqcloud.com/xmh-mini-program/manager/image/2025/10/21/xmh-mini-program_1761027269827_446aa82498834c3abb6b98126599308d.jpg"
,
"limit"
:
null
,
"sort"
:
"23"
,
"status"
:
"3"
,
"title"
:
"消费任务消费任务消费任务"
,
"type"
:
"EXCHANGE_GOODS"
}}]},
"message"
:
"success"
,
"ok"
:
true
,
"success"
:
true
}
"code"
:
"000000"
,
\ No newline at end of file
"data"
:
{
"checkInTodo"
:
{
"checkInExtra"
:
{
"joinRecord"
:
[
{
"coefficient"
:
null
,
"credits"
:
"5"
,
"index"
:
"1"
,
"joined"
:
false
,
"today"
:
false
},
{
"coefficient"
:
null
,
"credits"
:
"5"
,
"index"
:
"2"
,
"joined"
:
true
,
"today"
:
true
},
{
"coefficient"
:
null
,
"credits"
:
"6"
,
"index"
:
"3"
,
"joined"
:
false
,
"today"
:
false
},
{
"coefficient"
:
null
,
"credits"
:
"6"
,
"index"
:
"4"
,
"joined"
:
false
,
"today"
:
false
},
{
"coefficient"
:
null
,
"credits"
:
"6"
,
"index"
:
"5"
,
"joined"
:
false
,
"today"
:
false
},
{
"coefficient"
:
null
,
"credits"
:
"6"
,
"index"
:
"6"
,
"joined"
:
false
,
"today"
:
false
},
{
"coefficient"
:
null
,
"credits"
:
"6"
,
"index"
:
"7"
,
"joined"
:
false
,
"today"
:
false
}
],
"rule"
:
null
,
"taskCode"
:
null
,
"taskId"
:
"1115"
,
"type"
:
"CheckIn"
},
"id"
:
1115
,
"name"
:
"每日签到-修改"
},
"taskTodo"
:
[
{
"id"
:
1195
,
"name"
:
"小哇演示"
,
"taskTodoExtra"
:
{
"credits"
:
"20"
,
"desc"
:
"小哇演示"
,
"extra"
:
"{
\"
type
\"
:
\"
GOODS
\"
,
\"
value
\"
:
\"
607028533731099656
\"
,
\"
label
\"
:
\"
飞鹤星飞帆1段婴儿配方奶粉一段700g(0-6月龄)JXH自营积分+现金1
\"
,
\"
url
\"
:
\"
#/goods/607028533731099656
\"
,
\"
skuId
\"
:
\"
607028533731099657
\"
}"
,
"icon"
:
"https://firmus-member-test-1253290912.cos.ap-beijing.myqcloud.com/xmh-mini-program/manager/image/2025/10/28/xmh-mini-program_1761636548928_c8b83a5e3c4a40b5b8971f3acbd83362.png"
,
"limit"
:
null
,
"sort"
:
"1"
,
"status"
:
"1"
,
"title"
:
"小哇演示"
,
"type"
:
"BROWSE_PAGE"
}
},
{
"id"
:
1120
,
"name"
:
"关注公众号"
,
"taskTodoExtra"
:
{
"credits"
:
"10"
,
"desc"
:
"关注公众号"
,
"extra"
:
null
,
"icon"
:
"https://firmus-member-test-1253290912.cos.ap-beijing.myqcloud.com/xmh-mini-program/manager/image/2025/10/19/xmh-mini-program_1760883654444_2791e90272af46f29fa07bf4ae90dd53.png"
,
"limit"
:
null
,
"sort"
:
"4"
,
"status"
:
"1"
,
"title"
:
"关注公众号"
,
"type"
:
"FollowWx"
}
},
{
"id"
:
1202
,
"name"
:
"浏览test"
,
"taskTodoExtra"
:
{
"credits"
:
"10"
,
"desc"
:
"浏览test"
,
"extra"
:
"{
\"
type
\"
:
\"
GOODS
\"
,
\"
value
\"
:
\"
827000540328343497
\"
,
\"
label
\"
:
\"
sku图片
\"
,
\"
url
\"
:
\"
#/goods/827000540328343497
\"
,
\"
skuId
\"
:
\"
827000540332537391
\"
}"
,
"icon"
:
"https://firmus-member-test-1253290912.cos.ap-beijing.myqcloud.com/xmh-mini-program/manager/image/2025/10/28/xmh-mini-program_1761652747376_75e68bd480a34eea9ec5b693a8de65f5.png"
,
"limit"
:
null
,
"sort"
:
"10"
,
"status"
:
"1"
,
"title"
:
"浏览test"
,
"type"
:
"BROWSE_PAGE"
}
},
{
"id"
:
1127
,
"name"
:
"消费任务消费任务消费任务"
,
"taskTodoExtra"
:
{
"credits"
:
"100"
,
"desc"
:
"消费任务副标题"
,
"extra"
:
"[{
\"
itemFeaturesPayType
\"
:
\"
7
\"
,
\"
itemId
\"
:
\"
825847777614046618
\"
,
\"
pictUrl
\"
:
\"
https://fh01-dev-bucket.oss-cn-beijing.aliyuncs.com/xxyx-fn_bp_bs/item-img/c9a1a676-48ce-7e9a-e7d7d0f70faa009b.jpg
\"
,
\"
price
\"
:
\"
100
\"
,
\"
skuFeatures
\"
:
\"
1
\"
,
\"
skuId
\"
:
\"
825847777614046619
\"
,
\"
skuProperties
\"
:
\"
435315499745502188:700462790409131774;435315875667965138:183166545774596244;
\"
,
\"
skuStatus
\"
:1,
\"
status
\"
:1,
\"
storeName
\"
:
\"
xgren联营店铺001分店
\"
,
\"
title
\"
:
\"
任相阁-黑人牙刷30支联营
\"
}]"
,
"icon"
:
"https://firmus-member-test-1253290912.cos.ap-beijing.myqcloud.com/xmh-mini-program/manager/image/2025/10/21/xmh-mini-program_1761027269827_446aa82498834c3abb6b98126599308d.jpg"
,
"limit"
:
null
,
"sort"
:
"23"
,
"status"
:
"3"
,
"title"
:
"消费任务消费任务消费任务"
,
"type"
:
"EXCHANGE_GOODS"
}
}
]
},
"message"
:
"success"
,
"ok"
:
true
,
"success"
:
true
}
\ No newline at end of file
pages/index/index.vue
View file @
4a20918d
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
@
close=
"handleCloseGongzhonghaoPop"
@
download=
"handleDownloadQrCode"
/>
@
close=
"handleCloseGongzhonghaoPop"
@
download=
"handleDownloadQrCode"
/>
<!-- 视频弹窗 -->
<!-- 视频弹窗 -->
<view
v-if=
"showVideo"
class=
"video-popup"
>
<view
v-if=
"showVideo"
class=
"video-popup
1
"
>
<video
:src=
"currentVideoUrl"
controls
autoplay
<video
:src=
"currentVideoUrl"
controls
autoplay
:style=
"
{ width: videoWidth + 'px', height: videoHeight + 'px' }" @loadedmetadata="onVideoLoadedMeta"
:style=
"
{ width: videoWidth + 'px', height: videoHeight + 'px' }" @loadedmetadata="onVideoLoadedMeta"
@play="onVideoPlay">
</video>
@play="onVideoPlay">
</video>
...
@@ -223,23 +223,28 @@ const handleCloseTaskCompleteTips = async () => {
...
@@ -223,23 +223,28 @@ const handleCloseTaskCompleteTips = async () => {
};
};
// 完成任务并显示完成提示
const
handleTaskComplete
=
async
(
taskIdParam
)
=>
{
taskId
.
value
=
0
;
const
integralStore
=
useIntegralStore
();
const
res
=
await
taskCompleteJSON
(
taskIdParam
);
console
.
log
(
'taskCompleteJSON res:'
,
res
);
globalStore
.
isShowTaskComplete
=
true
;
globalStore
.
taskCompletePoints
=
res
?.
data
?.
actualCredits
;
globalStore
.
taskCompleteTitle
=
res
?.
data
?.
taskName
;
//刷新签到和任务信息
await
integralStore
.
getSigninAndTaskInfo
();
};
onShow
(
async
()
=>
{
onShow
(
async
()
=>
{
console
.
log
(
'onShow--index'
);
console
.
log
(
'onShow--index'
);
//完成了浏览任务
//完成了浏览任务
if
(
taskId
.
value
>
0
)
{
if
(
taskId
.
value
>
0
)
{
const
integralStore
=
useIntegralStore
();
await
handleTaskComplete
(
taskId
.
value
);
const
res
=
await
taskCompleteJSON
(
taskId
.
value
);
console
.
log
(
'taskCompleteJSON res:'
,
res
);
globalStore
.
isShowTaskComplete
=
true
;
globalStore
.
taskCompletePoints
=
res
?.
data
?.
actualCredits
;
globalStore
.
taskCompleteTitle
=
res
?.
data
?.
taskName
;
//刷新签到和任务信息
await
integralStore
.
getSigninAndTaskInfo
();
}
}
});
});
...
@@ -369,13 +374,41 @@ const handleTaskClick = async (data) => {
...
@@ -369,13 +374,41 @@ const handleTaskClick = async (data) => {
const
extra1
=
JSON
.
parse
(
data
?.
task
?.
taskTodoExtra
?.
extra
);
const
extra1
=
JSON
.
parse
(
data
?.
task
?.
taskTodoExtra
?.
extra
);
if
(
extra1
.
type
==
'VIDEO'
)
{
if
(
extra1
.
type
==
'VIDEO'
)
{
showVideo
.
value
=
true
;
currentVideoUrl
.
value
=
extra1
.
url
;
}
else
if
(
extra1
.
type
==
'GOODS'
){
let
url
=
`subPackages/shopMainProcess/product/index?productId=
${
extra1
.
value
}
&skuId=
${
extra1
.
skuId
}
&entrySource=xmh_wechatmp_points_north`
;
jump
({
type
:
JumpType
.
MINI
,
url
:
url
,
extra
:
{
envVersion
:
"release"
,
appId
:
"wx4205ec55b793245e"
,
embedded
:
true
}
});
}
else
if
(
extra1
.
type
==
'PAGE'
||
extra1
.
type
==
'MINI_APP'
){
jump
({
type
:
JumpType
.
INNER
,
url
:
extra1
.
url
});
}
else
if
(
extra1
.
type
==
'MINI_APP_THIRD'
){
jump
({
type
:
JumpType
.
MINI
,
url
:
extra1
.
url
,
extra
:
{
envVersion
:
"release"
,
appId
:
extra1
.
value
,
embedded
:
true
}
});
}
else
if
(
extra1
.
type
==
'SELF_GOODS'
){
jump
({
type
:
JumpType
.
INNER
,
url
:
`/v3/goodDetail/goodDetail?gid=
${
extra1
.
value
}
`
});
}
else
{
jump
({
type
:
JumpType
.
H5
,
url
:
extra1
.
url
});
}
}
console
.
log
(
'extra66666:'
,
extra1
);
// console.log('extra66666:', extra1);
jump
({
type
:
JumpType
.
H5
,
url
:
extra1
.
url
});
break
;
break
;
case
'FirstOrder'
:
//完成首单优选消费
case
'FirstOrder'
:
//完成首单优选消费
const
extra2
=
JSON
.
parse
(
data
?.
task
?.
taskTodoExtra
?.
extra
);
const
extra2
=
JSON
.
parse
(
data
?.
task
?.
taskTodoExtra
?.
extra
);
...
@@ -512,7 +545,13 @@ const handleTaskPersonSubmit = (formData) => {
...
@@ -512,7 +545,13 @@ const handleTaskPersonSubmit = (formData) => {
};
};
// 视频弹窗相关方法
// 视频弹窗相关方法
const
closeVideo
=
()
=>
{
const
closeVideo
=
async
()
=>
{
//完成了浏览任务
if
(
taskId
.
value
>
0
)
{
await
handleTaskComplete
(
taskId
.
value
);
}
showVideo
.
value
=
false
;
showVideo
.
value
=
false
;
currentVideoUrl
.
value
=
''
;
currentVideoUrl
.
value
=
''
;
};
};
...
@@ -641,7 +680,7 @@ const onVideoPlay = () => {
...
@@ -641,7 +680,7 @@ const onVideoPlay = () => {
transform
:
scale
(
0
.95
);
transform
:
scale
(
0
.95
);
}
}
.video-popup
{
.video-popup
1
{
position
:
fixed
;
position
:
fixed
;
left
:
0
;
left
:
0
;
top
:
0
;
top
:
0
;
...
...
views/Brand.vue
View file @
4a20918d
...
@@ -547,6 +547,8 @@ export default {
...
@@ -547,6 +547,8 @@ export default {
},
},
jumpLink
(
_link
,
videoUrl
,
evt
)
{
jumpLink
(
_link
,
videoUrl
,
evt
)
{
console
.
log
(
'jumpLink1111111:'
,
_link
,
videoUrl
);
if
(
evt
)
{
if
(
evt
)
{
md
.
sensorLog
(
evt
);
md
.
sensorLog
(
evt
);
if
(
evt
.
currentTarget
.
dataset
.
comlog
)
{
if
(
evt
.
currentTarget
.
dataset
.
comlog
)
{
...
...
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